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
Problem connecting with the SampleConsoleServer
October 24, 2012
9:20, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

Hi,
I have successfully installed the android client on the emulator, however I am still not being able to connect to the sample server provided in the java sdk. I have checked and rechecked again and again my serverUri is correct opc.tcp://10.0.2.2:52520/OPCUA/SampleConsoleServer, but still the AndroidSampleApplication is resulting in a force stop every time. I have tried to log the code and found out the problem occurs at the UaClient.connect method. I have tried to install the client in my android device as well, this time I used the serverUri as opc.tcp://uademo.prosysopc.com:52520 as mentioned above, however still no success, it fails to connect to the web based sample server as well. Please help me proceed further, I am trying to develop a full fledged android opc client based on your Java sdk.

October 24, 2012
10:45, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Hi, and welcome to the forums!

Just to make sure, you’re running the SampleConsoleServer on the same machine as is the host for the emulator? Then the URI opc.tcp://10.0.2.2:52520/OPCUA/SampleConsoleServer should work from the emulator. Do other network connections from the emulator work, can you for example access the web?

Can you try our demo server again, this time with the URI opc.tcp://uademo.prosysopc.com:52520/OPCUA/SampleConsoleServer ? I had put the URI without the end in the blog, fixed it now. Sorry about the confusion.

What kind of error message do you get? Can you post the stack trace?

BR,
– Otso

October 25, 2012
9:10, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

Hi,

Yes I am running the emulator and the server both on the same (Windows XP) machine. Also, I can access internet from within my emulator. But I still cant connect to the SampleConsoleServer. The URI opc.tcp://10.0.2.2:52520/OPCUA/SampleConsoleServer should work in this case however it still is not. I am posting the Logcat entries here, please help me out, I can’t think what is possibly going wrong:-

10-25 09:04:29.023: W/dalvikvm(2316): VFY: unable to resolve exception class 891 (Ljavax/xml/stream/XMLStreamException;)
10-25 09:04:29.023: W/dalvikvm(2316): VFY: unable to find exception handler at addr 0x53
10-25 09:04:29.023: W/dalvikvm(2316): VFY: rejected Lorg/opcfoundation/ua/builtintypes/ExtensionObject;.decode (Lorg/opcfoundation/ua/encoding/binary/IEncodeableSerializer;)Lorg/opcfoundation/ua/encoding/IEncodeable;
10-25 09:04:29.023: W/dalvikvm(2316): VFY: rejecting opcode 0x0d at 0x0053
10-25 09:04:29.023: W/dalvikvm(2316): VFY: rejected Lorg/opcfoundation/ua/builtintypes/ExtensionObject;.decode (Lorg/opcfoundation/ua/encoding/binary/IEncodeableSerializer;)Lorg/opcfoundation/ua/encoding/IEncodeable;
10-25 09:04:29.023: W/dalvikvm(2316): Verifier rejected class Lorg/opcfoundation/ua/builtintypes/ExtensionObject;
10-25 09:04:29.023: W/dalvikvm(2316): threadid=9: thread exiting with uncaught exception (group=0x40015560)
10-25 09:04:29.033: E/AndroidRuntime(2316): FATAL EXCEPTION: AsyncTask #1
10-25 09:04:29.033: E/AndroidRuntime(2316): java.lang.RuntimeException: An error occured while executing doInBackground()
10-25 09:04:29.033: E/AndroidRuntime(2316): at android.os.AsyncTask$3.done(AsyncTask.java:200)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.lang.Thread.run(Thread.java:1019)
10-25 09:04:29.033: E/AndroidRuntime(2316): Caused by: java.lang.VerifyError: org.opcfoundation.ua.builtintypes.ExtensionObject
10-25 09:04:29.033: E/AndroidRuntime(2316): at org.opcfoundation.ua.application.SessionChannel.activate(Unknown Source)
10-25 09:04:29.033: E/AndroidRuntime(2316): at com.prosysopc.ua.client.UaClient.c(Unknown Source)
10-25 09:04:29.033: E/AndroidRuntime(2316): at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
10-25 09:04:29.033: E/AndroidRuntime(2316): at com.prosysopc.ua.android.ConnectAndReadTimeTask.doInBackground(ConnectAndReadTimeTask.java:79)
10-25 09:04:29.033: E/AndroidRuntime(2316): at com.prosysopc.ua.android.ConnectAndReadTimeTask.doInBackground(ConnectAndReadTimeTask.java:1)
10-25 09:04:29.033: E/AndroidRuntime(2316): at android.os.AsyncTask$2.call(AsyncTask.java:185)
10-25 09:04:29.033: E/AndroidRuntime(2316): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
10-25 09:04:29.033: E/AndroidRuntime(2316): … 4 more

