Réf. : Re: Error when launching Banzai

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Réf. : Re: Error when launching Banzai

ilyas.usal
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
Oh boy, you're right. Thanks a million Ulrich!
Everything is working now. I'll heat up the Ctrl+C Ctrl+V.

Regards,
Ilyas




Internet
[hidden email]@lists.sourceforge.net -
02/22/2007 01:33 PM


Veuillez répondre à [hidden email]

Envoyé par :      [hidden email]



Pour : quickfixj-users

cc :


Objet :     Quickfixj-users Digest, Vol 9, Issue 6


Send Quickfixj-users mailing list submissions to
             [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
             https://lists.sourceforge.net/lists/listinfo/quickfixj-users
or, via email, send a message with subject or body 'help' to
             [hidden email]

You can reach the person managing the list at
             [hidden email]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Quickfixj-users digest..."


Today's Topics:

   1. InvalidMessage exception (Alvin Wang)
   2. Re: InvalidMessage exception (Shepheard, Toby (London))
   3. Error when launching Banzai ([hidden email])
   4. Re: Error when launching Banzai (Martin Ellis)
   5. Re: Error when launching Banzai (Joerg Thoennes)
   6. Re: Error when launching Banzai (Martin Ellis)
   7. Re: Error when launching Banzai (Ulrich Staudinger)
   8. Re: Error when launching Banzai (Martin Ellis)


----------------------------------------------------------------------

Message: 1
Date: Tue, 20 Feb 2007 13:12:59 -0500
From: Alvin Wang <[hidden email]>
Subject: [Quickfixj-users] InvalidMessage exception
To: [hidden email]
Message-ID:
             <OFE5CFCDE0.B969F5AC-ON85257288.0063F65A-85257288.006410
[hidden email]>
Content-Type: text/plain; charset="us-ascii"

Hi I got the following exception when calling a Message constructor. Could
anyone explain what does this mean? and how to fix it? thanks

Alvin


============================================================
quickfix.InvalidMessage: Actual body length=452, Expected body length=518

      at quickfix.Message.validate(Message.java:404)

      at quickfix.Message.fromString(Message.java:395)

      at quickfix.Message.<init>(Message.java:90)




*******************************************************************************

This e-mail message is intended solely for the use of the addressee.
The message may contain information that is privileged and
confidential.
Disclosure to anyone other than the intended recipient is prohibited.
If you are not the intended recipient, please do not disseminate,
distribute or copy this communication, by e-mail or otherwise. Instead,
please notify us immediately by return e-mail(including the original
message with your reply) and then delete and discard all copies of the
message. We have taken precautions to minimize the risk of  transmitting
software viruses but nevertheless advise you to carry out your own
virus checks on any attachment to this message.  We accept
no liability for any loss or damage caused by software viruses.
*******************************************************************************






------------------------------

Message: 2
Date: Wed, 21 Feb 2007 13:07:35 -0000
From: "Shepheard, Toby \(London\)" <[hidden email]>
Subject: Re: [Quickfixj-users] InvalidMessage exception
To: <[hidden email]>
Message-ID:
             <[hidden email]>
Content-Type: text/plain;            charset="US-ASCII"

In general terms it's simply saying that your FIX message isn't
constructed properly.

I think this can happen when you don't build a group properly, for
example adding fields to the body directly rather than as part of a
group. Another possibility is that you have a RawData field without a
RawDataLength preceding it.

It would help to see the code that's building the message header and
body, including construction of any groups, if the above doesn't help
you fix the problem.

Regards,
Toby



-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On Behalf Of
Alvin Wang
Sent: 20 February 2007 18:13
To: [hidden email]
Subject: [Quickfixj-users] InvalidMessage exception


QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/
Hi I got the following exception when calling a Message constructor.
Could
anyone explain what does this mean? and how to fix it? thanks

Alvin


============================================================
quickfix.InvalidMessage: Actual body length=452, Expected body
length=518

      at quickfix.Message.validate(Message.java:404)

      at quickfix.Message.fromString(Message.java:395)

      at quickfix.Message.<init>(Message.java:90)




************************************************************************
*******
This e-mail message is intended solely for the use of the addressee.
The message may contain information that is privileged and
confidential.
Disclosure to anyone other than the intended recipient is prohibited.
If you are not the intended recipient, please do not disseminate,
distribute or copy this communication, by e-mail or otherwise. Instead,
please notify us immediately by return e-mail(including the original
message with your reply) and then delete and discard all copies of the
message. We have taken precautions to minimize the risk of  transmitting
software viruses but nevertheless advise you to carry out your own
virus checks on any attachment to this message.  We accept
no liability for any loss or damage caused by software viruses.
************************************************************************
*******



------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
--------------------------------------------------------

If you are not an intended recipient of this e-mail, please notify the
sender, delete it and do not read, act upon, print, disclose, copy, retain
or redistribute it. Click here for important additional terms relating to
this e-mail.     http://www.ml.com/email_terms/
--------------------------------------------------------



------------------------------

Message: 3
Date: Thu, 22 Feb 2007 12:15:09 +0100
From: [hidden email]
Subject: [Quickfixj-users] Error when launching Banzai
To: [hidden email]
Message-ID:

<[hidden email]>

Content-Type: text/plain; charset="us-ascii"


Hi all,

I've been using Banzai for quite some time now. I've made a few changes to
the interface and added a few capabilities. I've decided to use the last
version of the quickfix.jar to solve some stability issues (I was using a
quickfix.jar version dated 07/12/2005) but as there seem to be quite a few
changes from the version I used, so I thought it would be better to start
all over again with the last version.

I've just downloaded quickfixj and tried to start Banzai but I got this
error:

<20070222-10:55:01, FIX.4.0:RIOE->BPEFRRORTEST, event> (Session
FIX.4.0:RIOE->BPEFRRORTEST schedule is daily, 00:01:00 UTC - 00:00:00 UTC)
<20070222-10:55:01, FIX.4.0:RIOE->BPEFRRORTEST, event> (Created session:
FIX.4.0:RIOE->BPEFRRORTEST)
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/mina/common/TransportType
        at
quickfix.mina.initiator.AbstractSocketInitiator.getSocketAddresses(AbstractSocketInitiator.java:150)

        at
quickfix.mina.initiator.AbstractSocketInitiator.initiateSessions(AbstractSocketInitiator.java:81)

        at quickfix.SocketInitiator.initialize(SocketInitiator.java:78)
        at quickfix.SocketInitiator.start(SocketInitiator.java:63)
        at banzai.Banzai.logon(Banzai.java:84)
        at banzai.Banzai.main(Banzai.java:116)

I haven't made any change to anything. Am I missing something?

Thanks,
Ilyas


This message and any attachments (the "message") is
intended solely for the addressees and is confidential.
If you receive this message in error, please delete it and
immediately notify the sender. Any use not in accord with
its purpose, any dissemination or disclosure, either whole
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message.
BNP PARIBAS (and its subsidiaries) shall (will) not
therefore be liable for the message if modified.

                ---------------------------------------------

Ce message et toutes les pieces jointes (ci-apres le
"message") sont etablis a l'intention exclusive de ses
destinataires et sont confidentiels. Si vous recevez ce
message par erreur, merci de le detruire et d'en avertir
immediatement l'expediteur. Toute utilisation de ce
message non conforme a sa destination, toute diffusion
ou toute publication, totale ou partielle, est interdite, sauf
autorisation expresse. L'internet ne permettant pas
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce
message, dans l'hypothese ou il aurait ete modifie.




------------------------------

Message: 4
Date: Thu, 22 Feb 2007 11:38:47 +0000
From: Martin Ellis <[hidden email]>
Subject: Re: [Quickfixj-users] Error when launching Banzai
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


[hidden email] wrote:
> I've just downloaded quickfixj and tried to start Banzai but I got this
> error:
>
> <20070222-10:55:01, FIX.4.0:RIOE->BPEFRRORTEST, event> (Session
> FIX.4.0:RIOE->BPEFRRORTEST schedule is daily, 00:01:00 UTC - 00:00:00
UTC)
> <20070222-10:55:01, FIX.4.0:RIOE->BPEFRRORTEST, event> (Created session:
> FIX.4.0:RIOE->BPEFRRORTEST)
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/mina/common/TransportType


Hmm... NoClassDefFoundError for a class that does appear in the mina
jar.  That's very similar to the error I had when I tried to run
QuickFIX/J in the Sun Application Server (different class though).

I never did figure out what was causing that.

Martin



------------------------------

Message: 5
Date: Thu, 22 Feb 2007 12:41:05 +0100
From: Joerg Thoennes <[hidden email]>
Subject: Re: [Quickfixj-users] Error when launching Banzai
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi Ilyas,

On 02/22/2007 12:15 PM, [hidden email] wrote:
> I've been using Banzai for quite some time now. I've made a few changes
to
> the interface and added a few capabilities. I've decided to use the last
> version of the quickfix.jar to solve some stability issues (I was using a
> quickfix.jar version dated 07/12/2005) but as there seem to be quite a
few
> changes from the version I used, so I thought it would be better to start
> all over again with the last version.
>
> I've just downloaded quickfixj and tried to start Banzai but I got this
> error:
>
> <20070222-10:55:01, FIX.4.0:RIOE->BPEFRRORTEST, event> (Session
> FIX.4.0:RIOE->BPEFRRORTEST schedule is daily, 00:01:00 UTC - 00:00:00
UTC)
> <20070222-10:55:01, FIX.4.0:RIOE->BPEFRRORTEST, event> (Created session:
> FIX.4.0:RIOE->BPEFRRORTEST)
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/mina/common/TransportType
>         at
>
quickfix.mina.initiator.AbstractSocketInitiator.getSocketAddresses(AbstractSocketInitiator.java:150)

>         at
>
quickfix.mina.initiator.AbstractSocketInitiator.initiateSessions(AbstractSocketInitiator.java:81)

>         at quickfix.SocketInitiator.initialize(SocketInitiator.java:78)
>         at quickfix.SocketInitiator.start(SocketInitiator.java:63)
>         at banzai.Banzai.logon(Banzai.java:84)
>         at banzai.Banzai.main(Banzai.java:116)
>
> I haven't made any change to anything. Am I missing something?

Yes, in the meantime QuickFIX/J is using the MINA libraries to provide
network connectivity. Most
probably you are missing the MINA jar in your class path. Please check the
utility jar files in the
lib directory of QuickFIX/J and include them in your class path.

Cheers, J?rg

--
Joerg Thoennes                      Tel.: +49 (0)241 44597-24
                                     http://www.macd.com
Gesch?ftsf?hrer: Roger Macdonald    Macdonald Associates GmbH
Amtsgericht Aachen, HRB 8151        Lothringer Str. 52, D-52070 Aachen



------------------------------

Message: 6
Date: Thu, 22 Feb 2007 11:45:17 +0000
From: Martin Ellis <[hidden email]>
Subject: Re: [Quickfixj-users] Error when launching Banzai
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Joerg Thoennes wrote:
> Yes, in the meantime QuickFIX/J is using the MINA libraries to provide
network connectivity. Most
> probably you are missing the MINA jar in your class path. Please check
the utility jar files in the
> lib directory of QuickFIX/J and include them in your class path.

Oh, that's probably unrelated to the problem I had then... nevermind.
For the time I've been using it, QuickFIX/J has always required mina.

Martin



------------------------------

Message: 7
Date: Thu, 22 Feb 2007 13:13:04 +0100
From: Ulrich Staudinger <[hidden email]>
Subject: Re: [Quickfixj-users] Error when launching Banzai
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

It's just the jar name of the start script.
The start script points to mina-0.9.3.jar, irrc, whereas the latest
QuickFix release contains in the lib folder mina-1.0.0.jar .

Sincerely yours,
Ulrich



Martin Ellis schrieb:
> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
> Joerg Thoennes wrote:
>
>> Yes, in the meantime QuickFIX/J is using the MINA libraries to provide
network connectivity. Most
>> probably you are missing the MINA jar in your class path. Please check
the utility jar files in the

>> lib directory of QuickFIX/J and include them in your class path.
>>
>
> Oh, that's probably unrelated to the problem I had then... nevermind.
> For the time I've been using it, QuickFIX/J has always required mina.
>
> Martin
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>




------------------------------

Message: 8
Date: Thu, 22 Feb 2007 12:32:52 +0000
From: Martin Ellis <[hidden email]>
Subject: Re: [Quickfixj-users] Error when launching Banzai
To: [hidden email]
Message-ID: <[hidden email]>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed


Ulrich Staudinger wrote:
> It's just the jar name of the start script.
> The start script points to mina-0.9.3.jar, irrc, whereas the latest
> QuickFix release contains in the lib folder mina-1.0.0.jar .

Er...?  Was this addressed to me?

I was trying to run QuickFIX/J in an application server, so there was
no 'start script'.  The quickfix and mina jars were included in a war
that was deployed to the app server.

No idea why it didn't work.  The 'missing' class was actually included
in the mina jar in the deployed war, so the NoClassDefFound is a bit of
a mystery to me.

Apparently it can be made to work with JBoss, but I couldn't figure it
out at all with Sun's app server.

Martin



------------------------------

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

------------------------------

_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users


End of Quickfixj-users Digest, Vol 9, Issue 6
*********************************************


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users