ArrayIndexOutOfBounds in HQL console

I tested in 9.01 and the latest EAP. I can reproduce it. My project is Maven with Spring and Hibernate facets. I'm able to generate SQL and view it from HQL console but any attempt to run a query leads to the exception. My Hibernate library is 3.2.6, running on OS X 10.6.3, JDK 1.6.

java.lang.ArrayIndexOutOfBoundsException: 0
    at com.intellij.hibernate.remote.impl.QueryResultImpl.getColumnInfos(QueryResultImpl.java:43)
    at com.intellij.hibernate.remote.impl.RemoteQueryResultImpl.getColumnInfos(RemoteQueryResultImpl.java:70)
    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 sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
    at sun.rmi.transport.Transport$1.run(Transport.java:159)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
    at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
    at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:637)
    at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
    at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
    at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142)
    at java.rmi.server.RemoteObjectInvocationHandler.invokeRemoteMethod(RemoteObjectInvocationHandler.java:178)
    at java.rmi.server.RemoteObjectInvocationHandler.invoke(RemoteObjectInvocationHandler.java:132)
    at $Proxy108.getColumnInfos(Unknown Source)
    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 com.intellij.persistence.database.console.RemoteUtil$3$1$1.compute(RemoteUtil.java:102)
    at com.intellij.persistence.database.console.RemoteUtil.executeWithClassLoader(RemoteUtil.java:138)
    at com.intellij.persistence.database.console.RemoteUtil$3$1.invoke(RemoteUtil.java:99)
    at $Proxy108.getColumnInfos(Unknown Source)
    at com.intellij.hibernate.engine.HibernateEngine.executeHqlQueryInner(HibernateEngine.java:205)
    at com.intellij.hibernate.engine.HibernateEngine.access$200(HibernateEngine.java:71)
    at com.intellij.hibernate.engine.HibernateEngine$3.run(HibernateEngine.java:191)
    at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:329)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
    at java.util.concurrent.FutureTask.run(FutureTask.java:138)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:637)
    at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:125)

1 comment

Fixed, thank you.

On 14.04.2010 21:25, uk chucktown wrote:

I tested in 9.01 and the latest EAP. I can reproduce it. My project is Maven with Spring and Hibernate facets. I'm able to generate SQL and view it from HQL console but any attempt to run a query leads to the exception. My Hibernate library is 3.2.6, running on OS X 10.6.3, JDK 1.6.

>

java.lang.ArrayIndexOutOfBoundsException: 0
     at com.intellij.hibernate.remote.impl.QueryResultImpl.getColumnInfos(QueryResultImpl.java:43)
     at com.intellij.hibernate.remote.impl.RemoteQueryResultImpl.getColumnInfos(RemoteQueryResultImpl.java:70)
     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)

>

---
Original message URL: http://www.jetbrains.net/devnet/message/5260888#5260888


0

Please sign in to leave a comment.