History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: HJMS-159
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Colin Crist
Reporter: Sergey Zhemzhitsky
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
HermesJMS

The first message in the queue is displayed twise

Created: 13/Sep/11 04:24 AM   Updated: 15/Sep/11 04:12 AM
Component/s: GUI
Affects Version/s: 1.14
Fix Version/s: 1.15

File Attachments: 1. Text File correct-classpath.patch (2 kb)

Image Attachments:

1. first_message.png
(79 kb)


 All   Comments   Change History      Sort Order:
Sergey Zhemzhitsky [13/Sep/11 10:42 AM]
The fix for this issue is the same as for HJMS-158

Sergey Zhemzhitsky [14/Sep/11 09:03 AM]
Hi Colin,

Improperly set classpath seems to be the problem.
hermes.bat file tries to set quickfixj.jar in the classpath although there is quickfixj-all-1.5.0.jar in the lib directory.

When I have changed hermes.bat to look like this

{code}
...
:setOtherVars
set HERMES_LIBS=%HERMES_HOME%\lib
set HERMES_BIN=%HERMES_HOME%\bin
rem set JAXB=%HERMES_LIBS%\jaxb-api.jar
rem set JIDE=%HERMES_LIBS%\jide-action.jar;%HERMES_LIBS%\jide-common.jar;%HERMES_LIBS%\jide-components.jar;%HERMES_LIBS%\jide-dialogs.jar;%HERMES_LIBS%\jide-dock.jar;%HERMES_LIBS%\jide-grids.jar

rem set CLASSPATH=%JAXB%;%HERMES_LIBS%/jta-spec1_0_1.jar;%HERMES_LIBS%\xml-apis.jar;%HERMES_LIBS%\jms.jar;%HERMES_LIBS%\relaxngDatatype.jar;%HERMES_LIBS%\jaas.jar;%HERMES_LIBS%\activation.jar;%HERMES_LIBS%\commons-digester.jar;%HERMES_LIBS%\commons-codec-1.1.jar;%HERMES_LIBS%\log4j-1.2.15.jar;%HERMES_LIBS%\j2ee.jar;%HERMES_LIBS%\commons-logging.jar;%HERMES_LIBS%\jlfgr-1_0.jar;%HERMES_LIBS%\commons-lang-2.1.jar;%HERMES_LIBS%\xercesImpl.jar;%HERMES_LIBS%\namespace.jar;%HERMES_LIBS%\xsdlib.jar;%HERMES_LIBS%\datatips.jar;%HERMES_LIBS%\derby.jar;%HERMES_LIBS%\commons-dbutils-1.0.jar;%HERMES_LIBS%\ant.jar;%HERMES_LIBS%\db2cc.jar;%HERMES_LIBS%\hermes-selector.jar;%HERMES_LIBS%\jms-jmx.jar;%HERMES_LIBS%\selector-1.1.jar;%HERMES_LIBS%\asm-all-4.0_RC1.jar;%HERMES_LIBS%\quickfixj-all-1.5.0.jar;%HERMES_LIBS%\jython.jar;%HERMES_LIBS%\ArtTk.jar;%HERMES_LIBS%\JyConsole.jar;%HERMES_LIBS%\mina-core-1.1.0-SNAPSHOT.jar;%HERMES_LIBS%\slf4j-api-1.6.1.jar;%HERMES_LIBS%\slf4j-jdk14-1.6.1.jar;%HERMES_LIBS%\commons-collections.jar;%HERMES_LIBS%\jsyntaxpane-0.9.1.jar
set CLASSPATH=%HERMES_LIBS%\*;
rem set CLASSPATH=%CLASSPATH%;%HERMES_LIBS%\hermes.jar;%HERMES_LIBS%\cglib-nodep-2.2.2.jar;%HERMES_LIBS%\commons-beanutils.jar;%JIDE%;%HERMES_LIBS%\forms-1.3.0.jar
rem set CLASSPATH=%HERMES_LIBS%;%CLASSPATH%
..
{code}

everything starts to work fine.

So the following classpath configuration is enough for hermes to work fine under java 6
{code}
...
:setOtherVars
set HERMES_LIBS=%HERMES_HOME%\lib
set HERMES_BIN=%HERMES_HOME%\bin
set CLASSPATH=%HERMES_LIBS%\*;
..
{code}

Sergey Zhemzhitsky [14/Sep/11 09:04 AM]
The very first comment is invalid.

Sergey Zhemzhitsky [14/Sep/11 09:22 AM]
The patch for the Java 6 is available

Colin Crist [15/Sep/11 04:11 AM]

Thanks, thats much nicer. I did my testing on Linux and a MacOSX for 1.14 so missed this.