Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] Server BufferUnderflowException when activating an SSL connection using the CDO Explorer
[CDO] Server BufferUnderflowException when activating an SSL connection using the CDO Explorer [message #1332765] Sun, 04 May 2014 20:33 Go to next message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 184
Registered: September 2011
Senior Member
Hi all,

I would like to establish an SSL connection between my application and my running CDO server.

Before I do that, I'm trying with the CDO Explorer but I get a BufferUnderflowException on the server side.

I unsuccessfully tried to use the details of the following topic http://www.eclipse.org/forums/index.php/t/429263/ as well as the associated links down to the org.eclipse.net4j.examples launch files...

Both the CDO server and explorer are exported and run as products (called RepositoryServer and RepositoryAdministrationTool...).

I generated keystore.jks for the server and truststore.jks for its 'client'.
I added the trutstore certificate to keystore as well as the keystore certificate to truststore.

And, I think, I added the necessary JVM arguments for both products (see all attached files).

I hope someone will be able to tell me what wrong with my configuration because I'm stucked...

Kind regards,

Laurent

[Updated on: Sun, 04 May 2014 21:01]

Report message to a moderator

Re: CDO Server BufferUnderflowException when activating an SSL connection using the CDO Explorer [message #1333444 is a reply to message #1332765] Mon, 05 May 2014 04:28 Go to previous messageGo to next message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Hi Laurent,

The entire SSLConnector has been developed by someone who's no longer active in CDO and I know next to nothing about it.
I'm afraid you have to either hope that someone else jumps in or start to analyze the problem yourself. Of course I will
help you with general CDO questions.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper



Am 04.05.2014 22:33, schrieb Laurent Le Moux:
> Hi all,
>
> I would like to establish an SSL connection between my application and my running CDO server.
>
> Before I do that, I'm trying with the CDO Explorer but I get a BufferUnderflowException on the server side.
>
> I unsuccessfully tried to use the details of the following topic http://www.eclipse.org/forums/index.php/t/429263/ as well as the associated links down to the org.eclipse.net4j.examples launch files...
>
> Both the CDO server and explorer are exported and run as products (called RepositoryServer and RepositoryAdministrationTool...).
>
> I generated keystore.jks for the server and truststore.jks for its 'client'.
> I added the trutstore certificate to keystore as well as the keystore certificate to truststore.
>
> And, I think, I added the necessary JVM arguments for both products (see all attached files).
>
> I hope someone will be able to tell me what wrong with my configuration because I'm stucked...
>
> Kind regards,
>
> Laurent


Re: CDO Server BufferUnderflowException when activating an SSL connection using the CDO Explorer [message #1334598 is a reply to message #1333444] Mon, 05 May 2014 17:12 Go to previous message
Laurent Le Moux is currently offline Laurent Le MouxFriend
Messages: 184
Registered: September 2011
Senior Member
Hi Eike,

I finally found what the problem was. The org.eclipse.net4j.examples trust and key stores are working fine. So I had a closer look to their content.

Keytool lets one specify different passwords for the private key, the keystore and the trustore.

But the SSL Connector - on the other hand - only expects one single passphrase declaration in '-Dorg.eclipse.net4j.tcp.ssl.passphrase=myVerySecretPassword' which is then used in the three previous cases.

So I changed my passwords in order to use the same one in all situations and it now works.

Regards,

Laurent
Previous Topic:Collection of all EMF Resources in workspace
Next Topic:Serialize multivalued EReference
Goto Forum:
  


Current Time: Fri Mar 29 10:07:28 GMT 2024

Powered by FUDForum. Page generated in 0.04658 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top