I can't say for sure what fixed this issue, but this is what I did.  

I Refreshed the cn1Libs from the CodenameOne context menu from the project, 
the re-built locally. For some reason, the WebSocket code I added to fix 
the issue originally, was now not found during compile.  Looking at the 
Extensions, is showed that the WebSocket lib was no longer "downloaded". I 
re-downloaded the WebSocket extension, refreshed the libs, rebuilt locally 
and at least the WebSockets that I was using now compiled properly.  Then I 
sent the debug build to iOS and it built properly.



On Monday, April 3, 2017 at 12:03:44 PM UTC-6, Steve Hannah wrote:
>
> Good to know you got it working.  Can you share how you fixed it for the 
> benefit of those who come after?
>
> Best regards
>
> Steve
>
> On Mon, Apr 3, 2017 at 11:02 AM, Tim Gallagher <[email protected] 
> <javascript:>> wrote:
>
>> Steve,
>>
>> I'll keep those things in mind. I have since fixed this issue.
>>
>> Tim
>>
>> On Mon, Apr 3, 2017 at 11:55 AM, Steve Hannah <[email protected] 
>> <javascript:>> wrote:
>>
>>> Please don't open old threads.  Better to start a new thread with your 
>>> issue.  In the new thread, please include relevant portions of the server 
>>> error log from your build.  Also ensure that you are using the latest 
>>> version of the websocket lib.
>>>
>>> Best regards
>>>
>>> Steve
>>>
>>> On Sat, Apr 1, 2017 at 1:06 PM, <[email protected] <javascript:>> 
>>> wrote:
>>>
>>>> I'm actually using it like as the code below and I'm still getting this 
>>>> error when building for iOS.  The Android build works just fine.
>>>>
>>>>     public static void getWebService(ClientResponseCallback callback, 
>>>> String url) {
>>>>         WebSocket sock = new WebSocket(url) {
>>>>
>>>>             @Override
>>>>             protected void onOpen() {
>>>>                 
>>>>             }
>>>>
>>>>             @Override
>>>>             protected void onClose(int statusCode, String reason) {
>>>>
>>>>             }
>>>>
>>>>             @Override
>>>>             protected void onMessage(final String message) {
>>>>                 System.out.println("Received message "+message);
>>>>                 Display.getInstance().callSerially(new Runnable() {
>>>>
>>>>                     public void run() {
>>>>                         callback.onClientMessage(message);
>>>>                     }
>>>>
>>>>                 });
>>>>             }
>>>>
>>>>             @Override
>>>>             protected void onError(Exception ex) {
>>>>                 Display.getInstance().callSerially(new Runnable() {
>>>>
>>>>                     public void run() {
>>>>                         callback.onClientError(ex);
>>>>                     }
>>>>
>>>>                 });
>>>>                 
>>>>             }
>>>>
>>>>              @Override
>>>>              protected void onMessage(byte[] message) {
>>>>
>>>>              }
>>>>
>>>>         };
>>>>         sock.connect();
>>>>     }
>>>>  
>>>>
>>>> On Monday, August 15, 2016 at 10:21:05 PM UTC-6, Shai Almog wrote:
>>>>>
>>>>> Do you use the WebSocket class from code?
>>>>> These errors happen if the native code includes a Java class but the 
>>>>> VM stripped it out because it is unused.
>>>>>
>>>> -- 
>>>> You received this message because you are subscribed to the Google 
>>>> Groups "CodenameOne Discussions" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send 
>>>> an email to [email protected] 
>>>> <javascript:>.
>>>> Visit this group at 
>>>> https://groups.google.com/group/codenameone-discussions.
>>>> To view this discussion on the web visit 
>>>> https://groups.google.com/d/msgid/codenameone-discussions/1334a8b9-72a6-45c8-85ea-649c585a7aff%40googlegroups.com
>>>>  
>>>> <https://groups.google.com/d/msgid/codenameone-discussions/1334a8b9-72a6-45c8-85ea-649c585a7aff%40googlegroups.com?utm_medium=email&utm_source=footer>
>>>> .
>>>>
>>>> For more options, visit https://groups.google.com/d/optout.
>>>>
>>>
>>>
>>>
>>> -- 
>>> Steve Hannah
>>> Software Developer
>>> Codename One
>>> http://www.codenameone.com
>>>
>>> -- 
>>> You received this message because you are subscribed to a topic in the 
>>> Google Groups "CodenameOne Discussions" group.
>>> To unsubscribe from this topic, visit 
>>> https://groups.google.com/d/topic/codenameone-discussions/6_l2mYN0caI/unsubscribe
>>> .
>>> To unsubscribe from this group and all its topics, send an email to 
>>> [email protected] <javascript:>.
>>> Visit this group at 
>>> https://groups.google.com/group/codenameone-discussions.
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVph0GGJGiM5%3DCAMRA6MmXL_QiQp%3Db8D6%3DLEpj2bacH%3Dg%40mail.gmail.com
>>>  
>>> <https://groups.google.com/d/msgid/codenameone-discussions/CAGOYrKVph0GGJGiM5%3DCAMRA6MmXL_QiQp%3Db8D6%3DLEpj2bacH%3Dg%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "CodenameOne Discussions" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] 
>> <javascript:>.
>> Visit this group at 
>> https://groups.google.com/group/codenameone-discussions.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/codenameone-discussions/CAATsE9Ppu5JZbtfbbW7O7LzqNbiFj%2BWpcnnkEUshwP0dOrBMZA%40mail.gmail.com
>>  
>> <https://groups.google.com/d/msgid/codenameone-discussions/CAATsE9Ppu5JZbtfbbW7O7LzqNbiFj%2BWpcnnkEUshwP0dOrBMZA%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> -- 
> Steve Hannah
> Software Developer
> Codename One
> http://www.codenameone.com
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/1e23be3d-a3cb-4ce2-ae6d-c3e6294a70a0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to