1
habe ich ein Projekt mit Sphinx & cloudgarden.But, wenn ich die rpoject laufen sie einen Fehler aus der Sphinx Teil gibt, wie untenSicherheitsausnahme mit sphinx4 Gläser
Exception in thread "Thread-20" java.lang.SecurityException: class "edu.cmu.sphinx.util.props.ConfigurationManagerUtils"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)
at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at edu.cmu.sphinx.api.Context.<init>(Context.java:59)
at edu.cmu.sphinx.api.Context.<init>(Context.java:45)
at edu.cmu.sphinx.api.AbstractSpeechRecognizer.<init>(AbstractSpeechRecognizer.java:44)
at edu.cmu.sphinx.api.LiveSpeechRecognizer.<init>(LiveSpeechRecognizer.java:34)
at hbsn.HBSN.Sphinx(HBSN.java:275)
at hbsn.HBSN$2.run(HBSN.java:205)
und dies ist der Code für Sphinx
public static Configuration configuration;
public static LiveSpeechRecognizer recognize;
public static SpeechResult result;
public static String Sphinx_Result;
public static void Sphinx() throws InterruptedException{
try {
configuration = new edu.cmu.sphinx.api.Configuration();
configuration.setAcousticModelPath("resource:/edu/cmu/sphinx/models/en-us/en-us");
configuration.setDictionaryPath("file:C:/HBSN/Dictioanary-1000.dic");
configuration.setLanguageModelPath("file:C:/HBSN/Language Model-1000.lm");
configuration.setUseGrammar(false);
recognize = new LiveSpeechRecognizer(configuration);
recognize.startRecognition(true);
while ((result = recognize.getResult()) != null) {
Sphinx_Result = result.getHypothesis();
}
recognize.stopRecognition();
} catch (IOException e) {
main.Error("Error In Sphinx", " sphinx speech recognition unit not working");
}
}
gebrauchte APIs sind
sphinx4-core-1.0.0.jar
sphinx4-data-1.0.0.jar
Wie kann ich dieses Problem beheben.
Hallo Nikolay, ich habe es versucht. Selbst es gibt den gleichen Fehler. –
Ich glaube nicht, dass Sie verstehen, was vor sich geht und das Projekt richtig zu aktualisieren. Sie können für Details https://stackoverflow.com/questions/2877262/java-securityexception-signer-information-does-not-match –
Ich habe ein anderes Projekt mit nur Sphinx Teil mit den gleichen APIs & dem gleichen Code.Es funktioniert perfekt.Nur dieses Projekt gibt mir diesen Fehler.Wenn Signaturen nicht übereinstimmen, wie wird das zweite Projekt ohne Fehler ausgeführt –