You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tuscany.apache.org by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org> on 2006/05/08 10:10:20 UTC

[jira] Created: (TUSCANY-327) NullPointerException in DAS companyWeb sample

NullPointerException in DAS companyWeb sample
---------------------------------------------

         Key: TUSCANY-327
         URL: http://issues.apache.org/jira/browse/TUSCANY-327
     Project: Tuscany
        Type: Bug

  Components: Java DAS RDB, Java DAS Samples  
    Versions: M1    
    Reporter: Jean-Sebastien Delfino
    Priority: Critical
     Fix For: M1


The DAS companyWeb sample does not work.

To reproduce the problem, build the testing/tomcat module, then point your web browser to http://localhost:8080/companyWeb-SNAPSHOT/

You will get the following exception:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Exception in JSP: /Company.jsp:120

117: 	<tbody>
118: 
119: 		<%
120: 		CompanyClient companyClient = new CompanyClient();
121: 		java.util.Iterator i = companyClient.getCompaniesWithDepartments().iterator();
122: 		while (i.hasNext()) {
123: 			DataObject company = (DataObject)i.next();


Stacktrace:
	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.RuntimeException: java.lang.NullPointerException
	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setConnection(ReadCommandImpl.java:147)
	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setMappingModel(ReadCommandImpl.java:132)
	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.<init>(ReadCommandImpl.java:53)
	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.initialize(CommandGroupImpl.java:66)
	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.<init>(CommandGroupImpl.java:55)
	org.apache.tuscany.das.rdb.impl.CommandGroupFactoryImpl.createCommandGroup(CommandGroupFactoryImpl.java:12)
	org.apache.tuscany.samples.das.companyweb.CompanyClient.<init>(CompanyClient.java:19)
	org.apache.jsp.Company_jsp._jspService(org.apache.jsp.Company_jsp:158)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (TUSCANY-327) NullPointerException in DAS companyWeb sample

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-327?page=all ]
     
Kevin Williams resolved TUSCANY-327:
------------------------------------

    Resolution: Fixed

The NPE regression is fixed.
Also, this sample has been moved to das/samples and is not yet automated.

> NullPointerException in DAS companyWeb sample
> ---------------------------------------------
>
>          Key: TUSCANY-327
>          URL: http://issues.apache.org/jira/browse/TUSCANY-327
>      Project: Tuscany
>         Type: Bug

>   Components: Java DAS RDB, Java DAS Samples
>     Versions: Java-M1
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Kevin Williams
>     Priority: Critical
>      Fix For: Java-M1

