Codename one server build errors.

114 views
Skip to first unread message

pawel.wic...@gmail.com

unread,
Jan 5, 2014, 9:29:21 AM1/5/14
to codenameone...@googlegroups.com
Hi,
I have some problems with building application on IOS and Windows platform (please have a look at attachments). On adnroid everything works just fine. On IOS it seems that t is memory problem but I don't know if I can do something about it (builds run on Codename One Server). On Windows platform I really don't know what is going on. Any suggestions will be greatly appreciated.

ErrorIphonePlatform.txt
ErrorWindowsPlatform.txt

Shai Almog

unread,
Jan 5, 2014, 2:03:56 PM1/5/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
Hi,
it seems that you are crashing the translation process with excessive memory overhead. What exactly are you doing?
Did you add a lot of classes to the process?

Android doesn't require bytecode translation so it won't be susceptible.

pawel.wic...@gmail.com

unread,
Jan 6, 2014, 4:01:38 AM1/6/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
Well, I have over 1500 classes in the project but soon it will change (see my other post here). Thanks for your help!

Shai Almog

unread,
Jan 6, 2014, 12:20:03 PM1/6/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
That could be a bit much, although it might still be a good idea to increase the RAM settings. If its a problem for you please file an issue and we'll try to look at server RAM limits.

Paweł WIchrowski

unread,
Jan 12, 2014, 3:33:35 AM1/12/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
HI,
I've just submitted an issue 1030. Thanks for helping me out.


Paweł WIchrowski

unread,
Jan 28, 2014, 5:13:17 AM1/28/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
Hi,
 Right now I am getting another problems while building for IOS and Windows Phone. Please have a look at those logs (I can't add attachment for some reason - blank frame pops up): 
For Windows I am getting:
Exception: java.lang.StackOverflowError
com.codename1.build.daemon.WindowsPhoneBuilder$StripMultianewarray$1.visitAnnotation(WindowsPhoneBuilder.java:1756)
com.codename1.build.daemon.WindowsPhoneBuilder$StripMultianewarray$1.visitAnnotation(WindowsPhoneBuilder.java:1757)
com.codename1.build.daemon.WindowsPhoneBuilder$StripMultianewarray$1.visitAnnotation(WindowsPhoneBuilder.java:1757)
com.codename1.build.daemon.WindowsPhoneBuilder$StripMultianewarray$1.visitAnnotation(WindowsPhoneBuilder.java:1757)
com.codename1.build.daemon.WindowsPhoneBuilder$StripMultianewarray$1.visitAnnotation(WindowsPhoneBuilder.java:1757)
........

And for IOS:

Executing: javac -classpath /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/classes -d /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/classes /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/stub/MTBApplicationStub.java Note: /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/stub/MTBApplicationStub.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Executing: javac -classpath /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/classes -d /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/seVer /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/stub/MTBApplicationStub.java Note: /var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/stub/MTBApplicationStub.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Executing: security default-keychain -s login.keychain Executing: java -Xmx2048m -jar xmlvm.jar --in=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/classes --resource=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/res/ --resource=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx/btres/ --lib=libzbar.a --out=/var/folders/p_/xlvwhg4101z8r81_nl13cds80000gn/T/build5754755324043418087xxx --target=iphonec --app-name=MTBApplication -DXcodeProject=ios -DBundleIdentifier=com.codename1.pl.mtb.mobile -DBundleVersion=1.0 -DBundleDisplayName=MTB-mobileNoGuiBuilder -DStatusBarHidden=false -DPrerenderedIcon=false -DApplicationExits=true -DUISupportedInterfaceOrientations=UIInterfaceOrientationPortrait:UIInterfaceOrientationPortraitUpsideDown:UIInterfaceOrientationLandscapeLeft:UIInterfaceOrientationLandscapeRight -DSupportedInterfaceOrientations=UIInterfaceOrientationPortrait:UIInterfaceOrientationPortraitUpsideDown:UIInterfaceOrientationLandscapeLeft:UIInterfaceOrientationLandscapeRight Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.simontuffs.onejar.Boot.run(Boot.java:306)
at com.simontuffs.onejar.Boot.main(Boot.java:159)
Caused by: java.lang.RuntimeException: Color conflict with neighbor in interface org.bouncycastle.asn1.x509.qualified.RFC3739QCObjectIdentifiers!
at org.xmlvm.util.ObjectHierarchyHelper.verifyConflictGraph(ObjectHierarchyHelper.java:596)
at org.xmlvm.util.ObjectHierarchyHelper.calculateInterfaceIndices(ObjectHierarchyHelper.java:463)
at org.xmlvm.proc.out.VtableOutputProcess.processPhase2(VtableOutputProcess.java:110)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:223)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220)
at org.xmlvm.proc.XmlvmProcessImpl.forwardOrProcessPhase2(XmlvmProcessImpl.java:220)
at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:162)
at org.xmlvm.proc.XmlvmProcessor.process(XmlvmProcessor.java:137)
at org.xmlvm.Main.main(Main.java:55)
... 6 more

Could someone please help me in solving this problems?

Chen Fishbein

unread,
Jan 28, 2014, 6:31:26 AM1/28/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
Are you using the bouncycastle cn1lib - http://www.codenameone.com/3/post/2013/06/bouncy-castle-crypto-api.html ? if not I'd suggest to replace your local bouncy castle with the cn1lib.

Paweł WIchrowski

unread,
Jan 28, 2014, 8:18:54 AM1/28/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
Well I needed protostuff lib. And I made cn1lib from its sources. But since protostuff has dependency to bouncy castle and there is  no way (as far as I know) to include one cn1lib in another I had to include bouncy castle sources (as well as jackson and some java classes). 

Shai Almog

unread,
Jan 28, 2014, 3:24:07 PM1/28/14
to codenameone...@googlegroups.com, pawel.wic...@gmail.com
The trick to including them one in another is to change the classpath for compilation and then require them both to be present.
You can also use our source for bouncy castle since we modified it a bit to work with various platform issues.
Reply all
Reply to author
Forward
0 new messages