Hello,
I just downloaded the latest CVS from sf CVS and trying to compile I got this: see below
seems like StandardEPCMetaData is extending wrongly a previous class
I already done this a month ago on another machine and the code could be compiled
was there some change?
PLEASE HELP as i need to be able to write plugins for the ALE server for my compagny
best regards
----------------------------------------------------------
C:\ALE Server>ant
...
...
[copy] Copying 38 files to C:\ALE Server\build\lib
[javac] Compiling 66 source files to C:\ALE Server\build\classes
[javac] C:\ALE Server\ALE\src\com\logicalloy\ale\StandardEPCMetaData.java:21: com.logicalloy.ale.StandardEPCMetaData is not abstract and does not override a
bstract method toString() in com.logicalloy.epc.EPCMetaData
[javac] public class StandardEPCMetaData extends EPCMetaData {
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had the same problem than the man above, I added the unimplemented method (the toString() method) but after it, when I compile the whole source code with IntelliJ IDEA, there are some errors that you can see below, what can I do please ?
org.apache.xmlbeans.XmlException: C:\Documents and Settings\ALE Server\settings.xml:1:1: error: Unexpected end of file after null
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252)
at com.logicalloy.ale.settings.SettingsDocument$Factory.parse(Unknown Source)
at com.logicalloy.ale.MainApp.startup(MainApp.java:341)
at com.logicalloy.ale.MainApp.main(MainApp.java:107)
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:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: org.xml.sax.SAXParseException: Unexpected end of file after null
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
... 12 more
java.lang.NullPointerException
at com.logicalloy.ale.MainApp.saveSettings(MainApp.java:203)
at com.logicalloy.ale.MainApp.shutdown(MainApp.java:271)
at com.logicalloy.ale.MainApp.access$000(MainApp.java:47)
at com.logicalloy.ale.MainApp$1.run(MainApp.java:103)
log4j:ERROR Exception logging event to DB.
org.h2.jdbc.JdbcSQLException: General error: java.lang.NullPointerException [50000-66]
at org.h2.message.Message.getSQLException(Message.java:89)
at org.h2.message.Message.convert(Message.java:174)
at org.h2.table.TableData.addRow(TableData.java:129)
at org.h2.command.dml.Insert.update(Insert.java:88)
at org.h2.command.CommandContainer.update(CommandContainer.java:68)
at org.h2.command.Command.executeUpdate(Command.java:171)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:127)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:116)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at com.logicalloy.ale.DBAppender.append(DBAppender.java:65)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.debug(Category.java:260)
at com.logicalloy.ale.PIDLock.release(PIDLock.java:91)
at com.logicalloy.ale.MainApp.shutdown(MainApp.java:280)
at com.logicalloy.ale.MainApp.access$000(MainApp.java:47)
at com.logicalloy.ale.MainApp$1.run(MainApp.java:103)
Caused by: java.lang.NullPointerException
at org.h2.engine.Database.invalidateIndexSummary(Database.java:1611)
at org.h2.index.BtreeIndex.setChanged(BtreeIndex.java:98)
at org.h2.index.BtreeIndex.add(BtreeIndex.java:152)
at org.h2.index.MultiVersionIndex.add(MultiVersionIndex.java:42)
at org.h2.table.TableData.addRow(TableData.java:97)
... 16 more
Process finished with exit code 0
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hello,
I just downloaded the latest CVS from sf CVS and trying to compile I got this: see below
seems like StandardEPCMetaData is extending wrongly a previous class
I already done this a month ago on another machine and the code could be compiled
was there some change?
PLEASE HELP as i need to be able to write plugins for the ALE server for my compagny
best regards
----------------------------------------------------------
C:\ALE Server>ant
...
...
[copy] Copying 38 files to C:\ALE Server\build\lib
[javac] Compiling 66 source files to C:\ALE Server\build\classes
[javac] C:\ALE Server\ALE\src\com\logicalloy\ale\StandardEPCMetaData.java:21: com.logicalloy.ale.StandardEPCMetaData is not abstract and does not override a
bstract method toString() in com.logicalloy.epc.EPCMetaData
[javac] public class StandardEPCMetaData extends EPCMetaData {
[javac] ^
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 1 error
Hi logicalloy
I had the same problem than the man above, I added the unimplemented method (the toString() method) but after it, when I compile the whole source code with IntelliJ IDEA, there are some errors that you can see below, what can I do please ?
org.apache.xmlbeans.XmlException: C:\Documents and Settings\ALE Server\settings.xml:1:1: error: Unexpected end of file after null
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3471)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1270)
at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1257)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252)
at com.logicalloy.ale.settings.SettingsDocument$Factory.parse(Unknown Source)
at com.logicalloy.ale.MainApp.startup(MainApp.java:341)
at com.logicalloy.ale.MainApp.main(MainApp.java:107)
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:585)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Caused by: org.xml.sax.SAXParseException: Unexpected end of file after null
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.reportFatalError(Piccolo.java:1038)
at org.apache.xmlbeans.impl.piccolo.xml.Piccolo.parse(Piccolo.java:723)
at org.apache.xmlbeans.impl.store.Locale$SaxLoader.load(Locale.java:3439)
... 12 more
java.lang.NullPointerException
at com.logicalloy.ale.MainApp.saveSettings(MainApp.java:203)
at com.logicalloy.ale.MainApp.shutdown(MainApp.java:271)
at com.logicalloy.ale.MainApp.access$000(MainApp.java:47)
at com.logicalloy.ale.MainApp$1.run(MainApp.java:103)
log4j:ERROR Exception logging event to DB.
org.h2.jdbc.JdbcSQLException: General error: java.lang.NullPointerException [50000-66]
at org.h2.message.Message.getSQLException(Message.java:89)
at org.h2.message.Message.convert(Message.java:174)
at org.h2.table.TableData.addRow(TableData.java:129)
at org.h2.command.dml.Insert.update(Insert.java:88)
at org.h2.command.CommandContainer.update(CommandContainer.java:68)
at org.h2.command.Command.executeUpdate(Command.java:171)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdateInternal(JdbcPreparedStatement.java:127)
at org.h2.jdbc.JdbcPreparedStatement.executeUpdate(JdbcPreparedStatement.java:116)
at org.apache.commons.dbcp.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:102)
at com.logicalloy.ale.DBAppender.append(DBAppender.java:65)
at org.apache.log4j.AppenderSkeleton.doAppend(AppenderSkeleton.java:251)
at org.apache.log4j.helpers.AppenderAttachableImpl.appendLoopOnAppenders(AppenderAttachableImpl.java:66)
at org.apache.log4j.Category.callAppenders(Category.java:206)
at org.apache.log4j.Category.forcedLog(Category.java:391)
at org.apache.log4j.Category.debug(Category.java:260)
at com.logicalloy.ale.PIDLock.release(PIDLock.java:91)
at com.logicalloy.ale.MainApp.shutdown(MainApp.java:280)
at com.logicalloy.ale.MainApp.access$000(MainApp.java:47)
at com.logicalloy.ale.MainApp$1.run(MainApp.java:103)
Caused by: java.lang.NullPointerException
at org.h2.engine.Database.invalidateIndexSummary(Database.java:1611)
at org.h2.index.BtreeIndex.setChanged(BtreeIndex.java:98)
at org.h2.index.BtreeIndex.add(BtreeIndex.java:152)
at org.h2.index.MultiVersionIndex.add(MultiVersionIndex.java:42)
at org.h2.table.TableData.addRow(TableData.java:97)
... 16 more
Process finished with exit code 0