-
1. Re: Lookup of remote interface is not working in Jboss environment
jaikiran Mar 10, 2010 2:44 AM (in response to jbhanu18)Maybe some exception is being thrown. Did you check the log file? Which version of JBossAS and Java are you using?
P.S: On a unrelated note, did you manually add all those font colours in your post? I am seeing many posts with code content having similar font colours. Is it the forum editor adding it?
-
2. Re: Lookup of remote interface is not working in Jboss environment
jbhanu18 Mar 10, 2010 3:15 AM (in response to jbhanu18)No exception is thrown in log.But on screen this error is thrownError: : IPMBaseBean::EjbNotFoundException..odiControllerSession..
where as in weblogic its not thrown..
Jboss & Java versions - jboss-eap-5.0 Java 1.6
Hi Jaikiran
q)I am seeing many posts with code content having similar font colours. Is it the forum editor adding it?
Forum editor is adding those colours by itself on pasting content.
-
3. Re: Lookup of remote interface is not working in Jboss environment
jaikiran Mar 10, 2010 3:17 AM (in response to jbhanu18)Jbhanu18 wrote:
Error: : IPMBaseBean::EjbNotFoundException..odiControllerSession..
I haven't seen such logging in JBossAS. So it appears to be some application specific logging. I guess some part of the code is catching the exception and logging only that one liner message. You'll have to setup a debugger to debug the piece of code and look for what exception is being thrown.
-
4. Re: Lookup of remote interface is not working in Jboss environment
jbhanu18 Mar 29, 2010 6:06 AM (in response to jaikiran)That error is coming from the IPMBaseBean.class
InitialContext initialcontext = new InitialContext();
Object obj = initialcontext.lookup("java:comp/env/ejb/ODIControllerSessionEJB");
IPMBaseBean _tmp2 = this;
odiControllerHome = (ODIControllerHome)PortableRemoteObject.narrow(obj, com.ual.odi.sb.ejb.session.ODIControllerHome.class);
IPMBaseBean _tmp3 = this;
odiControllerSession = odiControllerHome.create();
}
catch(NamingException namingexception)
{
IPMBaseBean _tmp4 = this;
odiControllerHome = null;
IPMBaseBean _tmp5 = this;
odiControllerSession = null;
IPMUtilityBean.log("IPMBaseBean::EjbNotFoundException..odiControllerSession.."); ------This is thrown on screen
throw new IPMException("IPMBaseBean::EjbNotFoundException..odiControllerSession..");
My doubt is ,Is there anything which I need to change in the code or xmls or do I need to add any client.class file specific to Jboss to make it work..
jboss-web.xml
<jboss-web>
<ejb-ref>
<ejb-ref-name>ejb/ODIControllerSessionEJB</ejb-ref-name>
<jndi-name>jnp://xyz:6003ODIControllerSessionEJB</jndi-name>
</ejb-ref>
</jboss-web>I have been trying it for a long time,but I couldnt find any solution.
Please help me in fixing this issue.
-
5. Re: Lookup of remote interface is not working in Jboss environment
jaikiran Mar 10, 2010 3:48 AM (in response to jbhanu18)So that piece of code in the catch block is eating up the entire naming exception. You will have to change that code to print out the exception stacktrace in the logs. Without looking at the exception stacktrace, i can't say what might be wrong. But my guess is that it's a NameNotFoundException, resulting from an incorrect JNDI name in the lookup.
P.S: To avoid those font colours, please post the code, first in a plain text editor and then paste that code from the text editor to the forum's editor. I wish there was a simple working plain text editor for this forum!
-
6. Re: Lookup of remote interface is not working in Jboss environment
jbhanu18 Mar 10, 2010 5:13 AM (in response to jaikiran)I used stck trace and here is the error found in log
14:52:11,156 INFO [STDOUT] Inside Naming exception
14:52:11,156 ERROR [STDERR] javax.naming.NamingException: Could not dereference
object [Root exception is javax.naming.CommunicationException: Could not obtain
connection to any of these urls: vwhq5275.whq.ual.com:6200 and discovery failed
with error: javax.naming.CommunicationException: Receive timed out [Root except
on is java.net.SocketTimeoutException: Receive timed out] [Root exception is ja
ax.naming.CommunicationException: Failed to retrieve stub from server vwhq5275.
hq.ual.com:6200 [Root exception is java.io.EOFException]]]
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.resolveLink
NamingContext.java:1339)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:804)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:820)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:673)
14:52:11,156 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCo
text.java:392)
14:52:11,156 ERROR [STDERR] at com.ual.ipm.bean.IPMBaseBean.getOdiSessionOb
ect(IPMBaseBean.java:101)
14:52:11,156 ERROR [STDERR] at com.ual.ipm.bean.IPMBaseBean.getServiceData(
PMBaseBean.java:53)
14:52:11,156 ERROR [STDERR] at com.ual.ipm.bean.IPMPassengerInfoBean.getPax
ltDetails(IPMPassengerInfoBean.java:111)
14:52:11,156 ERROR [STDERR] at org.apache.jsp.jsp.IPMPassengerManifest_jsp.
jspService(IPMPassengerManifest_jsp.java:288)
14:52:11,156 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.servic
(HttpJspBase.java:70)
14:52:11,156 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
rvlet.java:803)
14:52:11,156 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.
ervice(JspServletWrapper.java:369)
14:52:11,156 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service
spFile(JspServlet.java:322)
14:52:11,156 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service
JspServlet.java:249)
14:52:11,156 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
rvlet.java:803)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.internalDoFilter(ApplicationFilterChain.java:290)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.doFilter(ApplicationFilterChain.java:206)
14:52:11,156 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilt
r.doFilter(ReplyHeaderFilter.java:96)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.internalDoFilter(ApplicationFilterChain.java:235)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.doFilter(ApplicationFilterChain.java:206)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValv
.invoke(StandardWrapperValve.java:235)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.StandardContextValv
.invoke(StandardContextValve.java:191)
14:52:11,156 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssoci
tionValve.invoke(SecurityAssociationValve.java:190)
14:52:11,156 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextVal
e.invoke(JaccContextValve.java:92)
14:52:11,156 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContex
EstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
14:52:11,156 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContex
EstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.i
voke(StandardHostValve.java:127)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.
nvoke(ErrorReportValve.java:102)
14:52:11,156 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConne
tionValve.invoke(CachedConnectionValve.java:158)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve
invoke(StandardEngineValve.java:109)
14:52:11,156 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.
ervice(CoyoteAdapter.java:330)
14:52:11,156 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.pro
ess(Http11Processor.java:828)
14:52:11,156 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http
1ConnectionHandler.process(Http11Protocol.java:601)
14:52:11,156 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worke
.run(JIoEndpoint.java:447)
14:52:11,156 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
14:52:11,156 ERROR [STDERR] Caused by: javax.naming.CommunicationException: Cou
d not obtain connection to any of these urls: vwhq5275.whq.ual.com:6200 and dis
overy failed with error: javax.naming.CommunicationException: Receive timed out
[Root exception is java.net.SocketTimeoutException: Receive timed out] [Root ex
eption is javax.naming.CommunicationException: Failed to retrieve stub from ser
er vwhq5275.whq.ual.com:6200 [Root exception is java.io.EOFException]]
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(Na
ingContext.java:1727)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:680)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:673)
14:52:11,156 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCo
text.java:392)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.resolveLink
NamingContext.java:1333)
14:52:11,156 ERROR [STDERR] ... 34 more
14:52:11,156 ERROR [STDERR] Caused by: javax.naming.CommunicationException: Fai
ed to retrieve stub from server vwhq5275.whq.ual.com:6200 [Root exception is ja
a.io.EOFException]
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getServer(N
mingContext.java:303)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(Na
ingContext.java:1698)
14:52:11,156 ERROR [STDERR] ... 38 more
14:52:11,156 ERROR [STDERR] Caused by: java.io.EOFException
14:52:11,156 ERROR [STDERR] at java.io.ObjectInputStream$PeekInputStream.re
dFully(ObjectInputStream.java:2281)
14:52:11,156 ERROR [STDERR] at java.io.ObjectInputStream$BlockDataInputStre
m.readShort(ObjectInputStream.java:2750)
14:52:11,156 ERROR [STDERR] at java.io.ObjectInputStream.readStreamHeader(O
jectInputStream.java:780)
14:52:11,156 ERROR [STDERR] at java.io.ObjectInputStream.<init>(ObjectInput
tream.java:280)
14:52:11,156 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getServer(N
mingContext.java:288)
14:52:11,156 ERROR [STDERR] ... 39 more
14:52:18,766 INFO [STDOUT] IPMPassengerInfoBean::dataset...{STA=FGFHGF, CARRIE
=UA, SORTBY=PAXFIRSTNAME, SORTORDERIND=D, DATE=03/10/2010, DEPARRIND=D, FLTNO=114:52:18,766 INFO [STDOUT] sMode.....t
14:52:18,766 INFO [STDOUT] before lookup
14:52:31,079 INFO [STDOUT] Inside Naming exception
14:52:31,079 ERROR [STDERR] javax.naming.NamingException: Could not dereference
object [Root exception is javax.naming.CommunicationException: Could not obtain
connection to any of these urls: vwhq5275.whq.ual.com:6200 and discovery failed
with error: javax.naming.CommunicationException: Receive timed out [Root except
on is java.net.SocketTimeoutException: Receive timed out] [Root exception is ja
ax.naming.CommunicationException: Failed to retrieve stub from server vwhq5275.
hq.ual.com:6200 [Root exception is java.io.EOFException]]]
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.resolveLink
NamingContext.java:1339)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:804)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:820)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:673)
14:52:31,079 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCo
text.java:392)
14:52:31,079 ERROR [STDERR] at com.ual.ipm.bean.IPMBaseBean.getOdiSessionOb
ect(IPMBaseBean.java:101)
14:52:31,079 ERROR [STDERR] at com.ual.ipm.bean.IPMBaseBean.getServiceData(
PMBaseBean.java:53)
14:52:31,079 ERROR [STDERR] at com.ual.ipm.bean.IPMPassengerInfoBean.getPax
ltDetails(IPMPassengerInfoBean.java:111)
14:52:31,079 ERROR [STDERR] at org.apache.jsp.jsp.IPMPassengerManifest_jsp.
jspService(IPMPassengerManifest_jsp.java:288)
14:52:31,079 ERROR [STDERR] at org.apache.jasper.runtime.HttpJspBase.servic
(HttpJspBase.java:70)
14:52:31,079 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
rvlet.java:803)
14:52:31,079 ERROR [STDERR] at org.apache.jasper.servlet.JspServletWrapper.
ervice(JspServletWrapper.java:369)
14:52:31,079 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service
spFile(JspServlet.java:322)
14:52:31,079 ERROR [STDERR] at org.apache.jasper.servlet.JspServlet.service
JspServlet.java:249)
14:52:31,079 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpS
rvlet.java:803)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.internalDoFilter(ApplicationFilterChain.java:290)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.doFilter(ApplicationFilterChain.java:206)
14:52:31,079 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilt
r.doFilter(ReplyHeaderFilter.java:96)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.internalDoFilter(ApplicationFilterChain.java:235)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterCh
in.doFilter(ApplicationFilterChain.java:206)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValv
.invoke(StandardWrapperValve.java:235)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.StandardContextValv
.invoke(StandardContextValve.java:191)
14:52:31,079 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssoci
tionValve.invoke(SecurityAssociationValve.java:190)
14:52:31,079 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextVal
e.invoke(JaccContextValve.java:92)
14:52:31,079 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContex
EstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
14:52:31,079 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityContex
EstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.i
voke(StandardHostValve.java:127)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.
nvoke(ErrorReportValve.java:102)
14:52:31,079 ERROR [STDERR] at org.jboss.web.tomcat.service.jca.CachedConne
tionValve.invoke(CachedConnectionValve.java:158)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve
invoke(StandardEngineValve.java:109)
14:52:31,079 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.
ervice(CoyoteAdapter.java:330)
14:52:31,079 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.pro
ess(Http11Processor.java:828)
14:52:31,079 ERROR [STDERR] at org.apache.coyote.http11.Http11Protocol$Http
1ConnectionHandler.process(Http11Protocol.java:601)
14:52:31,079 ERROR [STDERR] at org.apache.tomcat.util.net.JIoEndpoint$Worke
.run(JIoEndpoint.java:447)
14:52:31,079 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
14:52:31,079 ERROR [STDERR] Caused by: javax.naming.CommunicationException: Cou
d not obtain connection to any of these urls: vwhq5275.whq.ual.com:6200 and dis
overy failed with error: javax.naming.CommunicationException: Receive timed out
[Root exception is java.net.SocketTimeoutException: Receive timed out] [Root ex
eption is javax.naming.CommunicationException: Failed to retrieve stub from ser
er vwhq5275.whq.ual.com:6200 [Root exception is java.io.EOFException]]
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(Na
ingContext.java:1727)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:680)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(Nami
gContext.java:673)
14:52:31,079 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialCo
text.java:392)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.resolveLink
NamingContext.java:1333)
14:52:31,079 ERROR [STDERR] ... 34 more
14:52:31,079 ERROR [STDERR] Caused by: javax.naming.CommunicationException: Fai
ed to retrieve stub from server vwhq5275.whq.ual.com:6200 [Root exception is ja
a.io.EOFException]
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getServer(N
mingContext.java:303)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.checkRef(Na
ingContext.java:1698)
14:52:31,079 ERROR [STDERR] ... 38 more
14:52:31,079 ERROR [STDERR] Caused by: java.io.EOFException
14:52:31,079 ERROR [STDERR] at java.io.ObjectInputStream$PeekInputStream.re
dFully(ObjectInputStream.java:2281)
14:52:31,079 ERROR [STDERR] at java.io.ObjectInputStream$BlockDataInputStre
m.readShort(ObjectInputStream.java:2750)
14:52:31,079 ERROR [STDERR] at java.io.ObjectInputStream.readStreamHeader(O
jectInputStream.java:780)
14:52:31,079 ERROR [STDERR] at java.io.ObjectInputStream.<init>(ObjectInput
tream.java:280)
14:52:31,079 ERROR [STDERR] at org.jnp.interfaces.NamingContext.getServer(N
mingContext.java:288)
14:52:31,079 ERROR [STDERR] ... 39 moreAny idea on this exception,Please suggest me.
-
7. Re: Lookup of remote interface is not working in Jboss environment
jaikiran Mar 10, 2010 7:29 AM (in response to jbhanu18)Are you packaging any jndi.properties file in your application? If yes, remove that file from your application.