October 25, 2012
9:50, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

I think this issue can be resolved using our latest development build. Can you send an email to uajava-support@prosysopc.com so we can give you a download link for the build?

October 25, 2012
9:58, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

I think I already have the latest build, considering that I had downloaded the same 2 days back. However I have again sent the mail. I will let you the status as soon as I am done with the same.
Thanks

October 25, 2012
10:02, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

Is Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-1.4.0-5518 the latest version? If so I already have that.

October 25, 2012
10:19, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

No sorry, I am still facing the exact same issue. I will paste the entire stack trace this time, I need to get this working,

10-25 10:12:12.281: D/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol
10-25 10:13:22.593: D/AndroidRuntime(16954): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<< /data/dalvik-cache/data@app@com.prosysopc.ua.android-1.apk@classes.dex
10-25 10:15:44.673: D/PackageManager(61): New package installed in /data/app/com.prosysopc.ua.android-1.apk
10-25 10:15:44.850: I/ActivityManager(61): Force stopping package com.prosysopc.ua.android uid=10034
10-25 10:15:47.278: D/dalvikvm(61): GC_EXPLICIT freed 705K, 50% free 4434K/8711K, external 4782K/5596K, paused 2142ms
10-25 10:15:48.303: D/dalvikvm(126): GC_EXPLICIT freed 23K, 51% free 2924K/5895K, external 4652K/5809K, paused 1514ms
10-25 10:15:52.034: W/RecognitionManagerService(61): no available voice recognition services found
10-25 10:15:53.701: D/dalvikvm(61): GC_EXPLICIT freed 189K, 50% free 4392K/8711K, external 4782K/5596K, paused 165ms
10-25 10:15:55.136: I/installd(35): unlink /data/dalvik-cache/data@app@com.prosysopc.ua.android-2.apk@classes.dex
10-25 10:15:55.355: D/AndroidRuntime(17008): Shutting down VM
10-25 10:15:55.843: D/dalvikvm(17008): GC_CONCURRENT freed 102K, 72% free 295K/1024K, external 0K/0K, paused 1ms+1ms
10-25 10:15:55.853: D/jdwp(17008): Got wake-up signal, bailing out of select
10-25 10:15:55.853: D/dalvikvm(17008): Debugger has detached; object registry had 1 entries
10-25 10:16:00.344: E/dalvikvm(61): No free temp registers
10-25 10:16:00.344: E/dalvikvm(61): Jit: aborting trace compilation, reverting to interpreter
10-25 10:16:00.660: D/AndroidRuntime(17040): >>>>>> AndroidRuntime START com.android.internal.os.RuntimeInit <<<<<<
10-25 10:16:00.660: D/AndroidRuntime(17040): CheckJNI is ON
10-25 10:16:02.015: D/AndroidRuntime(17040): Calling main entry com.android.commands.am.Am
10-25 10:16:02.165: I/ActivityManager(61): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10000000 cmp=com.prosysopc.ua.android/.OpcUaSampleActivity } from pid 17040
10-25 10:16:03.299: D/AndroidRuntime(17040): Shutting down VM
10-25 10:16:03.338: I/AndroidRuntime(17040): NOTE: attach of thread ‘Binder Thread #3’ failed
10-25 10:16:03.349: D/dalvikvm(17040): GC_CONCURRENT freed 103K, 69% free 319K/1024K, external 0K/0K, paused 1ms+1ms
10-25 10:16:03.349: D/jdwp(17040): Got wake-up signal, bailing out of select
10-25 10:16:03.349: D/dalvikvm(17040): Debugger has detached; object registry had 1 entries
10-25 10:16:06.635: I/ActivityManager(61): Start proc com.prosysopc.ua.android for activity com.prosysopc.ua.android/.OpcUaSampleActivity: pid=17054 uid=10034 gids={3003, 1015}
10-25 10:16:11.094: I/ActivityManager(61): Displayed com.prosysopc.ua.android/.OpcUaSampleActivity: +7s526ms
10-25 10:16:12.254: I/Launcher(126): setLoadOnResume
10-25 10:16:16.345: W/ProcessStats(61): Skipping unknown process pid 17065
10-25 10:16:16.393: D/dalvikvm(126): GC_EXPLICIT freed 52K, 50% free 2980K/5895K, external 4701K/5809K, paused 47ms
10-25 10:16:21.683: D/dalvikvm(221): GC_EXPLICIT freed 8K, 55% free 2594K/5703K, external 1625K/2137K, paused 305ms
10-25 10:16:27.043: D/dalvikvm(315): GC_EXPLICIT freed 2K, 54% free 2536K/5511K, external 1625K/2137K, paused 553ms
10-25 10:16:55.327: V/Soup(17054): Async task entered
10-25 10:16:55.476: I/System.out(17054): * Prosys OPC UA Java SDK v0.0
10-25 10:16:55.476: I/System.out(17054): * (c) Prosys PMS Ltd.
10-25 10:16:55.483: I/System.out(17054): * Running in EVALUATION mode
10-25 10:16:55.483: I/System.out(17054): * Connections will close after 119 minutes
10-25 10:16:55.505: W/System.err(17054): log4j:WARN No appenders could be found for logger (com.prosysopc.ua.UaApplication).
10-25 10:16:55.520: W/System.err(17054): log4j:WARN Please initialize the log4j system properly.
10-25 10:16:55.528: W/System.err(17054): log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
10-25 10:16:59.255: V/Soup(17054): Uaclient object created…
10-25 10:16:59.305: W/dalvikvm(17054): VFY: unable to find class referenced in signature (Lsun/security/x509/GeneralNames;)
10-25 10:16:59.313: I/dalvikvm(17054): Could not find method sun.security.x509.GeneralNames.isEmpty, referenced from method com.prosysopc.ua.PkiFileBasedCertificateValidator.a
10-25 10:16:59.313: W/dalvikvm(17054): VFY: unable to resolve virtual method 25815: Lsun/security/x509/GeneralNames;.isEmpty ()Z
10-25 10:16:59.313: D/dalvikvm(17054): VFY: replacing opcode 0x6e at 0x0000
10-25 10:16:59.313: D/dalvikvm(17054): VFY: dead code 0x0003-00ae in Lcom/prosysopc/ua/PkiFileBasedCertificateValidator;.a (Lsun/security/x509/GeneralNames;)Ljava/util/Collection;
10-25 10:16:59.336: E/dalvikvm(17054): Could not find class ‘sun.security.util.DerValue’, referenced from method com.prosysopc.ua.PkiFileBasedCertificateValidator.getSubjectAlternativeNames
10-25 10:16:59.336: W/dalvikvm(17054): VFY: unable to resolve new-instance 3523 (Lsun/security/util/DerValue;) in Lcom/prosysopc/ua/PkiFileBasedCertificateValidator;
10-25 10:16:59.374: D/dalvikvm(17054): VFY: replacing opcode 0x22 at 0x000a
10-25 10:16:59.374: D/dalvikvm(17054): VFY: dead code 0x000c-002c in Lcom/prosysopc/ua/PkiFileBasedCertificateValidator;.getSubjectAlternativeNames (Ljava/security/cert/X509Certificate;)Ljava/util/Collection;
10-25 10:16:59.753: V/Soup(17054): Certificate validation complete!
10-25 10:16:59.766: V/Soup(17054): Application description created
10-25 10:16:59.995: V/Soup(17054): Application identity created
10-25 10:16:59.995: V/Soup(17054): Locale created
10-25 10:16:59.995: V/Soup(17054): default timeout created
10-25 10:16:59.995: V/Soup(17054): security mode created
10-25 10:16:59.995: V/Soup(17054): user identity created
10-25 10:17:00.033: V/Soup(17054): Client created
10-25 10:17:01.026: D/dalvikvm(17054): GC_CONCURRENT freed 974K, 54% free 3124K/6727K, external 1625K/2137K, paused 20ms+6ms
10-25 10:17:02.913: D/dalvikvm(17054): GC_CONCURRENT freed 391K, 51% free 3351K/6727K, external 1625K/2137K, paused 26ms+3ms
10-25 10:17:04.683: D/dalvikvm(17054): GC_CONCURRENT freed 591K, 48% free 3503K/6727K, external 1625K/2137K, paused 19ms+14ms
10-25 10:17:05.233: D/dalvikvm(17054): GC_FOR_MALLOC freed 692K, 50% free 3493K/6983K, external 1625K/2137K, paused 133ms
10-25 10:17:05.483: D/dalvikvm(17054): GC_FOR_MALLOC freed 537K, 49% free 3573K/6983K, external 1625K/2137K, paused 49ms
10-25 10:17:05.703: D/dalvikvm(17054): GC_FOR_MALLOC freed 459K, 50% free 3561K/6983K, external 1625K/2137K, paused 43ms
10-25 10:17:05.723: I/dalvikvm-heap(17054): Grow heap (frag case) to 7.791MB for 191368-byte allocation
10-25 10:17:05.863: D/dalvikvm(17054): GC_FOR_MALLOC freed 3K, 48% free 3744K/7175K, external 1625K/2137K, paused 66ms
10-25 10:17:06.313: D/dalvikvm(17054): GC_FOR_MALLOC freed 895K, 51% free 3623K/7303K, external 1625K/2137K, paused 45ms
10-25 10:17:06.313: I/dalvikvm-heap(17054): Grow heap (frag case) to 7.943MB for 287048-byte allocation
10-25 10:17:06.393: D/dalvikvm(17054): GC_FOR_MALLOC freed 201K, 52% free 3702K/7623K, external 1625K/2137K, paused 80ms
10-25 10:17:06.679: I/dalvikvm(17054): Jit: resizing JitTable from 512 to 1024
10-25 10:17:06.983: D/dalvikvm(17054): GC_CONCURRENT freed 790K, 52% free 3720K/7623K, external 1625K/2137K, paused 4ms+3ms
10-25 10:17:07.073: D/dalvikvm(17054): GC_FOR_MALLOC freed 227K, 52% free 3716K/7623K, external 1625K/2137K, paused 41ms
10-25 10:17:07.393: D/dalvikvm(17054): GC_CONCURRENT freed 696K, 50% free 3852K/7623K, external 1625K/2137K, paused 5ms+5ms
10-25 10:17:07.643: D/dalvikvm(17054): GC_FOR_MALLOC freed 751K, 50% free 3845K/7623K, external 1625K/2137K, paused 45ms
10-25 10:17:07.693: D/dalvikvm(17054): GC_FOR_MALLOC freed 3K, 45% free 4224K/7623K, external 1625K/2137K, paused 46ms
10-25 10:17:07.763: I/dalvikvm-heap(17054): Grow heap (frag case) to 8.631MB for 392610-byte allocation
10-25 10:17:07.883: D/dalvikvm(17054): GC_FOR_MALLOC freed <1K, 43% free 4607K/8007K, external 1625K/2137K, paused 59ms
10-25 10:17:08.093: D/dalvikvm(17054): DexOpt: couldn’t find static field
10-25 10:17:08.093: W/dalvikvm(17054): VFY: unable to resolve static field 4198 (SubjectKeyIdentifier) in Lorg/bouncycastle/asn1/x509/X509Extensions;
10-25 10:17:08.093: D/dalvikvm(17054): VFY: replacing opcode 0x62 at 0x01d0
10-25 10:17:08.093: D/dalvikvm(17054): VFY: dead code 0x01d2-02c7 in Lorg/opcfoundation/ua/utils/CertificateUtils;.createApplicationInstanceCertificate (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I[Ljava/lang/String;)Lorg/opcfoundation/ua/transport/security/KeyPair;
10-25 10:17:08.093: D/dalvikvm(17054): DexOpt: couldn’t find static field
10-25 10:17:08.093: W/dalvikvm(17054): VFY: unable to resolve static field 4171 (AuthorityKeyIdentifier) in Lorg/bouncycastle/asn1/x509/X509Extensions;
10-25 10:17:08.093: D/dalvikvm(17054): VFY: replacing opcode 0x62 at 0x0086
10-25 10:17:08.093: D/dalvikvm(17054): VFY: dead code 0x0088-00d1 in Lorg/opcfoundation/ua/utils/CertificateUtils;.createCertificateChain ()[Ljava/security/cert/X509Certificate;
10-25 10:17:08.103: D/dalvikvm(17054): DexOpt: couldn’t find static field
10-25 10:17:08.103: W/dalvikvm(17054): VFY: unable to resolve static field 4198 (SubjectKeyIdentifier) in Lorg/bouncycastle/asn1/x509/X509Extensions;
10-25 10:17:08.103: D/dalvikvm(17054): VFY: replacing opcode 0x62 at 0x007b
10-25 10:17:08.103: D/dalvikvm(17054): VFY: dead code 0x007d-00c8 in Lorg/opcfoundation/ua/utils/CertificateUtils;.generateKeyPair (Ljava/lang/String;)Lorg/opcfoundation/ua/transport/security/KeyPair;
10-25 10:17:08.113: D/dalvikvm(17054): DexOpt: couldn’t find static field
10-25 10:17:08.113: W/dalvikvm(17054): VFY: unable to resolve static field 4198 (SubjectKeyIdentifier) in Lorg/bouncycastle/asn1/x509/X509Extensions;
10-25 10:17:08.113: D/dalvikvm(17054): VFY: replacing opcode 0x62 at 0x00b3
10-25 10:17:08.113: D/dalvikvm(17054): VFY: dead code 0x00b5-0142 in Lorg/opcfoundation/ua/utils/CertificateUtils;.renewApplicationInstanceCertificate (Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ILorg/opcfoundation/ua/transport/security/KeyPair;[Ljava/lang/String;)Lorg/opcfoundation/ua/transport/security/KeyPair;
10-25 10:17:09.193: W/dalvikvm(17054): VFY: unable to resolve exception class 891 (Ljavax/xml/stream/XMLStreamException;)
10-25 10:17:09.205: W/dalvikvm(17054): VFY: unable to find exception handler at addr 0x53
10-25 10:17:09.205: W/dalvikvm(17054): VFY: rejected Lorg/opcfoundation/ua/builtintypes/ExtensionObject;.decode (Lorg/opcfoundation/ua/encoding/binary/IEncodeableSerializer;)Lorg/opcfoundation/ua/encoding/IEncodeable;
10-25 10:17:09.205: W/dalvikvm(17054): VFY: rejecting opcode 0x0d at 0x0053
10-25 10:17:09.205: W/dalvikvm(17054): VFY: rejected Lorg/opcfoundation/ua/builtintypes/ExtensionObject;.decode (Lorg/opcfoundation/ua/encoding/binary/IEncodeableSerializer;)Lorg/opcfoundation/ua/encoding/IEncodeable;
10-25 10:17:09.205: W/dalvikvm(17054): Verifier rejected class Lorg/opcfoundation/ua/builtintypes/ExtensionObject;
10-25 10:17:09.213: W/dalvikvm(17054): threadid=9: thread exiting with uncaught exception (group=0x40015560)
10-25 10:17:09.247: E/AndroidRuntime(17054): FATAL EXCEPTION: AsyncTask #1
10-25 10:17:09.247: E/AndroidRuntime(17054): java.lang.RuntimeException: An error occured while executing doInBackground()
10-25 10:17:09.247: E/AndroidRuntime(17054): at android.os.AsyncTask$3.done(AsyncTask.java:200)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.util.concurrent.FutureTask$Sync.innerSetException(FutureTask.java:274)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.util.concurrent.FutureTask.setException(FutureTask.java:125)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:308)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.util.concurrent.FutureTask.run(FutureTask.java:138)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1088)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:581)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.lang.Thread.run(Thread.java:1019)
10-25 10:17:09.247: E/AndroidRuntime(17054): Caused by: java.lang.VerifyError: org.opcfoundation.ua.builtintypes.ExtensionObject
10-25 10:17:09.247: E/AndroidRuntime(17054): at org.opcfoundation.ua.application.SessionChannel.activate(Unknown Source)
10-25 10:17:09.247: E/AndroidRuntime(17054): at com.prosysopc.ua.client.UaClient.c(Unknown Source)
10-25 10:17:09.247: E/AndroidRuntime(17054): at com.prosysopc.ua.client.UaClient.connect(Unknown Source)
10-25 10:17:09.247: E/AndroidRuntime(17054): at com.prosysopc.ua.android.ConnectAndReadTimeTask.doInBackground(ConnectAndReadTimeTask.java:79)
10-25 10:17:09.247: E/AndroidRuntime(17054): at com.prosysopc.ua.android.ConnectAndReadTimeTask.doInBackground(ConnectAndReadTimeTask.java:1)
10-25 10:17:09.247: E/AndroidRuntime(17054): at android.os.AsyncTask$2.call(AsyncTask.java:185)
10-25 10:17:09.247: E/AndroidRuntime(17054): at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:306)
10-25 10:17:09.247: E/AndroidRuntime(17054): … 4 more
10-25 10:17:09.473: W/ActivityManager(61): Force finishing activity com.prosysopc.ua.android/.OpcUaSampleActivity
10-25 10:17:09.906: D/dalvikvm(17054): GC_CONCURRENT freed 2154K, 58% free 3577K/8391K, external 1625K/2137K, paused 30ms+4ms
10-25 10:17:13.636: D/SntpClient(61): request time failed: java.net.SocketException: Address family not supported by protocol
10-25 10:17:16.643: D/dalvikvm(17054): GC_EXPLICIT freed 20K, 58% free 3559K/8391K, external 1625K/2137K, paused 49ms
10-25 10:17:23.463: I/Process(17054): Sending signal. PID: 17054 SIG: 9
10-25 10:17:23.523: W/InputManagerService(61): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@4079fea0
10-25 10:17:23.913: D/dalvikvm(126): GC_EXPLICIT freed 179K, 50% free 2954K/5895K, external 4683K/5809K, paused 307ms
10-25 10:17:24.015: I/ActivityManager(61): Process com.prosysopc.ua.android (pid 17054) has died.

