-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 
Author Message
 Post subject: Null Pointer Exception with every alternate request.
PostPosted: Sun Feb 26, 2006 12:44 am 
Newbie

Joined: Sun Feb 26, 2006 12:37 am
Posts: 7
Hi,
I have configured oracle datasource in WSAD5.1, i am trying to write to database using hibernate framework from a web application. i have copied all the required jar files into WEB-INF/lib folder, and created hibernate.cfg.xml, Person.hbm.xml ,and a TestServlet.java, following is the code listing for each file

hibernate.cfg.xml:
<?xml version="1.0"?>
<!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">
jdbc/OraDS
</property>
<property name="dialect">
org.hibernate.dialect.Oracle9Dialect
</property>
<mapping resource="com/siva/seminar/hibernate/Person.hbm.xml"/>
</session-factory>
</hibernate-configuration>

Person.hbm.xml
<?xml version="1.0"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping package="com.siva.seminar.hibernate">
<class name="Person" table="person">
<id name="id" column="id" type="long">
<generator class="native"/>
</id>
<property name="lastName" column="lastname" type="string"/>
<property name="firstName" column="firstname" type="string"/>
<property name="address" column="address" type="string"/>
</class>
</hibernate-mapping>

TestServlet.java
package com.siva.seminar.web.controller;

import java.io.IOException;
import java.io.PrintWriter;

import javax.naming.InitialContext;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.sql.DataSource;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;

import com.siva.seminar.hibernate.Person;


public class TestServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {

DataSource ds = null;
InitialContext ctx = null;
res.setContentType("text/html");
PrintWriter out = res.getWriter();


try {
Configuration cfg = new Configuration();
SessionFactory factory = cfg.configure().buildSessionFactory();
Person person = new Person();
person.setAddress("2418 Independence");
person.setFirstName("Siva");
person.setLastName("Madala");
Session session = factory.openSession();
session.beginTransaction();
session.save(person);
session.flush();

out.print("success");
}
catch(Exception ex){
ex.printStackTrace();
out.print("Failure");
}



}
}

When i hit the servlet, the following is the exception thrown, and the object is not written into the data base, i am able to write into database using JDBC code though, its only the problem hibernate, any help is greatly appreciated
[2/25/06 22:23:50:531 CST] 6bb511bb LocalTranCoor E WLTC0033E: Resource jdbc/OraDS rolled back in cleanup of unresolved LocalTransactionContainment.
[2/25/06 22:23:50:531 CST] 6bb511bb LocalTranCoor E WLTC0032E: One or more resources rolled back. An unresolved LocalTransactionContainment had an unresolved action of rollback.
[2/25/06 22:23:50:547 CST] 6bb511bb WebAppTransac E WTRN0043I: LocalTransaction rolled-back due to setRollbackOnly.
[2/25/06 22:23:50:578 CST] 6bb511bb WebGroup E SRVE0026E: [Servlet Error]-[LocalTransaction rolled-back due to setRollbackOnly]: com.ibm.ws.LocalTransaction.RolledbackException
at com.ibm.ws.LocalTransaction.LocalTranCoordImpl.cleanup(LocalTranCoordImpl.java:1073)
at com.ibm.ws.webcontainer.webapp.WebAppTransactionCollaborator.postInvoke(WebAppTransactionCollaborator.java:249)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:708)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:182)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)


Last edited by sivamadala on Sun Feb 26, 2006 3:51 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 11:38 am 
Newbie

Joined: Sun Feb 26, 2006 12:37 am
Posts: 7
Hi Friends,
Can anybody please help me out quickly, i am kinda stuck, i am not able to progress, Thanks fo your Help..


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 11:54 am 
Newbie

Joined: Sun Feb 26, 2006 12:37 am
Posts: 7
Small Update from my side, Hibernate is able to read from the database, its not able to write into the database, the following code works:

Query q = session.createQuery("from Person");
List results = q.list();
for(Iterator it=results.iterator();it.hasNext();){
Person p = (Person)it.next();
out.print(p.getLastName());
out.print(p.getFirstName());
}

Guys please help me out whats going on, why i am able to write into database using JDBC code, and why i am getting this error [Servlet Error]-[LocalTransaction rolled-back due to setRollbackOnly]: com.ibm.ws.LocalTransaction.RolledbackException, when i try writing using HIBERNATE.

and i am using HIBERNATE latest release 3.1.2. I suppose this is more of a database issue, if i am guessing.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 1:30 pm 
Newbie

