Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [milo-dev] NullPointerException in milo while reconnecting to OPC server

Okay, let me know. 

Looking at the change log between 0.5.4 and 0.6.0 I cannot see any reason why onSubscriptionTransferFailed would no longer get called. As far as I know the only reason you're seeing these NPEs in the logs now is because of this change: https://github.com/eclipse/milo/commit/9c5310387ba387518c9548bd958dd7b029e0d29b

So... I am a little confused about how this is happening.

On Thu, Apr 22, 2021 at 4:55 AM José García Hernández <jgarcia@xxxxxxxxxxx> wrote:
Hi Kevin!,

It's not critical for us (OPC barely goes down), so take your time.
  
I'm speaking with our client in order to get a test environment were we can check the new version (he only have a production environment for now). I will come to you with the results asap.

Regards.

El jue, 22 abr 2021 a las 13:43, Kevin Herron (<kevinherron@xxxxxxxxx>) escribió:
Jose,

I am doing a release of 0.6.1-M1 right now, which is something that will be published to Maven Central and perhaps can be used to verify it fixes the issue. If there are no problems I will publish a 0.6.1 release with exactly the same contents.

On Thu, Apr 22, 2021 at 4:40 AM José García Hernández <jgarcia@xxxxxxxxxxx> wrote:
Thanks for your effor and your awesome lib!

Regards.

El jue, 22 abr 2021 a las 13:36, Kevin Herron (<kevinherron@xxxxxxxxx>) escribió:
Jose,

I am not aware of any workaround. I will try to release 0.6.1 today.

On Thu, Apr 22, 2021 at 4:32 AM José García Hernández <jgarcia@xxxxxxxxxxx> wrote:
Hi Kevin!,

Seeing the log that I attached before, it seems that the client reconnects, but the events " onSubscriptionTransferFailed" or " onSubscriptionStatusChanged" are not fired.

In 0.5.4 those events were fired when our OPC was restarted, so we resubscribed all the monitored items we needed.

Is there some other event we can implement in 0.6.0 to achieve same result? Estimated date for 0.6.1 if possible?

Thanks for your help!

El jue, 22 abr 2021 a las 13:22, Kevin Herron (<kevinherron@xxxxxxxxx>) escribió:
Jose,

This issue should be fixed in 0.6.1: https://github.com/eclipse/milo/pull/809

I think it has existed for some time now but was only exposed with proper uncaught exception handlers installed recently.

Does your client still reconnect?

On Thu, Apr 22, 2021 at 12:26 AM José García Hernández <jgarcia@xxxxxxxxxxx> wrote:
Greetings,

In our production systems we are seeing an error after our OPC is restarted:

ERROR: Uncaught Exception on shared stack ExecutorService thread!
java.lang.NullPointerException: null
   at org.eclipse.milo.opcua.sdk.client.session.SessionFsmFactory.lambda$null$31(SessionFsmFactory.java:531)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)

We are already using events "onSubscriptionTransferFailed" and "onSubscriptionStatusChanged". In other cases they are called, but not in this one. Log attached.

Is it a bug in milo? Can we reconnect using another event or listener?

Note: we cannot use Wireshark or something similar to inspect network.

Regards.
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev
_______________________________________________
milo-dev mailing list
milo-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/milo-dev

Back to the top