jack_ganzha 22 de jul. de 2004
Se bem me lembro, um close da session tenta realizar o commit (connection.commit()) e assim vc o faz não pela transaction e sim pela session. O ideal seria alterar seu codigo para que ficasse assim:
Context ctx = new InitialContext();
SessionFactory factory = (SessionFactory) ctx.lookup("java:/hibernate/HibernateFactory");
session = factory.openSession();
Connection conn = null;
AutorPK autorPK = new AutorPK();
Transaction t = session.beginTransaction();
session.save(autor);
t.commit();
session.close();
O commit da transaction dispensa o uso do flush.
valeuz...
cezbatistao 23 de jul. de 2004
então… fiz essa modificação q vc disse… mas msm assim… continua dano o msm erro… =
08 &# 58 ; 29 &# 58 ; 01 , 769 INFO &# 91 ; STDOUT &# 93 ; &# 91 ; AutorDAO &# 93 ; - session . save &# 40 ; autor &# 41 ;;
08 &# 58 ; 29 &# 58 ; 01 , 831 WARN &# 91 ; JDBCExceptionReporter &# 93 ; SQL Error &# 58 ; 0 , SQLState &# 58 ; null
08 &# 58 ; 29 &# 58 ; 01 , 831 ERROR &# 91 ; JDBCExceptionReporter &# 93 ; You cannot commit during a managed transaction !
08 &# 58 ; 29 &# 58 ; 01 , 831 ERROR &# 91 ; JDBCExceptionReporter &# 93 ; Could not save object
java . sql . SQLException &# 58 ; You cannot commit during a managed transaction !
at or g . jboss . resource . adapter . jdbc . BaseWrapperManagedConnection . jdbcCommit &# 40 ; BaseWrapperManagedConnection . java &# 58 ; 407 &# 41 ;
at or g . jboss . resource . adapter . jdbc . WrappedConnection . commit &# 40 ; WrappedConnection . java &# 58 ; 477 &# 41 ;
at net . sf . hibernate . id . Tab leGenerator . generate &# 40 ; Tab leGenerator . java &# 58 ; 126 &# 41 ;
at net . sf . hibernate . id . Tab leHiLoGenerator . generate &# 40 ; Tab leHiLoGenerator . java &# 58 ; 59 &# 41 ;
at net . sf . hibernate . impl . SessionImpl . save WithGeneratedIdentifier &# 40 ; SessionImpl . java &# 58 ; 728 &# 41 ;
at net . sf . hibernate . impl . SessionImpl . save &# 40 ; SessionImpl . java &# 58 ; 718 &# 41 ;
at br . com . j2bc . sgs . core . model . eis . hibernate . dao . AutorDAO . insertAutor &# 40 ; Unknown Source &# 41 ;
at br . com . j2bc . sgs . core . model . eisfacade . EisFacadeBean . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer$ Cont ainerInterceptor . invoke &# 40 ; StatelessSessionContainer . java &# 58 ; 683 &# 41 ;
at or g . jboss . resource . connectionmanager . CachedConnectionInterceptor . invoke &# 40 ; CachedConnectionInterceptor . java &# 58 ; 186 &# 41 ;
at or g . jboss . ejb . plugins . StatelessSessionInstanceInterceptor . invoke &# 40 ; StatelessSessionInstanceInterceptor . java &# 58 ; 72 &# 41 ;
at or g . jboss . ejb . plugins . Abs tractTxInterceptor . invokeNext &# 40 ; Abs tractTxInterceptor . java &# 58 ; 84 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . run WithTransactions &# 40 ; TxInterceptorCMT . java &# 58 ; 267 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . invoke &# 40 ; TxInterceptorCMT . java &# 58 ; 128 &# 41 ;
at or g . jboss . ejb . plugins . SecurityInterceptor . invoke &# 40 ; SecurityInterceptor . java &# 58 ; 118 &# 41 ;
at or g . jboss . ejb . plugins . LogInt erceptor . invoke &# 40 ; LogInt erceptor . java &# 58 ; 191 &# 41 ;
at or g . jboss . ejb . plugins . ProxyFactoryFinderInterceptor . invoke &# 40 ; ProxyFactoryFinderInterceptor . java &# 58 ; 122 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer . int ernalInvoke &# 40 ; StatelessSessionContainer . java &# 58 ; 331 &# 41 ;
at or g . jboss . ejb . Cont ainer . invoke &# 40 ; Cont ainer . java &# 58 ; 700 &# 41 ;
at or g . jboss . ejb . plugins . local . BaseLocalProxyFactory . invoke &# 40 ; BaseLocalProxyFactory . java &# 58 ; 353 &# 41 ;
at or g . jboss . ejb . plugins . local . StatelessSessionProxy . invoke &# 40 ; StatelessSessionProxy . java &# 58 ; 83 &# 41 ;
at $ Proxy85 . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at br . com . j2bc . sgs . core . crudmanager . CrudManagerBean . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer$ Cont ainerInterceptor . invoke &# 40 ; StatelessSessionContainer . java &# 58 ; 683 &# 41 ;
at or g . jboss . resource . connectionmanager . CachedConnectionInterceptor . invoke &# 40 ; CachedConnectionInterceptor . java &# 58 ; 186 &# 41 ;
at or g . jboss . ejb . plugins . StatelessSessionInstanceInterceptor . invoke &# 40 ; StatelessSessionInstanceInterceptor . java &# 58 ; 72 &# 41 ;
at or g . jboss . ejb . plugins . Abs tractTxInterceptor . invokeNext &# 40 ; Abs tractTxInterceptor . java &# 58 ; 84 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . run WithTransactions &# 40 ; TxInterceptorCMT . java &# 58 ; 267 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . invoke &# 40 ; TxInterceptorCMT . java &# 58 ; 128 &# 41 ;
at or g . jboss . ejb . plugins . SecurityInterceptor . invoke &# 40 ; SecurityInterceptor . java &# 58 ; 118 &# 41 ;
at or g . jboss . ejb . plugins . LogInt erceptor . invoke &# 40 ; LogInt erceptor . java &# 58 ; 191 &# 41 ;
at or g . jboss . ejb . plugins . ProxyFactoryFinderInterceptor . invoke &# 40 ; ProxyFactoryFinderInterceptor . java &# 58 ; 122 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer . int ernalInvoke &# 40 ; StatelessSessionContainer . java &# 58 ; 331 &# 41 ;
at or g . jboss . ejb . Cont ainer . invoke &# 40 ; Cont ainer . java &# 58 ; 700 &# 41 ;
at or g . jboss . ejb . plugins . local . BaseLocalProxyFactory . invoke &# 40 ; BaseLocalProxyFactory . java &# 58 ; 353 &# 41 ;
at or g . jboss . ejb . plugins . local . StatelessSessionProxy . invoke &# 40 ; StatelessSessionProxy . java &# 58 ; 83 &# 41 ;
at $ Proxy84 . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at br . com . j2bc . sgs . core . facade . SGSFacadeBean . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer$ Cont ainerInterceptor . invoke &# 40 ; StatelessSessionContainer . java &# 58 ; 683 &# 41 ;
at or g . jboss . resource . connectionmanager . CachedConnectionInterceptor . invoke &# 40 ; CachedConnectionInterceptor . java &# 58 ; 186 &# 41 ;
at or g . jboss . ejb . plugins . StatelessSessionInstanceInterceptor . invoke &# 40 ; StatelessSessionInstanceInterceptor . java &# 58 ; 72 &# 41 ;
at or g . jboss . ejb . plugins . Abs tractTxInterceptor . invokeNext &# 40 ; Abs tractTxInterceptor . java &# 58 ; 84 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . run WithTransactions &# 40 ; TxInterceptorCMT . java &# 58 ; 267 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . invoke &# 40 ; TxInterceptorCMT . java &# 58 ; 128 &# 41 ;
at or g . jboss . ejb . plugins . SecurityInterceptor . invoke &# 40 ; SecurityInterceptor . java &# 58 ; 118 &# 41 ;
at or g . jboss . ejb . plugins . LogInt erceptor . invoke &# 40 ; LogInt erceptor . java &# 58 ; 191 &# 41 ;
at or g . jboss . ejb . plugins . ProxyFactoryFinderInterceptor . invoke &# 40 ; ProxyFactoryFinderInterceptor . java &# 58 ; 122 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer . int ernalInvoke &# 40 ; StatelessSessionContainer . java &# 58 ; 331 &# 41 ;
at or g . jboss . ejb . Cont ainer . invoke &# 40 ; Cont ainer . java &# 58 ; 700 &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . mx . capability . ReflectedMBeanDispatcher . invoke &# 40 ; ReflectedMBeanDispatcher . java &# 58 ; 284 &# 41 ;
at or g . jboss . mx . server . MBeanServerImpl . invoke &# 40 ; MBeanServerImpl . java &# 58 ; 546 &# 41 ;
at or g . jboss . invocation . jrmp . server . JRMPInvoker . invoke &# 40 ; JRMPInvoker . java &# 58 ; 362 &# 41 ;
at sun . reflect . GeneratedMethodAccessor109 . invoke &# 40 ; Unknown Source &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at sun . rmi . server . UnicastServerRef . dispatch &# 40 ; UnicastServerRef . java &# 58 ; 261 &# 41 ;
at sun . rmi . transport . Transport$ 1. run &# 40 ; Transport . java &# 58 ; 148 &# 41 ;
at java . security . AccessController . doPrivileged &# 40 ; Native Method &# 41 ;
at sun . rmi . transport . Transport . serviceCall &# 40 ; Transport . java &# 58 ; 144 &# 41 ;
at sun . rmi . transport . tcp . TCPTransport . handleMessages &# 40 ; TCPTransport . java &# 58 ; 460 &# 41 ;
at sun . rmi . transport . tcp . TCPTransport$ConnectionHandler . run &# 40 ; TCPTransport . java &# 58 ; 701 &# 41 ;
at java . lang . Thread . run &# 40 ; Thread . java &# 58 ; 536 &# 41 ;
08 &# 58 ; 29 &# 58 ; 02 , 019 ERROR &# 91 ; EisFacadeBean &# 93 ; net . sf . hibernate . JDBCException &# 58 ; Could not save object
08 &# 58 ; 29 &# 58 ; 02 , 019 ERROR &# 91 ; CrudManagerBean &# 93 ; br . com . j2bc . exception . SGSInsercaoBancoFalhouException
08 &# 58 ; 29 &# 58 ; 02 , 035 ERROR &# 91 ; SGSFacadeBean &# 93 ; SGSAutorInsercaoBancoFalhouException
br . com . j2bc . sgs . core . exception . autor . SGSAutorInsercaoBancoFalhouException
at br . com . j2bc . sgs . core . crudmanager . CrudManagerBean . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer$ Cont ainerInterceptor . invoke &# 40 ; StatelessSessionContainer . java &# 58 ; 683 &# 41 ;
at or g . jboss . resource . connectionmanager . CachedConnectionInterceptor . invoke &# 40 ; CachedConnectionInterceptor . java &# 58 ; 186 &# 41 ;
at or g . jboss . ejb . plugins . StatelessSessionInstanceInterceptor . invoke &# 40 ; StatelessSessionInstanceInterceptor . java &# 58 ; 72 &# 41 ;
at or g . jboss . ejb . plugins . Abs tractTxInterceptor . invokeNext &# 40 ; Abs tractTxInterceptor . java &# 58 ; 84 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . run WithTransactions &# 40 ; TxInterceptorCMT . java &# 58 ; 267 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . invoke &# 40 ; TxInterceptorCMT . java &# 58 ; 128 &# 41 ;
at or g . jboss . ejb . plugins . SecurityInterceptor . invoke &# 40 ; SecurityInterceptor . java &# 58 ; 118 &# 41 ;
at or g . jboss . ejb . plugins . LogInt erceptor . invoke &# 40 ; LogInt erceptor . java &# 58 ; 191 &# 41 ;
at or g . jboss . ejb . plugins . ProxyFactoryFinderInterceptor . invoke &# 40 ; ProxyFactoryFinderInterceptor . java &# 58 ; 122 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer . int ernalInvoke &# 40 ; StatelessSessionContainer . java &# 58 ; 331 &# 41 ;
at or g . jboss . ejb . Cont ainer . invoke &# 40 ; Cont ainer . java &# 58 ; 700 &# 41 ;
at or g . jboss . ejb . plugins . local . BaseLocalProxyFactory . invoke &# 40 ; BaseLocalProxyFactory . java &# 58 ; 353 &# 41 ;
at or g . jboss . ejb . plugins . local . StatelessSessionProxy . invoke &# 40 ; StatelessSessionProxy . java &# 58 ; 83 &# 41 ;
at $ Proxy84 . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at br . com . j2bc . sgs . core . facade . SGSFacadeBean . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer$ Cont ainerInterceptor . invoke &# 40 ; StatelessSessionContainer . java &# 58 ; 683 &# 41 ;
at or g . jboss . resource . connectionmanager . CachedConnectionInterceptor . invoke &# 40 ; CachedConnectionInterceptor . java &# 58 ; 186 &# 41 ;
at or g . jboss . ejb . plugins . StatelessSessionInstanceInterceptor . invoke &# 40 ; StatelessSessionInstanceInterceptor . java &# 58 ; 72 &# 41 ;
at or g . jboss . ejb . plugins . Abs tractTxInterceptor . invokeNext &# 40 ; Abs tractTxInterceptor . java &# 58 ; 84 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . run WithTransactions &# 40 ; TxInterceptorCMT . java &# 58 ; 267 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . invoke &# 40 ; TxInterceptorCMT . java &# 58 ; 128 &# 41 ;
at or g . jboss . ejb . plugins . SecurityInterceptor . invoke &# 40 ; SecurityInterceptor . java &# 58 ; 118 &# 41 ;
at or g . jboss . ejb . plugins . LogInt erceptor . invoke &# 40 ; LogInt erceptor . java &# 58 ; 191 &# 41 ;
at or g . jboss . ejb . plugins . ProxyFactoryFinderInterceptor . invoke &# 40 ; ProxyFactoryFinderInterceptor . java &# 58 ; 122 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer . int ernalInvoke &# 40 ; StatelessSessionContainer . java &# 58 ; 331 &# 41 ;
at or g . jboss . ejb . Cont ainer . invoke &# 40 ; Cont ainer . java &# 58 ; 700 &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . mx . capability . ReflectedMBeanDispatcher . invoke &# 40 ; ReflectedMBeanDispatcher . java &# 58 ; 284 &# 41 ;
at or g . jboss . mx . server . MBeanServerImpl . invoke &# 40 ; MBeanServerImpl . java &# 58 ; 546 &# 41 ;
at or g . jboss . invocation . jrmp . server . JRMPInvoker . invoke &# 40 ; JRMPInvoker . java &# 58 ; 362 &# 41 ;
at sun . reflect . GeneratedMethodAccessor109 . invoke &# 40 ; Unknown Source &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at sun . rmi . server . UnicastServerRef . dispatch &# 40 ; UnicastServerRef . java &# 58 ; 261 &# 41 ;
at sun . rmi . transport . Transport$ 1. run &# 40 ; Transport . java &# 58 ; 148 &# 41 ;
at java . security . AccessController . doPrivileged &# 40 ; Native Method &# 41 ;
at sun . rmi . transport . Transport . serviceCall &# 40 ; Transport . java &# 58 ; 144 &# 41 ;
at sun . rmi . transport . tcp . TCPTransport . handleMessages &# 40 ; TCPTransport . java &# 58 ; 460 &# 41 ;
at sun . rmi . transport . tcp . TCPTransport$ConnectionHandler . run &# 40 ; TCPTransport . java &# 58 ; 701 &# 41 ;
at java . lang . Thread . run &# 40 ; Thread . java &# 58 ; 536 &# 41 ;
Caused by &# 58 ; br . com . j2bc . exception . SGSInsercaoBancoFalhouException
at br . com . j2bc . sgs . core . model . eisfacade . EisFacadeBean . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke0 &# 40 ; Native Method &# 41 ;
at sun . reflect . NativeMethodAccessorImpl . invoke &# 40 ; NativeMethodAccessorImpl . java &# 58 ; 39 &# 41 ;
at sun . reflect . DelegatingMethodAccessorImpl . invoke &# 40 ; DelegatingMethodAccessorImpl . java &# 58 ; 25 &# 41 ;
at java . lang . reflect . Method . invoke &# 40 ; Method . java &# 58 ; 324 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer$ Cont ainerInterceptor . invoke &# 40 ; StatelessSessionContainer . java &# 58 ; 683 &# 41 ;
at or g . jboss . resource . connectionmanager . CachedConnectionInterceptor . invoke &# 40 ; CachedConnectionInterceptor . java &# 58 ; 186 &# 41 ;
at or g . jboss . ejb . plugins . StatelessSessionInstanceInterceptor . invoke &# 40 ; StatelessSessionInstanceInterceptor . java &# 58 ; 72 &# 41 ;
at or g . jboss . ejb . plugins . Abs tractTxInterceptor . invokeNext &# 40 ; Abs tractTxInterceptor . java &# 58 ; 84 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . run WithTransactions &# 40 ; TxInterceptorCMT . java &# 58 ; 267 &# 41 ;
at or g . jboss . ejb . plugins . TxInterceptorCMT . invoke &# 40 ; TxInterceptorCMT . java &# 58 ; 128 &# 41 ;
at or g . jboss . ejb . plugins . SecurityInterceptor . invoke &# 40 ; SecurityInterceptor . java &# 58 ; 118 &# 41 ;
at or g . jboss . ejb . plugins . LogInt erceptor . invoke &# 40 ; LogInt erceptor . java &# 58 ; 191 &# 41 ;
at or g . jboss . ejb . plugins . ProxyFactoryFinderInterceptor . invoke &# 40 ; ProxyFactoryFinderInterceptor . java &# 58 ; 122 &# 41 ;
at or g . jboss . ejb . StatelessSessionContainer . int ernalInvoke &# 40 ; StatelessSessionContainer . java &# 58 ; 331 &# 41 ;
at or g . jboss . ejb . Cont ainer . invoke &# 40 ; Cont ainer . java &# 58 ; 700 &# 41 ;
at or g . jboss . ejb . plugins . local . BaseLocalProxyFactory . invoke &# 40 ; BaseLocalProxyFactory . java &# 58 ; 353 &# 41 ;
at or g . jboss . ejb . plugins . local . StatelessSessionProxy . invoke &# 40 ; StatelessSessionProxy . java &# 58 ; 83 &# 41 ;
at $ Proxy85 . insertAutorPeloHibernate &# 40 ; Unknown Source &# 41 ;
... 52 more
Caused by &# 58 ; net . sf . hibernate . JDBCException &# 58 ; Could not save object
at net . sf . hibernate . impl . SessionImpl . save WithGeneratedIdentifier &# 40 ; SessionImpl . java &# 58 ; 745 &# 41 ;
at net . sf . hibernate . impl . SessionImpl . save &# 40 ; SessionImpl . java &# 58 ; 718 &# 41 ;
at br . com . j2bc . sgs . core . model . eis . hibernate . dao . AutorDAO . insertAutor &# 40 ; Unknown Source &# 41 ;
... 71 more
Caused by &# 58 ; java . sql . SQLException &# 58 ; You cannot commit during a managed transaction !
at or g . jboss . resource . adapter . jdbc . BaseWrapperManagedConnection . jdbcCommit &# 40 ; BaseWrapperManagedConnection . java &# 58 ; 407 &# 41 ;
at or g . jboss . resource . adapter . jdbc . WrappedConnection . commit &# 40 ; WrappedConnection . java &# 58 ; 477 &# 41 ;
at net . sf . hibernate . id . Tab leGenerator . generate &# 40 ; Tab leGenerator . java &# 58 ; 126 &# 41 ;
at net . sf . hibernate . id . Tab leHiLoGenerator . generate &# 40 ; Tab leHiLoGenerator . java &# 58 ; 59 &# 41 ;
at net . sf . hibernate . impl . SessionImpl . save WithGeneratedIdentifier &# 40 ; SessionImpl . java &# 58 ; 728 &# 41 ;
... 73 more
se alguem puder me dar um help viu… pior q naum acho nda pela net! =
[]'s e valeu pela força…