[opencms-dev] (6b2) Null pointer accessing directly to xml content editor possible bug ?

Jorge González informatico at hotelparadisepark.com
Mon Apr 25 12:39:01 CEST 2005


Hi list:

I'm getting a null pointer when i link directly to the xml content editor.

I'm trying to build a link to the editor, so the content manager could click
it (from an email for example) and edit the content :)

Maybe this is not the best approach...

I have this test jsp...
-----
<%@ taglib prefix="cms" uri="http://www.opencms.org/taglib/cms" %>

<a
href="/cms/cms/system/workplace/editors/editor.jsp?resource=/test/contents/d
1/widgetdemo_0001">Link to edit the content</a>
-----

The opencms shows
Please note that Admin has ALL Permissions
((widgetdemo_0001      xmlcontent  337  r+w+v+c+d ))
-----
25 abr 2005 11:33:25,417  INFO [.opencms.workplace.CmsLoginNew: 171] Login
of user 'Admin'
25 abr 2005 11:34:30,276 ERROR [ms.workplace.editors.CmsEditor: 827] Error
while trying to read file /test/contents/d1/widgetdemo_0001:
org.opencms.security.CmsSecurityException: Denied access to resource
'/test/contents/d1/widgetdemo_0001', required permissions are +w [Code 303 -
No permissions to perform this operation]
-----


The error is
-----
java.lang.NullPointerException
	at
org.opencms.workplace.editors.CmsXmlContentEditor.initElementLanguage(CmsXml
ContentEditor.java:802)
	at
org.opencms.workplace.editors.CmsXmlContentEditor.initWorkplaceRequestValues
(CmsXmlContentEditor.java:937)
	at
org.opencms.workplace.CmsWorkplace.initWorkplaceMembers(CmsWorkplace.java:16
55)
	at org.opencms.workplace.CmsWorkplace.<init>(CmsWorkplace.java:165)
	at org.opencms.workplace.tools.CmsToolDialog.<init>(CmsToolDialog.java:73)
	at org.opencms.workplace.CmsDialog.<init>(CmsDialog.java:176)
	at org.opencms.workplace.editors.CmsEditor.<init>(CmsEditor.java:175)
	at
org.opencms.workplace.editors.CmsXmlContentEditor.<init>(CmsXmlContentEditor
.java:150)
	at
org.apache.jsp.WEB_002dINF.jsp.online.system.workplace.editors.xmlcontent.ed
itor_005fform_jsp._jspService(editor_005fform_jsp.java:50)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:3
24)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
	at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:704)
	at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:590)
	at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:510)
	at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDisp
atcher.java:357)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:163)
	at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:412)
	at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.j
ava:293)
	at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:444)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:389)
	at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:6
77)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1371)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:108)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:237)
	at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:157)
	at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext
Valve.java:198)
	at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:152)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137
)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118
)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:102)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:109)
	at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex
t.java:104)
	at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
	at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:705)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:683)
	at java.lang.Thread.run(Thread.java:534)
-----




More information about the opencms-dev mailing list