Yasser-muhmod / mqjexplorer

Automatically exported from code.google.com/p/mqjexplorer
0 stars 0 forks source link

java exception for windows 7 #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?

Please provide any additional information below.

Getting below error for windows 7 system

log4j: Trying to find [log4j.xml] using context classloader 
sun.misc.Launcher$AppClassLoader@ba679e.
log4j: Trying to find [log4j.xml] using sun.misc.Launcher$AppClassLoader@ba679e 
class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader 
sun.misc.Launcher$AppClassLoader@ba679e.
log4j: Trying to find [log4j.properties] using 
sun.misc.Launcher$AppClassLoader@ba679e class loader.
log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource().
log4j: Could not find resource: [null].
log4j:WARN No appenders could be found for logger (com.kolban.mqjexplorer).
log4j:WARN Please initialize the log4j system properly.
java.lang.NullPointerException
        at com.kolban.xml.XMLUtils.getTagValue(Unknown Source)
        at com.kolban.mqjexplorer.Profile.load(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.initialize(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.<init>(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.main(Unknown Source)

Original issue reported on code.google.com by ram3...@gmail.com on 30 May 2013 at 8:46

GoogleCodeExporter commented 9 years ago
I am getting this as well.
I installed MQJExplorer on Week 1 and used it the entire day.  I configured it 
for the one queue manager I needed to watch.  I had it running for a few days 
without quitting/shutting down.
Week 2 when I restarted my machine and launched MQJExplorer, I started getting 
this error.  I haven't been able to launch it successfully ever again.  My plan 
is now to redownload and relaunch MQJExplorer.  

Original comment by hubert8w...@gmail.com on 31 Jul 2013 at 3:28

GoogleCodeExporter commented 9 years ago
FYI - my logs are slightly different but the stack trace is the same:

log4j: Trying to find [log4j.xml] using context classloader 
sun.misc.Launcher$AppClassLoader@1cde100.
log4j: Trying to find [log4j.xml] using 
sun.misc.Launcher$AppClassLoader@1cde100 class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader 
sun.misc.Launcher$AppClassLoader@1cde100.
log4j: Using URL [file:/C:/Programs/MQJExplorer-0.14/res/log4j.properties] for 
automatic log4j configuration.
log4j: Reading configuration from URL 
file:/C:/Programs/MQJExplorer-0.14/res/log4j.properties
log4j: Parsing for [root] with value=[WARN, file].
log4j: Level token is [WARN].
log4j: Category root set to WARN
log4j: Parsing appender named "file".
log4j: Parsing layout options for "file".
log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} %-5p %c:%L - %m%n].
log4j: End of parsing for "file".
log4j: Setting property [file] to 
[C:\Users\user/.MQJExplorer/log/MQJExplorer.log].
log4j: Setting property [datePattern] to ['.'yyyyMMdd].
log4j: setFile called: C:\Users\user/.MQJExplorer/log/MQJExplorer.log, true
log4j: setFile ended
log4j: Appender [file] to be rolled at midnight.
log4j: Parsed "file" options.
log4j: Parsing for [com.kolban.mqjexplorer] with value=[WARN, file].
log4j: Level token is [WARN].
log4j: Category com.kolban.mqjexplorer set to WARN
log4j: Parsing appender named "file".
log4j: Appender "file" was already parsed.
log4j: Handling log4j.additivity.com.kolban.mqjexplorer=[true]
log4j: Setting additivity for "com.kolban.mqjexplorer" to true
log4j: Finished configuring.
java.lang.NullPointerException
        at com.kolban.xml.XMLUtils.getTagValue(Unknown Source)
        at com.kolban.mqjexplorer.Profile.load(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.initialize(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.<init>(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.main(Unknown Source)

Original comment by hubert8w...@gmail.com on 31 Jul 2013 at 3:31

GoogleCodeExporter commented 9 years ago
Re-downloaded and installed a fresh copy of MQJExplorer.  I used the .jar 
installer 0.14 version.
It installed fine (on a different directory from previous installation).
I launched the runme.bat and got this:

log4j: Trying to find [log4j.xml] using context classloader 
sun.misc.Launcher$AppClassLoader@1cde100.
log4j: Trying to find [log4j.xml] using 
sun.misc.Launcher$AppClassLoader@1cde100 class loader.
log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
log4j: Trying to find [log4j.properties] using context classloader 
sun.misc.Launcher$AppClassLoader@1cde100.
log4j: Trying to find [log4j.properties] using 
sun.misc.Launcher$AppClassLoader@1cde100 class loader.
log4j: Trying to find [log4j.properties] using ClassLoader.getSystemResource().
log4j: Could not find resource: [null].
log4j:WARN No appenders could be found for logger (com.kolban.mqjexplorer).
log4j:WARN Please initialize the log4j system properly.
java.lang.NullPointerException
        at com.kolban.xml.XMLUtils.getTagValue(Unknown Source)
        at com.kolban.mqjexplorer.Profile.load(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.initialize(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.<init>(Unknown Source)
        at com.kolban.mqjexplorer.MQJExplorer.main(Unknown Source)

Original comment by hubert8w...@gmail.com on 31 Jul 2013 at 3:41

GoogleCodeExporter commented 9 years ago
I deleted the .MQJExplorer directory on home folder to get the original 
installation running again.

Original comment by hubert8w...@gmail.com on 31 Jul 2013 at 6:07

GoogleCodeExporter commented 9 years ago
"%JAVA_HOME%\bin\java" -Duser.home=. -Dlog4j.debug -classpath "%CPATH%" 
com.kolban.mqjexplorer.MQJExplorer
if ERRORLEVEL pause
endlocal

I changed this line in the startup script. For some reason the directory 
.MQJEplorer could not be created under my normal user.home, so with the above 
line I pointed my user.home to . which I can access.

Original comment by quin.mer...@gmail.com on 18 Dec 2013 at 1:35

GoogleCodeExporter commented 9 years ago
Could you check that you have the correct windows 7 grant on the directory ?
Do you run the tool MQJExplorer with your user or with the Administrator 
privileges ?

regards
Marco

Original comment by marcora...@gmail.com on 22 Jan 2014 at 10:48

GoogleCodeExporter commented 9 years ago
Deleted the .MQJEplorer folder on C:\Users\username folder. Lost the queue 
managers I had configured to show but that's it.

Original comment by paren.ti...@gmail.com on 25 Jun 2014 at 10:05