AnsweredAssumed Answered

Problem with Alfresco Connect

Question asked by frama on Aug 29, 2007
Latest reply on Aug 31, 2007 by frama
hi,
I have a method to connect to me to Alfresco by means of WebService. The problem is that if i call a method by means of Servlet, I have the following error:

 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
faultActor:
faultNode:
faultDetail:
   {http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
   at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
   at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
   at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
   at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentScannerImpl$TrailingMiscDispatcher.dispatch(Unknown Source)
   at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
   at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
   at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
   at org.apache.axis.server.AxisServer.initSOAPConstants(AxisServer.java:345)
   at org.apache.axis.server.AxisServer.invoke(AxisServer.java:279)
   at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
   at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Thread.java:595)

   {http://xml.apache.org/axis/}hostname:fmalladohpxp

07/08/29 12:41:05 org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed.
07/08/29 12:41:05    at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
07/08/29 12:41:05    at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
07/08/29 12:41:05    at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
07/08/29 12:41:05    at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1318)
07/08/29 12:41:05    at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:336)
07/08/29 12:41:05    at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:303)
07/08/29 12:41:05    at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:206)
07/08/29 12:41:05    at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:292)
07/08/29 12:41:05    at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
07/08/29 12:41:05    at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
07/08/29 12:41:05    at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
07/08/29 12:41:05    at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
07/08/29 12:41:05    at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
07/08/29 12:41:05    at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
07/08/29 12:41:05    at org.apache.axis.client.Call.invoke(Call.java:2767)
07/08/29 12:41:05    at org.apache.axis.client.Call.invoke(Call.java:2443)
07/08/29 12:41:05    at org.apache.axis.client.Call.invoke(Call.java:2366)
07/08/29 12:41:05    at org.apache.axis.client.Call.invoke(Call.java:1812)
07/08/29 12:41:05    at org.alfresco.webservice.content.ContentServiceSoapBindingStub.read(ContentServiceSoapBindingStub.java:421)
07/08/29 12:41:05    at es.juntadeandalucia.cultura.mosaico.servicios.gestordocumental.alfresco.WSAlfrescoImpl.getContentAsInputStream(WSAlfrescoImpl.java:165)
07/08/29 12:41:05    at es.juntadeandalucia.cultura.mosaico.servicios.gestordocumental.GestorDocumentalImpl.getContenido(GestorDocumentalImpl.java:58)
07/08/29 12:41:05    at es.juntadeandalucia.cultura.mosaico.servicios.gestordocumental.Thumbnail.uuidAlfrescoToThumbnail(Thumbnail.java:38)
07/08/29 12:41:05    at es.juntadeandalucia.cultura.mosaico.servicios.gestordocumental.ThumbnailServlet.doGet(ThumbnailServlet.java:40)
07/08/29 12:41:05    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
07/08/29 12:41:05    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
07/08/29 12:41:05    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
07/08/29 12:41:05    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
07/08/29 12:41:05    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
07/08/29 12:41:05    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
07/08/29 12:41:05    at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
07/08/29 12:41:05    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
07/08/29 12:41:05    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
07/08/29 12:41:05    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
07/08/29 12:41:05    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
07/08/29 12:41:05    at java.lang.Thread.run(Thread.java:595)

the error happens in the line:
Node[] nodes = repositoryService.get(predicate);

if i call a method by means of method main (public static void main (String [] args)), it works ok. somebody would know to say to me to that the error can have?

thanks

Outcomes