Problem to catch toAdmin

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Problem to catch toAdmin

Аукціони
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/




 Hello,
 I am trying to connect from Banzai example application to real FIX Server.
 I have to send credentials, UserId and Rawdara as password.
Common technique to do so is to catch and change toAdmin callback.
It doesnot work in my case, and I am not able to identify prodlem.
 This is changed callback, I got it from example here

     public void toAdmin(quickfix.Message message, SessionID sessionID) {
       Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, "Inside ToAdmin......................");
     
       if (isMessageOfType(message, MsgType.LOGON)) {
             addLogonField(message);
        }

    }

   private void addLogonField(Message message) {
    userID = "***********";
    password = "############"        ;
    message.getHeader().setField(new SenderSubID(userID));
    message.getHeader().setField(new RawDataLength(password.length()));
    message.getHeader().setField(new RawData(password));
}
 
private boolean isMessageOfType(Message message, String type) {
    try {
        return type.equals(message.getHeader().getField(new MsgType()).getValue());
    } catch (FieldNotFound e) {
         Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, e.getMessage());
        return false;
    }
}

 2. This is a FIX logon message, without credentials

<20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.39=8735=A34=3549=NCY5090_FEED_UAT52=20160616-19:49:49.70356=EXANTE_FEED_UAT98=0108=3010=068)
<20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
3. I am not able to catch toAdmin method with break point or logging.

Can anybody explain, what I missing or what is a reason for fault
Thanks alot.


 
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://sdm.link/zohomanageengine
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem to catch toAdmin

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/


Hi,

did you manage to solve this in the meantime? As long as your application implements the Application
interface, the toAdmin() callback should be calledon admin messages that are sent out.

Chris.

On 16/06/16 21:59, Аукціони wrote:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
>
>
>
>   Hello,
>   I am trying to connect from Banzai example application to real FIX Server.
>   I have to send credentials, UserId and Rawdara as password.
> Common technique to do so is to catch and change toAdmin callback.
> It doesnot work in my case, and I am not able to identify prodlem.
>   This is changed callback, I got it from example here
>
>       public void toAdmin(quickfix.Message message, SessionID sessionID) {
>         Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, "Inside ToAdmin......................");
>      
>         if (isMessageOfType(message, MsgType.LOGON)) {
>               addLogonField(message);
>          }
>
>      }
>
>     private void addLogonField(Message message) {
>      userID = "***********";
>      password = "############"        ;
>      message.getHeader().setField(new SenderSubID(userID));
>      message.getHeader().setField(new RawDataLength(password.length()));
>      message.getHeader().setField(new RawData(password));
> }
>  
> private boolean isMessageOfType(Message message, String type) {
>      try {
>          return type.equals(message.getHeader().getField(new MsgType()).getValue());
>      } catch (FieldNotFound e) {
>           Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, e.getMessage());
>          return false;
>      }
> }
>
>   2. This is a FIX logon message, without credentials
>
> <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.39=8735=A34=3549=NCY5090_FEED_UAT52=20160616-19:49:49.70356=EXANTE_FEED_UAT98=0108=3010=068)
> <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
> 3. I am not able to catch toAdmin method with break point or logging.
>
> Can anybody explain, what I missing or what is a reason for fault
> Thanks alot.
>
>
>  
> ------------------------------------------------------------------------------
> What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
> patterns at an interface-level. Reveals which users, apps, and protocols are
> consuming the most bandwidth. Provides multi-vendor support for NetFlow,
> J-Flow, sFlow and other flows. Make informed decisions using capacity planning
> reports. http://sdm.link/zohomanageengine
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:[hidden email]
       


http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------
       
----------------------------------------------------------------------------------------------------

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem to catch toAdmin

Аукціони
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/




 Hi,
 no, I didnot fix this problem.
No catching with debugger, with logger, no any action inside the toAdmin() callback.
It should be called, but no any evidence that one is called.
 Very strange.


22.06.2016, 13:06, "Christoph John" <[hidden email]>:

> QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
> QuickFIX/J Support: http://www.quickfixj.org/support/
>
> Hi,
>
> did you manage to solve this in the meantime? As long as your application implements the Application
> interface, the toAdmin() callback should be calledon admin messages that are sent out.
>
> Chris.
>
> On 16/06/16 21:59, Аукціони wrote:
>>  QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
>>  QuickFIX/J Support: http://www.quickfixj.org/support/
>>
>>    Hello,
>>    I am trying to connect from Banzai example application to real FIX Server.
>>    I have to send credentials, UserId and Rawdara as password.
>>  Common technique to do so is to catch and change toAdmin callback.
>>  It doesnot work in my case, and I am not able to identify prodlem.
>>    This is changed callback, I got it from example here
>>
>>        public void toAdmin(quickfix.Message message, SessionID sessionID) {
>>          Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, "Inside ToAdmin......................");
>>
>>          if (isMessageOfType(message, MsgType.LOGON)) {
>>                addLogonField(message);
>>           }
>>
>>       }
>>
>>      private void addLogonField(Message message) {
>>       userID = "***********";
>>       password = "############" ;
>>       message.getHeader().setField(new SenderSubID(userID));
>>       message.getHeader().setField(new RawDataLength(password.length()));
>>       message.getHeader().setField(new RawData(password));
>>  }
>>
>>  private boolean isMessageOfType(Message message, String type) {
>>       try {
>>           return type.equals(message.getHeader().getField(new MsgType()).getValue());
>>       } catch (FieldNotFound e) {
>>            Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, e.getMessage());
>>           return false;
>>       }
>>  }
>>
>>    2. This is a FIX logon message, without credentials
>>
>>  <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.3 9=87 35=A 34=35 49=NCY5090_FEED_UAT 52=20160616-19:49:49.703 56=EXANTE_FEED_UAT 98=0 108=30 10=068 )
>>  <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
>>  3. I am not able to catch toAdmin method with break point or logging.
>>
>>  Can anybody explain, what I missing or what is a reason for fault
>>  Thanks alot.
>>
>>  ------------------------------------------------------------------------------
>>  What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
>>  patterns at an interface-level. Reveals which users, apps, and protocols are
>>  consuming the most bandwidth. Provides multi-vendor support for NetFlow,
>>  J-Flow, sFlow and other flows. Make informed decisions using capacity planning
>>  reports. http://sdm.link/zohomanageengine
>>  _______________________________________________
>>  Quickfixj-users mailing list
>>  [hidden email]
>>  https://lists.sourceforge.net/lists/listinfo/quickfixj-users
>
> --
> Christoph John
> Development & Support
> Direct: +49 241 557080-28
> Mailto:[hidden email]
>
> http://www.macd.com <http://www.macd.com/>
> ----------------------------------------------------------------------------------------------------
>
> ----------------------------------------------------------------------------------------------------
> MACD GmbH
> Oppenhoffallee 103
> D-52066 Aachen
> Tel: +49 241 557080-0 | Fax: +49 241 557080-10
>          Amtsgericht Aachen: HRB 8151
> Ust.-Id: DE 813021663
>
> Geschäftsführer: George Macdonald
> ----------------------------------------------------------------------------------------------------
>
> ----------------------------------------------------------------------------------------------------
>
> take care of the environment - print only if necessary
>
> ------------------------------------------------------------------------------
> Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
> Francisco, CA to explore cutting-edge tech and listen to tech luminaries
> present their vision of the future. This family event has something for
> everyone, including kids. Get more information and register today.
> http://sdm.link/attshape
> _______________________________________________
> Quickfixj-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/quickfixj-users

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem to catch toAdmin

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



You are using BanzaiApplication you say?
I have changed BanzaiApplication:

    public void toAdmin(quickfix.Message message, SessionID sessionID) {
        System.out.println( "XXXXXXXXXXXXXXXXXXXXXXx");
    }


Output:

<20160623-09:46:30, FIXT.1.1:BANZAI->EXEC, outgoing> (8=FIXT.1.19=7235=A34=249=BANZAI52=20160623-09:46:30.94856=EXEC98=0108=301137=710=120)
<20160623-09:46:30, FIXT.1.1:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.2:BANZAI->EXEC, outgoing> (8=FIX.4.29=6535=A34=249=BANZAI52=20160623-09:46:30.95556=EXEC98=0108=3010=231)
<20160623-09:46:30, FIX.4.2:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.0:BANZAI->EXEC, outgoing> (8=FIX.4.09=6135=A34=249=BANZAI52=20160623-09:46:3056=EXEC98=0108=3010=016)
<20160623-09:46:30, FIX.4.0:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.1:BANZAI->EXEC, outgoing> (8=FIX.4.19=6135=A34=249=BANZAI52=20160623-09:46:3056=EXEC98=0108=3010=017)
<20160623-09:46:30, FIX.4.1:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx

