[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[jfriends:00321] petstore1.42 の populate 時に ServletException
はじめまして。
J2EEパターンの学習をしようと、Sun One Application Server8で
petstore1.4をビルドしてデプロイしました。
ところが下記のようなエラーが発生します。
javax.servlet.ServletException: Populate exception occured :null
com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doPost(Unknown Source)
com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:748)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
java.security.AccessController.doPrivileged(Native Method)
com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:261)
java.security.AccessController.doPrivileged(Native Method)
com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:261)
root cause
javax.ejb.EJBException: Transaction aborted; nested exception is: javax.transaction.RollbackException: Transaction marked for rollback.
com.sun.j2ee.blueprints.petstore.tools.populate.XMLDBHandler.endElement(Unknown Source)
org.apache.xerces.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:546)
org.apache.xerces.impl.dtd.XMLNSDTDValidator.endNamespaceScope(XMLNSDTDValidator.java:257)
org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(XMLDTDValidator.java:1992)
org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(XMLDTDValidator.java:902)
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(XMLNSDocumentScannerImpl.java:533)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(XMLDocumentFragmentScannerImpl.java:1560)
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:355)
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:539)
org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:595)
org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152)
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1125)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:371)
com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.populate(Unknown Source)
com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doPost(Unknown Source)
com.sun.j2ee.blueprints.petstore.tools.populate.PopulateServlet.doGet(Unknown Source)
javax.servlet.http.HttpServlet.service(HttpServlet.java:748)
javax.servlet.http.HttpServlet.service(HttpServlet.java:861)
sun.reflect.GeneratedMethodAccessor103.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:205)
java.security.AccessController.doPrivileged(Native Method)
com.sun.j2ee.blueprints.signon.web.SignOnFilter.doFilter(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:261)
java.security.AccessController.doPrivileged(Native Method)
com.sun.j2ee.blueprints.encodingfilter.web.EncodingFilter.doFilter(Unknown Source)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:289)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:311)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:261)
アドバイスをいただけると幸いです。
竹の内まり子