Vijay Vishwanath

Greenhorn
+ Follow
since Apr 18, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vijay Vishwanath

I'm using Hibernate 3 in my application. I get the following error while committing the transaction:



Is there any way to find out which transient object the AddressEntity is referencing due to which I get the TransientObjectException.
I have set the log level for "log4j.logger.org.hibernate" to TRACE. Which part of the log will tell me that there is some transient object.

Thanks in advance,
Vijay
I have removed the clob column from the mapping file and then
tried inserting the record with just two fields (id and name) and
it worked fine, i get the problem only when I try to
insert the clob into the DB.
Can anyone help me resolve this problem?
thanks in advance.
Hello all,

I'm getting this error when i try to write a clob to the DB.

Exception in thread "main" java.lang.IllegalStateException: Active Spring transaction synchronization or active JTA transaction with specified [javax.transaction.TransactionManager] required
at org.springframework.jdbc.support.lob.LobCreatorUtils.registerTransactionSynchronization(LobCreatorUtils.java:79)
at org.springframework.orm.hibernate3.support.AbstractLobType.nullSafeSet(AbstractLobType.java:185)
at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:146)
at org.hibernate.persister.entity.AbstractEntityPersister.dehydrate(AbstractEntityPersister.java:1997)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2243)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2660)
at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:56)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:234)
at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:141)
at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:298)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at org.springframework.orm.hibernate3.HibernateAccessor.flushIfNecessary(HibernateAccessor.java:390)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:373)
at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:686)
at bgc.sfe.dao.impl.SampleClobDAOImpl.saveSampleClob(SampleClobDAOImpl.java:25)
at bgc.sfe.service.impl.ClobManagerImpl.saveSampleClob(ClobManagerImpl.java:24)
at bgc.sfe.client.CategoryTest.main(CategoryTest.java:77)

The source and mapping files are:














Am I not giving some info in the applicationcontext.xml file.
Please help me resolve this problem.
Thanks in Advance.
[ July 23, 2007: Message edited by: Vijay Vishwanath ]
thanks Craig, i have done this and it is working
but the column drag still works...
16 years ago
Hello everyone,

I'm using a JTable in my application. I have added a row sorter
for the JTable. This JTable is shown in "Edit" mode and "View" mode.
In the "View" mode, I have disable the JTable and also its JTableHeader.
The problem is, even after the header is disabled, it still accepts
mouse input and sorts the table which is exactly the opposite
of what i want the JTable to do.
I have tried googling and found somewhere that this is
a bug in java swing. If yes, is there a workaround for this?
If not, how do i disable the table header so that it doesnt
accept mouse input? Please help.

Thanks in advance.
16 years ago
Hello everyone,

I am using Stored procedures heavily my application.
What I could find out is that implicit cursors opened by
stored procedures are kept open, even after we close the
connection and statment. So whenever a procedure is called,
the statments opened are left open in
Session in Oracle. This is leading to SQLException
because database is having a maximum limit for
the number of open cursors it can allow.
I'm using Oracle 10g database.

Please help me overcome this open cursor problem.
Thanks in advance.
[ May 06, 2007: Message edited by: Vijay Vishwanath ]
hello everyone,

I'm using javamail api to access mail server from my application.
I get the following exception:

javax.mail.MessagingException: A15 NO Invalid message number
nested exception is:
com.sun.mail.iap.CommandFailedException: A15 NO Invalid message number
javax.mail.MessagingException: A10 NO Invalid message number
nested exception is:
com.sun.mail.iap.CommandFailedException: A10 NO Invalid message number


I tried googling but of no help.
Can anyone help me with this?
Thanks in advance.