October 25, 2012
10:36, EEST
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Can you confirm that your application now uses also the latest stack version Opc.Ua.Stack-1.01.325.1.jar?

October 25, 2012
10:42, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

Yes and the same was included in your latest sdk too, that is the one I am using.

October 25, 2012
10:44, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

The SampleConsoleClient is working fine with the SampleConsoleServer but I cant get the Android Client to work Cry

October 25, 2012
12:30, EEST
Avatar
xenonforlife
Member
Members
Forum Posts: 10
Member Since:
October 24, 2012
sp_UserOfflineSmall Offline

Thanks to you, the problem has been solved by the use of the latest sdk and the fixed opcua jar file. It works perfectly now. Thanks again. the issue can be closed now

November 15, 2012
17:07, EET
Avatar
hapons
New Member
Members
Forum Posts: 1
Member Since:
November 15, 2012
sp_UserOfflineSmall Offline

HI, i have the same problem, but in the last version of Prosys-OPC-UA-Java-SDK-Client-Server-Evaluation-1.3.4-4616, the version of opcua jar is Opc.Ua.Stack-1.01.324.4
Where is the Opc.Ua.Stack-1.01.325.1.jar version?
I have the same problem as xenonforlife, but I could not solve
I am trying to develop a full fledged android opc client based on your Java sdk too.
Please, i need help Frown.

