Kathiresan Chinnasamy

Ranch Hand
+ Follow
since Jan 01, 2008
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Kathiresan Chinnasamy

Hi Guys,
Please help me to resolve below issue ASAP.

When I try to use below code for creating .xls file from jsp, I'm getting this "The Web Page you are viewing is trying to close the window" alert value sometimes.

12 years ago
JSP
Hi Guys,
I just want check How Message Driven Bean is getting Websphere queue manager details using connection-factory-location where mentioned in orion-ejb-jar.xml.

Here is the configuration details :
Server : OC4J container
Queue : Websphere MQ

Entry in orion-ejb-jar.xml
<message-driven-deployment name="EAIMDB"
connection-factory-location="java:comp/resource/EAIsample/PRDWD01"
destination-location="java:comp/resource/EAIsample/EAIRQST.Q001"
listener-threads="2"
transaction-timeout="30"
dequeue-retry-count="3"
dequeue-retry-interval="3"/>

I can't find out any queue manger details here and not able find out the .bindings file for this entry.
please help me to find the path for .bindings file or queue manager configuration file.

Appreciate early responses.
Hi All,
I'm using WMQ6, WMB and ESQL for message transformation ...
I need to identify and log the request in WMQ or ESQL if the message size is more than 5 MB...

Can you please assist me if any option is available to identify the size of the message to log the request?

Note : ESQL is providing LENGTH method to identify the length of message But not for size of message...

13 years ago
Hi all,

I am planning to study webservice for scdjws 5.

Is there any specific study material for scdws ?

Could you guide me to get study material ?
Thank you Kengkaj Sathianpantarit and Hervé Loiret for your reply.

I got the materials(486) from IBM study material.
Hi Friends,

In my project I released web service for a particular class in Axis 2.

The class contains two methods.
for example
one is A() and another one is B().

If i call the A() method from client server, it access fine.

But when i calling the B() method from client server, i got an exception that org.apache.axis.AxisFault: (401)Authorization Required.

I don't understand the problem where is, because exception code is 401.

If authorization problem means, it should through 401 exception even A() access .


Note : I am using weblogic server 9.2 for client and server.


Do you have an any idea for this problem ?



The exception log is :

org.apache.axis.AxisFault: (401)Authorization Required
at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:722)
at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:131)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:73)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:160)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:123)
at org.jboss.webservice.client.ClientEngine.invoke(ClientEngine.java:126)
at org.apache.axis.client.Call.invokeEngine(Call.java:3029)
at org.apache.axis.client.Call.invoke(Call.java:3014)
at org.apache.axis.client.Call.invoke(Call.java:2608)
at org.apache.axis.client.Call.invoke(Call.java:2513)
at org.apache.axis.client.Call.invokeInternal(Call.java:1973)
at org.apache.axis.client.Call.invoke(Call.java:1914)
at org.jboss.webservice.client.CallImpl.invoke(CallImpl.java:265)
at org.apache.axis.client.AxisClientProxy.invoke(AxisClientProxy.java:403)
at $Proxy1113.B(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.webservice.client.PortProxy.invoke(PortProxy.java:111)
at $Proxy114.B(Unknown Source)
...........
15 years ago
Thank you for your reply ....

Actually the problem comes under pre production.

In pre producion we have SSL certificate for both server(calling server page and called server page).
16 years ago
JSP
For Additional Information i provide the log :

Please Let me know the problem if you know it.

java.net.ProtocolException: Unsupported protocol: https
at weblogic.net.http.HttpClient.openServer(HttpClient.java:374)
at weblogic.net.http.HttpClient.New(HttpClient.java:270)
at weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:170)
at weblogic.net.http.HttpURLConnection.followRedirect(HttpURLConnection.java:647)
at weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.java:420)
at weblogic.net.http.SOAPHttpURLConnection.getInputStream(SOAPHttpURLConnection.java:36)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireReader(ImportSupport.java:330)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.acquireString(ImportSupport.java:241)
at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)
at jsp_servlet._sg._strumenti.__cerca_prodotti_result._jsp__tag0(__cerca_prodotti_result.java:166)
at jsp_servlet._sg._strumenti.__cerca_prodotti_result._jspService(__cerca_prodotti_result.java:114)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:34)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
at weblogic.servlet.internal.ServletStubImpl.onAddToMapException(ServletStubImpl.java:394)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:309)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at asautil.filters.SessionFilter.doFilter(SessionFilter.java:62)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3242)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2010)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1916)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
16 years ago
JSP
Hi friends,

I have doubts in <c:import>

Can we use https in c:import url path ?

For example :
<c:import url = "https://www.sample.com">

I tried this one. I can't use this https.

But if i use different server, i can access it.

For Example :
http://192.50.51.999:8080/index.jsp


This index.jsp contains

<%@ taglib uri="/c.tld" prefix="c"%>
<c:import url="http://178.50.23.234:8080/index.jsp"></c:import>

Here you can see the ip address is different . so these two are different server.


But i have problem to access when i come with HTTPS.

Is there anyother solution ?
16 years ago
JSP
Hi friends,

I have a clarification.

I want to get data from MS-Access report through jsp code. then i want print it
Hi Friends,

Is there any option to set session id manually ?

I tried with org.apache.catalina.Session.this.setId("123") ; . but i got compile time exception eclipse

The exception is : No enclosing instance of the type Session is accessible in scope .

please let me know it if you know how to set session id manually.

Thank you in advance
16 years ago
Hi Rob Prime,

I got the solution by implements Comparable interface...


Thank you everyone to help me out for this solution
16 years ago
HI,

If i use TreeMap , i got class cast exception

for Example

please see this code

import java.util.ArrayList;
import java.util.TreeMap;



public class TestDao {

public static void main(String[] args) throws Exception{

treemapEx();
}

static void treemapEx() {

TreeMap treeMap = new TreeMap() ;


for(int i=5 ; i>0 ;i-- ) {

Prodatto1Test prodotto = new Prodatto1Test() ;

prodotto.setA(i) ;
prodotto.setB(i) ;
prodotto.setAb("SSSS") ;

ArrayList list = new ArrayList() ;

list.add(prodotto) ;

treeMap.put(prodotto, list) ;

System.out.println("List Addeded");
}

for(int i=0 ; i<5 ;i++ ) {
System.out.println("TreeMap Value" + treeMap.get("one"+i));
}

}

}

OutPut is :

List Addeded
Exception in thread "main" java.lang.ClassCastException: it.sella.Prodatto1Test
at java.util.TreeMap.compare(TreeMap.java:1093)
at java.util.TreeMap.put(TreeMap.java:465)
at TestDao.treemapEx(TestDao.java:39)
at TestDao.main(TestDao.java:21)



The very first time Obj is added into the TreeMap where as next time i got this exception



This bean class:

2.

package it.sella.entity;

public class Prodatto1Test {

private int a ;
private int b ;
private String ab ;

public int getA() {
return a;
}
public void setA(int a) {
this.a = a;
}
public int getB() {
return b;
}
public void setB(int b) {
this.b = b;
}
public String getAb() {
return ab;
}
public void setAb(String ab) {
this.ab = ab;
}

}

16 years ago
Thank you Rob Prime ..


Could you explain little bit more ?

I tried it but i couldn't find out the solution

please get me example if you have it
16 years ago