Hello,
I just installed the trial version of JRebel through the Netbeans plugins panel.
When I try to start Tomcat I get the following error:
16-Jun-2015 17:24:15.171 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying configuration descriptor D:\gavin\work\mercurial\talkingcouch\server\talkingcouch\conf\Catalina\localhost\ROOT.xml
java.lang.NullPointerException
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1686)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
The Tomcat log file then shows what I assume is the cause:
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [uk.co.prodia.talkingcouch.security.Encrypter]: Constructor threw exception; nested exception is java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:280)
... 40 more
Caused by: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1954)
at uk.co.prodia.talkingcouch.security.Encrypter.getEncryptionKeyLocation(Encrypter.java:241)
at uk.co.prodia.talkingcouch.security.Encrypter.readEncryptionKeyFromFile(Encrypter.java:201)
at uk.co.prodia.talkingcouch.security.Encrypter.init(Encrypter.java:133)
at uk.co.prodia.talkingcouch.security.Encrypter.<init>(Encrypter.java:105)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 42 more
This only happened after JRebel was installed. It is a Maven based project and I have the following in the POM:
<plugin>
<groupId>org.zeroturnaround</groupId>
<artifactId>jrebel-maven-plugin</artifactId>
<version>1.1.5</version>
<executions>
<execution>
<id>generate-rebel-xml</id>
<phase>process-resources</phase>
<goals>
<goal>generate</goal>
</goals>
</execution>
</executions>
</plugin>
If I remove the entry from the POM I get this error instead:
16-Jun-2015 17:39:25.648 SEVERE [http-nio-8080-exec-3] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying configuration descriptor D:\gavin\work\mercurial\talkingcouch\server\talkingcouch\conf\Catalina\localhost\ROOT.xml
java.lang.NullPointerException
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:581)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:455)
at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1496)
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:483)
at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)
Any ideas?
-
This topic was modified 10 hours, 9 minutes ago by
Gavin Donald.
-
This topic was modified 10 hours, 8 minutes ago by
Gavin Donald.
-
This topic was modified 10 hours, 8 minutes ago by
Gavin Donald.
-
This topic was modified 10 hours, 5 minutes ago by
Gavin Donald.