CN1CSS library Build Error

38 views
Skip to first unread message

Jojiez

unread,
May 28, 2016, 10:20:45 AM5/28/16
to CodenameOne Discussions
Hi,

Am having problems try implementing CSS in my project.

When I use CN1 CSS v1.0.1 I get Error: 
Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Invalid maximum heap size: -Xmx4096m
The specified size exceeds the maximum representable size.


When I use CN1 CSS v1.0.4 I get Error: 
class org.w3c.flute.util.Encoding: couldn't load encoding properties 
java.lang.NullPointerException
at org.w3c.flute.util.Encoding.<clinit>(Encoding.java:40)
at org.w3c.flute.parser.Parser.getCharStreamWithLurk(Parser.java:344)
at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:99)
at com.codename1.ui.css.CSSTheme.load(CSSTheme.java:4552)
at com.codename1.ui.css.CN1CSSCLI.main(CN1CSSCLI.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)
 
What could be the problem?

If you are experiencing an issue please mention the full platform your issue applies to:
IDE: NetBeans/Eclipse/IDEA - Netbeans 8.0
Desktop OS - Windows 7
Simulator 
Device

Steve Hannah

unread,
May 28, 2016, 10:48:09 AM5/28/16
to codenameone...@googlegroups.com
Are you using an old version of the library?  I fixed that issue 6 months ago.


Steve

--
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 codenameone-discu...@googlegroups.com.
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/affef456-11c0-4a79-a53d-83ba73e53485%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Software Developer
Codename One

Jojiez

unread,
May 30, 2016, 8:11:08 AM5/30/16
to CodenameOne Discussions
Yes am using the 1.0.4 release and am getting this error :-
class org.w3c.flute.util.Encoding: couldn't load encoding properties 
java.lang.NullPointerException
at org.w3c.flute.util.Encoding.<clinit>(Encoding.java:40)
at org.w3c.flute.parser.Parser.getCharStreamWithLurk(Parser.java:344)
at org.w3c.flute.parser.Parser.parseStyleSheet(Parser.java:99)
at com.codename1.ui.css.CSSTheme.load(CSSTheme.java:4552)
at com.codename1.ui.css.CN1CSSCLI.main(CN1CSSCLI.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:389)
at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:328)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)
at sun.launcher.LauncherHelper$FXHelper.main(LauncherHelper.java:767)

To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discussions+unsub...@googlegroups.com.

Steve Hannah

unread,
May 30, 2016, 10:57:19 AM5/30/16
to codenameone...@googlegroups.com
Sorry, missed that you were trying with two different versions.  That NPE is a red herring.  It should be fine.  I was referring to the error you get in 1.0.1 (the memory error) as the one I fixed six months ago.

Summary.  Don't worry about the NPE.  That's normal.

Steve

To unsubscribe from this group and stop receiving emails from it, send an email to codenameone-discu...@googlegroups.com.



--
Steve Hannah
Software Developer
Codename One

--
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 codenameone-discu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Steve Hannah
Web Lite Solutions Corp.

Jojiez

unread,
May 31, 2016, 9:05:46 AM5/31/16
to CodenameOne Discussions
Ok. Thank you.
Reply all
Reply to author
Forward
0 new messages