Foros de discusión

Problems with 5.2.3, ArrayIndexOutOfBoundsException

thumbnail
Wayne Christian, modificado hace 14 años.

Problems with 5.2.3, ArrayIndexOutOfBoundsException

Regular Member Mensajes: 104 Fecha de incorporación: 12/06/07 Mensajes recientes
Running fine with 5.1.2. Trying to upgrade to 5.2.3 (or any other 5.2) gives problems...
Environment Mac OSX 10.5.7, using MySQL

For 5.2.3 its
java.lang.ArrayIndexOutOfBoundsException: 0
com.liferay.portal.util.PortalInstances._getDefaultCompanyId(PortalInstances.java:232)
com.liferay.portal.util.PortalInstances._getCompanyId(PortalInstances.java:189)
com.liferay.portal.util.PortalInstances.getCompanyId(PortalInstances.java:71)
com.liferay.portal.servlet.filters.virtualhost.VirtualHostFilter.doFilter(VirtualHostFilter.java:110)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.servlet.filters.threadlocalcache.ThreadLocalCacheFilter.processFilter(ThreadLocalCacheFilter.java:55)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:91)
com.liferay.portal.kernel.servlet.BaseFilter.processFilter(BaseFilter.java:154)
com.liferay.portal.kernel.servlet.BaseFilter.doFilter(BaseFilter.java:94)
org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:738)

Any ideas?
Jérémy Costanza, modificado hace 14 años.

RE: Problems with 5.2.3, ArrayIndexOutOfBoundsException

New Member Mensajes: 15 Fecha de incorporación: 11/09/08 Mensajes recientes
Hi,

Did you set liferay.home in portal-ext.properties?
thumbnail
Wayne Christian, modificado hace 14 años.

RE: Problems with 5.2.3, ArrayIndexOutOfBoundsException

Regular Member Mensajes: 104 Fecha de incorporación: 12/06/07 Mensajes recientes
That seems to have gotten me past the outofbounds problem...
Onward to bigger and better problems. BTW, where did you read about the liferay.home setting?
I've got the standard TOMCAT_HOME. Of course I can't find any real documentation for the 5.2 stuff...


Now I've got... Where is it looking for that? I think I'm at the point of deleting my DB and starting from scratch...
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:770)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:140)
at org.apache.naming.NamingContext.lookup(NamingContext.java:781)
at org.apache.naming.NamingContext.lookup(NamingContext.java:153)
at org.apache.naming.SelectorContext.lookup(SelectorContext.java:137)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
at com.liferay.portal.kernel.jndi.JNDIUtil._lookup(JNDIUtil.java:169)
thumbnail
Wayne Christian, modificado hace 14 años.

RE: Problems with 5.2.3, ArrayIndexOutOfBoundsException

Regular Member Mensajes: 104 Fecha de incorporación: 12/06/07 Mensajes recientes
sigh.... it looks like liferay did that for me... None of my old content exists....
Guess I'll be spending the weekend recreating stuff... I can't even import the .laf files from 5.1.
and my database stuff is gone...
thumbnail
Amos Fong, modificado hace 14 años.

RE: Problems with 5.2.3, ArrayIndexOutOfBoundsException

Liferay Legend Mensajes: 2047 Fecha de incorporación: 7/10/08 Mensajes recientes
Have you already looked at this wiki?

http://www.liferay.com/web/guest/community/wiki/-/wiki/Main/Upgrade+Instructions+from+5.1+to+5.2

Did you point the 5.2.3 database configuration to your 5.1.2 database? Database configuration has moved to portal-ext.properties.

Also, adding the legacy properties is important.
Baris Sener, modificado hace 14 años.

RE: Problems with 5.2.3, ArrayIndexOutOfBoundsException

Expert Mensajes: 278 Fecha de incorporación: 23/06/09 Mensajes recientes
Don't get me wrong I'm not saying it is your fault. It is liferay's but when you are installing something always make a copy.
thumbnail
Wayne Christian, modificado hace 14 años.

RE: Problems with 5.2.3, ArrayIndexOutOfBoundsException

Regular Member Mensajes: 104 Fecha de incorporación: 12/06/07 Mensajes recientes
Yea, I agree. I was in a rush and all the other updates from 4.x to 5.1.x had gone so smoothly.
It's my fault for being so complacent. I'm just stunned that a company would make a product that blew away data.
Anyway, this stuff is just personal stuff, not mission critical. The blog entries were the only thing that I lost, and I have
most of those in another source. I'm basically back up and running except that the iframe portlet seems to be broken.
Sergei Kolmogorov, modificado hace 14 años.

RE: Problems with 5.2.3, ArrayIndexOutOfBoundsException

New Member Mensaje: 1 Fecha de incorporación: 21/07/09 Mensajes recientes
Hi, I solved the same issue on xen by adding the line
127.0.0.1 <my host name>
in /etc/hosts.

May be useful to someone.