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

Carlos Munoz camunoz at redhat.com
Mon Dec 31 04:19:00 UTC 2012


Hi Marek, could you send us the whole log from the start of the server? The real issue seems to be logged before the snippet you sent us. 

Regards, 

Carlos. 

Sent from my Android phone using TouchDown (www.nitrodesk.com)


-----Original Message-----
From: Marek Stopka [marek.stopka at perlur.cz]
Received: Monday, 31 Dec 2012, 11:06am
To: Ding Yi Chen [dchen at redhat.com]
CC: camunoz at redhat.com, zanata-users at redhat.com
Subject: Re: [zanata-users] Zanata not starting - java.lang.ArrayIndexOutOfBoundsException: 0


Hi Ding and Carlos tahnks for your help with issue nr. 1,
I have managed to get with Zanata one step further, however I am still
unable to get it up and running, this time I am getting error:

2012-12-31 01:56:34,452 INFO  [org.zanata.ZanataInit] (main) Started Zanata...
2012-12-31 01:56:34,457 ERROR
[org.apache.catalina.core.StandardContext] (main) Error listenerStart
2012-12-31 01:56:34,457 ERROR
[org.apache.catalina.core.StandardContext] (main) Context [/zanata]
startup failed due to previous errors
2012-12-31 01:56:34,460 INFO  [org.hibernate.impl.SessionFactoryImpl]
(main) closing


However I managed to get database initialized and I can see about
1,2MB of data in it. Do you have any troubleshooting tips, how to
investigate what is causing this mysterious (to me anyway) error
message?
--
Rgds,
Marek Stopka
Professional Services Consultant (at) Perlur

+420 608 149 955        Mobile
www.perlur.cz              Website


2012/12/20 Ding Yi Chen <dchen at redhat.com>:
> 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