When trying to start up the logviewer application you will get one of two error messages:
New Install C:\bpm\bpm\4.2\bin>logviewer.bat
Exception in thread "main" java.lang.NoClassDefFoundError: com/tibco/n2/logging/enums/N2LFType
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.getDeclaredMethods(Unknown Source) ... ...
Upgrade
C:\bpm\bpm\4.2\bin>logviewer.bat
Exception in thread "AWT-EventQueue-0" java.lang.NoSuchFieldError: BIGINTEGER
at com.tibco.n2.logging.logviewer.views.CustomAttributePanel.updateModel(CustomAttributePanel.java:74)
at com.tibco.n2.logging.logviewer.controllers.CustomAttributeController.<init>(CustomAttributeController.java:84)
at com.tibco.n2.logging.logviewer.controllers.LogDisplayController.<init>(LogDisplayController.java:139)
... ...
Environment
All Platforms
Resolution
For both scenarios, you need to amend the logviewer classpath, which can be found in the 'logviewer.bat' file.
If you have upgraded your environment to v4.2.0 you need to amend two parts:
(i) In the classpath, make sure you are using the correct directory '\com.tibco.n2.logging_1.11.1.002' (ii) You also need to include the name of the relevant log file it is using - 'n2-logging-library.jar'.
Therefore, you are changing - C:\bpm\components\shared\1.0.0\plugins\com.tibco.n2.logging_1.10.1.001.jar; to be... C:\bpm\components\shared\1.0.0\plugins\com.tibco.n2.logging_1.11.1.002\n2-logging-library.jar;
i.e. set CLASSPATH=C:\bpm\components\shared\1.0.0\plugins\com.tibco.tpcl.org.apache.log4j_1.2.500.003\log4j-1.2.15.jar;C:\bpm\components\shared\1.0.0\plugins\com.tibco.n2.logging.logviewer_1.8.0.002.jar;C:\bpm\components\shared\1.0.0\plugins\com.tibco.n2.logging_1.11.1.002\n2-logging-library.jar;C:\bpm\components\shared\1.0.0\plugins\com.tibco.n2.common_1.9.0.001.jar
If you have installed a vanilla v4.2.0, then you will only have to amend the directory name so that it is correct, i.e. \com.tibco.n2.logging_1.11.1.002\ It would have been \com.tibco.n2.logging_1.11.1.001
Issue/Introduction
If you upgrade from an earlier release or if you have a new install of v4.2.0, then logviewer doesn't start up