Joined: Sun Feb 26, 2006 12:37 am
Posts: 7
Few more updates from my side again, from the code i initially posted, i commented out the session.beginTransaction(), and then up on first request to the servlet, Hibernate inserted a row in to the data base, i jumped with joy, to believe if i am seeing correctr, i made a request again, then a Nuill pointer exception:
[2/26/06 10:46:08:266 CST] 54fca886 SettingsFacto I org.hibernate.cfg.SettingsFactory Structured second-level cache entries: disabled[2/26/06 10:46:08:281 CST] 54fca886 SystemErr R java.lang.NullPointerException
[2/26/06 10:46:08:281 CST] 54fca886 SystemErr R at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
[2/26/06 10:46:08:281 CST] 54fca886 SystemErr R at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedStatement.java:3401)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.resetStatement(WSJdbcConnection.java:1762)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1458)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1424)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:442)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:93)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:86)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:171)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2048)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2427)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.siva.seminar.web.controller.TestServlet.doGet(TestServlet.java:43)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[2/26/06 10:46:08:297 CST] 54fca886 SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)


this time i might sound funny, again i hit the servlet, it inserted a row, so on every alternate request its throwing the null pointer exception. can any body tell me whats wrong i am doing? first of all i can not commnet beginTransaction, if i was using beginTransaction, then its back to sqaure, transaction rolled back exception. Does any body think this is a BUG in hibernate's latest version(I know there can not be, i must be wrong as i am a beginner).


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 2:10 pm 
Regular
Regular

Joined: Wed Feb 08, 2006 3:59 pm
Posts: 75
Code:
session.beginTransaction();

alone isn't enough, you've got to do :
Code:
Transaction tx = session.beginTransaction();
// do sthg
tx.commit();


And you've got to handle errors (tx.rollback() or tx.commit() depending on the problem)

If you don't commit a transaction you created, Hibernate will rollback it.
This said, you shouldn't create a Configuration and a SessionFactory for each request (this is time consumming), you should also close the Session you opened.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 26, 2006 3:47 pm 
Newbie

Joined: Sun Feb 26, 2006 12:37 am
Posts: 7
Thanks the-gtm for the reply, as you said i modified the code to the following:
Session session = factory.openSession();
Transaction tx = session.beginTransaction();
session.save(person);
session.flush();
tx.commit();
session.close();


But i am getting the following exception with every alternate request, i defineltly understand that i souldnt create Configuration, and SessionFactory with every request, i am just doing it for testing purposes.