and so on...

So it works. At least for me. ;)

Cheers,
Chris.

On 22/06/16 23:13, Аукціони wrote:

 Hi,
 no, I didnot fix this problem.
No catching with debugger, with logger, no any action inside the toAdmin() callback.
It should be called, but no any evidence that one is called.
 Very strange.


22.06.2016, 13:06, "Christoph John" [hidden email]:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/

Hi,

did you manage to solve this in the meantime? As long as your application implements the Application
interface, the toAdmin() callback should be calledon admin messages that are sent out.

Chris.

On 16/06/16 21:59, Аукціони wrote:
 QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
 QuickFIX/J Support: http://www.quickfixj.org/support/

   Hello,
   I am trying to connect from Banzai example application to real FIX Server.
   I have to send credentials, UserId and Rawdara as password.
 Common technique to do so is to catch and change toAdmin callback.
 It doesnot work in my case, and I am not able to identify prodlem.
   This is changed callback, I got it from example here

       public void toAdmin(quickfix.Message message, SessionID sessionID) {
         Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, "Inside ToAdmin......................");

         if (isMessageOfType(message, MsgType.LOGON)) {
               addLogonField(message);
          }

      }

     private void addLogonField(Message message) {
      userID = "***********";
      password = "############" ;
      message.getHeader().setField(new SenderSubID(userID));
      message.getHeader().setField(new RawDataLength(password.length()));
      message.getHeader().setField(new RawData(password));
 }

 private boolean isMessageOfType(Message message, String type) {
      try {
          return type.equals(message.getHeader().getField(new MsgType()).getValue());
      } catch (FieldNotFound e) {
           Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, e.getMessage());
          return false;
      }
 }

   2. This is a FIX logon message, without credentials

 <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.3 9=87 35=A 34=35 49=NCY5090_FEED_UAT 52=20160616-19:49:49.703 56=EXANTE_FEED_UAT 98=0 108=30 10=068 )
 <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
 3. I am not able to catch toAdmin method with break point or logging.

 Can anybody explain, what I missing or what is a reason for fault
 Thanks alot.

 ------------------------------------------------------------------------------
 What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
 patterns at an interface-level. Reveals which users, apps, and protocols are
 consuming the most bandwidth. Provides multi-vendor support for NetFlow,
 J-Flow, sFlow and other flows. Make informed decisions using capacity planning
 reports. http://sdm.link/zohomanageengine
 _______________________________________________
 Quickfixj-users mailing list
 [hidden email]
 https://lists.sourceforge.net/lists/listinfo/quickfixj-users
--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...

http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

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

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem to catch toAdmin

Аукціони
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



 
 
 I have changed in the same way...
 
 Which version do you use?
 
Jun 23, 2016 10:22:27 AM quickfix.SessionSchedule <init>
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] daily, 00:00:00-UTC - 00:00:00-UTC
<20160623-17:22:27, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Session FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20160623-17:22:27, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Created session: FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT)
Jun 23, 2016 10:22:28 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Jun 23, 2016 10:22:28 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Jun 23, 2016 10:22:28 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Jun 23, 2016 10:22:28 AM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] [/127.0.0.1:8100]
Jun 23, 2016 10:22:28 AM quickfix.mina.SessionConnector startSessionTimer
INFO: SessionTimer started
Jun 23, 2016 10:22:28 AM quickfix.mina.SingleThreadedEventHandlingStrategy$1 run
INFO: Started QFJ Message Processor
Jun 23, 2016 10:22:29 AM quickfix.mina.initiator.InitiatorIoHandler sessionCreated
INFO: MINA session created for FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT: local=/127.0.0.1:2585, class org.apache.mina.transport.socket.nio.NioSocketSession, remote=/127.0.0.1:8100
<20160623-17:22:30, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.39=8635=A34=149=NCY5090_FEED_UAT52=20160623-17:22:30.14056=EXANTE_FEED_UAT98=0108=3010=240)
<20160623-17:22:30, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
Jun 23, 2016 10:22:30 AM quickfix.Session disconnect
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] Disconnecting: Encountered END_OF_STREAM
Jun 23, 2016 10:22:34 AM quickfix.mina.initiator.InitiatorIoHandler sessionCreated
INFO: MINA session created for FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT: local=/127.0.0.1:2587, class org.apache.mina.transport.socket.nio.NioSocketSession, remote=/127.0.0.1:8100
<20160623-17:22:34, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.39=8635=A34=249=NCY5090_FEED_UAT52=20160623-17:22:34.89056=EXANTE_FEED_UAT98=0108=3010=001)
<20160623-17:22:34, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
Jun 23, 2016 10:22:34 AM quickfix.Session disconnect
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] Disconnecting: Encountered END_OF_STREAM
BUILD STOPPED (total time: 32 seconds)
 
 
23.06.2016, 12:48, "Christoph John" <[hidden email]>:
You are using BanzaiApplication you say?
I have changed BanzaiApplication:

    public void toAdmin(quickfix.Message message, SessionID sessionID) {
        System.out.println( "XXXXXXXXXXXXXXXXXXXXXXx");
    }


