Login  Register

Re: [OFBiz] Users - RemoteDispatcher not bound to : entity-sync-rmi (RMIDispatcher)

Posted by Andrew Zeneski on Nov 18, 2005; 12:15am
URL: http://ofbiz.116.s1.nabble.com/OFBiz-Users-jcentric-com-where-ahve-you-gone-where-is-my-website-tp136511p136522.html

Here is a little information which may help.

The ofbiz-container file defines the RMI server. Where the server  
will stuff the remote object and the location of the JNDI server to use.

In your setting you are telling the RMI container to place the  
RemoteDispatcher object on the JNDI server located on 10.1.6.3 port  
1099. It should bind it to the name RMIDispatcher on this server.

If you are running a stock OFBiz then make sure this address matches  
that in your carol.properties file for the RMI registry.

The client which will access the RMI server needs to be configured as  
well.  This is done by editing the serviceengine.xml and editing the  
service-location entry for the entity-sync-rmi or whatever location  
you are using for your entity sync records. Make sure this address  
matches your RMI registry and location. Right now yours is:

rmi://10.1.6.3:1099/RMIDispatcher

Andy

On Nov 17, 2005, at 6:43 PM, Andrew Sykes wrote:

> Hi,
>
> Getting RMI up has been like wading through treacle, I think I'll have
> to put together a howto if I ever get it to work!
>
> A big thanks to Andy for your help with the SSL stuff, this was much
> appreciated
>
> Can anyone help with this problem...
>
> I have the following in ofbiz-containers.xml
>     <!-- RMI Service Dispatcher -->
>     <container name="rmi-dispatcher"
> class="org.ofbiz.service.rmi.RmiServiceContainer">
>         <property name="bound-name" value="RMIDispatcher"/>
>         <property name="bound-host" value="10.1.6.3"/>
>         <property name="bound-port" value="1099"/>
>         <property name="delegator-name" value="default"/>
>         <property name="client-factory"
> value="org.ofbiz.service.rmi.socket.ssl.SSLClientSocketFactory"/>
>         <property name="server-factory"
> value="org.ofbiz.service.rmi.socket.ssl.SSLServerSocketFactory"/>
>         <property name="ssl-client-auth" value="true"/>
>     </container>
>
>
> I'm getting this error...
>
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RemoteDispatcher not bound to : entity-sync-rmi  
> (RMIDispatcher)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RemoteDispatcher not bound
> to : entity-sync-rmi (RMIDispatcher)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:72)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync
> (RmiServiceEngine.java:50)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 333)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
> 110)
> org.ofbiz.entityext.synchronization.EntitySyncContext.runPushSendData
> (EntitySyncContext.java:1030)
> org.ofbiz.entityext.synchronization.EntitySyncServices.runEntitySync
> (EntitySyncServices.java:114)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:324)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker
> (StandardJavaEngine.java:101)
> org.ofbiz.service.engine.StandardJavaEngine.runSync
> (StandardJavaEngine.java:63)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 333)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
> 110)
> com.howells.schemesync.SchemeSyncServices.runEntitySyncWrapper
> (SchemeSyncServices.java:63)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:324)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker
> (StandardJavaEngine.java:101)
> org.ofbiz.service.engine.StandardJavaEngine.runSync
> (StandardJavaEngine.java:63)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 333)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
> 110)
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:
> 80)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:226)
> java.lang.Thread.run(Thread.java:534)
> java.rmi.NotBoundException: RMIDispatcher
> org.objectweb.carol.jndi.registry.ManageableRegistry.lookup
> (ManageableRegistry.java:130)
> sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
> sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:342)
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:207)
> sun.rmi.transport.Transport$1.run(Transport.java:148)
> java.security.AccessController.doPrivileged(Native Method)
> sun.rmi.transport.Transport.serviceCall(Transport.java:144)
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:
> 460)
> sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run
> (TCPTransport.java:701)
> java.lang.Thread.run(Thread.java:534)
> sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer
> (StreamRemoteCall.java:247)
> sun.rmi.transport.StreamRemoteCall.executeCall
> (StreamRemoteCall.java:223)
> sun.rmi.server.UnicastRef.invoke(UnicastRef.java:350)
> sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
> java.rmi.Naming.lookup(Naming.java:84)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:67)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync
> (RmiServiceEngine.java:50)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 333)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
> 110)
> org.ofbiz.entityext.synchronization.EntitySyncContext.runPushSendData
> (EntitySyncContext.java:1030)
> org.ofbiz.entityext.synchronization.EntitySyncServices.runEntitySync
> (EntitySyncServices.java:114)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:324)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker
> (StandardJavaEngine.java:101)
> org.ofbiz.service.engine.StandardJavaEngine.runSync
> (StandardJavaEngine.java:63)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 333)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
> 110)
> com.howells.schemesync.SchemeSyncServices.runEntitySyncWrapper
> (SchemeSyncServices.java:63)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke
> (NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke
> (DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:324)
> org.ofbiz.service.engine.StandardJavaEngine.serviceInvoker
> (StandardJavaEngine.java:101)
> org.ofbiz.service.engine.StandardJavaEngine.runSync
> (StandardJavaEngine.java:63)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 333)
> org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:
> 213)
> org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:
> 110)
> org.ofbiz.service.job.GenericServiceJob.exec(GenericServiceJob.java:
> 80)
> org.ofbiz.service.job.JobInvoker.run(JobInvoker.java:226)
> java.lang.Thread.run(Thread.java:534)
> ----------------------------------------------------------------------
> ----------
>
>
> Kind Regards
> --
> Andrew Sykes <[hidden email]>
> Sykes Development Ltd
>
>
> _______________________________________________
> Users mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/users

 
_______________________________________________
Users mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/users

smime.p7s (3K) Download Attachment