This week's book giveaway is in the Reactive Progamming forum.
We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line!
See this thread for details.
Win a copy of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams this week in the Reactive Progamming forum!

juilee rawale

Greenhorn
+ Follow
since Aug 31, 2005
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 juilee rawale

Hi,
I am also getting similar exception. I am using spring-hibernate to insert/update data and then executing procedures using CallableStatement.

It gives error as

2007-06-20 12:49:02:422|DEBUG - HibernateBreaksDataRepository.saveOrUpdate (54 ) | Hibernate Breaks Data Repository, Going to save Broker Breaks Confirms
2007-06-20 12:49:02:552|WARN - JDBCExceptionReporter.logExceptions (71 ) | SQL Error: 1205, SQLState: 40001
2007-06-20 12:49:02:553|ERROR - JDBCExceptionReporter.logExceptions (72 ) | Your server command (family id #0, process id #896) encountered a deadlock situation. Please re-run your command.

2007-06-20 12:49:03:390|WARN - JDBCExceptionReporter.logExceptions (71 ) | SQL Error: 1205, SQLState: 40001
2007-06-20 12:49:03:391|ERROR - JDBCExceptionReporter.logExceptions (72 ) | Your server command (family id #0, process id #3270) encountered a deadlock situation. Please re-run your command.

2007-06-20 12:49:03:396|DEBUG - HibernateBreaksDataRepository.updateActiveStatus(129 ) | -------------------Active Status updated successfully.
2007-06-20 12:49:03:401|DEBUG - HibernateBreaksDataRepository.saveOrUpdate (54 ) | Hibernate Breaks Data Repository, Going to save Broker Breaks Confirms
2007-06-20 12:49:03:411|ERROR - BreaksDataReceiver.processBreaksData(129 ) | Unable to persist the Broker Breaks Confirms :
org.springframework.dao.CannotAcquireLockException: could not insert: [com.ubsw.lfs.breaksReporting.breaks.domain.BrokerConfirmBreaks]; nested exception is org.hibernate.exception.LockAcquisitionException: could not insert: [com.ubsw.lfs.breaksReporting.breaks.domain.BrokerConfirmBreaks]
Caused by:
org.hibernate.exception.LockAcquisitionException: could not insert: [com.ubsw.lfs.breaksReporting.breaks.domain.BrokerConfirmBreaks]
at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:82)
at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1986)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2405)
at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:37)
at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:248)
at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:269)
at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:167)
at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:101)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:98)
at org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:502)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:494)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:490)
at org.springframework.orm.hibernate3.HibernateTemplate$16.doInHibernate(HibernateTemplate.java:684)
at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:367)
at org.springframework.orm.hibernate3.HibernateTemplate.saveOrUpdate(HibernateTemplate.java:681)
at com.ubsw.lfs.breaksReporting.breaks.repository.HibernateBreaksDataRepository.saveOrUpdate(HibernateBreaksDataRepository.java:55)
at sun.reflect.GeneratedMethodAccessor48.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:299)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:139)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy1.saveOrUpdate(Unknown Source)
at com.ubsw.lfs.breaksReporting.breaks.service.DefaultBreaksDataService.saveBreaksData(DefaultBreaksDataService.java:28)
at com.ubsw.lfs.breaksReporting.breaks.BreaksDataReceiver.processBreaksData(BreaksDataReceiver.java:126)
at com.ubsw.lfs.breaksReporting.breaks.BreaksDataReceiver$$FastClassByCGLIB$$e590f10e.invoke(<generated>
at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)
at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:621)
at com.ubsw.lfs.breaksReporting.breaks.BreaksDataReceiver$$EnhancerByCGLIB$$6e7c5448.processBreaksData(<generated>
at sun.reflect.GeneratedMethodAccessor26.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:270)
at org.springframework.jms.listener.adapter.MessageListenerAdapter.invokeListenerMethod(MessageListenerAdapter.java:451)
at org.springframework.jms.listener.adapter.MessageListenerAdapter.onMessage(MessageListenerAdapter.java:353)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:480)
at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:441)
at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:414)
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:293)
at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:239)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:872)
at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:812)
at java.lang.Thread.run(Thread.java:595)
Caused by: com.sybase.jdbc2.jdbc.SybSQLException: Your server command (family id #0, process id #896) encountered a deadlock situation. Please re-run your command.

at com.sybase.jdbc2.tds.Tds.processEed(Tds.java:2408)
at com.sybase.jdbc2.tds.Tds.nextResult(Tds.java:1844)
at com.sybase.jdbc2.jdbc.ResultGetter.nextResult(ResultGetter.java:69)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:201)
at com.sybase.jdbc2.jdbc.SybStatement.nextResult(SybStatement.java:182)
at com.sybase.jdbc2.jdbc.SybStatement.executeLoop(SybStatement.java:1535)
at com.sybase.jdbc2.jdbc.SybStatement.execute(SybStatement.java:1527)
at com.sybase.jdbc2.jdbc.SybPreparedStatement.execute(SybPreparedStatement.java:511)
at org.apache.commons.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:168)
at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:1953)
... 47 more
2007-06-20 12:49:03:412|DEBUG - HibernateBreaksDataRepository.executeFIPBLoad(205 ) | ------------------FIPB US Breaks loaded successfully.