Output:

<20160623-09:46:30, FIXT.1.1:BANZAI->EXEC, outgoing> (8=FIXT.1.1 9=72 35=A 34=2 49=BANZAI 52=20160623-09:46:30.948 56=EXEC 98=0 108=30 1137=7 10=120 )
<20160623-09:46:30, FIXT.1.1:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.2:BANZAI->EXEC, outgoing> (8=FIX.4.2 9=65 35=A 34=2 49=BANZAI 52=20160623-09:46:30.955 56=EXEC 98=0 108=30 10=231 )
<20160623-09:46:30, FIX.4.2:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.0:BANZAI->EXEC, outgoing> (8=FIX.4.0 9=61 35=A 34=2 49=BANZAI 52=20160623-09:46:30 56=EXEC 98=0 108=30 10=016 )
<20160623-09:46:30, FIX.4.0:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.1:BANZAI->EXEC, outgoing> (8=FIX.4.1 9=61 35=A 34=2 49=BANZAI 52=20160623-09:46:30 56=EXEC 98=0 108=30 10=017 )
<20160623-09:46:30, FIX.4.1:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx

and so on...

So it works. At least for me. ;)

Cheers,
Chris.

On 22/06/16 23:13, Аукціони wrote:
 Hi,
 no, I didnot fix this problem.
No catching with debugger, with logger, no any action inside the toAdmin() callback.
It should be called, but no any evidence that one is called.
 Very strange.


22.06.2016, 13:06, "Christoph John" [hidden email]:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/

Hi,

did you manage to solve this in the meantime? As long as your application implements the Application
interface, the toAdmin() callback should be calledon admin messages that are sent out.

Chris.

On 16/06/16 21:59, Аукціони wrote:
 QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
 QuickFIX/J Support: http://www.quickfixj.org/support/

   Hello,
   I am trying to connect from Banzai example application to real FIX Server.
   I have to send credentials, UserId and Rawdara as password.
 Common technique to do so is to catch and change toAdmin callback.
 It doesnot work in my case, and I am not able to identify prodlem.
   This is changed callback, I got it from example here

       public void toAdmin(quickfix.Message message, SessionID sessionID) {
         Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, "Inside ToAdmin......................");

         if (isMessageOfType(message, MsgType.LOGON)) {
               addLogonField(message);
          }

      }

     private void addLogonField(Message message) {
      userID = "***********";
      password = "############" ;
      message.getHeader().setField(new SenderSubID(userID));
      message.getHeader().setField(new RawDataLength(password.length()));
      message.getHeader().setField(new RawData(password));
 }

 private boolean isMessageOfType(Message message, String type) {
      try {
          return type.equals(message.getHeader().getField(new MsgType()).getValue());
      } catch (FieldNotFound e) {
           Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, e.getMessage());
          return false;
      }
 }

   2. This is a FIX logon message, without credentials

 <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.3 9=87 35=A 34=35 49=NCY5090_FEED_UAT 52=20160616-19:49:49.703 56=EXANTE_FEED_UAT 98=0 108=30 10=068 )
 <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
 3. I am not able to catch toAdmin method with break point or logging.

 Can anybody explain, what I missing or what is a reason for fault
 Thanks alot.

 ------------------------------------------------------------------------------
 What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
 patterns at an interface-level. Reveals which users, apps, and protocols are
 consuming the most bandwidth. Provides multi-vendor support for NetFlow,
 J-Flow, sFlow and other flows. Make informed decisions using capacity planning
 reports. http://sdm.link/zohomanageengine
 _______________________________________________
 Quickfixj-users mailing list
 [hidden email]
 https://lists.sourceforge.net/lists/listinfo/quickfixj-users
