atom feed16 messages in org.apache.ofbiz.userRe: EntitySync RMI error
FromSent OnAttachments
Deyan TsvetanovSep 25, 2009 11:22 pm 
Deyan TsvetanovSep 25, 2009 11:52 pm 
Deyan TsvetanovSep 26, 2009 1:22 am 
Deyan TsvetanovSep 26, 2009 1:55 am 
Jacques Le RouxSep 27, 2009 8:02 am 
Deyan TsvetanovSep 29, 2009 6:03 am 
Deyan TsvetanovOct 4, 2009 2:57 am 
Pank...@lntinfotech.comOct 4, 2009 10:46 pm 
Jacques Le RouxOct 26, 2009 12:34 am 
Jacques Le RouxOct 26, 2009 12:38 am 
Deyan TsvetanovOct 26, 2009 3:20 am 
Jacques Le RouxOct 26, 2009 3:47 am 
Jacques Le RouxOct 27, 2009 12:58 am 
Hans BakkerOct 27, 2009 3:44 am 
Adrian CrumOct 27, 2009 7:57 am 
Jacques Le RouxOct 2, 2010 8:35 am 
Subject:Re: EntitySync RMI error
From:Jacques Le Roux (jacq@les7arts.com)
Date:Sep 27, 2009 8:02:34 am
List:org.apache.ofbiz.user

Hi Deyan,

It would be very valuable if you could post an article on wiki about your
experience with this. Don't worry about where to put it, I will eventually take care to put it under FAQ...

TIA

Jacques

From: "Deyan Tsvetanov" <deya@ittconsult.com>

I found an issue though:

If the connection gets dropped during sync : - the client ( POS ) prints connection reset by peer - the server ( MCS ) sync status remains to running. - the next sync does not start because MCS complains there is another sync running already.

"Reset run status" from webtools -> entity sync status helps.

I'll investigate further and log a bug, although the solution seems pretty simple - looks like a swallowed IOException, which should be handled by re-setting the sync status.

CHeers, DEyan

-----Original Message----- From: Deyan Tsvetanov <deya@ittconsult.com> Reply-to: us@ofbiz.apache.org To: us@ofbiz.apache.org Subject: Re: EntitySync RMI error Date: Sat, 26 Sep 2009 11:22:55 +0300

Got it !

Seems that the previous exception was coming from the MCS ( server ) . When I stopped the server I started getting the exception I kind of like more :)

Message: Exception calling remote pull and report EntitySync service with name: remotePullAndReportEntitySyncDataRmi; org.ofbiz.service.Gene ricServiceException: RMI Error (Connection refused to host: 192.168.1.100; nested exception is: java.net.ConnectException: Connection refused: connect)

So the problem was at the server side - RMIIF env var in startofbiz.sh wasn't set , so ofbiz was trying to get RMI host IP by resolving the hostname .

The misleading things for me was that: 1) no any sign in the MCS logs that somebody is trying to connect and the MCS itself can not connect to its own RMI registry. 2) no any difference in the exceptions text on the POS ( client ) side: the 2 exceptions ( local one - can not connect to 192.168.1.100 and the remote one - can not connect to 127.0.0.1 ) look the same :)

So issue is solved, sorry for bothering :)

-- deyan

-----Original Message----- From: Deyan Tsvetanov <deya@ittconsult.com> Reply-to: us@ofbiz.apache.org To: us@ofbiz.apache.org Subject: Re: EntitySync RMI error Date: Sat, 26 Sep 2009 09:52:55 +0300

During startup I get:

2009-09-26 08:46:31,905 (default-invoker-Thread-10) [ AbstractEngine.java:73 :INFO ] Loaded Service Locations : [main-rmi=rmi://127.0.0. 1:1099/RMIDispatcher, main-http=http://127.0.0.1:8080/webtools/control/httpService, entity-sync-rmi=rmi://192.168.1.100:1099/RMIDispatcher, entity-sync-http=http://192.168.1.100:8080/webtools/control/httpService, rita-rmi=rmi://127.0.0.1:1099/RMIDispatcher, eedcc-test=http://127. 0.0.1:8080/webtools/control/httpService]

entity-sync-rmi seems to be ok ...

-----Original Message----- From: Deyan Tsvetanov <deya@ittconsult.com> Reply-to: us@ofbiz.apache.org To: us@ofbiz.apache.org Subject: EntitySync RMI error Date: Sat, 26 Sep 2009 09:22:23 +0300

Hi guys,

I'm trying to configure RMI entity sync. I'm following http://docs.ofbiz.org/display/OFBIZ/Sync+Setup+Notes+and+Example

What I've done so far:

1) entity-sync-rmi to rmi://192.168.1.100:1099/RMIDispatcher

2) set RMIIF=-Djava.rmi.server.hostname=127.0.0.1 ( as per the example ).

3) I've imported the entity sync groups, SandJobs, etc.

However when the sync starts ( on the POS instance ) I get the following error:

Exception calling remote pull and report EntitySync service with name: remotePullAndReportEntitySyncDataRmi; org.ofbiz.service.GenericServic eException: RMI Invocation Error (Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect) Exception: org.ofbiz.service.GenericServiceException Message: RMI Invocation Error (Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect) ---- cause

--------------------------------------------------------------------- Exception: java.rmi.ConnectException Message: Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused: connect ---- cause

--------------------------------------------------------------------- Exception: java.net.ConnectException Message: Connection refused: connect ---- stack trace

---------------------------------------------------------------

It insists connecting to 127.0.0.1 no matter what I type in serviceengine.xml. Any help would be appreciated :)

Thanks in advance, Deyan