[jira] Created: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

[jira] Created: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)
Entity synchronization not working because of RMI failure
---------------------------------------------------------

                 Key: OFBIZ-1409
                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
             Project: OFBiz
          Issue Type: Bug
          Components: framework
    Affects Versions: Release Branch 4.0
         Environment: Java VM 1.5 or 1.4
            Reporter: Hans Bakker
             Fix For: Release Branch 4.0


The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.

We tried to run this version with java 1.5 or 1.4, copied the
certificates all with the same problematic result.

thanks in advance for your help.


---- exception report
----------------------------------------------------------
Service [remoteStoreEntitySyncDataRmi] threw an unexpected
exception/error
Exception: org.ofbiz.service.GenericServiceException
Message: RMI Invocation Error (error during JRMP connection
establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found)
---- stack trace
---------------------------------------------------------------
org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
during JRMP connection establishment; nested exception is:
        javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException: No trusted certificate found)
org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)


--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547645 ]

Jacques Le Roux commented on OFBIZ-1409:
----------------------------------------

Hi Hans,

Did you browse thru http://www.nabble.com/forum/Search.jtp?local=y&forum=2740&query=%22No+trusted+certificate+found%22 ?

> Entity synchronization not working because of RMI failure
> ---------------------------------------------------------
>
>                 Key: OFBIZ-1409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0
>         Environment: Java VM 1.5 or 1.4
>            Reporter: Hans Bakker
>             Fix For: Release Branch 4.0
>
>
> The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.
> We tried to run this version with java 1.5 or 1.4, copied the
> certificates all with the same problematic result.
> thanks in advance for your help.
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RMI Invocation Error (error during JRMP connection
> establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
> during JRMP connection establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12547723 ]

Hans Bakker commented on OFBIZ-1409:
------------------------------------

Hi Jacques,

thanks for the pointer, however i looked into that. It looks like svn commit: r535056 from Andy not only added functionality but also fixed some errors here.....

Regards,
Hans

> Entity synchronization not working because of RMI failure
> ---------------------------------------------------------
>
>                 Key: OFBIZ-1409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0
>         Environment: Java VM 1.5 or 1.4
>            Reporter: Hans Bakker
>             Fix For: Release Branch 4.0
>
>
> The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.
> We tried to run this version with java 1.5 or 1.4, copied the
> certificates all with the same problematic result.
> thanks in advance for your help.
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RMI Invocation Error (error during JRMP connection
> establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
> during JRMP connection establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552304 ]

Jacques Le Roux commented on OFBIZ-1409:
----------------------------------------

Hans,

You mean you tried with trunk and it worked ? In such case we should extract and backport relevant fixes from this commit...

> Entity synchronization not working because of RMI failure
> ---------------------------------------------------------
>
>                 Key: OFBIZ-1409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0
>         Environment: Java VM 1.5 or 1.4
>            Reporter: Hans Bakker
>             Fix For: Release Branch 4.0
>
>
> The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.
> We tried to run this version with java 1.5 or 1.4, copied the
> certificates all with the same problematic result.
> thanks in advance for your help.
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RMI Invocation Error (error during JRMP connection
> establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
> during JRMP connection establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12552315 ]

Hans Bakker commented on OFBIZ-1409:
------------------------------------

Hi Jacques, I do not think think this is easy, as I mentioned before look at the changes Andy did in revision 535056, if we could backport that? I am not sure.....

> Entity synchronization not working because of RMI failure
> ---------------------------------------------------------
>
>                 Key: OFBIZ-1409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0
>         Environment: Java VM 1.5 or 1.4
>            Reporter: Hans Bakker
>             Fix For: Release Branch 4.0
>
>
> The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.
> We tried to run this version with java 1.5 or 1.4, copied the
> certificates all with the same problematic result.
> thanks in advance for your help.
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RMI Invocation Error (error during JRMP connection
> establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
> during JRMP connection establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12577403#action_12577403 ]

Darren Scott commented on OFBIZ-1409:
-------------------------------------

Hi,

First off, a quick intro as I'm new, I've been working on an Ofbiz deployment for my company for the last few months. We have an incumbent semi-ERP system in place already, and we are planning to use Ofbiz primarily for the e-commerce side, with a view to replacing the rest of the system sometime in the future.

I've had to make several source code changes to allow Ofbiz to cooperate with our systes in place, and also to fit other more generic requirements, plus some bugfixes, which I think are worth sharing with the community. I have a way to go yet, but I'm slowly getting to grips with the codebase, although I've been working with Opentaps so far and so need to migrate the either release 4.0 or trunk to start making proper contributions to the current source tree.

Anyway, this is one of the issues I have looked at, but I am in the process of documenting my changes now so won't give a full appraisal here and now, but as a pointer to anybody else having the problem:

I found three steps were needed to get the RMI SSL sockets working -

1) generate your own certificate (obviously);