ne ideas how can that be resolved.. do i need to change ne hibernate related setting??

pls help

Thanks
Hi,
I m new to XMLBeans.
Please help me to know how to find value of an element that contains attribute.
<InstrumentRatingMap>
<id>898</id>
<instrumentId>1677</instrumentId>
<instrumentRatingId code="MOODLLC:A3">82</instrumentRatingId>
</InstrumentRatingMap>

how to extract value of instrumentRatingId (value 82)
I have paginated the file and formed object of class Book pages_. pages_ contains Printable i.e. objects of class implementing Printable interface. If I want to print 1-3 pages I paginate the file and append 1-3 pages to pages_. After this I have used

job_ = PrinterJob.getPrinterJob();
job_.setPrintService(selectedService_);
job_.setPageable(pages_);
job_.print(aset_);

i.e. pages_ contains all those pages which I want to print.
In case of Linux advanced server 4 all these pages get printed, but in case of Linux advanced server 3 printer just skips blank pages. If there are 3 pages to print it will skip 3 blank pages!!!
13 years ago
not working means its not printing any data from the file.
on Linux advanced server 4 the file is properly printed, but on Linux advanced server 3 the printer just skips pages. i.e. if I try to print 3 pages it skips 3 blank pages and doesn't print anything

plz help me to find the reason

13 years ago
Hi all,

I am trying to develop application to print text file from java, on linux. I have paginated the text file and have formed object of Book class. Then I have used
job_ = PrinterJob.getPrinterJob();
job_.setPrintService(selectedService_);
job_.setPageable(pages_); //pages object of Book class
job_.print(aset_); //aset_ object of PrintRequestAttributeSet
This is working on Linux advanced server 4 but not on Linux advanced server 3.

Can anyone help me to find out what can be the problem???
13 years ago
Thanks Adeel,
I am going to try this.
14 years ago
Hi,
I am facing similar problem. I am trying to print from JSP to a shared printer. My application server JBOSS 3, printer and the client are on different linux advanced server 3 machines.

I am getting the exception

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at java.awt.Font.initializeFont(Font.java:308)
at java.awt.Font.<init>(Font.java:344)
at dm.web.reports.TextPage.<init>(Unknown Source)
at dm.web.reports.TextFile.paginate(Unknown Source)
at dm.web.reports.PrintReportUtil.printDocument(Unknown Source)

I tried using
1. setting JAVA_OPTS to -Djava.awt.headless=true in run.sh
2. calling System.setProperty( "java.awt.headless", "true" ); in jspInit() in my jsp
but it didn't help!!!

This problem is not coming on Linux advanced server 4. But, I want to run it on Linux advanced server 3

Plzzzzzz help
14 years ago