geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yannick LE NY (JIRA)" <...@geronimo.apache.org>
Subject [jira] Commented: (DAYTRADER-84) DayTrader 2.1.3 : test PingServlet2Session2JDBC : crash with NullPointerException
Date Mon, 29 Nov 2010 14:11:40 GMT

    [ https://issues.apache.org/jira/browse/DAYTRADER-84?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12964758#action_12964758
] 

Yannick LE NY commented on DAYTRADER-84:
----------------------------------------

Tested with daytrader 2.1.8 snapshot code source at
http://svn.apache.org/viewvc/geronimo/daytrader/branches/2.1/?sortby=date
revision 1038956.
Bug fixed. 

> DayTrader 2.1.3 : test PingServlet2Session2JDBC : crash with NullPointerException
> ---------------------------------------------------------------------------------
>
>                 Key: DAYTRADER-84
>                 URL: https://issues.apache.org/jira/browse/DAYTRADER-84
>             Project: DayTrader
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>    Affects Versions: 2.1.3
>         Environment: Jboss EAP 5.1.0 (EAP -> Enterprise Application Platform)
> Sun 1.6_022
> Sun Solaris 10
> Mysql JDBC driver 5.1.13 (mysql-connector-java-5.1.13-bin.jar)
> Mysql Server 5.0.20
> Profile default for Jboss serveur (./run.sh -c default).
>    1. Trade configuration update. Current config:
> RunTimeMode: Full EJB3
> JPALayer: OpenJPA
> OrderProcessingMode: Synchronous
> AcessMode: Standard
> Workload Mix: Standard
> Web Interface: JSP
> CachingType: No Caching
> #Trade Users: 200
> #Trade Quotes: 400
> Market Summary Interval: 20
> Primitive Iterations: 1
> TradeStreamer MDB Enabled: false
> Long Run Enabled: true
> or
>    1. Trade configuration update. Current config:
> RunTimeMode: Session (EJB3) To Direct
> JPALayer: OpenJPA
> OrderProcessingMode: Synchronous
> AcessMode: Standard
> Workload Mix: Standard
> Web Interface: JSP
> CachingType: No Caching
> #Trade Users: 200
> #Trade Quotes: 400
> Market Summary Interval: 20
> Primitive Iterations: 1
> TradeStreamer MDB Enabled: false
> Long Run Enabled: true
>            Reporter: Yannick LE NY
>            Assignee: Forrest Xia
>             Fix For: 2.1.7, 2.2.1, 3.0
>
>         Attachments: PingServlet2Session2JDBC.log
>
>
> Hello,
> I have downloaded the latest revision for Day Trader 2.1.3
> in the svn here
> http://svn.apache.org/viewvc/geronimo/daytrader/branches/old_2.1.3/?sortby=date
> and compiled it with :
>     * JDK 1.6_021
>     * Mandriva Linux 2010.1
>     * Maven 2.2.1
> by following the instructions in the file
> http://svn.apache.org/viewvc/geronimo/daytrader/branches/2.1.3/README.jboss5?revision=907211&view=markup&sortby=file
> But when I launch the test PingServlet2Session2JDBC , I this error in the web page :
> An Error has occured during DayTrader processing.
> The stack trace detailing the error follows.
> Please consult the application server error logs for further details.
> Processing request:/daytrader/ejb3/PingServlet2Session2JDBC
> StatusCode: -1
> Message:General Exception caught, java.lang.NullPointerException
> Exception:null
> and I have the following errors in the logs :
> 15:24:42,112 ERROR [Log] Error: TradeDirect:getQuote -- error getting quote
>         java.sql.SQLException: You cannot set autocommit during a managed transaction!
> 15:24:42,113 INFO  [STDOUT] java.sql.SQLException: You cannot set autocommit during a
managed transaction!
> 15:24:42,114 INFO  [STDOUT]     at org.jboss.resource.adapter.jdbc.BaseWrapperManagedConnection.setJdbcAutoCommit(BaseWrapperManagedConnection.java:599)
> ....
> 15:24:42,129 INFO  [CachedConnectionManager] Closing a connection for you.  Please close
them yourself: org.jboss.resource.adapter.jdbc.jdk6.WrappedConnectionJDK6@1eaf56
> java.lang.Throwable: STACKTRACE
>         at org.jboss.resource.connectionmanager.CachedConnectionManager.registerConnection(CachedConnectionManager.java:278)
> ....
> 15:24:42,134 ERROR [Log] Error: PingServlet2Session2JDBC.doGet(...): General Exception
caught
>         java.lang.NullPointerException
> 15:24:42,135 INFO  [STDOUT] java.lang.NullPointerException
> 15:24:42,135 INFO  [STDOUT]     at org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2JDBC.doGet(PingServlet2Session2JDBC.java:83)
> 15:24:42,135 INFO  [STDOUT]     at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
> ...
> 15:24:42,139 INFO  [STDOUT]     at java.lang.Thread.run(Thread.java:662)
> 15:24:42,139 INFO  [STDOUT] java.lang.NullPointerException
> 15:24:42,139 INFO  [STDOUT]     at org.apache.geronimo.samples.daytrader.web.prims.ejb3.PingServlet2Session2JDBC.doGet(PingServlet2Session2JDBC.java:83)
> ...
> 15:24:42,143 INFO  [STDOUT]     at java.lang.Thread.run(Thread.java:662)
> 15:24:42,145 ERROR [STDERR] java.lang.NullPointerException
> 15:24:42,146 ERROR [STDERR]     at org.apache.jsp.error_jsp._jspService(error_jsp.java:124)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message