2) turn OFF client authentication in rmi.containers (and/or ofbiz.containers, cant recall which but thats something that needs sorting) - I spent many days trying to get the client authentication working and turning if off is the only way I managed to avoid "bad certificate" messages;

3) set the trust store explicitly on the command line "java -Djavax.net.ssl.trustStore=framework/base/config/ofbiztrust.jks -jar ofbiz.jar" - if you do a quick search of the codebase you'll see that there is *no* reference to the ofbiz.trustStore property anywhere, which is why no trusted certificates are found.

I'll try to get a more specific report on the problem in soon, and perhaps we can find a way to re-enable needsClientAuth.

> Entity synchronization not working because of RMI failure
> ---------------------------------------------------------
>
>                 Key: OFBIZ-1409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0
>         Environment: Java VM 1.5 or 1.4
>            Reporter: Hans Bakker
>             Fix For: Release Branch 4.0
>
>
> The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.
> We tried to run this version with java 1.5 or 1.4, copied the
> certificates all with the same problematic result.
> thanks in advance for your help.
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RMI Invocation Error (error during JRMP connection
> establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
> during JRMP connection establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

    [ https://issues.apache.org/jira/browse/OFBIZ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12641892#action_12641892 ]

Jacques Le Roux commented on OFBIZ-1409:
----------------------------------------

Hi Hans,

Do you think we should keep this issue open ?
On my side, I guess I will not have the time to fix the release4.0 on this point

> Entity synchronization not working because of RMI failure
> ---------------------------------------------------------
>
>                 Key: OFBIZ-1409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0
>         Environment: Java VM 1.5 or 1.4
>            Reporter: Hans Bakker
>             Fix For: Release Branch 4.0
>
>
> The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.
> We tried to run this version with java 1.5 or 1.4, copied the
> certificates all with the same problematic result.
> thanks in advance for your help.
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RMI Invocation Error (error during JRMP connection
> establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
> during JRMP connection establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply | Threaded
Open this post in threaded view
|

[jira] Closed: (OFBIZ-1409) Entity synchronization not working because of RMI failure

Nicolas Malin (Jira)
In reply to this post by Nicolas Malin (Jira)

     [ https://issues.apache.org/jira/browse/OFBIZ-1409?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hans Bakker closed OFBIZ-1409.
------------------------------

    Resolution: Won't Fix

For anybody having this problem we advise you to upgrade to the svn trunk version.

There is not enough interest and/or time with OFBiz users to solve this problem.



> Entity synchronization not working because of RMI failure
> ---------------------------------------------------------
>
>                 Key: OFBIZ-1409
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-1409
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework
>    Affects Versions: Release Branch 4.0
>         Environment: Java VM 1.5 or 1.4
>            Reporter: Hans Bakker
>             Fix For: Release Branch 4.0
>
>
> The entity synchronization gives the eror below, The latest OFBiz version from trunk works fine and orders are pushed upstream.
> We tried to run this version with java 1.5 or 1.4, copied the
> certificates all with the same problematic result.
> thanks in advance for your help.
> ---- exception report
> ----------------------------------------------------------
> Service [remoteStoreEntitySyncDataRmi] threw an unexpected
> exception/error
> Exception: org.ofbiz.service.GenericServiceException
> Message: RMI Invocation Error (error during JRMP connection
> establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> ---- stack trace
> ---------------------------------------------------------------
> org.ofbiz.service.GenericServiceException: RMI Invocation Error (error
> during JRMP connection establishment; nested exception is:
>         javax.net.ssl.SSLHandshakeException:
> sun.security.validator.ValidatorException: No trusted certificate found)
> org.ofbiz.service.rmi.RmiServiceEngine.run(RmiServiceEngine.java:66)
> org.ofbiz.service.rmi.RmiServiceEngine.runSync(RmiServiceEngine.java:41)

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.