Page 1 of 1

Mage server fails to run after compilation

PostPosted: 21 Jan 2015, 02:23
by Mainiack11
I'm getting a build failure running the mage server following the get started guide. It fails on Flickerwisp. here is the stack trace.

Code: Select all
Exception in thread "main" java.lang.ClassFormatError: Absent Code attribute in method that is not native or abstract in class file mage/sets/eventide/Flickerwisp
   at java.lang.ClassLoader.defineClass1(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:800)
   at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
   at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
   at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
   at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
   at java.lang.Class.forName0(Native Method)
   at java.lang.Class.forName(Class.java:191)
   at mage.util.ClassScanner.findClasses(ClassScanner.java:95)
   at mage.util.ClassScanner.findClasses(ClassScanner.java:74)
   at mage.cards.repository.CardScanner.scan(CardScanner.java:61)
   at mage.server.Main.main(Main.java:116)

Re: Mage server fails to run after compilation

PostPosted: 21 Jan 2015, 03:44
by Mainiack11
I've gotten past the error I noted above by upgrading netbeans from java se to java ee. Now, I'm getting an out of memory exception when I try to run the mage server.

Re: Mage server fails to run after compilation

PostPosted: 21 Jan 2015, 08:59
by LevelX
I only worked with SE version for years now. So the problem must be caused by something else.

To avoid the out of memory error during server start try to set options for the virtual machine in the run section of the project properties.
e.g. -Xss16m -Xms256m -Xmx512m -XX:PermSize=64m -XX:MaxPermSize=256m -Xverify:none

RunOptions.jpg