JBoss Community

Remote ejb call issue from client code to jboss eap 6.0.1 server

created by Sunil Chaurasia in JBoss AS 7 Development - View the full discussion

Hi,

 

We are facing an issue when the client application is pointing to our Jboss Dev environment. Client application makes call to backend service(deployed on jboss) for the purpose of caching templates at their end. The templates are 233 in number. So, backend api is called through ejb lookup for 233 iterations. The response is send back to client correctly for first four iterations and for the fifth iteration an exception is thrown.

 

SLF4J: Defaulting to no-operation (NOP) logger implementation

SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

log4j:WARN No appenders could be found for logger (org.jboss.logging).

log4j:WARN Please initialize the log4j system properly.

Time taken templates for group 139232 -->0:00:01.470

Time taken prefences for group 139232 -->0:00:01.390

Time taken templates for group 138689 -->0:00:00.871

Time taken prefences for group 138689 -->0:00:00.855

Exception in thread "main" java.lang.reflect.UndeclaredThrowableException

            at com.sun.proxy.$Proxy3.getTemplatesByTemplateCode(Unknown Source)

            at com.fares.preference.ifc.delegate.PreferenceServiceBD.getTemplatesByTemplateCode(PreferenceServiceBD.java:242)

            at TestK2Cache.main(TestK2Cache.java:53)

            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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)

Caused by: org.jboss.remoting3.MessageCancelledException

            at org.xnio.streams.BufferPipeInputStream.checkFailure(BufferPipeInputStream.java:280)

            at org.xnio.streams.BufferPipeInputStream.read(BufferPipeInputStream.java:125)

            at org.jboss.remoting3.remote.InboundMessage$3.read(InboundMessage.java:122)

            at java.io.DataInputStream.readByte(DataInputStream.java:248)

            at org.jboss.ejb.client.remoting.ProtocolMessageHandler$1.read(ProtocolMessageHandler.java:91)

            at java.io.InputStream.read(InputStream.java:151)

            at java.io.FilterInputStream.read(FilterInputStream.java:116)

            at java.io.FilterInputStream.read(FilterInputStream.java:90)

            at org.jboss.marshalling.SimpleDataInput.read(SimpleDataInput.java:58)

            at org.jboss.marshalling.river.BlockUnmarshaller.readToEndBlockData(BlockUnmarshaller.java:109)

            at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1260)

            at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)

            at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)

            at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)

            at org.jboss.ejb.client.remoting.MethodInvocationResponseHandler$MethodInvocationResultProducer.getResult(MethodInvocationResponseHandler.java:107)

            at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:272)

            at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:46)

            at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:274)

            at org.jboss.ejb.client.ReceiverInterceptor.handleInvocationResult(ReceiverInterceptor.java:129)

            at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:262)

            at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:437)

            at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:140)

            at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)

            at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)

            ... 8 more

Caused by: an exception which occurred:

            in object of type com.fares.preference.ifc.model.DataElementDisplayInfo

            in object of type com.fares.preference.ifc.model.DataElement

            in element at index [42] of size [48]

            in object of type com.fares.preference.ifc.model.Template

            in element at index [0] of size [2]

            in object of type com.fares.preference.ifc.model.Template

            in element at index [0] of size [4]

            in object of type com.fares.preference.ifc.model.Template

            in element at index [1] of size [5]

            in object of type com.fares.preference.ifc.model.Template

            in element at index [8] of size [19]

            in object of type com.fares.preference.ifc.model.PreferenceData

            in object of type com.fares.preference.ifc.model.PreferenceOutData

 

We have checked that this is not data issue as we have removed the 5th element and  in that case it fails for next iteration.

Reply to this message by going to Community

Start a new discussion in JBoss AS 7 Development at Community