[jI_ShutdownHook] WARN org.jinterop.dcom.core.JISession

127 views
Skip to first unread message

Sergio Ferreira

unread,
Jun 24, 2014, 10:41:19 AM6/24/14
to open...@googlegroups.com
hello i'm using the code taken from the example, however i'm always receiving the same warning and the program stop and I can't receive no more data.
Can some one point me to the right direction, for me to resolve this issue?
Thanks

-----------------------------Code----------------------------
        try {
            // connect to server
            server.connect();
            // add sync access, poll every 500 ms
            AccessBase access = new SyncAccess(server, 500);
            access.addItem(itemId, new DataCallback() {
                @Override
                public void changed(Item item, ItemState state) {
                    System.out.println(state);
                }
            });
            // start reading
            access.bind();
            // wait a little bit
            Thread.sleep(10 * 1000);
            // stop reading
            access.unbind();
        } catch (final JIException e) {
            System.out.println(String.format("%08X: %s ->", e.getErrorCode(), server.getErrorMessage(e.getErrorCode())));
        }
-----------------------------END CODE----------------------------
 
-----------------------------Result ----------------------------

 Recieved RESPONSE
Jun 24, 2014 5:34:54 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:54 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [Hello]]]], Timestamp: Tue Jun 24 17:34:54 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:55 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:55 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [Hello]]]], Timestamp: Tue Jun 24 17:34:54 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:55 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:55 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [world!]]]], Timestamp: Tue Jun 24 17:34:55 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:56 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:56 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [world!]]]], Timestamp: Tue Jun 24 17:34:55 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:56 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:56 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [This]]]], Timestamp: Tue Jun 24 17:34:56 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:57 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:57 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [This]]]], Timestamp: Tue Jun 24 17:34:56 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:57 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:57 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [is]]]], Timestamp: Tue Jun 24 17:34:57 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:58 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:58 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [is]]]], Timestamp: Tue Jun 24 17:34:57 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:58 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:58 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [a]]]], Timestamp: Tue Jun 24 17:34:58 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:59 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:59 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [a]]]], Timestamp: Tue Jun 24 17:34:58 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:34:59 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:34:59 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [UC]]]], Timestamp: Tue Jun 24 17:34:59 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:35:00 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:35:00 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [UC]]]], Timestamp: Tue Jun 24 17:34:59 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:35:00 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:35:00 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [test.]]]], Timestamp: Tue Jun 24 17:35:00 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:35:01 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:35:01 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [test.]]]], Timestamp: Tue Jun 24 17:35:00 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:35:01 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:35:02 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [Hello]]]], Timestamp: Tue Jun 24 17:35:01 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:35:02 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:35:03 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Value: [[[Type: 1 , [world!]]]], Timestamp: Tue Jun 24 17:35:02 IDT 2014, Quality: 192, ErrorCode: 00000000
Jun 24, 2014 5:35:03 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:35:03 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
Jun 24, 2014 5:35:03 PM rpc.DefaultConnection processOutgoing
INFO: 
 Sending REQUEST
Jun 24, 2014 5:35:03 PM rpc.DefaultConnection processIncoming
INFO: 
 Recieved RESPONSE
17:35:03.824 [jI_ShutdownHook] WARN  org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0001f019-1360-0000-102e-b4b5bb0b249e session: 2001520446 , numInstancesfirsttime is 5
17:35:03.828 [jI_ShutdownHook] WARN  org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0001681a-1360-0000-fde3-00b9eb7d0d83 session: 2001520446 , numInstancesfirsttime is 5
17:35:03.829 [jI_ShutdownHook] WARN  org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0001f019-1360-0000-102e-b4b5bb0b249e session: 2001520446 , numInstancesfirsttime is 5
17:35:03.829 [jI_ShutdownHook] WARN  org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0001b018-1360-0000-c55c-cb4b2278a7a9 session: 2001520446 , numInstancesfirsttime is 5
17:35:03.829 [jI_ShutdownHook] WARN  org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 00019017-1360-0000-7d55-6bbf87f5e970 session: 2001520446 , numInstancesfirsttime is 5
17:35:03.829 [jI_ShutdownHook] WARN  org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 0001481b-1360-0000-df9b-41d0eebad868 session: 2001520446 , numInstancesfirsttime is 5
17:35:03.829 [jI_ShutdownHook] WARN  org.jinterop.dcom.core.JISession - prepareForReleaseRef: Releasing numInstancesfirsttime + 5 references of IPID: 00010814-1360-0000-9808-37632b28da20 session: 2001520446 , numInstancesfirsttime is 5



-----------------------------END RESULT ----------------------------

Jens Reimann

unread,
Jun 24, 2014, 11:16:34 AM6/24/14
to open...@googlegroups.com

Hi,

Does it stop after 10 seconds?

Jens

--
You received this message because you are subscribed to the Google Groups "openSCADA" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openscada+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sergio Ferreira

unread,
Jun 24, 2014, 11:27:28 AM6/24/14
to open...@googlegroups.com
yes

Jens Reimann

unread,
Jun 24, 2014, 11:30:20 AM6/24/14
to open...@googlegroups.com

Then have a look at the line where it stops the service after 10 seconds.

The application will sleep for 10 seconds and then unbind.

Sergio Ferreira

unread,
Jun 24, 2014, 2:51:31 PM6/24/14
to open...@googlegroups.com
That is correct, you confirmed my suspicions. (That is why I ask for the first code.)

However i receive the same warn message for this code. 
The problem is not in the unbind. In this code the thread should run forever. But in 10 sec, shows the same Warn Message.
I have been search in the code for j-Jinterop exception, but without success.   


Thanks quick reply.

 final AccessBase access = new SyncAccess ( server, 100 );
            access.addItem ( itemId, new DataCallbackDumper () );
            access.addItem ( itemId2, new DataCallbackDumper () );
           // access.addItem ( itemId3, new DataCallbackDumper () );
          //  access.addItem ( itemId4, new DataCallbackDumper () );

            // start reading
            access.bind ();

            // run forever
            final boolean running = true;
            while ( running )
            {
                Thread.sleep ( 10 * 1000 );
            }

            /*
            // stop reading
            access.unbind ();

            // disconnect
            autoReconnectController.disconnect ();
            */
        }


Jens Reimann

unread,
Jun 24, 2014, 4:13:32 PM6/24/14
to open...@googlegroups.com

Well I would say that your application terminates after 10 seconds.

Sergio Ferreira

unread,
Jun 25, 2014, 5:14:00 AM6/25/14
to open...@googlegroups.com
well the code is comment :(
thanks any way..

while ( running )
            {
                Thread.sleep ( 10 * 1000 );
            }



            /* Does not get here
            // stop reading
            access.unbind ();

            // disconnect
            autoReconnectController.disconnect ();
            */

Reply all
Reply to author
Forward
0 new messages