User Tools

Site Tools


mac_start_fail

How to fix failure to start Serviio in Mac OS X

In some rare cases serviio will fail to start on Mac OS X.

xerces.jar

When the following errors are reported:

Exception in thread "main" java.lang.AbstractMethodError:
org.apache.xerces.dom.DeferredElementImpl.getTextContent()Ljava/lang/String;
        at artx.objects.AxParameterManager.<init>(AxParameterManager.java:69)
        at alkwarel.objects.AkArtspace.<init>(AkArtspace.java:96)
        at alkwarel.gui.AkMainFrame.GetMainPanel(AkMainFrame.java:118)
        at alkwarel.gui.AkMainFrame.<init>(AkMainFrame.java:87)
        at alkwarel.Alkwarel.main(Alkwarel.java:103)

or

"Cannot launch Java application
Uncaught exception in main method:
java.lang.AbstractMethodError:
org.apache.xerces.dom.DeferredAttrNSImpl.getTextContent()Ljava/lang/String;"

removing the following file solved the problem:

~/Library/Java/Extensions/xerces.jar

fmjdbc.jar

It has also been reported the same problem with the error:

2013-01-20 21:28:39,740 WARN  [DBConnectionPool] Can't create a new connection for jdbc:derby:db;create=true
java.sql.SQLException: No suitable driver found for jdbc:derby:db;create=true
   at java.sql.DriverManager.getConnection(DriverManager.java:602)
   at java.sql.DriverManager.getConnection(DriverManager.java:207)
   at org.serviio.db.DBConnectionPool.newConnection(DBConnetionPool.java:186)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:123)
   at org.serviio.db.DBConnectionPool.getConnection(DBConnetionPool.java:149)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:66)
   at org.serviio.db.DatabaseManager.getConnection(DatabaseManager.java:59)
   at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:49)
   at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:57)
   at org.serviio.MediaServer.main(MediaServer.java:110)
   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 apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
   at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
   at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)
2013-01-20 21:28:41,745 ERROR [MediaServer] An unexpected error occured. Ending the application. Message: null
java.lang.NullPointerException
   at org.serviio.update.dao.DBLogDAOImpl.isScriptPresent(DBLogDAOImpl.java:50)
   at org.serviio.update.DBSchemaUpdateExecutor.updateDBSchema(DBSchemaUpdateExecutor.java:57)
   at org.serviio.MediaServer.main(MediaServer.java:110)
   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 apple.launcher.LaunchRunner.run(LaunchRunner.java:116)
   at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:51)
   at apple.launcher.JavaApplicationLauncher.launch(JavaApplicationLauncher.java:52)

In this case, it was solved by removing the file:

~/Library/Java/Extensions/fmjdbc.jar
mac_start_fail.txt · Last modified: 2013/01/21 18:32 by slaute