help w/error when running tutorial 2

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

help w/error when running tutorial 2

CaseT
Hello,

 

I'm stepping through the 2nd tutorial on the openstrategies.com site but
keep getting this error, java.lang.NullPointerException.

I've provided the console.log dump below but don't' understand it enough to
know where to look in the application.

Can someone can point in the right direction. TIA -- Case

 

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestHandler.java:236:INFO ] [Processing Request]: main
sessionId=EEB70B2BB8D79B14182A7AAF3A371CE0.jvm1

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value
for attribute "null" of uri "main" not found

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestHandler.java:424:INFO ] [RequestHandler.doRequest]: Response is a
view. sessionId=EEB70B2BB8D79B14182A7AAF3A371CE0.jvm1

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestHandler.java:577:INFO ] servletName=control, view=main
sessionId=EEB70B2BB8D79B14182A7AAF3A371CE0.jvm1

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
UtilJ2eeCompat.java:69 :INFO ] serverInfo: Apache Tomcat/5.5.20

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
UtilJ2eeCompat.java:78 :INFO ] Apache Tomcat detected, using
response.getWriter to write text out instead of response.getOutputStream

2007-08-02 18:06:28,953 (http-0.0.0.0-8080-Processor4) [
ScreenRenderer.java:220:INFO ] Found servlet context (application) attribute
that conflicts with parameter name, leaving request parameter in place for
name: _REQUEST_HANDLER_

2007-08-02 18:06:29,875 (http-0.0.0.0-8080-Processor4) [
UtilXml.java:243:DEBUG] XML Read 0.0s:
file:/C:/ofbiz/hot-deploy/hello2/widget/HelloScreens.xml

2007-08-02 18:06:29,890 (http-0.0.0.0-8080-Processor4) [
ControlServlet.java:196:ERROR]

---- runtime exception report
--------------------------------------------------

Error in request handler:

Exception: java.lang.NullPointerException

Message: null

---- stack trace
---------------------------------------------------------------

java.lang.NullPointerException

org.ofbiz.widget.screen.ModelScreenWidget.readSubWidgets(ModelScreenWidget.j
ava:81)

org.ofbiz.widget.screen.ModelScreenWidget$Section.<init>(ModelScreenWidget.j
ava:216)

org.ofbiz.widget.screen.ModelScreen.<init>(ModelScreen.java:67)

org.ofbiz.widget.screen.ScreenFactory.readScreenDocument(ScreenFactory.java:
167)

org.ofbiz.widget.screen.ScreenFactory.getScreenFromLocation(ScreenFactory.ja
va:115)

org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:104)

org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)

org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandl
er.java:78)

org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642)

org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:426)

org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)

javax.servlet.http.HttpServlet.service(HttpServlet.java:595)

javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

java.lang.Thread.run(Thread.java:534)

----------------------------------------------------------------------------
----

 

2007-08-02 18:06:29,968 (http-0.0.0.0-8080-Processor4) [
ControlServlet.java:206:ERROR] An error occurred, going to the errorPage:
/error/error.jsp

2007-08-02 18:06:29,984 (http-0.0.0.0-8080-Processor4) [
ControlServlet.java:213:ERROR] Including errorPage: /error/error.jsp

 

Case Torres

http://www.casetorrestech.com

[hidden email]

 

Reply | Threaded
Open this post in threaded view
|

RE: help w/error when running tutorial 2

CaseT
I continued through the tutorial and the problem was fixed.

Thanks

-----Original Message-----
From: Case Torres [mailto:[hidden email]]
Sent: Thursday, August 02, 2007 6:20 PM
To: [hidden email]
Subject: help w/error when running tutorial 2

Hello,

 

I'm stepping through the 2nd tutorial on the openstrategies.com site but
keep getting this error, java.lang.NullPointerException.

I've provided the console.log dump below but don't' understand it enough to
know where to look in the application.

