Hello all
we have implemented a BOF (Standard Module) which is used by an automatic task of a process.
We package the properties file into one jar (the one which contains the interface and implementation of the BOF).
But when the tasks executes it shows this error:
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:365)
at java.util.Properties.load(Properties.java:293)
... 16 more
The code to get the properties file is:
Properties prop =new Properties();
prop.load(Thread.currentThread().getContextClassLoader().getResourceAsStream(propFile));
The problem is in the packaging of the DAR file? or it is in the Java code?
Anyone knows?
Thank you in advance