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>&nbsp; I&nbsp;&nbsp; have a problem with simple transactions.<BR><BR>&=
nbsp; After successfully starting NameService,OTS server and&nbsp; Withou=
tResource.Server,<BR>I tried the WithoutResource&nbsp;client with the fol=
lowing result<BR><BR>H:\pwe\try_openorb&gt;java WithoutResource.BankClien=
t -ORBProfile=3Dots<BR><BR>----------------------------------------------=
---<BR>Bank client<BR>-------------------------------------------------<B=
R><BR>SSelect an option :<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0=
. Quit<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1. Create a new acco=
unt.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 2. Get an account info=
rmation.<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 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:&nbsp;&nbsp; minor code: 0&nbsp; completed: No<B=
R>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.omg.CosTransactions.P=
ropagationContextHelper.extract(PropagationC<BR>ontextHelper.java:39)<BR>=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at org.openorb.ots.Impl.Curren=
t.getPropagationContext(Current.java:495)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp; at org.openorb.ots.Impl.Current.commit(Current.java:222)<B=
R>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at WithoutResource.BankClien=
t.newAccount(BankClient.java:204)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp; at WithoutResource.BankClient.begin(BankClient.java:135)<BR>&nbsp;=
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at WithoutResource.BankClient.main(B=
ankClient.java:361)<BR>org.omg.CosTransactions.NoTransaction: IDL:omg.org=
/CosTransactions/NoTransaction<BR>:1.0<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp; at org.openorb.ots.Impl.Current.commit(Current.java:229)<BR>&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at WithoutResource.BankClient.n=
ewAccount(BankClient.java:204)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp; at WithoutResource.BankClient.begin(BankClient.java:135)<BR>&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; at WithoutResource.BankClient.main(Bank=
Client.java:361)<BR></P>
<P>why?</P>
<P>I have copy openORB.xml and ots.xml into&nbsp;working dir ,and modifie=
d&nbsp; the openORB.xml like this</P>
<P>...</P>
<P>&nbsp;&lt;profile name=3D"ots" extends=3D"default"&gt;<BR>&nbsp;&nbsp;=
&nbsp; &lt;description&gt;<BR>&nbsp;&nbsp;&nbsp; The ots profile loads th=
e OTS interceptors required for the<BR>&nbsp;&nbsp;&nbsp; management of d=
istributed transaction. This profile must be used<BR>&nbsp;&nbsp;&nbsp; o=
n server and client sides for transaction applications.<BR>&nbsp;&nbsp;&n=
bsp; &lt;/description&gt;<BR>&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; &l=
t;import xlink:href=3D"${user.dir}ots.xml#ots" /&gt;&nbsp;&nbsp;&nbsp; <B=
R>&nbsp; &lt;/profile&gt;</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>&nbsp;</P>
<P>&nbsp;</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