Can someone can point in the right direction. TIA -- Case

 

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestHandler.java:236:INFO ] [Processing Request]: main
sessionId=EEB70B2BB8D79B14182A7AAF3A371CE0.jvm1

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestManager.java:116:INFO ] [RequestManager.getRequestAttribute] Value
for attribute "null" of uri "main" not found

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestHandler.java:424:INFO ] [RequestHandler.doRequest]: Response is a
view. sessionId=EEB70B2BB8D79B14182A7AAF3A371CE0.jvm1

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
RequestHandler.java:577:INFO ] servletName=control, view=main
sessionId=EEB70B2BB8D79B14182A7AAF3A371CE0.jvm1

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
UtilJ2eeCompat.java:69 :INFO ] serverInfo: Apache Tomcat/5.5.20

2007-08-02 18:06:28,937 (http-0.0.0.0-8080-Processor4) [
UtilJ2eeCompat.java:78 :INFO ] Apache Tomcat detected, using
response.getWriter to write text out instead of response.getOutputStream

2007-08-02 18:06:28,953 (http-0.0.0.0-8080-Processor4) [
ScreenRenderer.java:220:INFO ] Found servlet context (application) attribute
that conflicts with parameter name, leaving request parameter in place for
name: _REQUEST_HANDLER_

2007-08-02 18:06:29,875 (http-0.0.0.0-8080-Processor4) [
UtilXml.java:243:DEBUG] XML Read 0.0s:
file:/C:/ofbiz/hot-deploy/hello2/widget/HelloScreens.xml

2007-08-02 18:06:29,890 (http-0.0.0.0-8080-Processor4) [
ControlServlet.java:196:ERROR]

---- runtime exception report
--------------------------------------------------

Error in request handler:

Exception: java.lang.NullPointerException

Message: null

---- stack trace
---------------------------------------------------------------

java.lang.NullPointerException

org.ofbiz.widget.screen.ModelScreenWidget.readSubWidgets(ModelScreenWidget.j
ava:81)

org.ofbiz.widget.screen.ModelScreenWidget$Section.<init>(ModelScreenWidget.j
ava:216)

org.ofbiz.widget.screen.ModelScreen.<init>(ModelScreen.java:67)

org.ofbiz.widget.screen.ScreenFactory.readScreenDocument(ScreenFactory.java:
167)

org.ofbiz.widget.screen.ScreenFactory.getScreenFromLocation(ScreenFactory.ja
va:115)

org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:104)

org.ofbiz.widget.screen.ScreenRenderer.render(ScreenRenderer.java:90)

org.ofbiz.widget.screen.ScreenWidgetViewHandler.render(ScreenWidgetViewHandl
er.java:78)

org.ofbiz.webapp.control.RequestHandler.renderView(RequestHandler.java:642)

org.ofbiz.webapp.control.RequestHandler.doRequest(RequestHandler.java:426)

org.ofbiz.webapp.control.ControlServlet.doGet(ControlServlet.java:189)

javax.servlet.http.HttpServlet.service(HttpServlet.java:595)

javax.servlet.http.HttpServlet.service(HttpServlet.java:688)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:252)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

org.ofbiz.webapp.control.ContextFilter.doFilter(ContextFilter.java:248)

org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:202)

org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:173)

org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:213)

org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:178)

org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126
)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105
)

org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:107)

org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:541)

org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processC
onnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.jav
a:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo
rkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:684)

java.lang.Thread.run(Thread.java:534)

----------------------------------------------------------------------------
----

 

2007-08-02 18:06:29,968 (http-0.0.0.0-8080-Processor4) [
ControlServlet.java:206:ERROR] An error occurred, going to the errorPage:
/error/error.jsp

2007-08-02 18:06:29,984 (http-0.0.0.0-8080-Processor4) [
ControlServlet.java:213:ERROR] Including errorPage: /error/error.jsp

 

Case Torres

http://www.casetorrestech.com

[hidden email]