2 Replies Latest reply on Nov 4, 2011 3:18 AM by peng xiao

    problem with  startServer.sh

    peng xiao Newbie

      hello,

             I get a problem with startServer.sh

            Please check my scenario and give me a suggestion if I'm wrong ,I am very very thankful!

       

      my  Environment:

      freebsd 8.2

      java version "1.6.0_03-p4"

      infinispan-5.1.0.BETA3

       

       

      when I start a hotrod server like this :

      /infinispan-5.1.0.BETA3/bin]# ./startServer.sh  -c infinispan.xml -r hotrod -l0.0.0.0  -p9999

       

      Failed to boot JBoss:

      java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at org.infinispan.server.core.Main$.createCacheManager(Main.scala:176)

              at org.infinispan.server.core.Main$.instantiateCacheManager(Main.scala:154)

              at org.infinispan.server.core.Main$.boot(Main.scala:134)

              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:94)

              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:91)

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

              at java.util.concurrent.FutureTask.run(FutureTask.java:138)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.io.IOException: 4 counts of IllegalAnnotationExceptions

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:263)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:281)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:133)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:109)

              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:253)

              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:239)

              ... 16 more

      Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions

      The type of the getter is java.lang.String but that of the setter is org.infinispan.jmx.MBeanServerLookup. They have to be the same.

              this problem is related to the following location:

                      at public java.lang.String org.infinispan.config.GlobalConfiguration.getMBeanServerLookup()

                      at org.infinispan.config.GlobalConfiguration

                      at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global

                      at org.infinispan.config.InfinispanConfiguration

              this problem is related to the following location:

                      at public void org.infinispan.config.GlobalConfiguration.setMBeanServerLookup(org.infinispan.jmx.MBeanServerLookup)

                      at org.infinispan.config.GlobalConfiguration

                      at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global

                      at org.infinispan.config.InfinispanConfiguration

      org.infinispan.loaders.CacheLoaderConfig is an interface, and JAXB can't handle interfaces.

              this problem is related to the following location:

                      at org.infinispan.loaders.CacheLoaderConfig

                      at private java.util.List org.infinispan.config.CacheLoaderManagerConfig.getCacheLoaders()

                      at org.infinispan.config.CacheLoaderManagerConfig

                      at org.infinispan.config.CacheLoaderManagerConfig org.infinispan.config.Configuration.loaders

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

      The type of the getter is java.lang.String but that of the setter is java.lang.Class<? extends org.infinispan.interceptors.base.CommandInterceptor>. They have to be the same.

              this problem is related to the following location:

                      at public java.lang.String org.infinispan.config.CustomInterceptorConfig.getAfterInterceptor()

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

              this problem is related to the following location:

                      at public void org.infinispan.config.CustomInterceptorConfig.setAfterInterceptor(java.lang.Class)

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

      The type of the getter is java.lang.String but that of the setter is java.lang.Class<? extends org.infinispan.interceptors.base.CommandInterceptor>. They have to be the same.

              this problem is related to the following location:

                      at public java.lang.String org.infinispan.config.CustomInterceptorConfig.getBeforeInterceptor()

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

              this problem is related to the following location:

                      at public void org.infinispan.config.CustomInterceptorConfig.setBeforeInterceptor(java.lang.Class)

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

       

       

              at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)

              at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:361)

              at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:217)

              at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:76)

              at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:55)

              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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)

              at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)

              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)

              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)

              at org.infinispan.config.InfinispanConfiguration.getJAXBContext(InfinispanConfiguration.java:293)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:221)

              ... 21 more

      Exception in thread "main" java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException

              at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:222)

              at java.util.concurrent.FutureTask.get(FutureTask.java:83)

              at org.infinispan.server.core.Main$.main(Main.scala:112)

              at org.infinispan.server.core.Main.main(Main.scala)

      Caused by: java.lang.reflect.InvocationTargetException

              at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

              at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)

              at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)

              at java.lang.reflect.Constructor.newInstance(Constructor.java:513)

              at org.infinispan.server.core.Main$.createCacheManager(Main.scala:176)

              at org.infinispan.server.core.Main$.instantiateCacheManager(Main.scala:154)

              at org.infinispan.server.core.Main$.boot(Main.scala:134)

              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:94)

              at org.infinispan.server.core.Main$$anon$1.call(Main.scala:91)

              at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)

              at java.util.concurrent.FutureTask.run(FutureTask.java:138)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:98)

              at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:207)

              at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)

              at java.lang.Thread.run(Thread.java:619)

      Caused by: java.io.IOException: 4 counts of IllegalAnnotationExceptions

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:263)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:281)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:133)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:109)

              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:253)

              at org.infinispan.manager.DefaultCacheManager.<init>(DefaultCacheManager.java:239)

              ... 16 more

      Caused by: com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException: 4 counts of IllegalAnnotationExceptions

      The type of the getter is java.lang.String but that of the setter is org.infinispan.jmx.MBeanServerLookup. They have to be the same.

              this problem is related to the following location:

                      at public java.lang.String org.infinispan.config.GlobalConfiguration.getMBeanServerLookup()

                      at org.infinispan.config.GlobalConfiguration

                      at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global

                      at org.infinispan.config.InfinispanConfiguration

              this problem is related to the following location:

                      at public void org.infinispan.config.GlobalConfiguration.setMBeanServerLookup(org.infinispan.jmx.MBeanServerLookup)

                      at org.infinispan.config.GlobalConfiguration

                      at private final org.infinispan.config.GlobalConfiguration org.infinispan.config.InfinispanConfiguration.global

                      at org.infinispan.config.InfinispanConfiguration

      org.infinispan.loaders.CacheLoaderConfig is an interface, and JAXB can't handle interfaces.

              this problem is related to the following location:

                      at org.infinispan.loaders.CacheLoaderConfig

                      at private java.util.List org.infinispan.config.CacheLoaderManagerConfig.getCacheLoaders()

                      at org.infinispan.config.CacheLoaderManagerConfig

                      at org.infinispan.config.CacheLoaderManagerConfig org.infinispan.config.Configuration.loaders

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

      The type of the getter is java.lang.String but that of the setter is java.lang.Class<? extends org.infinispan.interceptors.base.CommandInterceptor>. They have to be the same.

              this problem is related to the following location:

                      at public java.lang.String org.infinispan.config.CustomInterceptorConfig.getAfterInterceptor()

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

              this problem is related to the following location:

                      at public void org.infinispan.config.CustomInterceptorConfig.setAfterInterceptor(java.lang.Class)

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

      The type of the getter is java.lang.String but that of the setter is java.lang.Class<? extends org.infinispan.interceptors.base.CommandInterceptor>. They have to be the same.

              this problem is related to the following location:

                      at public java.lang.String org.infinispan.config.CustomInterceptorConfig.getBeforeInterceptor()

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

              this problem is related to the following location:

                      at public void org.infinispan.config.CustomInterceptorConfig.setBeforeInterceptor(java.lang.Class)

                      at org.infinispan.config.CustomInterceptorConfig

                      at private java.util.List org.infinispan.config.Configuration$CustomInterceptorsType.customInterceptors

                      at org.infinispan.config.Configuration$CustomInterceptorsType

                      at org.infinispan.config.Configuration$CustomInterceptorsType org.infinispan.config.Configuration.customInterceptors

                      at org.infinispan.config.Configuration

                      at private final org.infinispan.config.Configuration org.infinispan.config.InfinispanConfiguration.defaultConfiguration

                      at org.infinispan.config.InfinispanConfiguration

       

       

              at com.sun.xml.internal.bind.v2.runtime.IllegalAnnotationsException$Builder.check(IllegalAnnotationsException.java:66)

              at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:361)

              at com.sun.xml.internal.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:217)

              at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:76)

              at com.sun.xml.internal.bind.v2.ContextFactory.createContext(ContextFactory.java:55)

              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 javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)

              at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)

              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)

              at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)

              at org.infinispan.config.InfinispanConfiguration.getJAXBContext(InfinispanConfiguration.java:293)

              at org.infinispan.config.InfinispanConfiguration.newInfinispanConfiguration(InfinispanConfiguration.java:221)

              ... 21 more

       

       

      then I found 2 line append in log:

       

      2011-11-02 15:50:06,078 INFO  (main) [org.infinispan.server.core.Main$] ISPN005001: Start main with args: -c, infinispan.xml, -r, hotrod, -l0.0.0.0, -p9999

      2011-11-02 15:50:06,155 DEBUG (InfinispanServer-Main) [org.infinispan.config.InfinispanConfiguration] Using schema schema/infinispan-config-5.1.xsd