title: java.io.EOFException at weblogic
body: <p>Hello I'm having hard time trying to configure weblogic for stateless bean (Spring). I'm new on that field. </p>
  
  <p>I'm having 2-layer application. Server (weblogic + DB + java app) and client written in swing. When calling  this line:</p>
  
  <blockquote>
    <p>getCtx().lookup(SomeStatelessRemoteHome.class.getName()), SomeStatelessRemoteHome.class);</p>
  </blockquote>
  
  <p>I got this error:</p>
  
  <pre><code>Caused by: javax.naming.CommunicationException [Root exception is weblogic.rjvm.PeerGoneException: ; nested exception is: 
      java.io.EOFException]
      at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:74)
      at weblogic.jndi.internal.WLContextImpl.translateException(WLContextImpl.java:472)
      at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:428)
      at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:412)
      at javax.naming.InitialContext.lookup(Unknown Source)
      at pl.com...SomeStatelessRemoteLbkProxy.&lt;init&gt;(SomeStatelessRemoteLbkProxy.java:49)
      ... 46 more
  Caused by: weblogic.rjvm.PeerGoneException: ; nested exception is: 
      java.io.EOFException
      at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
      at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
      at weblogic.jndi.internal.ServerNamingNode_1036_WLStub.lookup(Unknown Source)
      at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:424)
      ... 49 more
  Caused by: java.io.EOFException
      at weblogic.rjvm.t3.MuxableSocketT3.endOfStream(MuxableSocketT3.java:345)
      at weblogic.socket.SocketMuxer.deliverExceptionAndCleanup(SocketMuxer.java:827)
      at weblogic.socket.SocketMuxer.deliverEndOfStream(SocketMuxer.java:761)
      at weblogic.socket.SocketMuxer.readReadySocketOnce(SocketMuxer.java:958)
      at weblogic.socket.SocketMuxer.readReadySocket(SocketMuxer.java:889)
      at weblogic.socket.JavaSocketMuxer.processSockets(JavaSocketMuxer.java:339)
      at weblogic.socket.SocketReaderRequest.run(SocketReaderRequest.java:29)
      at weblogic.work.ExecuteRequestAdapter.execute(ExecuteRequestAdapter.java:21)
      at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:145)
      at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:117)
  </code></pre>
  
  <p>EJB is auto-deployed on server. I've run weblogic with debug properties and there is nothing in log on weblogic server. Only on client it shows this stacktrace.</p>
  
  <p>After ocurring of this exception weblogic lose all connection with client.</p>
  
  <p>My config.xml on weblogic is:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;domain xmlns="http://xmlns.oracle.com/weblogic/domain" xmlns:sec="http://xmlns.oracle.com/weblogic/security" xmlns:wls="http://xmlns.oracle.com/weblogic/security/wls" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/weblogic/domain http://xmlns.oracle.com/weblogic/1.0/domain.xsd http://xmlns.oracle.com/weblogic/security http://xmlns.oracle.com/weblogic/1.0/security.xsd http://xmlns.oracle.com/weblogic/security/wls http://xmlns.oracle.com/weblogic/security/wls/1.0/wls.xsd http://xmlns.oracle.com/weblogic/security/extension http://xmlns.oracle.com/weblogic/1.0/security.xsd"&gt;
    &lt;name&gt;mydomain&lt;/name&gt;
    &lt;domain-version&gt;10.3.2.0&lt;/domain-version&gt;
    &lt;security-configuration&gt;
      &lt;name&gt;mydomain&lt;/name&gt;
      &lt;realm&gt;
        &lt;sec:authentication-provider xmlns:ext="http://xmlns.oracle.com/weblogic/security/extension" xsi:type="ext:custom-authenticatorType"&gt;
          &lt;sec:name&gt;CustomAuthenticator&lt;/sec:name&gt;
          &lt;sec:control-flag&gt;SUFFICIENT&lt;/sec:control-flag&gt;
          &lt;ext:host&gt;66.66.66.66&lt;/ext:host&gt;
          &lt;ext:port&gt;389&lt;/ext:port&gt;
          &lt;ext:principal&gt;some_principals_censored&lt;/ext:principal&gt;
          &lt;ext:results-time-limit&gt;2000&lt;/ext:results-time-limit&gt;
          &lt;ext:connect-timeout&gt;2990&lt;/ext:connect-timeout&gt;
          &lt;ext:connection-retry-limit&gt;100&lt;/ext:connection-retry-limit&gt;
          &lt;ext:credential-encrypted&gt;some_credentialss_censored&lt;/ext:credential-encrypted&gt;
        &lt;/sec:authentication-provider&gt;
        &lt;sec:authentication-provider xsi:type="wls:default-authenticatorType"&gt;&lt;/sec:authentication-provider&gt;
        &lt;sec:authentication-provider xsi:type="wls:default-identity-asserterType"&gt;
          &lt;sec:active-type&gt;AuthenticatedUser&lt;/sec:active-type&gt;
        &lt;/sec:authentication-provider&gt;
        &lt;sec:role-mapper xsi:type="wls:default-role-mapperType"&gt;&lt;/sec:role-mapper&gt;
        &lt;sec:authorizer xsi:type="wls:default-authorizerType"&gt;&lt;/sec:authorizer&gt;
        &lt;sec:adjudicator xsi:type="wls:default-adjudicatorType"&gt;&lt;/sec:adjudicator&gt;
        &lt;sec:credential-mapper xsi:type="wls:default-credential-mapperType"&gt;&lt;/sec:credential-mapper&gt;
        &lt;sec:cert-path-provider xsi:type="wls:web-logic-cert-path-providerType"&gt;&lt;/sec:cert-path-provider&gt;
        &lt;sec:cert-path-builder&gt;WebLogicCertPathProvider&lt;/sec:cert-path-builder&gt;
        &lt;sec:user-lockout-manager&gt;&lt;/sec:user-lockout-manager&gt;
        &lt;sec:deploy-role-ignored&gt;false&lt;/sec:deploy-role-ignored&gt;
        &lt;sec:deploy-policy-ignored&gt;false&lt;/sec:deploy-policy-ignored&gt;
        &lt;sec:security-dd-model&gt;Advanced&lt;/sec:security-dd-model&gt;
        &lt;sec:combined-role-mapping-enabled&gt;false&lt;/sec:combined-role-mapping-enabled&gt;
        &lt;sec:name&gt;myrealm&lt;/sec:name&gt;
      &lt;/realm&gt;
      &lt;default-realm&gt;myrealm&lt;/default-realm&gt;
      &lt;credential-encrypted&gt;some_credetials&lt;/credential-encrypted&gt;
      &lt;web-app-files-case-insensitive&gt;os&lt;/web-app-files-case-insensitive&gt;
      &lt;compatibility-connection-filters-enabled&gt;true&lt;/compatibility-connection-filters-enabled&gt;
      &lt;node-manager-username&gt;weblogic&lt;/node-manager-username&gt;
      &lt;node-manager-password-encrypted&gt;encrypted_pass&lt;/node-manager-password-encrypted&gt;
      &lt;enforce-strict-url-pattern&gt;false&lt;/enforce-strict-url-pattern&gt;
    &lt;/security-configuration&gt;
    &lt;security&gt;
      &lt;name&gt;mydomain&lt;/name&gt;
      &lt;realm&gt;wl_default_realm&lt;/realm&gt;
      &lt;password-policy&gt;wl_default_password_policy&lt;/password-policy&gt;
    &lt;/security&gt;
    &lt;jta&gt;
      &lt;name&gt;mydomain&lt;/name&gt;
      &lt;timeout-seconds&gt;60000&lt;/timeout-seconds&gt;
    &lt;/jta&gt;
    &lt;server&gt;
      &lt;name&gt;myserver&lt;/name&gt;
      &lt;jms-thread-pool-size&gt;0&lt;/jms-thread-pool-size&gt;
      &lt;max-message-size&gt;80000000&lt;/max-message-size&gt;
      &lt;complete-message-timeout&gt;480&lt;/complete-message-timeout&gt;
      &lt;ssl&gt;
        &lt;name&gt;myserver&lt;/name&gt;
        &lt;enabled&gt;false&lt;/enabled&gt;
        &lt;identity-and-trust-locations&gt;KeyStores&lt;/identity-and-trust-locations&gt;
      &lt;/ssl&gt;
      &lt;log&gt;
        &lt;stdout-severity&gt;Warning&lt;/stdout-severity&gt;
      &lt;/log&gt;
      &lt;execute-queue&gt;
        &lt;name&gt;weblogic.kernel.Default&lt;/name&gt;
        &lt;thread-count&gt;100&lt;/thread-count&gt;
      &lt;/execute-queue&gt;
      &lt;messaging-bridge-thread-pool-size&gt;100&lt;/messaging-bridge-thread-pool-size&gt;
      &lt;listen-port&gt;7001&lt;/listen-port&gt;
      &lt;listen-address&gt;127.0.0.1&lt;/listen-address&gt;
      &lt;xml-registry xsi:nil="true"&gt;&lt;/xml-registry&gt;
      &lt;xml-entity-cache xsi:nil="true"&gt;&lt;/xml-entity-cache&gt;
      &lt;extra-ejbc-options&gt;-Xmx1g&lt;/extra-ejbc-options&gt;
      &lt;tunneling-enabled&gt;false&lt;/tunneling-enabled&gt;
      &lt;staging-mode&gt;stage&lt;/staging-mode&gt;
      &lt;server-diagnostic-config&gt;
        &lt;wldf-diagnostic-volume&gt;High&lt;/wldf-diagnostic-volume&gt;
      &lt;/server-diagnostic-config&gt;
      &lt;transaction-log-jdbc-store&gt;
        &lt;enabled&gt;false&lt;/enabled&gt;
      &lt;/transaction-log-jdbc-store&gt;
      &lt;data-source&gt;
        &lt;rmi-jdbc-security xsi:nil="true"&gt;&lt;/rmi-jdbc-security&gt;
      &lt;/data-source&gt;
    &lt;/server&gt;
    &lt;embedded-ldap&gt;
      &lt;name&gt;mydomain&lt;/name&gt;
      &lt;credential-encrypted&gt;some_credentials&lt;/credential-encrypted&gt;
    &lt;/embedded-ldap&gt;
    &lt;configuration-version&gt;10.3.2.0&lt;/configuration-version&gt;
    &lt;app-deployment&gt;
      &lt;name&gt;_appsdir_appear&lt;/name&gt;
      &lt;module-type&gt;ear&lt;/module-type&gt;
      &lt;source-path&gt;autodeploy\app.ear&lt;/source-path&gt;
      &lt;sub-deployment&gt;
          ....Some Ejb libs
      &lt;/sub-deployment&gt;
      &lt;deployment-order&gt;100&lt;/deployment-order&gt;
      &lt;security-dd-model&gt;Advanced&lt;/security-dd-model&gt;
      &lt;staging-mode&gt;stage&lt;/staging-mode&gt;
      &lt;cache-in-app-directory&gt;false&lt;/cache-in-app-directory&gt;
    &lt;/app-deployment&gt;
    &lt;ws-reliable-delivery-policy&gt;
      &lt;name&gt;RMDefaultPolicy&lt;/name&gt;
      &lt;jms-server&gt;WSStoreForwardInternalJMSServermyserver&lt;/jms-server&gt;
      &lt;default-retry-count&gt;10&lt;/default-retry-count&gt;
      &lt;default-time-to-live&gt;60000&lt;/default-time-to-live&gt;
    &lt;/ws-reliable-delivery-policy&gt;
    &lt;file-realm&gt;
      &lt;name&gt;wl_default_file_realm&lt;/name&gt;
    &lt;/file-realm&gt;
    &lt;realm&gt;
      &lt;name&gt;wl_default_realm&lt;/name&gt;
      &lt;file-realm&gt;wl_default_file_realm&lt;/file-realm&gt;
    &lt;/realm&gt;
    &lt;password-policy&gt;
      &lt;name&gt;wl_default_password_policy&lt;/name&gt;
    &lt;/password-policy&gt;
    &lt;jms-server&gt;
      &lt;name&gt;WSStoreForwardInternalJMSServermyserver&lt;/name&gt;
      &lt;target&gt;myserver&lt;/target&gt;
      &lt;persistent-store&gt;FileStore&lt;/persistent-store&gt;
      &lt;allows-persistent-downgrade&gt;true&lt;/allows-persistent-downgrade&gt;
      &lt;hosting-temporary-destinations&gt;false&lt;/hosting-temporary-destinations&gt;
    &lt;/jms-server&gt;
    &lt;jms-server&gt;
      &lt;name&gt;MyJMS Server&lt;/name&gt;
      &lt;target&gt;myserver&lt;/target&gt;
      &lt;store-enabled&gt;false&lt;/store-enabled&gt;
      &lt;allows-persistent-downgrade&gt;true&lt;/allows-persistent-downgrade&gt;
      &lt;hosting-temporary-destinations&gt;false&lt;/hosting-temporary-destinations&gt;
    &lt;/jms-server&gt;
    &lt;web-app-container&gt;
      &lt;relogin-enabled&gt;true&lt;/relogin-enabled&gt;
      &lt;allow-all-roles&gt;true&lt;/allow-all-roles&gt;
      &lt;filter-dispatched-requests-enabled&gt;true&lt;/filter-dispatched-requests-enabled&gt;
      &lt;rtexprvalue-jsp-param-name&gt;true&lt;/rtexprvalue-jsp-param-name&gt;
      &lt;jsp-compiler-backwards-compatible&gt;true&lt;/jsp-compiler-backwards-compatible&gt;
    &lt;/web-app-container&gt;
    &lt;startup-class&gt;
      &lt;name&gt;StartupSerwerCustom&lt;/name&gt;
      &lt;target&gt;myserver&lt;/target&gt;
      &lt;deployment-order&gt;1&lt;/deployment-order&gt;
      &lt;class-name&gt;pl.com...&lt;/class-name&gt;
      &lt;load-before-app-deployments&gt;true&lt;/load-before-app-deployments&gt;
    &lt;/startup-class&gt;
    &lt;startup-class&gt;
      ...other startupclasses
    &lt;/startup-class&gt;
    &lt;file-store&gt;
      &lt;name&gt;FileStore&lt;/name&gt;
      &lt;directory&gt;rmfilestore&lt;/directory&gt;
      &lt;synchronous-write-policy&gt;Direct-Write&lt;/synchronous-write-policy&gt;
      &lt;target&gt;myserver&lt;/target&gt;
    &lt;/file-store&gt;
    &lt;jms-interop-module&gt;
      &lt;name&gt;interop-jms&lt;/name&gt;
      &lt;sub-deployment&gt;
        &lt;name&gt;CustomConnectionFactory&lt;/name&gt;
        &lt;target&gt;myserver&lt;/target&gt;
      &lt;/sub-deployment&gt;
      &lt;sub-deployment&gt;
        &lt;name&gt;WSStoreForwardInternalJMSServermyserver&lt;/name&gt;
        &lt;target&gt;WSStoreForwardInternalJMSServermyserver&lt;/target&gt;
      &lt;/sub-deployment&gt;
      &lt;sub-deployment&gt;
        &lt;name&gt;MyJMS Server&lt;/name&gt;
        &lt;target&gt;MyJMS Server&lt;/target&gt;
      &lt;/sub-deployment&gt;
      &lt;descriptor-file-name&gt;jms/interop-jms.xml&lt;/descriptor-file-name&gt;
    &lt;/jms-interop-module&gt;
    &lt;admin-server-name&gt;myserver&lt;/admin-server-name&gt;
    &lt;jdbc-system-resource&gt;
      &lt;name&gt;DS_Server&lt;/name&gt;
      &lt;target&gt;myserver&lt;/target&gt;
      &lt;descriptor-file-name&gt;jdbc/DS_Server-jdbc.xml&lt;/descriptor-file-name&gt;
    &lt;/jdbc-system-resource&gt;
  &lt;/domain&gt;
  </code></pre>
  
  <p>I've censored it a little :). </p>
  
  <p>I would appreciate for some help with it. </p>