Iam sharing my github url
https://github.com/jino555/Keyword_framework/tree/master/src/config
Please have a look
Full Error
log4j:WARN No appenders could be found for logger (utility.Log).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
Exception in thread "main" java.io.FileNotFoundException: D:\Tools QA Projects\trunk\Hybrid KeyWord Driven\src\config\OR.txt (The system cannot find the path specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at executionEngine.DriverScript.main(DriverScript.java:39)
Try to replace:
D:\Tools QA Projects\trunk\Hybrid KeyWord Driven\src\config\OR.txt
with:
D:\Tools\QA Projects\trunk\Hybrid KeyWord Driven\src\main\java\config\OR.txt
I believe Tools and QA Projects are diffrenet folders. Also as your gitHub repository shows the preject structure looks like:
...\src\main\java\config\OR.txt
and not like
...\src\config\OR.txt
So the problem is with the path to the file you providing. We cannot find the right path for you, because we don't know where is your project stored locally.
Related
when I tried to run weka 3.8.6 the Error is
java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at weka.gui.SplashWindow.invokeMain(SplashWindow.java:306)
at weka.gui.GUIChooser.main(GUIChooser.java:92)
Caused by: java.lang.IllegalStateException:
java.io.IOException: Unable to create the metastore directory: C:\Program Files\Weka-3-8-6\wekaMetaStore
at weka.core.Settings.<init>(Settings.java:134)
at weka.gui.LookAndFeel.setLookAndFeel(LookAndFeel.java:151)
at weka.gui.GUIChooserApp.main(GUIChooserApp.java:1663)
... 6 more
As tgdavies pointed out, the currently logged in user does not seem to have write permissions to the C:\Program Files\Weka-3-8-6 directory.
Did you create a WEKA_HOME environment variable and pointed it at the C:\Program Files\Weka-3-8-6 directory? By default, this variable would point to %USERPROFILE%\wekafiles under Windows and $HOME/wekafiles under Linux/Mac.
The WEKA_HOME directory is not Weka's installation directory with the executables, javadoc, etc, but the directory where Weka will look for packages, props files, store its log files, etc.
You should create a directory in your home directory (your user would have write access there) and then point the WEKA_HOME environment variable to that directory. Once that is done, try starting Weka again.
I created a utility for moving some text data into a SQL database and have implemented logging(log4j) for debugging purposes.
Once i created a jar of my utility and called it for execution, the utility works fine but each time, the output is preceded by the below error message:
log4j:ERROR Could not read configuration file [log4j.properties].
java.io.FileNotFoundException: log4j.properties (The system cannot find the file specified)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:306)
at org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:324)
at spotfire.loadtest.Driver.main(Driver.java:28)
log4j:ERROR Ignoring configuration file [log4j.properties].
log4j:WARN No appenders could be found for logger (spotfire.loadtest.Driver).
log4j:WARN Please initialize the log4j system properly.
Please note that my utility works and the text is inserted into the database. The only issue I face is how to get rid of this error message. Is there any way to stop printing it altogether??
Either your log4j.properties has to be in classpath or you need to specify it as JVM Argument as
-Dlog4j.configuration={path to file}
The dynamic link library for GLPK for Java could not be loaded.
Consider using
java -Djava.library.path=
The current value of system property java.library.path is:
\\MILP\lib\glpk-4.55\w64
Exception in thread "main" java.lang.UnsatisfiedLinkError:
\\MILP\lib\glpk-4.55\w64\glpk_4_55_java.dll: Can't find dependent libraries
at java.lang.ClassLoader$NativeLibrary.load(Native Method)
at java.lang.ClassLoader.loadLibrary0(Unknown Source)
at java.lang.ClassLoader.loadLibrary(Unknown Source)
at java.lang.Runtime.loadLibrary0(Unknown Source)
at java.lang.System.loadLibrary(Unknown Source)
at org.gnu.glpk.GLPKJNI.<clinit>(GLPKJNI.java:24)
at org.gnu.glpk.GLPK.glp_version(GLPK.java:2259)
at TestMain.main(TestMain.java:7)
I have added the correct JAR file
I have given the correct native path for the library
Still the problem persists,
One doubt I have is that the \MILP\lib\glpk-4.55\w64\glpk_4_55_java.dll file is flawed. I checked it using dependencyWalker there it shows some warnings
Error: At least one module has an unresolved import due to a missing export function in an implicitly dependent module.
Error: Modules with different CPU types were found.
Any leads would be appreciated
I also faced same issue. I copied glpk_4_55.dll and glpk_4_55_java.dll to C:\Windows\System32 and Everything works fine for me.
You can add the C:\Program Files\GLPK\glpk-4.55\w64 folder to your PATH environment variable
or
copy the glpk_4_55.dll and glpk_4_55_java.dll to C:\Windows\System32 as suggested by Pradeepb
I am using the jate toolkit, compilation works well, when i run the program, it did not find the root nlp_ressources folder while reading jate.proprieties, despite the path exist. you find below the file jate.proprieties:
jate.system.nlp=jate.system.nlp=C:/Users/faffou/workspace/nlp_resources
jate.system.term.maxwords=5
jate.system.term.ignore_digits=true
jate.system.term.frequency.counter.multithread=5
The error message is below. Please who can help me!!!
Exception in thread "main" java.io.FileNotFoundException: C:\faffou\workspace\Test\nlp_resources\stoplist.txt (Le chemin d’accès spécifié est introuvable)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at uk.ac.shef.dcs.oak.jate.util.control.StopList.loadStopList(StopList.java:44)
at uk.ac.shef.dcs.oak.jate.util.control.StopList.<init>(StopList.java:30)
at uk.ac.shef.dcs.oak.jate.test.TestTfIdf.main(TestTfIdf.java:62)
It looks like you don't have stoplist.txt file in this folder. Jate tries to load stoplist.txt which has configuration about the words which shouldn't be processed make sure it exists if not try with creating empty one! I don't remember structure of this file unfortunately.
Thinks for your responses.
I solved the problem, in fact I changed the path of my file and I changed the shape of the url from:
C:/Users/faffou/workspace/Test/nlp_resources
to
C://nlp_resources
I am trying to set up a sample Chat application using Active MQ and Eclipse.
I have followed the documentation at Apache site and getting the following error upon executing the Chat Application
javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.list(Unknown Source)
I assume the jndi.properties files is not loading but not sure if that is the root cause
Following question is similar but I don't see the issue getting resolved.
How to place a file on classpath in eclipse?