>
> The DAS companyWeb sample does not work.
> To reproduce the problem, build the testing/tomcat module, then point your web browser to http://localhost:8080/companyWeb-SNAPSHOT/
> You will get the following exception:
> type Exception report
> message
> description The server encountered an internal error () that prevented it from fulfilling this request.
> exception
> org.apache.jasper.JasperException: Exception in JSP: /Company.jsp:120
> 117: 	<tbody>
> 118: 
> 119: 		<%
> 120: 		CompanyClient companyClient = new CompanyClient();
> 121: 		java.util.Iterator i = companyClient.getCompaniesWithDepartments().iterator();
> 122: 		while (i.hasNext()) {
> 123: 			DataObject company = (DataObject)i.next();
> Stacktrace:
> 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> root cause
> java.lang.RuntimeException: java.lang.NullPointerException
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setConnection(ReadCommandImpl.java:147)
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setMappingModel(ReadCommandImpl.java:132)
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.<init>(ReadCommandImpl.java:53)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.initialize(CommandGroupImpl.java:66)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.<init>(CommandGroupImpl.java:55)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupFactoryImpl.createCommandGroup(CommandGroupFactoryImpl.java:12)
> 	org.apache.tuscany.samples.das.companyweb.CompanyClient.<init>(CompanyClient.java:19)
> 	org.apache.jsp.Company_jsp._jspService(org.apache.jsp.Company_jsp:158)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (TUSCANY-327) NullPointerException in DAS companyWeb sample

Posted by "Kevin Williams (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-327?page=all ]
     
Kevin Williams closed TUSCANY-327:
----------------------------------


Verified with 405666

> NullPointerException in DAS companyWeb sample
> ---------------------------------------------
>
>          Key: TUSCANY-327
>          URL: http://issues.apache.org/jira/browse/TUSCANY-327
>      Project: Tuscany
>         Type: Bug

>   Components: Java DAS RDB, Java DAS Samples
>     Versions: Java-M1
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Kevin Williams
>     Priority: Critical
>      Fix For: Java-M1

>
> The DAS companyWeb sample does not work.
> To reproduce the problem, build the testing/tomcat module, then point your web browser to http://localhost:8080/companyWeb-SNAPSHOT/
> You will get the following exception:
> type Exception report
> message
> description The server encountered an internal error () that prevented it from fulfilling this request.
> exception
> org.apache.jasper.JasperException: Exception in JSP: /Company.jsp:120
> 117: 	<tbody>
> 118: 
> 119: 		<%
> 120: 		CompanyClient companyClient = new CompanyClient();
> 121: 		java.util.Iterator i = companyClient.getCompaniesWithDepartments().iterator();
> 122: 		while (i.hasNext()) {
> 123: 			DataObject company = (DataObject)i.next();
> Stacktrace:
> 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> root cause
> java.lang.RuntimeException: java.lang.NullPointerException
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setConnection(ReadCommandImpl.java:147)
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setMappingModel(ReadCommandImpl.java:132)
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.<init>(ReadCommandImpl.java:53)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.initialize(CommandGroupImpl.java:66)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.<init>(CommandGroupImpl.java:55)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupFactoryImpl.createCommandGroup(CommandGroupFactoryImpl.java:12)
> 	org.apache.tuscany.samples.das.companyweb.CompanyClient.<init>(CompanyClient.java:19)
> 	org.apache.jsp.Company_jsp._jspService(org.apache.jsp.Company_jsp:158)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Assigned: (TUSCANY-327) NullPointerException in DAS companyWeb sample

Posted by "Jean-Sebastien Delfino (JIRA)" <tu...@ws.apache.org>.
     [ http://issues.apache.org/jira/browse/TUSCANY-327?page=all ]

Jean-Sebastien Delfino reassigned TUSCANY-327:
----------------------------------------------

    Assign To: Kevin Williams

> NullPointerException in DAS companyWeb sample
> ---------------------------------------------
>
>          Key: TUSCANY-327
>          URL: http://issues.apache.org/jira/browse/TUSCANY-327
>      Project: Tuscany
>         Type: Bug

>   Components: Java DAS RDB, Java DAS Samples
>     Versions: M1
>     Reporter: Jean-Sebastien Delfino
>     Assignee: Kevin Williams
>     Priority: Critical
>      Fix For: M1

>
> The DAS companyWeb sample does not work.
> To reproduce the problem, build the testing/tomcat module, then point your web browser to http://localhost:8080/companyWeb-SNAPSHOT/
> You will get the following exception:
> type Exception report
> message
> description The server encountered an internal error () that prevented it from fulfilling this request.
> exception
> org.apache.jasper.JasperException: Exception in JSP: /Company.jsp:120
> 117: 	<tbody>
> 118: 
> 119: 		<%
> 120: 		CompanyClient companyClient = new CompanyClient();
> 121: 		java.util.Iterator i = companyClient.getCompaniesWithDepartments().iterator();
> 122: 		while (i.hasNext()) {
> 123: 			DataObject company = (DataObject)i.next();
> Stacktrace:
> 	org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> root cause
> java.lang.RuntimeException: java.lang.NullPointerException
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setConnection(ReadCommandImpl.java:147)
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.setMappingModel(ReadCommandImpl.java:132)
> 	org.apache.tuscany.das.rdb.impl.ReadCommandImpl.<init>(ReadCommandImpl.java:53)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.initialize(CommandGroupImpl.java:66)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupImpl.<init>(CommandGroupImpl.java:55)
> 	org.apache.tuscany.das.rdb.impl.CommandGroupFactoryImpl.createCommandGroup(CommandGroupFactoryImpl.java:12)
> 	org.apache.tuscany.samples.das.companyweb.CompanyClient.<init>(CompanyClient.java:19)
> 	org.apache.jsp.Company_jsp._jspService(org.apache.jsp.Company_jsp:158)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> 	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
> note The full stack trace of the root cause is available in the Apache Tomcat/5.5.15 logs.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira