Cryptic JBoss error

After some weeks I tried to run JBoss again. I was welcomed with the following exception:

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:79)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:398)
at org.jboss.Main.boot(Main.java:209)
at org.jboss.Main$1.run(Main.java:544)
at java.lang.Thread.run(libgcj.so.81)
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.81)
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:232)
at org.jboss.beans.info.plugins.AbstractBeanInfoFactory.getBeanInfo(AbstractBeanInfoFactory.java:153)
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

And I know it was working before! Suspected Java update 7 that came recently form Ubuntu repository, but no one else seemed to have a similar issue.

Somehow default java that system uses has been changed. It wasn’t sun-java any more. As soon as I ran:

sudo update-alternatives --config java

and choosed sun-java, it started working again.

Perhaps saves some time for someone.

Is that what Orkut meant by “You’ve got extraordinary tools to succeed, use them accordingly”? :P

Enough is enough

I’ve ditched Ubuntu’s version of Thunderbird and using the version from Mozilla now. For some mysterious reason 2.0.0.17 on Ubuntu occasionally forgets that I have a calendar and puts out numerous error messages concerning Lightning addon. Mozilla’s version doesn’t do that even if I use the exact same profile folder. Might give it another try when Ubuntu packages next version.

Using Thunderbird profile cross-platform with Lightning installed

It’s rather trivial that you can use the same profile between Windows and Linux by finding the profiles.ini for one or both platforms and editing it so that the profile folder is the same. It’s a bit more difficult with Lightning though as this extension has separate versions for different platforms. So if you have Windows version installed, it looks odd in Linux and vice versa.
At this point, don’t give up! Go to http://lligabirres.com/francesc/00_index/05_net/05.02_EMAIL_CLIENTS/05.02.02_THUNDERBIRD.html and scroll down. Simple instructions that I just followed and it is looking fine from Windows. Haven’t tried from Kubuntu yet, but should be ok, I hope. Not to mention that the profile itself is on ext filesystem so I also installed Ext2IFS which you can get here: http://www.fs-driver.org/download.html.