<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    Remote ejb call issue from client code to jboss eap 6.0.1 server
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/sunildell">Sunil Chaurasia</a> in <i>JBoss AS 7 Development</i> - <a href="https://community.jboss.org/message/824017#824017">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">Hi,</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">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.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">SLF4J: Defaulting to no-operation (NOP) logger implementation</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;"><span>SLF4J: See </span><a class="jive-link-external-small" href="http://www.slf4j.org/codes.html#StaticLoggerBinder" rel="nofollow" target="_blank">http://www.slf4j.org/codes.html#StaticLoggerBinder</a><span> for further details.</span></span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">log4j:WARN No appenders could be found for logger (org.jboss.logging).</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">log4j:WARN Please initialize the log4j system properly.</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;"> Time taken templates for group 139232 --&gt;0:00:01.470</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;"> Time taken prefences for group 139232 --&gt;0:00:01.390</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;"> Time taken templates for group 138689 --&gt;0:00:00.871</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;"> Time taken prefences for group 138689 --&gt;0:00:00.855</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">Exception in thread "main" java.lang.reflect.UndeclaredThrowableException</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.sun.proxy.$Proxy3.getTemplatesByTemplateCode(Unknown Source)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.fares.preference.ifc.delegate.PreferenceServiceBD.getTemplatesByTemplateCode(PreferenceServiceBD.java:242)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at TestK2Cache.main(TestK2Cache.java:53)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:597)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">Caused by: org.jboss.remoting3.MessageCancelledException</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.xnio.streams.BufferPipeInputStream.checkFailure(BufferPipeInputStream.java:280)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.xnio.streams.BufferPipeInputStream.read(BufferPipeInputStream.java:125)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.remoting3.remote.InboundMessage$3.read(InboundMessage.java:122)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.io.DataInputStream.readByte(DataInputStream.java:248)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.remoting.ProtocolMessageHandler$1.read(ProtocolMessageHandler.java:91)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.io.InputStream.read(InputStream.java:151)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.io.FilterInputStream.read(FilterInputStream.java:116)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at java.io.FilterInputStream.read(FilterInputStream.java:90)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.marshalling.SimpleDataInput.read(SimpleDataInput.java:58)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.marshalling.river.BlockUnmarshaller.readToEndBlockData(BlockUnmarshaller.java:109)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1260)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:209)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:37)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.remoting.MethodInvocationResponseHandler$MethodInvocationResultProducer.getResult(MethodInvocationResponseHandler.java:107)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:272)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:46)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:274)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.ReceiverInterceptor.handleInvocationResult(ReceiverInterceptor.java:129)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:262)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:437)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:140)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.EJBInvocationHandler.doInvoke(EJBInvocationHandler.java:121)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:104)</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ... 8 more</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">Caused by: an exception which occurred:</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.DataElementDisplayInfo</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.DataElement</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in element at index [42] of size [48]</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.Template</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in element at index [0] of size [2]</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.Template</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in element at index [0] of size [4]</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.Template</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in element at index [1] of size [5]</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.Template</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in element at index [8] of size [19]</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.PreferenceData</span></p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; in object of type com.fares.preference.ifc.model.PreferenceOutData</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><span style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #1f497d;">We have checked that this is not data issue as we have removed the 5th element and&#160; in that case it fails for next iteration.</span></p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/824017#824017">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in JBoss AS 7 Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2225">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>