Ticket #835 (closed Bug: Invalid)

Opened 3 years ago

Last modified 19 months ago

Starting repository server raises Java exception

Reported by: anonymous Owned by: somebody
Priority: Blocker Milestone:
Component: Repository Version: 2.4
Keywords: repository server Java exception Cc:

Description

Trying to start the daisy repository server after an installation (without any problems) raises a Java exception:

$> daisy-repository-server /var/local/daisy
Exception in thread "main" java.lang.NoSuchMethodError?: method java.util.regex.Pattern.quote with signature (Ljava.lang.String;)Ljava.lang.String; was not found.

at org.outerj.daisy.launcher.LauncherClasspathHelper?.getArtifactURL(LauncherClasspathHelper?.java:89)
at org.outerj.daisy.launcher.LauncherClasspathHelper?.getClassPath(LauncherClasspathHelper?.java:77)
at org.outerj.daisy.launcher.LauncherClasspathHelper?.getClassLoader(LauncherClasspathHelper?.java:41)
at org.outerj.daisy.launcher.repository.RuntimeCliLauncher?.run(RuntimeCliLauncher?.java:50)
at org.outerj.daisy.launcher.repository.RuntimeCliLauncher?.launch(RuntimeCliLauncher?.java:41)
at org.outerj.daisy.launcher.repository.RuntimeCliLauncher?.main(RuntimeCliLauncher?.java:37)

Environment:
Ubuntu 8.04.2
java version "1.5.0", gij (GNU libgcj) version 4.2.4 (Ubuntu 4.2.4-1ubuntu3)
mysql 5.0.51a-3ubuntu5.7

Change History

comment:1 Changed 3 years ago by anonymous

I replaced Java 1.5 by Sun/Oracle? Java 1.6:
java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot?(TM) Client VM (build 10.0-b22, mixed mode, sharing)

Now, the DAISY repository server starts but I get another Java exception lateron. I'm really wondering if the DAISY prerequisits and installation instructions (http://docs.outerthought.org/daisy-docs-current/13-daisy.html) are complete.

$> daisy-repository-server /var/local/daisy
[main] INFO org.outerj.daisy.runtime.info - Starting the Daisy repository server.
[main] INFO org.outerj.daisy.runtime.info - Reading container configurations of 24 containers.
[main] INFO org.outerj.daisy.runtime.info - Instantiating the component containers.
[main] INFO org.outerj.daisy.runtime.info - Starting container configuration - /opt/daisy-2.4/lib/daisy/daisy-configuration-impl/2.4/daisy-configuration-impl-2.4.jar
[main] INFO org.outerj.daisy.runtime.info - Starting container jmx - /opt/daisy-2.4/lib/daisy/daisy-jmx/2.4/daisy-jmx-2.4.jar
[main] INFO org.outerj.daisy.runtime.info - Starting container pluginregistry - /opt/daisy-2.4/lib/daisy/daisy-pluginregistry-impl/2.4/daisy-pluginregistry-impl-2.4.jar
[main] INFO org.outerj.daisy.runtime.info - Starting container credentialsprovider - /opt/daisy-2.4/lib/daisy/daisy-credentials-provider-impl/2.4/daisy-credentials-provider-impl-2.4.jar
[main] INFO org.outerj.daisy.runtime.info - Starting container driverregistrar - /opt/daisy-2.4/lib/daisy/daisy-driverregistrar/2.4/daisy-driverregistrar-2.4.jar
[main] INFO org.outerj.daisy.runtime.info - Starting container jms - /opt/daisy-2.4/lib/daisy/daisy-jmsclient-impl/2.4/daisy-jmsclient-impl-2.4.jar
org.outerj.daisy.runtime.DaisyRTException: Error constructing component container defined at /opt/daisy-2.4/lib/daisy/daisy-jmsclient-impl/2.4/daisy-jmsclient-impl-2.4.jar

at org.outerj.daisy.runtime.component.ContainerConfigImpl?.build(ContainerConfigImpl?.java:114)
at org.outerj.daisy.runtime.DaisyRuntime?.init(DaisyRuntime?.java:91)
at org.outerj.daisy.runtime.cli.DaisyRuntimeCli?.run(DaisyRuntimeCli?.java:177)
at org.outerj.daisy.runtime.cli.DaisyRuntimeCli?.main(DaisyRuntimeCli?.java:37)
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 org.outerj.daisy.launcher.repository.RuntimeCliLauncher?.run(RuntimeCliLauncher?.java:61)
at org.outerj.daisy.launcher.repository.RuntimeCliLauncher?.launch(RuntimeCliLauncher?.java:41)
at org.outerj.daisy.launcher.repository.RuntimeCliLauncher?.main(RuntimeCliLauncher?.java:37)

Caused by: org.springframework.beans.factory.BeanCreationException?: Error creating bean with name 'jmsclient' defined in DAISY-INF/spring/applicationContext.xml in /opt/daisy-2.4/lib/daisy/daisy-jmsclient-impl/2.4/daisy-jmsclient-impl-2.4.jar: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException?: Could not instantiate bean class [org.outerj.daisy.jms.impl.JmsClientImpl?]: Constructor threw exception; nested exception is javax.jms.JMSException: Could not create Transport. Reason: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException?: Line 28 in XML document from URL [file:/var/local/daisy/conf/activemq-conf.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Attribute "xmlns" was already specified for element "broker".
Related cause: org.springframework.beans.factory.UnsatisfiedDependencyException?: Error creating bean with name 'jmsclient' defined in DAISY-INF/spring/applicationContext.xml in /opt/daisy-2.4/lib/daisy/daisy-jmsclient-impl/2.4/daisy-jmsclient-impl-2.4.jar: Unsatisfied dependency expressed through constructor argument with index 0 of type [java.util.Properties]: Could not convert constructor argument value of type [org.outerj.daisy.configutil.ConfigurationWrapper?] to required type [java.util.Properties]: Failed to convert value of type [org.outerj.daisy.configutil.ConfigurationWrapper?] to required type [java.util.Properties]; nested exception is java.lang.IllegalArgumentException?: Cannot convert value of type [org.outerj.daisy.configutil.ConfigurationWrapper?] to required type [java.util.Properties]: no matching editors or conversion strategy found

at org.springframework.beans.factory.support.ConstructorResolver?.autowireConstructor(ConstructorResolver?.java:231)

[...]

comment:2 Changed 3 years ago by anonymous

After I started the installation from scratch (this time using Sun/Oracle? Java 1.6) the installation finished without any errors and the daisy repository server was started successfully.

So, I suggest to close this ticket.

comment:3 Changed 19 months ago by paul

  • Status changed from new to closed
  • Resolution set to Invalid
Note: See TracTickets for help on using tickets.