org.apache.uima.resource.ResourceInitializationException: Error initializing "org.apache.uima.adapter.soap.SoapAnalysisEngineServiceAdapter" from descriptor file:/C:/Programme/apache-uima/examples/descriptors/soapService/NamesAndPersonTitlesService.xml.

Apache's JIRA Issue Tracker | Michael Baessler | 9 years ago
  1. 0

    Deploying a SOAP service work fine and don't produce an exception, but when trying the get the metaData the following error is displayed in the Browser Fault - ; nested exception is: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://uima.apache.org/analysis_engine'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode: faultString: WSDLException: faultCode=OTHER_ERROR: Can't find prefix for 'http://uima.apache.org/analysis_engine'. Namespace prefixes must be set on the Definition object using the addNamespace(...) method.: faultActor: faultNode: faultDetail: When trying to connect to the service the following exception is thrown: org.apache.uima.resource.ResourceInitializationException: Error initializing "org.apache.uima.adapter.soap.SoapAnalysisEngineServiceAdapter" from descriptor file:/C:/Programme/apache-uima/examples/descriptors/soapService/NamesAndPersonTitlesService.xml. at org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:143) at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62) at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258) at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303) at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383) at org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1529) at org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFrame.java:524) at org.apache.uima.tools.cvd.control.AnnotatorOpenEventHandler.actionPerformed(AnnotatorOpenEventHandler.java:52) at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849) at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169) at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258) at javax.swing.AbstractButton.doClick(AbstractButton.java:302) at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051) at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092) at java.awt.Component.processMouseEvent(Component.java:5517) at javax.swing.JComponent.processMouseEvent(JComponent.java:3135) at java.awt.Component.processEvent(Component.java:5282) at java.awt.Container.processEvent(Container.java:1966) at java.awt.Component.dispatchEventImpl(Component.java:3984) at java.awt.Container.dispatchEventImpl(Container.java:2024) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212) at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892) at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822) at java.awt.Container.dispatchEventImpl(Container.java:2010) at java.awt.Window.dispatchEventImpl(Window.java:1791) at java.awt.Component.dispatchEvent(Component.java:3819) at java.awt.EventQueue.dispatchEvent(EventQueue.java:463) at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) Caused by: org.apache.uima.UIMARuntimeException at org.apache.uima.analysis_engine.service.impl.AnalysisEngineServiceAdapter.getMetaData(AnalysisEngineServiceAdapter.java:109) at org.apache.uima.resource.Resource_ImplBase.initialize(Resource_ImplBase.java:66) at org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:109) at org.apache.uima.adapter.soap.SoapAnalysisEngineServiceAdapter.initialize(SoapAnalysisEngineServiceAdapter.java:67) at org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:122) ... 33 more Caused by: org.apache.uima.resource.ResourceServiceException at org.apache.uima.adapter.soap.AxisResourceServiceStub.callGetMetaData(AxisResourceServiceStub.java:89) at org.apache.uima.analysis_engine.service.impl.AnalysisEngineServiceAdapter.getMetaData(AnalysisEngineServiceAdapter.java:105) ... 37 more Caused by: (500)Internal Server Error at org.apache.axis.transport.http.HTTPSender.readFromSocket(HTTPSender.java:630) at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:128) at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71) at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150) at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120) at org.apache.axis.client.AxisClient.invoke(AxisClient.java:180) at org.apache.axis.client.Call.invokeEngine(Call.java:2564) at org.apache.axis.client.Call.invoke(Call.java:2553) at org.apache.axis.client.Call.invoke(Call.java:2248) at org.apache.axis.client.Call.invoke(Call.java:2171) at org.apache.axis.client.Call.invoke(Call.java:1691) at org.apache.uima.adapter.soap.AxisResourceServiceStub.callGetMetaData(AxisResourceServiceStub.java:85) ... 38 more

    Apache's JIRA Issue Tracker | 9 years ago | Michael Baessler
    org.apache.uima.resource.ResourceInitializationException: Error initializing "org.apache.uima.adapter.soap.SoapAnalysisEngineServiceAdapter" from descriptor file:/C:/Programme/apache-uima/examples/descriptors/soapService/NamesAndPersonTitlesService.xml.

    Root Cause Analysis

    1. org.apache.uima.resource.ResourceServiceException

      No message provided

      at org.apache.uima.adapter.soap.AxisResourceServiceStub.callGetMetaData()
    2. org.apache.uima
      AxisResourceServiceStub.callGetMetaData
      1. org.apache.uima.adapter.soap.AxisResourceServiceStub.callGetMetaData(AxisResourceServiceStub.java:89)
      1 frame
    3. Apache UIMA Base: ${project.artifactId}
      AnalysisEngineImplBase.initialize
      1. org.apache.uima.analysis_engine.service.impl.AnalysisEngineServiceAdapter.getMetaData(AnalysisEngineServiceAdapter.java:105)
      2. org.apache.uima.resource.Resource_ImplBase.initialize(Resource_ImplBase.java:66)
      3. org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.initialize(AnalysisEngineImplBase.java:109)
      3 frames
    4. org.apache.uima
      SoapAnalysisEngineServiceAdapter.initialize
      1. org.apache.uima.adapter.soap.SoapAnalysisEngineServiceAdapter.initialize(SoapAnalysisEngineServiceAdapter.java:67)
      1 frame
    5. Apache UIMA Base: ${project.artifactId}
      UIMAFramework.produceAnalysisEngine
      1. org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:122)
      2. org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
      3. org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
      4. org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
      5. org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383)
      5 frames
    6. org.apache.uima
      AnnotatorOpenEventHandler.actionPerformed
      1. org.apache.uima.tools.cvd.MainFrame.setupAE(MainFrame.java:1529)
      2. org.apache.uima.tools.cvd.MainFrame.loadAEDescriptor(MainFrame.java:524)
      3. org.apache.uima.tools.cvd.control.AnnotatorOpenEventHandler.actionPerformed(AnnotatorOpenEventHandler.java:52)
      3 frames
    7. Java RT
      EventDispatchThread.run
      1. javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
      2. javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
      3. javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
      4. javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
      5. javax.swing.AbstractButton.doClick(AbstractButton.java:302)
      6. javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1051)
      7. javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1092)
      8. java.awt.Component.processMouseEvent(Component.java:5517)
      9. javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
      10. java.awt.Component.processEvent(Component.java:5282)
      11. java.awt.Container.processEvent(Container.java:1966)
      12. java.awt.Component.dispatchEventImpl(Component.java:3984)
      13. java.awt.Container.dispatchEventImpl(Container.java:2024)
      14. java.awt.Component.dispatchEvent(Component.java:3819)
      15. java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
      16. java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
      17. java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
      18. java.awt.Container.dispatchEventImpl(Container.java:2010)
      19. java.awt.Window.dispatchEventImpl(Window.java:1791)
      20. java.awt.Component.dispatchEvent(Component.java:3819)
      21. java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
      22. java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
      23. java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
      24. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
      25. java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
      26. java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
      26 frames