cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 3.4a authentication problem ...

unknown-user
Champ on-the-rise
Champ on-the-rise
Hello,

I've setup a openworkdesk application on my PC for testing purposes - it's working fine against our Alfresco Enterprise 3.2 repository (production)

Nice job - Fine.

Now, when trying to have it working the Test Alfresco 3.4a community edition on my PC, impossible to get it working

I've tried to set it up either using the same tomcat as Alfresco, either on a separate one…

I get the same error message :

Can you help me ?

Thank you

Error: Cannot create communication to the Webservices!

Error Source: OECM

java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:597)
   at com.wewebu.ow.server.ui.OwAppContext.handleRequest(OwAppContext.java:1237)
   at com.wewebu.ow.server.app.OwMainAppContext.handleRequest(OwMainAppContext.java:600)
   at com.wewebu.ow.server.ui.OwWebApplication.handleRequest(OwWebApplication.java:331)
   at org.apache.jsp.default20_jsp._jspService(default20_jsp.java:77)
   at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
   at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
   at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
   at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
   at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:861)
   at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
   at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1584)
   at java.lang.Thread.run(Thread.java:619)
Caused by: com.wewebu.ow.server.exceptions.OwServerException: Cannot create communication to the Webservices!
   at com.wewebu.ow.server.ecmimpl.cmis.OwCMISNetwork.loginDefault(OwCMISNetwork.java:1289)
   at com.wewebu.ow.server.ecmimpl.cmis.ui.OwCMISLoginSubModul.onLogin(OwCMISLoginSubModul.java:139)
   … 26 more
Caused by: com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
   at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:365)
   at com.sun.xml.ws.transport.http.client.HttpTransportPipe.process(HttpTransportPipe.java:187)
   at com.sun.xml.ws.transport.http.client.HttpTransportPipe.processRequest(HttpTransportPipe.java:93)
   at com.sun.xml.ws.transport.DeferredTransportPipe.processRequest(DeferredTransportPipe.java:117)
   at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:629)
   at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:588)
   at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:573)
   at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:470)
   at com.sun.xml.ws.client.Stub.process(Stub.java:235)
   at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:147)
   at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:109)
   at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:89)
   at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:130)
   at $Proxy44.getRepositories(Unknown Source)
   at com.wewebu.ow.server.ecmimpl.cmis.OwCMISNetwork.loginDefault(OwCMISNetwork.java:1249)
   … 27 more
Caused by: com.sun.xml.ws.streaming.XMLStreamReaderException: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
   at com.sun.xml.ws.streaming.XMLStreamReaderUtil.wrapException(XMLStreamReaderUtil.java:267)
   at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:95)
   at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextContent(XMLStreamReaderUtil.java:110)
   at com.sun.xml.ws.streaming.XMLStreamReaderUtil.nextElementContent(XMLStreamReaderUtil.java:100)
   at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:175)
   at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:303)
   at com.sun.xml.ws.encoding.StreamSOAPCodec.decode(StreamSOAPCodec.java:129)
   at com.sun.xml.ws.encoding.SOAPBindingCodec.decode(SOAPBindingCodec.java:360)
   … 41 more
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
   at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
   at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)
   at com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.java:2040)
   at com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
   at com.sun.xml.ws.util.xml.XMLStreamReaderFilter.next(XMLStreamReaderFilter.java:92)
   at com.sun.xml.ws.streaming.XMLStreamReaderUtil.next(XMLStreamReaderUtil.java:76)
   … 47 more
2 REPLIES 2

deko
Star Contributor
Star Contributor
Hello ythebaud,

we will have a closer look at this problem.

Seems to be a problem with the WSDL files that are neccessary for communication between Alfresco and OpenWorkd.

The important line in stacktrace is following:

Caused by: com.sun.xml.ws.protocol.soap.MessageCreationException: Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog

–> EOF as End of File Exception.

Will come back to you as soon as possible.

d_evil
Champ in-the-making
Champ in-the-making
Hello ythebaud,

we searched long enough to find out that this problem seemed to be a conflict of webservice libraries. The alfresco CXF libraries are not able to complete/parse the request and throw an exception (com.ctc.wstx.exc.WstxEOFException… )

Running the OpenWorkdesk from a secondary Tomcat works for me quite well, and it should also work for you if you remove the webservice-api.jar form the alfresco/tomcat/endorsed directory.

My tests were done with Alfresco 3.4b Community Win x64(full install), and OpenWorkdesk runs on a Tomcat 6.0.20 under Win7 with JRE 1.6.0_22-b04 (x64).

If you look into the log files of your alfresco installation you should find similar lines:
Caused by: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
at [row,col {unknown-source}]: [1,0]
at com.ctc.wstx.sr.StreamScanner.throwUnexpectedEOF(StreamScanner.java:661)
at com.ctc.wstx.sr.BasicStreamReader.handleEOF(BasicStreamReader.java:2134)

ERROR: org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl - Repository not available: Parsing exception!
ERROR: org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl - Repository not available: Parsing exception!

Regards,
D.evil