[zanata-users] Zanata not starting - java.lang.ArrayIndexOutOfBoundsException: 0

Ding Yi Chen dchen at redhat.com
Wed Dec 19 23:16:59 UTC 2012


There are quite a lot of packages depend on java-1.5.0-gcj.

Anyway, like Carlos said, install 1.6 and newer java package and use:

alternatives --config java 
to choose the variant you want.

if you want to change javac also, please do:
alternatives --config javac

Regards,
----- Original Message -----
> Marek,
> 
> Could you try removing your current Java package and then installing
> the
> Sun Java VM or the OpenJDK one? Also, make sure it's the 1.6 version.
> Yum package names should be java-1.6.0-openjdk or java-1.6.0-sun (or
> something of the sort).
> 
> Make sure that when running java -version you see the new java
> running.
> After that, try running Zanata again and let me know if you still
> have
> any problems.
> 
> Regards,
> 
> Carlos A. Munoz
> Senior Software Engineer
> Engineering - Internationalisation
> Red Hat
> 
> On 12/20/2012 09:02 AM, Marek Stopka wrote:
> > Hi, my java version is
> > 
> > [root at websrv01 zanata-server-2.0.3]# java -version
> > java version "1.5.0"
> > gij (GNU libgcj) version 4.4.6 20120305 (Red Hat 4.4.6-4)
> > 
> > Copyright (C) 2007 Free Software Foundation, Inc.
> > This is free software; see the source for copying conditions.
> >  There is NO
> > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
> > PURPOSE.
> > [root at websrv01 zanata-server-2.0.3]#
> > 
> > 
> > and I am trying to install zanata 2.0.3.
> > Rgds,
> > Marek Stopka
> > Professional Services Consultant (at) Perlur
> > 
> > +420 608 149 955        Mobile
> > www.perlur.cz              Website
> > 
> > 
> > 2012/12/19 Carlos Munoz <camunoz at redhat.com>:
> >> Hi Marek,
> >>
> >> This seems to be something down at the JBoss level. What java
> >> version
> >> are you using? (java -version). Also, what version of Zanata are
> >> you
> >> installing?
> >>
> >> Regards,
> >>
> >> Carlos A. Munoz
> >> Senior Software Engineer
> >> Engineering - Internationalisation
> >> Red Hat
> >>
> >> On 12/20/2012 08:55 AM, Marek Stopka wrote:
> >>> Hello,
> >>> I am trying to install zanata on our internal CentOS server, I
> >>> have
> >>> created new CentOS 6.3 VM and installed Java inside (yum install
> >>> java), however when I try to start zanata, it fails with
> >>> following
> >>> message:
> >>>
> >>> Failed to boot JBoss:
> >>> java.lang.RuntimeException: Unable to create a KernelInitializer
> >>> based
> >>> on the specified KernelConfig
> >>>    at
> >>>    org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:156)
> >>>    at
> >>>    org.jboss.kernel.KernelFactory.assembleNewKernel(KernelFactory.java:99)
> >>>    at
> >>>    org.jboss.kernel.KernelFactory.newInstance(KernelFactory.java:67)
> >>>    at
> >>>    org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.bootstrap(AbstractBootstrap.java:114)
> >>>    at
> >>>    org.jboss.kernel.plugins.bootstrap.AbstractBootstrap.run(AbstractBootstrap.java:83)
> >>>    at
> >>>    org.jboss.bootstrap.microcontainer.ServerImpl.doStart(ServerImpl.java:105)
> >>>    at
> >>>    org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:450)
> >>>    at org.jboss.Main.boot(Main.java:221)
> >>>    at org.jboss.Main$1.run(Main.java:556)
> >>>    at java.lang.Thread.run(libgcj.so.10)
> >>> Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
> >>>    at
> >>>    org.jboss.reflect.plugins.MethodInfoImpl.<init>(MethodInfoImpl.java:103)
> >>>    at
> >>>    org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.<init>(ReflectMethodInfoImpl.java:78)
> >>>    at
> >>>    org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:211)
> >>>    at
> >>>    org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl$2.run(IntrospectionTypeInfoFactoryImpl.java:200)
> >>>    at java.security.AccessController.doPrivileged(libgcj.so.10)
> >>>    at
> >>>    org.jboss.reflect.plugins.introspection.IntrospectionTypeInfoFactoryImpl.getMethods(IntrospectionTypeInfoFactoryImpl.java:198)
> >>>    at
> >>>    org.jboss.reflect.plugins.ClassInfoImpl.getDeclaredMethods(ClassInfoImpl.java:394)
> >>>    at
> >>>    org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getMethods(AbstractBeanInfoFactory.java:231)
> >>>    at
> >>>    org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:152)
> >>>    at
> >>>    org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:124)
> >>>    at
> >>>    org.jboss.config.plugins.AbstractConfiguration.getBeanInfo(AbstractConfiguration.java:69)
> >>>    at
> >>>    org.jboss.kernel.plugins.config.AbstractKernelConfig.getBeanInfo(AbstractKernelConfig.java:65)
> >>>    at
> >>>    org.jboss.kernel.plugins.config.property.PropertyKernelConfig.getImplementation(PropertyKernelConfig.java:175)
> >>>    at
> >>>    org.jboss.kernel.plugins.config.property.PropertyKernelConfig.createKernelInitializer(PropertyKernelConfig.java:120)
> >>>    at
> >>>    org.jboss.kernel.KernelFactory.createKernelInitializer(KernelFactory.java:150)
> >>>    ...9 more
> >>>
> >>> Do you guys have any clue where could be a problem? I am no
> >>> JBoss/Java
> >>> guru... :-(
> >>>
> >>> Rgds,
> >>> Marek Stopka
> >>> Professional Services Consultant (at) Perlur
> >>>
> >>> +420 608 149 955        Mobile
> >>> www.perlur.cz              Website
> >>>
> >>> _______________________________________________
> >>> zanata-users mailing list
> >>> zanata-users at redhat.com
> >>> https://www.redhat.com/mailman/listinfo/zanata-users
> >>
> >> _______________________________________________
> >> zanata-users mailing list
> >> zanata-users at redhat.com
> >> https://www.redhat.com/mailman/listinfo/zanata-users
> 
> _______________________________________________
> zanata-users mailing list
> zanata-users at redhat.com
> https://www.redhat.com/mailman/listinfo/zanata-users
> 

-- 
Ding-Yi Chen
Software Engineer
Internationalization Group
DID: +61 7 3514 8239
Email: dchen at redhat.com

Red Hat, Asia-Pacific Pty Ltd
Level 1, 193 North Quay
Brisbane 4000
Office: +61 7 3514 8100
Fax: +61 7 3514 8199
Website: www.redhat.com

Red Hat, Inc.
Facebook: Red Hat APAC | Red Hat Japan | Red Hat Korea | JBoss APAC
Twitter: Red Hat APAC | Red Hat ANZ
LinkedIn: Red Hat APAC | JBoss APAC




More information about the zanata-users mailing list