问题描述
我使用山人推理与猫头鹰API 4.0,Java SDK的1.7,日食3.0.4,JSF 1.2,RichFaces的3.3和Tomcat 7。我已经导入的类
I am using Hermit reasoner with owl api 4.0, java sdk 1.7, eclipse 3.0.4, jsf 1.2, richfaces 3.3 and tomcat 7. I have imported classes
- org.semanticweb.HermiT.Reasoner.ReasonerFactory
- org.semanticweb.HermiT.Reasoner
每一件事情编译好。但应用程序运行过程中,我得到以下错误。
Every thing compiles well. but during application run, i get following error.
Sep 24, 2014 1:27:39 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [Faces Servlet] in context with path
[/OntSearch] threw exception [Error calling action method of component with id
frmFlexSearch:_idJsp13] with root cause
java.lang.NoSuchMethodError: org.semanticweb.owlapi.model.OWLOntologyID.getDefaultDocumentIRI()Lorg/semanticweb/owlapi/model/IRI;
at org.semanticweb.HermiT.structural.OWLClausification.preprocessAndClausify(Unknown Source)
at org.semanticweb.HermiT.Reasoner.loadOntology(Unknown Source)
at org.semanticweb.HermiT.Reasoner.<init>(Unknown Source)
at org.semanticweb.HermiT.Reasoner.<init>(Unknown Source)
at org.semanticweb.HermiT.Reasoner$ReasonerFactory.createHermiTOWLReasoner(Unknown Source)
at org.semanticweb.HermiT.Reasoner$ReasonerFactory.createNonBufferingReasoner(Unknown Source)
at org.semanticweb.HermiT.Reasoner$ReasonerFactory.createNonBufferingReasoner(Unknown Source)
at org.coas.ui.bean.SearchPetitionUserBean.nounget(SearchPetitionUserBean.java:230)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:132)
at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:61)
at javax.faces.component.UICommand.broadcast(UICommand.java:109)
at javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:97)
at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:171)
at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:32)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:95)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:70)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:139)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:147)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:501)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1070)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:611)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:316)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Unknown Source)
可能是什么这个运行时错误的可能原因是什么?
What could be the possible cause of this run time error?
推荐答案
隐士的当前版本与OWLAPI 4尚未兼容。使用3.5.1暂时的,直到一个新的隐士被释放,或者从我的GitHub上叉建立你自己的。用户名是ignazio1977。
The current versions of HermiT are not compatible with OWLAPI 4 yet. Use 3.5.1 for the time being, until a new HermiT is released, or build your own from my fork on GitHub. The username is ignazio1977.
我不能为今后隐士发布时间刻度,很遗憾。
I cannot provide a timescale for the next HermiT release, unfortunately.
编辑:下载更新的源$ C $ C的链路是在这里(仍处于试验阶段)
The link to download the updated source code is here (still experimental)https://github.com/ignazio1977/hermit-reasoner
这篇关于java.lang.NoSuchMethodError:org.semanticweb.HermiT.Reasoner&LT;&初始化GT;(来源不明)。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!