enets UMAPI V 1.3 NETSConfig.get NullPointerException Solve

I am setting up UMAPI v 1.3 from eNETs under Tomcat 7.0.21, Windows 7.

If you encounter this error:

java.lang.NullPointerException
at com.wiz.enets2.transaction.umapi.NETSConfig.get(NETSConfig.java:69)

The problem is that your CLASSPATH does not include the config files (which is strange, as CLASSPATH is used to set CLASS, not config...)

So in your setenv.bat, I enter the following:

set CATALINA_OPTS=-server -Xms256m -Xmx256m
set CLASSPATH=C:\xampp\tomcat\webapps\ROOT\CLIENT\config;C:\xampp\tomcat\webapps\ROOT\CLIENT\lib\*

You should be fine, and I guess the same setting can be applied to Linux also.

Hope it helps someone.

I hate eNETs.

Comments

Popular posts from this blog

TCPDF How to show/display Chinese Character?

Wordpress Load balancing: 2 web servers 1 MySQL without any Cloud services

Using wget bypass htaccess username password 401 authorization