--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...

http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

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

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Problem to catch toAdmin

Christoph John
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/



I used the current snapshot (https://github.com/quickfix-j/quickfixj) but I doubt that this is the problem.
Can you post your application code? Otherwise it is guesswork.


On 23/06/16 19:24, Аукціони wrote:
 
 
 I have changed in the same way...
 
 Which version do you use?
 
Jun 23, 2016 10:22:27 AM quickfix.SessionSchedule <init>
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] daily, 00:00:00-UTC - 00:00:00-UTC
<20160623-17:22:27, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Session FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT schedule is daily, 00:00:00-UTC - 00:00:00-UTC)
<20160623-17:22:27, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Created session: FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT)
Jun 23, 2016 10:22:28 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketTcpNoDelay=true
Jun 23, 2016 10:22:28 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWrites=false
Jun 23, 2016 10:22:28 AM quickfix.mina.NetworkingOptions logOption
INFO: Socket option: SocketSynchronousWriteTimeout=30000
Jun 23, 2016 10:22:28 AM quickfix.mina.initiator.IoSessionInitiator <init>
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] [/127.0.0.1:8100]
Jun 23, 2016 10:22:28 AM quickfix.mina.SessionConnector startSessionTimer
INFO: SessionTimer started
Jun 23, 2016 10:22:28 AM quickfix.mina.SingleThreadedEventHandlingStrategy$1 run
INFO: Started QFJ Message Processor
Jun 23, 2016 10:22:29 AM quickfix.mina.initiator.InitiatorIoHandler sessionCreated
INFO: MINA session created for FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT: local=/127.0.0.1:2585, class org.apache.mina.transport.socket.nio.NioSocketSession, remote=/127.0.0.1:8100
<20160623-17:22:30, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.39=8635=A34=149=NCY5090_FEED_UAT52=20160623-17:22:30.14056=EXANTE_FEED_UAT98=0108=3010=240)
<20160623-17:22:30, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
Jun 23, 2016 10:22:30 AM quickfix.Session disconnect
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] Disconnecting: Encountered END_OF_STREAM
Jun 23, 2016 10:22:34 AM quickfix.mina.initiator.InitiatorIoHandler sessionCreated
INFO: MINA session created for FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT: local=/127.0.0.1:2587, class org.apache.mina.transport.socket.nio.NioSocketSession, remote=/127.0.0.1:8100
<20160623-17:22:34, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.39=8635=A34=249=NCY5090_FEED_UAT52=20160623-17:22:34.89056=EXANTE_FEED_UAT98=0108=3010=001)
<20160623-17:22:34, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
Jun 23, 2016 10:22:34 AM quickfix.Session disconnect
INFO: [FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT] Disconnecting: Encountered END_OF_STREAM
BUILD STOPPED (total time: 32 seconds)
 
 
23.06.2016, 12:48, "Christoph John" [hidden email]:
You are using BanzaiApplication you say?
I have changed BanzaiApplication:

    public void toAdmin(quickfix.Message message, SessionID sessionID) {
        System.out.println( "XXXXXXXXXXXXXXXXXXXXXXx");
    }


Output:

<20160623-09:46:30, FIXT.1.1:BANZAI->EXEC, outgoing> (8=FIXT.1.1 9=72 35=A 34=2 49=BANZAI 52=20160623-09:46:30.948 56=EXEC 98=0 108=30 1137=7 10=120 )
<20160623-09:46:30, FIXT.1.1:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.2:BANZAI->EXEC, outgoing> (8=FIX.4.2 9=65 35=A 34=2 49=BANZAI 52=20160623-09:46:30.955 56=EXEC 98=0 108=30 10=231 )
<20160623-09:46:30, FIX.4.2:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.0:BANZAI->EXEC, outgoing> (8=FIX.4.0 9=61 35=A 34=2 49=BANZAI 52=20160623-09:46:30 56=EXEC 98=0 108=30 10=016 )
<20160623-09:46:30, FIX.4.0:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx
<20160623-09:46:30, FIX.4.1:BANZAI->EXEC, outgoing> (8=FIX.4.1 9=61 35=A 34=2 49=BANZAI 52=20160623-09:46:30 56=EXEC 98=0 108=30 10=017 )
<20160623-09:46:30, FIX.4.1:BANZAI->EXEC, event> (Initiated logon request)
XXXXXXXXXXXXXXXXXXXXXXx

