Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
Getting an error while exporting jar file
December 12, 2014
8:39, EET
Avatar
tristan
Member
Members
Forum Posts: 3
Member Since:
December 12, 2014
sp_UserOfflineSmall Offline

Hi guys,

I get some problems with the java SDK, when I run my application with Eclipse, it works perfectly.
But when I export the application as a .jar file, application stays blocked on the “client.connect()” method .

Is somebody able to help me?

Thanks

December 12, 2014
11:29, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Hi,

Without more information it’s hard to say
Can you post the console log? Which library handling option did you chose in eclipse export page? Which security mode you are using (none or something else)? Which SDK version are you using (version number)?

– Bjarne

December 12, 2014
12:48, EET
Avatar
tristan
Member
Members
Forum Posts: 3
Member Since:
December 12, 2014
sp_UserOfflineSmall Offline

There is nothing on the console log because it works with Eclipse.
I tried to connect with security none, Basic128 sign and Basic 256 and it’s always the same problem
In Eclipse I exported as a Runnable jar with all libraries inside.
My version of the sdk is 2.0.0-194

Tristan

December 12, 2014
13:21, EET
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 983
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Can you try with “Copy required libraries into a sub-folder next to the generated JAR” option. At least the bouncy castle wont work if you package them as a single JAR (the bouncy castle jars are signed and merging them as one JAR will break the signature).

Also you could try with 2.0.2 as it contains a number of fixes http://www.prosysopc.com/produ…..e-history/

Also might be related: in case you use/have the log4j configuration file inside the jar, do not use PropertyConfigurator.configureAndWatch when initializing log4j (just configure).

December 12, 2014
13:32, EET
Avatar
tristan
Member
Members
Forum Posts: 3
Member Since:
December 12, 2014
sp_UserOfflineSmall Offline

It works with “Copy required libraries into a sub-folder next to the generated JAR” option.
Thank you for all.

Tristan

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
12 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

TimK: 41

Member Stats:

Guest Posters: 0

Members: 685

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1467

Posts: 6259

Newest Members:

fidelduke938316, Jan-Pfizer, DavidROunc, fen.pang@woodside.com, aytule, rashadbrownrigg, christi10l, ahamad1, Flores Frederick, ellenmoss

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 983, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 321, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1