10-12-2012 08:27 AM
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[31,3]
Message: The declaration for the entity "HTML.Version" must end with '>'.
I have searched it in the internet. Some people say this is an error from w3c. But I still don't know how to figure it out. Do anyone has encountered the same problem?10-12-2012 11:37 AM
10-15-2012 10:04 PM
Can you tell me the version of Eclipse you are running, the JDK version, and the Alfresco server you are running the code against?
Jeff
10-23-2012 03:40 PM
11-10-2012 01:56 AM
The 2nd edition of the content types tutorial, which is the one you are referencing, was written and tested against Alfresco 4.0, JDK 1.6, and Tomcat 6.0.32. The Eclipse version was likely either Helios or Indigo.
I have just now down a very cursory "smoke test" using Alfresco 4.2.a Community, JDK 1.7, and Tomcat 7.0.30 using Eclipse Juno. I only tested two of the CMIS examples, but they worked fine. I tested using the Web Services binding.
Some things for you to note/try:
- JDK 1.7 is not supported in Community Edition before 4.2.a.
- You said you were running Eclipse 3.4.0. But you didn't specify which version of Alfresco you are running. If you are running Alfresco 3.4.0, you definitely need to be on JDK 1.6 and you will want to make sure that your service URL (look in the CMISExampleBase class) is set to "http://localhost:8080/alfresco/s/api/cmis". That is the AtomPub binding service URL for Alfresco prior to version 4.0. If you are using Alfresco 4.0 or higher, the service URL is "http://localhost:8080/alfresco/cmisatom".
- Make sure you can use something like the OpenCMIS workbench to connect to the repository using the service URL above.
Jeff
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.