and so on...

So it works. At least for me. ;)

Cheers,
Chris.

On 22/06/16 23:13, Аукціони wrote:
 Hi,
 no, I didnot fix this problem.
No catching with debugger, with logger, no any action inside the toAdmin() callback.
It should be called, but no any evidence that one is called.
 Very strange.


22.06.2016, 13:06, "Christoph John" [hidden email]:
QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
QuickFIX/J Support: http://www.quickfixj.org/support/

Hi,

did you manage to solve this in the meantime? As long as your application implements the Application
interface, the toAdmin() callback should be calledon admin messages that are sent out.

Chris.

On 16/06/16 21:59, Аукціони wrote:
 QuickFIX/J Documentation: http://www.quickfixj.org/documentation/
 QuickFIX/J Support: http://www.quickfixj.org/support/

   Hello,
   I am trying to connect from Banzai example application to real FIX Server.
   I have to send credentials, UserId and Rawdara as password.
 Common technique to do so is to catch and change toAdmin callback.
 It doesnot work in my case, and I am not able to identify prodlem.
   This is changed callback, I got it from example here

       public void toAdmin(quickfix.Message message, SessionID sessionID) {
         Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, "Inside ToAdmin......................");

         if (isMessageOfType(message, MsgType.LOGON)) {
               addLogonField(message);
          }

      }

     private void addLogonField(Message message) {
      userID = "***********";
      password = "############" ;
      message.getHeader().setField(new SenderSubID(userID));
      message.getHeader().setField(new RawDataLength(password.length()));
      message.getHeader().setField(new RawData(password));
 }

 private boolean isMessageOfType(Message message, String type) {
      try {
          return type.equals(message.getHeader().getField(new MsgType()).getValue());
      } catch (FieldNotFound e) {
           Logger.getLogger(BanzaiApplication.class.getName()).log(Level.INFO, null, e.getMessage());
          return false;
      }
 }

   2. This is a FIX logon message, without credentials

 <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, outgoing> (8=FIX.4.3 9=87 35=A 34=35 49=NCY5090_FEED_UAT 52=20160616-19:49:49.703 56=EXANTE_FEED_UAT 98=0 108=30 10=068 )
 <20160616-19:49:49, FIX.4.3:NCY5090_FEED_UAT->EXANTE_FEED_UAT, event> (Initiated logon request)
 3. I am not able to catch toAdmin method with break point or logging.

 Can anybody explain, what I missing or what is a reason for fault
 Thanks alot.

 ------------------------------------------------------------------------------
 What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
 patterns at an interface-level. Reveals which users, apps, and protocols are
 consuming the most bandwidth. Provides multi-vendor support for NetFlow,
 J-Flow, sFlow and other flows. Make informed decisions using capacity planning
 reports. http://sdm.link/zohomanageengine
 _______________________________________________
 Quickfixj-users mailing list
 [hidden email]
 https://lists.sourceforge.net/lists/listinfo/quickfixj-users
--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...

http://www.macd.com <http://www.macd.com/>
----------------------------------------------------------------------------------------------------

----------------------------------------------------------------------------------------------------
MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
         Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald
----------------------------------------------------------------------------------------------------

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

take care of the environment - print only if necessary

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

--
Christoph John
Development & Support
Direct: +49 241 557080-28
Mailto:Christoph.John@...



http://www.macd.com


MACD GmbH
Oppenhoffallee 103
D-52066 Aachen
Tel: +49 241 557080-0 | Fax: +49 241 557080-10
 Amtsgericht Aachen: HRB 8151
Ust.-Id: DE 813021663

Geschäftsführer: George Macdonald


take care of the environment - print only if necessary

------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Quickfixj-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/quickfixj-users
Loading...