javax.naming.NameNotFoundException: Name "local/CreditAgency" not found.

MuleSoft JIRA | Daniel Zapata | 6 years ago
  1. 0

    Steps to reproduce: * Go to the loanbroker example directory and run 'mvn -DskipTests' (due to MULE-5017) * Run loanbroker-server.bat * Select option 1 * In a separate console, run loanbroker-client.bat * Select option 1 and answer the questions You will see this on the client console: Please make your selection: 1 Enter your name: DZ Enter loan Amount: 12121 Enter loan Duration in months: 12 Exception in thread "main" org.mule.api.transport.DispatchException: Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[] at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:422) at org.mule.module.client.RemoteDispatcher.doToRemote(RemoteDispatcher.j ava:336) at org.mule.module.client.RemoteDispatcher.dispatchRemote(RemoteDispatch er.java:251) at org.mule.example.loanbroker.AbstractLoanBrokerApp.request(AbstractLoa nBrokerApp.java:183) at org.mule.example.loanbroker.AbstractLoanBrokerApp.run(AbstractLoanBro kerApp.java:89) at org.mule.example.loanbroker.LoanBrokerApp.main(LoanBrokerApp.java:31) Caused by: org.mule.api.transformer.TransformerException: The object transformed is of type: "SimpleDataType{type=org.mule.transport.NullPayload, mimeType='*/*' }", but the expected return type is "SimpleDataType{type=org.mule.api.MuleMessag e, mimeType='*/*'}" at org.mule.transformer.AbstractTransformer.checkReturnClass(AbstractTra nsformer.java:130) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:408) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:348) at org.mule.transformer.wire.TransformerPairWireFormat.read(TransformerP airWireFormat.java:62) at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:410) ... 5 more You will see the following stack trace on the server console: ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.retry.noti fiers.ConnectNotifier: Failed to connect/reconnect: endpoint.outbound.ejb://loca lhost:1099/local/CreditAgency. Root Exception was: javax.naming.NameNotFoundExce ption: Name "local/CreditAgency" not found.. Type: class javax.naming.NameNotFou ndException ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ******************************************************************************** ERROR 2010-08-16 17:51:51,875 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ********************************************************************************

    MuleSoft JIRA | 6 years ago | Daniel Zapata
    javax.naming.NameNotFoundException: Name "local/CreditAgency" not found.
  2. 0

    Steps to reproduce: * Go to the loanbroker example directory and run 'mvn -DskipTests' (due to MULE-5017) * Run loanbroker-server.bat * Select option 1 * In a separate console, run loanbroker-client.bat * Select option 1 and answer the questions You will see this on the client console: Please make your selection: 1 Enter your name: DZ Enter loan Amount: 12121 Enter loan Duration in months: 12 Exception in thread "main" org.mule.api.transport.DispatchException: Failed to r oute event via endpoint: DefaultOutboundEndpoint{endpointUri=tcp://localhost:555 5, connector=TcpConnector { name=connector.tcp.0 lifecycle=start this=1e78c96 numberOfConcurrentTransactedReceivers=4 createMultipleTransactedReceivers=true connected=true supportedProtocols=[tcp] serviceOverrides=<none> } , name='endpoint.tcp.localhost.5555', mep=REQUEST_RESPONSE, properties={}, tran sactionConfig=Transaction{factory=null, action=NEVER, timeout=0}, deleteUnaccept edMessages=false, initialState=started, responseTimeout=10000, endpointEncoding= UTF-8, disableTransportTransformer=false}. Message payload is of type: byte[] at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:422) at org.mule.module.client.RemoteDispatcher.doToRemote(RemoteDispatcher.j ava:336) at org.mule.module.client.RemoteDispatcher.dispatchRemote(RemoteDispatch er.java:251) at org.mule.example.loanbroker.AbstractLoanBrokerApp.request(AbstractLoa nBrokerApp.java:183) at org.mule.example.loanbroker.AbstractLoanBrokerApp.run(AbstractLoanBro kerApp.java:89) at org.mule.example.loanbroker.LoanBrokerApp.main(LoanBrokerApp.java:31) Caused by: org.mule.api.transformer.TransformerException: The object transformed is of type: "SimpleDataType{type=org.mule.transport.NullPayload, mimeType='*/*' }", but the expected return type is "SimpleDataType{type=org.mule.api.MuleMessag e, mimeType='*/*'}" at org.mule.transformer.AbstractTransformer.checkReturnClass(AbstractTra nsformer.java:130) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:408) at org.mule.transformer.AbstractTransformer.transform(AbstractTransforme r.java:348) at org.mule.transformer.wire.TransformerPairWireFormat.read(TransformerP airWireFormat.java:62) at org.mule.module.client.RemoteDispatcher.dispatchAction(RemoteDispatch er.java:410) ... 5 more You will see the following stack trace on the server console: ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.retry.noti fiers.ConnectNotifier: Failed to connect/reconnect: endpoint.outbound.ejb://loca lhost:1099/local/CreditAgency. Root Exception was: javax.naming.NameNotFoundExce ption: Name "local/CreditAgency" not found.. Type: class javax.naming.NameNotFou ndException ERROR 2010-08-16 17:51:51,843 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ******************************************************************************** ERROR 2010-08-16 17:51:51,875 [CreditAgencyGatewayService.2] org.mule.exception. DefaultServiceExceptionStrategy: ******************************************************************************** Message : Remote EJBObject lookup failed for 'ejb://localhost:1099 /local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. Code : MULE_ERROR--2 -------------------------------------------------------------------------------- Exception stack is: 1. javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (jav ax.naming.NameNotFoundException) org.openejb.core.ivm.naming.IvmContext:184 (http://java.sun.com/j2ee/sdk_1.3/t echdocs/api/javax/naming/NameNotFoundException.html) 2. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (java.rmi.RemoteException) org.mule.transport.ejb.EjbConnector:60 (null) 3. Remote EJBObject lookup failed for 'ejb://localhost:1099/local/CreditAgency; nested exception is: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. (org.mule.retry.RetryPolicyExhaustedException) org.mule.retry.policies.AbstractPolicyTemplate:105 (http://www.mulesource.org/ docs/site/current2/apidocs/org/mule/retry/RetryPolicyExhaustedException.html) -------------------------------------------------------------------------------- Root Exception stack trace: javax.naming.NameNotFoundException: Name "local/CreditAgency" not found. at org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184) at org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147) at javax.naming.InitialContext.lookup(Unknown Source) + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for ev erything) ********************************************************************************

    MuleSoft JIRA | 6 years ago | Daniel Zapata
    javax.naming.NameNotFoundException: Name "local/CreditAgency" not found.
  3. 0

    Re: HOWTO OpenEJB and HSqlDB

    openejb-users | 1 decade ago | Per Newgro
    javax.naming.NameNotFoundException: Name "java:/APPLDB" not found.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Re: HOWTO OpenEJB and HSqlDB

    openejb-users | 1 decade ago | Per Newgro
    javax.naming.NameNotFoundException: Name "java:/APPLDB" not found.
  6. 0

    Re: HOWTO OpenEJB and HSqlDB

    openejb-users | 1 decade ago | Per Newgro
    javax.naming.NameNotFoundException: Name "java:/APPLDB" not found.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. javax.naming.NameNotFoundException

      Name "local/CreditAgency" not found.

      at org.openejb.core.ivm.naming.IvmContext.federate()
    2. org.openejb.core
      IvmContext.lookup
      1. org.openejb.core.ivm.naming.IvmContext.federate(IvmContext.java:184)
      2. org.openejb.core.ivm.naming.IvmContext.lookup(IvmContext.java:147)
      2 frames
    3. Java RT
      InitialContext.lookup
      1. javax.naming.InitialContext.lookup(Unknown Source)
      1 frame