cancel
Showing results for 
Search instead for 
Did you mean: 

Problem: HTML.Version must end with '>'.

kobeyang
Champ in-the-making
Champ in-the-making
Hi all,
I read this pdf http://ecmarchitect.com/images/articles … le-2ed.pdf to get started with Alfrescowhen I tried the program SomeCoCMISDataCreator.java downloaded from http://ecmarchitect.com/images/articles … roject.zip. But here appears the exception whose error info is below.
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?
Thanks in advance.

Kobe
4 REPLIES 4

jpotts
World-Class Innovator
World-Class Innovator
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

kobeyang
Champ in-the-making
Champ in-the-making
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

Hi Jeff,
my Eclipse version is 3.4.0, the JDK version is 1.7.0 and my server is tomcat. Is there anything wrong with my configuration?

Thanks,
Kobe

jpotts
World-Class Innovator
World-Class Innovator
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

kobeyang
Champ in-the-making
Champ in-the-making
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

Thanks, Jeff. I have figured it out.

Kobe