[opencms-dev] clicksandlinks.com RSS Module throws exeption
Arash Kaffamanesh
arash.kaffamanesh at pomegranate.de
Wed Mar 29 03:14:06 CEST 2006
I read first the message which you sent me directly, therefore is my
previous post exactly about what you guessed, my highest compliment.
Thanks again,
Arash
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Olli Aro
Sent: Dienstag, 28. März 2006 20:50
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] clicksandlinks.com RSS Module throws exeption
Ok, it seems like we get null exception when reading the schema file from
/system/modules/com.clicksandlinks.opencms.rss/schema/rsspage.xsd. The first
things to check are:
1) That the file at
/system/modules/com.clicksandlinks.opencms.rss/schema/rsspage.xsd is
published and complete.
2) You are reference to
/system/modules/com.clicksandlinks.opencms.rss/schema/rsspage.xsd at
opencms-modules.xml.
However, both of the above should be ok, if you did not get any errors
importing the module. Another thing I can think of is that currently the
rsspage uses content type id 51 and maybe you have another content type in
your system that already uses that id. You could experiment by changing the
id by modifying the block below in opencms-modules.xml.
<type class="org.opencms.file.types.CmsResourceTypeXmlContent"
name="rsspage" id="51">
<param
name="schema">/system/modules/com.clicksandlinks.opencms.rss/schema/rsspage.
xsd</param>
</type>
Looking the CmsXmlUtils class there are not really that many places that
could cause null pointer exception (please see the source code below). The
only obvious null pointer here that I can spot is that the source could be
null, which is why I asked you to check if the schema file has been imported
ok.
Regards,
Olli
public static Document unmarshalHelper(InputSource source, EntityResolver
resolver) throws CmsXmlException {
try {
SAXReader reader = new SAXReader();
if (resolver != null) {
reader.setEntityResolver(resolver);
}
reader.setMergeAdjacentText(true);
reader.setStripWhitespaceText(true);
return reader.read(source);
} catch (DocumentException e) {
throw new
CmsXmlException(Messages.get().container(Messages.ERR_UNMARSHALLING_XML_DOC_
0), e);
}
}
_____
From: Arash Kaffamanesh [mailto:arash.kaffamanesh at pomegranate.de]
Sent: 28 March 2006 18:26
To: olli_aro at yahoo.co.uk; 'The OpenCms mailing list'
Subject: RE: [opencms-dev] clicksandlinks.com RSS Module throws exeption
Hi Olli,
First of all thank you very much for the great work.
What Ive done is to install the module and replace the
commons-httpclient-2.0.2.jar with the latest
commons-httpclient-3.0-rc2.jar which is provided on your nice webpage. After
that I restart my tomcat 5.5.16 and do:
New --> Structured Content --> RSS Page.
And give a title for the page testrss.html
Now Im getting this error:
28 Mrz 2006 19:13:03,424 ERROR [rg.opencms.workplace.CmsDialog:1180] The
workplace dialog caused an error.
org.opencms.xml.CmsXmlException: Unmarshalling xml document failed.
at
org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:530)
at
org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.ja
va:437)
at
org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.ja
va:270)
at
org.opencms.file.types.CmsResourceTypeXmlContent.createResource(CmsResourceT
ypeXmlContent.java:92)
at org.opencms.file.CmsObject.createResource(CmsObject.java:621)
at
org.opencms.workplace.explorer.CmsNewResourceXmlContent.actionCreateResource
(CmsNewResourceXmlContent.java:103)
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.newresource_
005fxmlcontent_jsp._jspService(newresource_005fxmlcontent_jsp.java:66)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:499)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDisp
atcher.java:193)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:171)
at
org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:416)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRe
questDispatcher.java:420)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:175)
at
org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:450)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:395)
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:7
15)
at
org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1346)
at
org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:139)
at
org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:151)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va: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.processC
onnection(Http11BaseProtocol.java:664)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.dom4j.DocumentException: null Nested exception: null
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at
org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:528)
... 44 more
my opencms version is: beta 2
My MySQL version is: 5.0.19
Jdk : 1.5_06
Tomcat: 5.5.16
Would appreciate your help.
Please see attached screenshot too.
Kind Regards,
Arash
-----Original Message-----
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Olli Aro
Sent: Dienstag, 28. März 2006 18:19
To: 'The OpenCms mailing list'
Subject: RE: [opencms-dev] clicksandlinks.com RSS Module throws exeption
Hmm
I suppose that I should know, since I am the author of the module ;D I
assume that you get this error after installing the module, restarting the
server and when trying to add a new rss page? If you provide a bit more
details regarding when you get this error I can try to debug.
Regards,
Olli
_____
From: opencms-dev-bounces at opencms.org
[mailto:opencms-dev-bounces at opencms.org] On Behalf Of Arash Kaffamanesh
Sent: 28 March 2006 17:03
To: 'The OpenCms mailing list'
Subject: [opencms-dev] clicksandlinks.com RSS Module throws exeption
Hi OC-World!
Ive installed the com.clicksandlinks.opencms.rss_0.3.zip module on OpenCms
6.2 Beta, but it throws the following error:
Error Unmarshalling xml document failed.
Reason: null Nested exception: null
org.opencms.xml.CmsXmlException: Unmarshalling xml document failed.
at org.opencms.xml.CmsXmlUtils.unmarshalHelper(CmsXmlUtils.java:530)
at
org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.ja
va:437)
at
org.opencms.xml.CmsXmlContentDefinition.unmarshal(CmsXmlContentDefinition.ja
va:270)
at
org.opencms.file.types.CmsResourceTypeXmlContent.createResource(CmsResourceT
ypeXmlContent.java:92)
at org.opencms.file.CmsObject.createResource(CmsObject.java:621)
at
org.opencms.workplace.explorer.CmsNewResourceXmlContent.actionCreateResource
(CmsNewResourceXmlContent.java:103)
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.commons.newresource_
005fxmlcontent_jsp._jspService(newresource_005fxmlcontent_jsp.java:66)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
32)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:672)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:574)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:499)
Has someone any experience with this kind of message? :-)
Thanks,
Arash
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 27/03/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 27/03/2006
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 27/03/2006
--
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.385 / Virus Database: 268.3.2/294 - Release Date: 27/03/2006
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060329/fc438cea/attachment.htm>
More information about the opencms-dev
mailing list