Avatar

Please consider registering
guest

sp_LogInOut Log In sp_Registration Register

Register | Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

sp_Feed Topic RSS sp_TopicIcon
ModelException at server.init()
July 22, 2014
7:06, EEST
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Hi everybody,

I’m evaluating the Java SDK 2.0.0 in order to use it in a software of mine.

I have a project and I was integrating the SDK inside my project. I ghace created a ScadaServer class where I have all the initialization stuff the same as in the Tutorial. I call this initialization at the beginning of my main, and when it comes to the call server.init(), I have the following exception trace:

Exception in thread “main” java.lang.RuntimeException: NodeManagerRoot
at com.prosysopc.ua.server.NodeManagerRoot.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagementServiceHandler.a(Unknown Source)
at com.prosysopc.ua.server.UaServer.initServiceHandlers(Unknown Source)
at com.prosysopc.ua.server.UaServer.init(Unknown Source)
at com.soltec.scada.opc.ScadaServer.initialize(ScadaServer.java:184)
at com.soltec.scada.Main.run(Main.java:94)
at com.soltec.scada.Main.main(Main.java:62)
Caused by: com.prosysopc.ua.ModelException: 4229 individual model errors:
(only 50 first included in message; read ErrorList of the exception for a full list)
Failed to create node: HasTrueSubState with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=9004java.lang.NullPointerException
Failed to create node: HasFalseSubState with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=9005java.lang.NullPointerException
Failed to create node: HasCondition with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=9006java.lang.NullPointerException
Failed to create node: OpenFileMode with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11939java.lang.NullPointerException
Failed to create node: TrustListMasks with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12552java.lang.NullPointerException
Failed to create node: TrustListDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12554java.lang.NullPointerException
Failed to create node: TimeZoneDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=8912java.lang.NullPointerException
Failed to create node: ServerOnNetwork with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12189java.lang.NullPointerException
Failed to create node: RegisteredServer2 with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12192java.lang.NullPointerException
Failed to create node: KerberosIdentityToken with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12504java.lang.NullPointerException
Failed to create node: EndpointConfiguration with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=331java.lang.NullPointerException
Failed to create node: ComplianceLevel with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=334java.lang.NullPointerException
Failed to create node: SupportedProfile with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=335java.lang.NullPointerException
Failed to create node: SoftwareCertificate with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=341java.lang.NullPointerException
Failed to create node: FilterOperator with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=576java.lang.NullPointerException
Failed to create node: ContentFilterElement with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=583java.lang.NullPointerException
Failed to create node: ContentFilter with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=586java.lang.NullPointerException
Failed to create node: FilterOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=589java.lang.NullPointerException
Failed to create node: ElementOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=592java.lang.NullPointerException
Failed to create node: LiteralOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=595java.lang.NullPointerException
Failed to create node: AttributeOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=598java.lang.NullPointerException
Failed to create node: SimpleAttributeOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=601java.lang.NullPointerException
Failed to create node: HistoryEvent with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=659java.lang.NullPointerException
Failed to create node: HistoryUpdateType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11234java.lang.NullPointerException
Failed to create node: PerformUpdateType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11293java.lang.NullPointerException
Failed to create node: MonitoringFilter with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=719java.lang.NullPointerException
Failed to create node: EventFilter with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=725java.lang.NullPointerException
Failed to create node: AggregateConfiguration with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=948java.lang.NullPointerException
Failed to create node: HistoryEventFieldList with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=920java.lang.NullPointerException
Failed to create node: CompositeTestType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=405java.lang.NullPointerException
Failed to create node: BuildInfo with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=338java.lang.NullPointerException
Failed to create node: RedundancySupport with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=851java.lang.NullPointerException
Failed to create node: ServerState with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=852java.lang.NullPointerException
Failed to create node: RedundantServerDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=853java.lang.NullPointerException
Failed to create node: EndpointUrlListDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11943java.lang.NullPointerException
Failed to create node: NetworkGroupDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11944java.lang.NullPointerException
Failed to create node: SamplingIntervalDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=856java.lang.NullPointerException
Failed to create node: ServerDiagnosticsSummaryDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=859java.lang.NullPointerException
Failed to create node: ServerStatusDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=862java.lang.NullPointerException
Failed to create node: SessionDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=865java.lang.NullPointerException
Failed to create node: SessionSecurityDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=868java.lang.NullPointerException
Failed to create node: ServiceCounterDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=871java.lang.NullPointerException
Failed to create node: StatusResult with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=299java.lang.NullPointerException
Failed to create node: SubscriptionDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=874java.lang.NullPointerException
Failed to create node: ModelChangeStructureDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=877java.lang.NullPointerException
Failed to create node: SemanticChangeStructureDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=897java.lang.NullPointerException
Failed to create node: Range with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=884java.lang.NullPointerException
Failed to create node: EUInformation with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=887java.lang.NullPointerException
Failed to create node: AxisScaleEnumeration with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12077java.lang.NullPointerException
Failed to create node: ComplexNumberType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12171java.lang.NullPointerException
4179 more errors – read ErrorList of the exception for a full list
at com.prosysopc.ua.ModelParserBase.createModel(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(Unknown Source)
… 8 more

Any ideas?

Thank you very much in advance.

July 22, 2014
13:21, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Hi David and welcome to the forums!

Apparently something goes wrong when initializing the information model. Does SampleConsoleServer work OK for you? Which parts have you copied into your own solution?

July 22, 2014
13:45, EEST
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Otso Palonen said

Hi David and welcome to the forums!

Apparently something goes wrong when initializing the information model. Does SampleConsoleServer work OK for you? Which parts have you copied into your own solution?

Thank you!

Yes, SampleConsoleServer works fine. I have copied your SampleConsoleServer.initialize function into a class of mine, and I call it at the very beginning of my program. In Netbeans I debug and when it goes through server.init() the exceotion arises.

July 23, 2014
10:22, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Unfortunately the log doesn’t have enough information to say what the problem is. Is it possible for you to send us the relevant code to uajava-support@prosysopc.com so we can take a closer look?

July 24, 2014
8:17, EEST
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Otso Palonen said

Unfortunately the log doesn’t have enough information to say what the problem is. Is it possible for you to send us the relevant code to uajava-support@prosysopc.com so we can take a closer look?

Mmm, I think it is not necessary. I think this is a problem about packaging and executing.

I mean, I first opened your sample code with Netbeans, and compiled it. It created a jar file. Here I have two cases:

– If I embed every library inside this jar file to get a single, executable jar, I get a problem with th bouncycastle library. and JCE. I get an exception: JCE cannot authenticate the provider BC. You can read about this issue in : http://stackoverflow.com/quest…..pplication
– If I build the jar without libraries inside, I can execute the jar but I get the ModelException

So, I tried to execute the compiled classes like you did in SampleConsoleServer.bat, and everything went OK.

Is there any way to execute your library inside a jar file? or is there any documentation on this?

July 24, 2014
10:23, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

You cannot repackage it, since like you said JCE won’t accept it. You must use the original jar.

July 24, 2014
10:25, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Can you check if the jar without the libraries inside contains Opc.Ua.NodeSet2.xml?

July 24, 2014
11:43, EEST
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Otso Palonen said

Can you check if the jar without the libraries inside contains Opc.Ua.NodeSet2.xml?

No, it is not. It is contained in your Prosys jar library only.

July 24, 2014
12:23, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Could you modify the log.properties file to DEBUG and see what kind of log output you get? You can send it to us also.

July 24, 2014
15:20, EEST
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Otso Palonen said

Could you modify the log.properties file to DEBUG and see what kind of log output you get? You can send it to us also.

It seems to be a problem with the dependencies. I write here how I am executing the project and the result. In build/clases there are the compiled classes in the folder com/soltec/scada/server/, and in the folder scada-server-scratch/lib there are all the libs from your SDK. And in dist there is the jar file generated from the compilation of the entire project.

Note that if I execute D:\scada-server-scratch>java -cp build\classes:lib\* com.soltec.scada.server.ScadaServer, everything works OK.

D:\scada-server-scratch\build\classes>java -cp ..\..\dist\Scada-server-scratch.jar;..\..\lib\* com.soltec.scada.server.ScadaServer
* Prosys OPC UA Java SDK v2.0.0-194
* (c) Prosys PMS Ltd.

* Running in EVALUATION mode
* Connections will close after 119 minutes

log4j:WARN No appenders could be found for logger (com.prosysopc.ua.UaApplication).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4…..l#noconfig for more info.
Exception in thread “main” java.lang.RuntimeException: NodeManagerRoot
at com.prosysopc.ua.server.NodeManagerRoot.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagementServiceHandler.a(Unknown Source)
at com.prosysopc.ua.server.UaServer.initServiceHandlers(Unknown Source)
at com.prosysopc.ua.server.UaServer.init(Unknown Source)
at com.soltec.scada.server.opc.OpcServer.initialize(OpcServer.java:1040)
at com.soltec.scada.server.ScadaServer.main(ScadaServer.java:50)
Caused by: com.prosysopc.ua.ModelException: 4229 individual model errors:
(only 50 first included in message; read ErrorList of the exception for a full list)
Failed to create node: HasTrueSubState with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=9004java.lang.NullPointerException
Failed to create node: HasFalseSubState with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=9005java.lang.NullPointerException
Failed to create node: HasCondition with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=9006java.lang.NullPointerException
Failed to create node: OpenFileMode with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11939java.lang.NullPointerException
Failed to create node: TrustListMasks with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12552java.lang.NullPointerException
Failed to create node: TrustListDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12554java.lang.NullPointerException
Failed to create node: TimeZoneDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=8912java.lang.NullPointerException
Failed to create node: ServerOnNetwork with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12189java.lang.NullPointerException
Failed to create node: RegisteredServer2 with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12192java.lang.NullPointerException
Failed to create node: KerberosIdentityToken with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12504java.lang.NullPointerException
Failed to create node: EndpointConfiguration with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=331java.lang.NullPointerException
Failed to create node: ComplianceLevel with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=334java.lang.NullPointerException
Failed to create node: SupportedProfile with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=335java.lang.NullPointerException
Failed to create node: SoftwareCertificate with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=341java.lang.NullPointerException
Failed to create node: FilterOperator with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=576java.lang.NullPointerException
Failed to create node: ContentFilterElement with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=583java.lang.NullPointerException
Failed to create node: ContentFilter with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=586java.lang.NullPointerException
Failed to create node: FilterOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=589java.lang.NullPointerException
Failed to create node: ElementOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=592java.lang.NullPointerException
Failed to create node: LiteralOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=595java.lang.NullPointerException
Failed to create node: AttributeOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=598java.lang.NullPointerException
Failed to create node: SimpleAttributeOperand with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=601java.lang.NullPointerException
Failed to create node: HistoryEvent with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=659java.lang.NullPointerException
Failed to create node: HistoryUpdateType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11234java.lang.NullPointerException
Failed to create node: PerformUpdateType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11293java.lang.NullPointerException
Failed to create node: MonitoringFilter with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=719java.lang.NullPointerException
Failed to create node: EventFilter with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=725java.lang.NullPointerException
Failed to create node: AggregateConfiguration with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=948java.lang.NullPointerException
Failed to create node: HistoryEventFieldList with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=920java.lang.NullPointerException
Failed to create node: CompositeTestType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=405java.lang.NullPointerException
Failed to create node: BuildInfo with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=338java.lang.NullPointerException
Failed to create node: RedundancySupport with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=851java.lang.NullPointerException
Failed to create node: ServerState with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=852java.lang.NullPointerException
Failed to create node: RedundantServerDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=853java.lang.NullPointerException
Failed to create node: EndpointUrlListDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11943java.lang.NullPointerException
Failed to create node: NetworkGroupDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=11944java.lang.NullPointerException
Failed to create node: SamplingIntervalDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=856java.lang.NullPointerException
Failed to create node: ServerDiagnosticsSummaryDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=859java.lang.NullPointerException
Failed to create node: ServerStatusDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=862java.lang.NullPointerException
Failed to create node: SessionDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=865java.lang.NullPointerException
Failed to create node: SessionSecurityDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=868java.lang.NullPointerException
Failed to create node: ServiceCounterDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=871java.lang.NullPointerException
Failed to create node: StatusResult with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=299java.lang.NullPointerException
Failed to create node: SubscriptionDiagnosticsDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=874java.lang.NullPointerException
Failed to create node: ModelChangeStructureDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=877java.lang.NullPointerException
Failed to create node: SemanticChangeStructureDataType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=897java.lang.NullPointerException
Failed to create node: Range with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=884java.lang.NullPointerException
Failed to create node: EUInformation with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=887java.lang.NullPointerException
Failed to create node: AxisScaleEnumeration with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12077java.lang.NullPointerException
Failed to create node: ComplexNumberType with id:nsu=http%3A%2F%2Fopcfoundation.org%2FUA%2F;i=12171java.lang.NullPointerException
4179 more errors – read ErrorList of the exception for a full list
at com.prosysopc.ua.ModelParserBase.createModel(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(Unknown Source)
… 7 more

July 25, 2014
7:37, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Can you try to isolate the problem (minimize what’s in your server)? The log is not informative in this case, since it does not show the cause of the NullPointerException. If you change the log level (row log4j.logger.com.prosysopc.ua=INFO -> DEBUG) you may get more information.

July 28, 2014
11:08, EEST
Avatar
David
Member
Members
Forum Posts: 14
Member Since:
July 22, 2014
sp_UserOfflineSmall Offline

Otso Palonen said

Can you try to isolate the problem (minimize what’s in your server)? The log is not informative in this case, since it does not show the cause of the NullPointerException. If you change the log level (row log4j.logger.com.prosysopc.ua=INFO -> DEBUG) you may get more information.

I have tried that, and the log is very long. If you need it complete, I can send you. But the first exception is:

07/28/2014 12:56:23.810 DEBUG Parsed XML of value:
i=297SubscriptionIdi=7-1
07/28/2014 12:56:23.816 ERROR Error in ModelParser2.endElement: localName=Value
java.lang.NullPointerException
at org.opcfoundation.ua.utils.ObjectUtils.appendObjectAsString(Unknown Source)
at org.opcfoundation.ua.utils.ObjectUtils._printFieldsDeep(Unknown Source)
at org.opcfoundation.ua.utils.ObjectUtils.printFieldsDeep(Unknown Source)
at org.opcfoundation.ua.core.Argument.toString(Unknown Source)
at java.lang.String.valueOf(String.java:2854)
at java.util.Arrays.toString(Arrays.java:3565)
at org.opcfoundation.ua.utils.MultiDimensionArrayUtils.toString(Unknown Source)
at org.opcfoundation.ua.builtintypes.Variant.toString(Unknown Source)
at org.opcfoundation.ua.builtintypes.Variant.toString(Unknown Source)
at java.lang.String.valueOf(String.java:2854)
at java.lang.StringBuilder.append(StringBuilder.java:128)
at com.prosysopc.ua.ModelParserBase.endElement(Unknown Source)
at com.prosysopc.ua.ModelParserBase$a.endElement(Unknown Source)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.endElement(AbstractSAXParser.java:609)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanEndElement(XMLDocumentFragmentScannerImpl.java:1781)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2957)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:606)
at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:117)
at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:510)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:848)
at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:777)
at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
at com.prosysopc.ua.ModelParserBase.parseFile(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.loadModel(Unknown Source)
at com.prosysopc.ua.server.NodeManagerRoot.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagerTable.init(Unknown Source)
at com.prosysopc.ua.server.NodeManagementServiceHandler.a(Unknown Source)
at com.prosysopc.ua.server.UaServer.initServiceHandlers(Unknown Source)
at com.prosysopc.ua.server.UaServer.init(Unknown Source)
at com.soltec.scada.server.opc.OpcServer.initialize(OpcServer.java:1040)
at com.soltec.scada.server.ScadaServer.main(ScadaServer.java:61)
07/28/2014 12:56:23.818 DEBUG endElement: UAVariable
07/28/2014 12:56:23.818 DEBUG startElement: UAVariable readingValue=0

And this repeats a lot of times until the end

July 28, 2014
11:37, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Please send the whole log to us so it’s easier to see what exactly has been happening before the exception.

August 13, 2014
7:06, EEST
Avatar
Bjarne Boström
Moderator
Moderators
Forum Posts: 982
Member Since:
April 3, 2012
sp_UserOfflineSmall Offline

Posting the fix in case someone else has the problem.

The line at start of SampleConsoleServer’s main method

PropertyConfigurator.configureAndWatch(SampleConsoleServer.class.getResource(“log.properties”).getFile(), 5000);

should be changed to call configure(…) method of PropertyConfigurator instead of the configureAndWatch method. This may should unrelated but it anyway fixed the problem.

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online:
20 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 75

ibrahim: 75

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 709

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1465

Posts: 6252

Newest Members:

christi10l, ahamad1, Flores Frederick, ellenmoss, harriettscherer, shanonhumphreys, KupimotoblokfuB, tamhollander5, paulinafcf, bridgette18l

Moderators: Jouni Aro: 1009, Otso Palonen: 32, Tuomas Hiltunen: 5, Pyry: 1, Petri: 0, Bjarne Boström: 982, Heikki Tahvanainen: 402, Jukka Asikainen: 1, moldzh08: 0, Jimmy Ni: 26, Teppo Uimonen: 21, Markus Johansson: 42, Niklas Nurminen: 0, Matti Siponen: 319, Lusetti: 0, Ari-Pekka Soikkeli: 5

Administrators: admin: 1