Open GoogleCodeExporter opened 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
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
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
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
"%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
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
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
It look to be an issue in XMLUtils.getTagValue method which is used called from
the Profile.class.
The config.xml that gets created for storing the Queue Configuration registered
in MQJExplorer. If one is connecting to the local queue manager, following is
the structure that gets created -
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<MQJExplorer>
<QueueManagers>
<QueueManager>
<HostName/>
<Port>1414</Port>
<QueueManagerName>QM_Satya</QueueManagerName>
<Channel/>
<QueueManagerType>D</QueueManagerType>
</QueueManager>
</QueueManagers>
<JMS/>
</MQJExplorer>
If you notice the elements <HostName/> and <Channel/> are blank. But the
XMLUtils.getTagValue doesn't anticipate a null element value. It expect values
to be present for all the elements int he config.xml. The class doesn't do the
null for the elements resulting in the NullPointerException.
Strangely when you delete the .MQExplorer folder and register the QueueManager
then somehow MQExplorer seems to work fine but when it comes reading the some
details from the config.xml it fails.
Original comment by madhusud...@gmail.com
on 10 Jul 2015 at 4:05
Original issue reported on code.google.com by
ram3...@gmail.com
on 30 May 2013 at 8:46