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

Key: HJMS-158
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

No destinations should be displayed for the new session

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

File Attachments: 1. Text File new-session-has-destinations.patch (4 kb)



 All   Comments   Change History      Sort Order:
Sergey Zhemzhitsky [13/Sep/11 03:29 AM]
Unfortunately I'm not able to attach the video that demonstrates the problem, so here is the steps to reproduce:

1. Start the HermesJMS
2. Try to create a new session
3. The destinations for an existing session are displayed

Sergey Zhemzhitsky [13/Sep/11 10:40 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 [13/Sep/11 10:45 AM]
I forgot to mention that exceptions (ClassNotFoundException, NoClassDefFoundError) were not displayed by hermes in this case and it were possible to find the error though the debugging.

Sergey Zhemzhitsky [14/Sep/11 09:05 AM]
The previous comments are invalid. I have attached the patch that fixes this issue.