December 5, 2012
8:42, EET
Avatar
Otso Palonen
Espoo, Finland
Moderator
Moderators
Forum Posts: 32
Member Since:
December 21, 2011
sp_UserOfflineSmall Offline

Hi hapons and welcome to the forum!

I’m very sorry that it’s taken so long to reply to this thread. The fix for this issue is included in the latest evaluation version 1.4.2 of our SDK. Please request evaluation for the latest version and the issue will be resolved.

Best regards,
– Otso

December 16, 2012
18:36, EET
Avatar
mgonzapa@gmail.com
New Member
Members
Forum Posts: 1
Member Since:
December 14, 2012
sp_UserOfflineSmall Offline

Hello,

I was wondering if it is possible to have this sample client. I read that I need a login and password for the evaluation. May you send me them to my email?

Kind regards,

Mauricio

Forum Timezone: Europe/Helsinki

Most Users Ever Online: 518

Currently Online: Elvaspr
9 Guest(s)

Currently Browsing this Page:
1 Guest(s)

Top Posters:

hbrackel: 135

pramanj: 86

Francesco Zambon: 81

rocket science: 77

Ibrahim: 76

Sabari: 62

kapsl: 57

gjevremovic: 49

Xavier: 43

fred: 41

Member Stats:

Guest Posters: 0

Members: 684

Moderators: 16

Admins: 1

Forum Stats:

Groups: 3

Forums: 15

Topics: 1469

Posts: 6266

Newest Members:

Elvaspr, jackchen, joliecheney96, digitechroshni, LouieWreve, Kickbiche, karrimacvitie5, graciela2073, sagarchau, elviralangwell4

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

Administrators: admin: 1