Marshal error in Transaction service
shuangshuang qi <[email protected]> Wed, 29 May 2002 14:45:29 +0800 (CST)
| Newsgroups | gmane.comp.corba.openorb.devel |
|---|---|
| Message-ID | <[email protected]> |
--0-1835385652-1022654729=:23109
Content-Type: text/plain; charset=gb2312
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by project.exolab.org id g4SMuL916034
Hi,
I have a problem with simple transactions.
After successfully starting NameService,OTS server and WithoutResource=
.Server,
I tried the WithoutResource client with the following result
H:\pwe\try_openorb>java WithoutResource.BankClient -ORBProfile=3Dots
-------------------------------------------------
Bank client
-------------------------------------------------
Select an option :
0. Quit
1. Create a new account.
2. Get an account information.
3. Make a transfer.
Your choice : 1
- Create a new account -
------------------------
Name : me
Initial balance : 100
org.omg.CORBA.MARSHAL: minor code: 0 completed: No
at org.omg.CosTransactions.PropagationContextHelper.extract(Propa=
gationC
ontextHelper.java:39)
at org.openorb.ots.Impl.Current.getPropagationContext(Current.jav=
a:495)
at org.openorb.ots.Impl.Current.commit(Current.java:222)
at WithoutResource.BankClient.newAccount(BankClient.java:204)
at WithoutResource.BankClient.begin(BankClient.java:135)
at WithoutResource.BankClient.main(BankClient.java:361)
org.omg.CosTransactions.NoTransaction: IDL:omg.org/CosTransactions/NoTran=
saction
:1.0
at org.openorb.ots.Impl.Current.commit(Current.java:229)
at WithoutResource.BankClient.newAccount(BankClient.java:204)
at WithoutResource.BankClient.begin(BankClient.java:135)
at WithoutResource.BankClient.main(BankClient.java:361)
why?
I have copy openORB.xml and ots.xml into working dir ,and modified the o=
penORB.xml like this
...
<profile name=3D"ots" extends=3D"default">
<description>
The ots profile loads the OTS interceptors required for the
management of distributed transaction. This profile must be used
on server and client sides for transaction applications.
</description>
=20
<import xlink:href=3D"${user.dir}ots.xml#ots" /> =20
</profile>
...
Is that right ? enough?
btw: the release of transactionService is 1.2.1
Best regards.
from :icehope
=20
=20
---------------------------------
Do You Yahoo!?
=B5=BD=D1=C5=BB=A2=D6=D0=B9=FA2002 FIFA=CA=C0=BD=E7=B1=AD=BE=DB=BD=B9=B8=D0=
=CA=DC=D7=E3=C7=F2=B5=C4=F7=C8=C1=A6=A3=A1
--0-1835385652-1022654729=:23109
Content-Type: text/html; charset=gb2312
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by project.exolab.org id g4SMuL916034
<P>Hi,</P>
<P> I have a problem with simple transactions.<BR><BR>&=
nbsp; After successfully starting NameService,OTS server and Withou=
tResource.Server,<BR>I tried the WithoutResource client with the fol=
lowing result<BR><BR>H:\pwe\try_openorb>java WithoutResource.BankClien=
t -ORBProfile=3Dots<BR><BR>----------------------------------------------=
---<BR>Bank client<BR>-------------------------------------------------<B=
R><BR>SSelect an option :<BR> 0=
. Quit<BR> 1. Create a new acco=
unt.<BR> 2. Get an account info=
rmation.<BR> 3. Make a transfer=
.<BR><BR>Your choice : 1<BR><BR>- Create a new account -<BR>-------------=
-----------<BR><BR>Name : me<BR>Initial balance : 100</P>
<P>org.omg.CORBA.MARSHAL: minor code: 0 completed: No<B=
R> at org.omg.CosTransactions.P=
ropagationContextHelper.extract(PropagationC<BR>ontextHelper.java:39)<BR>=
at org.openorb.ots.Impl.Curren=
t.getPropagationContext(Current.java:495)<BR> &nbs=
p; at org.openorb.ots.Impl.Current.commit(Current.java:222)<B=
R> at WithoutResource.BankClien=
t.newAccount(BankClient.java:204)<BR> =
at WithoutResource.BankClient.begin(BankClient.java:135)<BR> =
at WithoutResource.BankClient.main(B=
ankClient.java:361)<BR>org.omg.CosTransactions.NoTransaction: IDL:omg.org=
/CosTransactions/NoTransaction<BR>:1.0<BR> &=
nbsp; at org.openorb.ots.Impl.Current.commit(Current.java:229)<BR>&=
nbsp; at WithoutResource.BankClient.n=
ewAccount(BankClient.java:204)<BR> &nb=
sp; at WithoutResource.BankClient.begin(BankClient.java:135)<BR> &nb=
sp; at WithoutResource.BankClient.main(Bank=
Client.java:361)<BR></P>
<P>why?</P>
<P>I have copy openORB.xml and ots.xml into working dir ,and modifie=
d the openORB.xml like this</P>
<P>...</P>
<P> <profile name=3D"ots" extends=3D"default"><BR> =
<description><BR> The ots profile loads th=
e OTS interceptors required for the<BR> management of d=
istributed transaction. This profile must be used<BR> o=
n server and client sides for transaction applications.<BR> &n=
bsp; </description><BR> <BR> &l=
t;import xlink:href=3D"${user.dir}ots.xml#ots" /> <B=
R> </profile></P>
<P>...<BR> Is that right ? enough?</P>
<P>btw: the release of transactionService is 1.2.1</P>
<P>Best regards.</P>
<P>from :icehope</P>
<P> </P>
<P> </P><p><br><hr size=3D1><b>Do You Yahoo!?</b><br>
=B5=BD=D1=C5=BB=A2=D6=D0=B9=FA<a href=3D"http://rd.yahoo.com/mail_cn/tag/=
?http://cn.fifaworldcup.yahoo.com/">2002 FIFA=CA=C0=BD=E7=B1=AD=BE=DB=BD=B9=
</a>=B8=D0=CA=DC=D7=E3=C7=F2=B5=C4=F7=C8=C1=A6=A3=A1
--0-1835385652-1022654729=:23109--
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of:
unsubscribe openorb-dev