error message is :
-----------------------------------------
ERROR: java.sql.SQLException: Io 异常: Connection reset by peer: JVM_recv in
socket input stream read
>>>> EJB LOG >>>>
HeuristicHazard in commit_one_phase
exception org.omg.CosTransactions.HeuristicHazard {}
at
com.inprise.visitransact.jdbc1x.ConnectionParticipant.commit_one_phase(Conne
ctionProxy.java:152)
at com.inprise.ejb.jts.Transaction.commit(Transaction.java:251)
at org.omg.CosTransactions._TerminatorStub.commit(_TerminatorStub.java:27)
at com.inprise.ejb.jts.gen._TxStub.commit(_TxStub.java:46)
at
com.visigenic.services.CosTransactions.CurrentImpl.commit(CurrentImpl.java:2
55)
at
com.visigenic.services.CosTransactions.TSCurrentManager.commit(TSCurrentMana
ger.java:87)
at
com.inprise.visitransact.jta.UserTransaction.commit(UserTransaction.java:31)
at com.inprise.ejb.Dispatcher.doInvoke(Dispatcher.java:1323)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:572)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:548)
at com.inprise.ejb.Dispatcher.invoke(Dispatcher.java:255)
at
com.alltobid.newsandbulletin.session.remote.NewsPOAInvokeHandler.addNews(New
sPOAInvokeHandler.java:69)
at
com.alltobid.newsandbulletin.session.remote.NewsPOAInvokeHandler.addNews(New
sPOAInvokeHandler.java:110)
at
com.alltobid.newsandbulletin.session.remote.NewsPOA._invoke(NewsPOA.java:82)
at
com.alltobid.newsandbulletin.session.remote.NewsPOA._invoke(NewsPOA.java:46)
at com.inprise.vbroker.poa.POAImpl.invoke(POAImpl.java:2355)
at
com.inprise.vbroker.poa.ActivationRecord.invoke(ActivationRecord.java:104)
at
com.inprise.vbroker.poa.ServerInterceptorManager$ARWrapper.invoke(ServerInte
rceptorManager.java:64)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.j
ava:492)
at
com.inprise.vbroker.IIOP.ServerProtocolAdapter.doRequest(ServerProtocolAdapt
er.java:64)
at
com.inprise.vbroker.GIOP.GiopProtocolAdapter.dispatchMessage(GiopProtocolAda
pter.java:653)
at
com.inprise.vbroker.orb.TPDispatcherImpl$TPDispatcher.run(TPDispatcherImpl.j
ava:99)
at com.inprise.vbroker.orb.ThreadPool$PoolWorker.run(ThreadPool.java:76)
<<<< EJB LOG <<<<
I know there's a VM parameter called EJBCmpMaxBlobSize that you can use to
set the max size of blobs for the CMP. But I'm almost sure the default max
was 10000 bytes and that the container would give a hint in the Exception
about
the EJBCmpMaxBlobSize if it had been exceeded. Well it probably doesn't hurt
to try EJBCmpMaxBlobSize to see if it helps.
If you are running the container in JBuilder you add it as a VM parameter
like this
-DEJBCmpMaxBlobSize=100000
These can be set it in the run configuration on the EJB tab or in project
properties in the Run -> EJB tab.
If you're running in the appserver then start the AppServer Console and
right click on your AppServer, chose Edit Properties and click on the
Configuration File
tab. You can now add a new line with
vmparam -DEJBCmpMaxBlobSize=100000
in the modifiable section of the configuration file.
/Pontus
"BlueHand" <Blue...@163.com> wrote in message news:3bd77443_1@dnews...