[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory RDBMS: Oracle, version: Personal Oracle9i Release 9.2.0.1.0 - Production
With the Partitioning, OLAP and Oracle Data Mining options
JServer Release 9.2.0.1.0 - Production
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC driver: Oracle JDBC driver, version: 9.2.0.1.0
[2/26/06 13:41:53:797 CST] 54e344ea Dialect I org.hibernate.dialect.Dialect Using dialect: org.hibernate.dialect.Oracle9Dialect
[2/26/06 13:41:53:797 CST] 54e344ea TransactionFa I org.hibernate.transaction.TransactionFactoryFactory Using default transaction strategy (direct JDBC transactions)
[2/26/06 13:41:53:797 CST] 54e344ea TransactionMa I org.hibernate.transaction.TransactionManagerLookupFactory No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Automatic flush during beforeCompletion(): disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Automatic session close at end of transaction: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC batch size: 15
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC batch updates for versioned data: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Scrollable result sets: enabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory JDBC3 getGeneratedKeys(): disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Connection release mode: auto
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Default batch fetch size: 1
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Generate SQL with comments: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Order SQL updates by primary key: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
[2/26/06 13:41:53:797 CST] 54e344ea ASTQueryTrans I org.hibernate.hql.ast.ASTQueryTranslatorFactory Using ASTQueryTranslatorFactory
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Query language substitutions: {}
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Second-level cache: enabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Query cache: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Cache provider: org.hibernate.cache.EhCacheProvider
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Optimize cache for minimal puts: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Structured second-level cache entries: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Statistics: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Deleted entity synthetic identifier rollback: disabled
[2/26/06 13:41:53:797 CST] 54e344ea SettingsFacto I org.hibernate.cfg.SettingsFactory Default entity-mode: pojo
[2/26/06 13:41:53:812 CST] 54e344ea SessionFactor I org.hibernate.impl.SessionFactoryImpl building session factory
[2/26/06 13:41:53:828 CST] 54e344ea SessionFactor I org.hibernate.impl.SessionFactoryObjectFactory Not binding factory to JNDI, no JNDI name configured
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R java.lang.NullPointerException
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at oracle.jdbc.dbaccess.DBData.clearItem(DBData.java:431)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at oracle.jdbc.dbaccess.DBDataSetImpl.clearItem(DBDataSetImpl.java:3528)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at oracle.jdbc.driver.OraclePreparedStatement.clearParameters(OraclePreparedStatement.java:3401)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.resetStatement(WSJdbcConnection.java:1762)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1458)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.rsadapter.jdbc.WSJdbcConnection.prepareStatement(WSJdbcConnection.java:1424)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:442)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:93)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareStatement(AbstractBatcher.java:86)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.jdbc.AbstractBatcher.prepareBatchStatement(AbstractBatcher.java:171)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2048)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2427)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:51)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:243)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:227)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:140)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:296)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1009)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.siva.seminar.web.controller.TestServlet.doGet(TestServlet.java:41)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.servlet.StrictServletInstance.doService(StrictServletInstance.java:110)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet._service(StrictLifecycleServlet.java:174)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.servlet.IdleServletState.service(StrictLifecycleServlet.java:313)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.servlet.StrictLifecycleServlet.service(StrictLifecycleServlet.java:116)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstance.service(ServletInstance.java:283)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.servlet.ValidServletReferenceState.dispatch(ValidServletReferenceState.java:42)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.servlet.ServletInstanceReference.dispatch(ServletInstanceReference.java:40)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.handleWebAppDispatch(WebAppRequestDispatcher.java:983)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:564)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
[2/26/06 13:41:53:828 CST] 54e344ea SystemErr R at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)
[2/26/06 13:41:53:828 CST] 54e344ea LocalTranCoor E WLTC0033E: Resource jdbc/OraDS rolled back in cleanup of unresolved LocalTransactionContainment.
[2/26/06 13:41:53:844 CST] 54e344ea LocalTranCoor E WLTC0032E: One or more resources rolled back. An unresolved LocalTransactionContainment had an unresolved action of rollback.
[2/26/06 13:41:53:844 CST] 54e344ea WebAppTransac E WTRN0043I: LocalTransaction rolled-back due to setRollbackOnly.
[2/26/06 13:41:53:859 CST] 54e344ea WebGroup E SRVE0026E: [Servlet Error]-[LocalTransaction rolled-back due to setRollbackOnly]: com.ibm.ws.LocalTransaction.RolledbackException
at com.ibm.ws.LocalTransaction.LocalTranCoordImpl.cleanup(LocalTranCoordImpl.java:1073)
at com.ibm.ws.webcontainer.webapp.WebAppTransactionCollaborator.postInvoke(WebAppTransactionCollaborator.java:249)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.dispatch(WebAppRequestDispatcher.java:708)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:200)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.doForward(WebAppInvoker.java:119)
at com.ibm.ws.webcontainer.srt.WebAppInvoker.handleInvocationHook(WebAppInvoker.java:276)
at com.ibm.ws.webcontainer.cache.invocation.CachedInvocation.handleInvocation(CachedInvocation.java:71)
at com.ibm.ws.webcontainer.cache.invocation.CacheableInvocationContext.invoke(CacheableInvocationContext.java:116)
at com.ibm.ws.webcontainer.srp.ServletRequestProcessor.dispatchByURI(ServletRequestProcessor.java:186)
at com.ibm.ws.webcontainer.oselistener.OSEListenerDispatcher.service(OSEListener.java:334)
at com.ibm.ws.webcontainer.http.HttpConnection.handleRequest(HttpConnection.java:56)
at com.ibm.ws.http.HttpConnection.readAndHandleRequest(HttpConnection.java:618)
at com.ibm.ws.http.HttpConnection.run(HttpConnection.java:439)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:672)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 27, 2006 12:51 am 
Newbie

Joined: Sun Feb 26, 2006 12:37 am
Posts: 7
Geeks,
Please try to answer my question pls? thanks..


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 27, 2006 11:05 am 
Newbie

Joined: Sun Feb 26, 2006 12:37 am
Posts: 7
Looks like the problem is with the oracle driver itself, i should probably update my classes12.zip with the latest one,
I found some information from the below link:

http://opensource2.atlassian.com/projec ... wse/HB-771


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 8 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.