[Geoserver-devel] [jira] (GEOS-6337) Error Monitor Query API

sanguinela sdxcv created an issue

GeoServer / BugGEOS-6337

Error Monitor Query API

Issue Type:

BugBug

Affects Versions:

2.4.1

Assignee:

Andrea Aime

Attachments:

geoserver.log

Created:

07/Feb/14 5:06 AM

Environment:

posgres 9.3.0 win7 64bit

Priority:

MajorMajor

Reporter:

sanguinela sdxcv

when I try to get data by api requests

like this: http://localhost:8080/geoserver/rest/monitor/requests.zip

I receive this error:
2014-02-07 10:45:36,214 ERROR [geoserver.rest] - Exception intercepted
java.lang.ArrayIndexOutOfBoundsException: 2
at org.postgresql.util.PGbytea.toBytes(PGbytea.java:76)
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBytes(AbstractJdbc2ResultSet.java:2271)
at org.postgresql.jdbc2.AbstractJdbc2ResultSet.getBytes(AbstractJdbc2ResultSet.java:2451)
at org.apache.commons.dbcp.DelegatingResultSet.getBytes(DelegatingResultSet.java:291)
at org.apache.commons.dbcp.DelegatingResultSet.getBytes(DelegatingResultSet.java:291)
at org.hibernate.type.AbstractBynaryType.get(AbstractBynaryType.java:78)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:163)
at org.hibernate.type.NullableType.nullSafeGet(NullableType.java:154)
at org.hibernate.type.AbstractType.hydrate(AbstractType.java:81)
at org.hibernate.persister.entity.AbstractEntityPersister.hydrate(AbstractEntityPersister.java:2101)
at org.hibernate.loader.Loader.loadFromResultSet(Loader.java:1380)
at org.hibernate.loader.Loader.instanceNotYetLoaded(Loader.java:1308)
at org.hibernate.loader.Loader.getRow(Loader.java:1206)
at org.hibernate.loader.Loader.getRowFromResultSet(Loader.java:580)
at org.hibernate.loader.Loader.doQuery(Loader.java:701)
at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:236)
at org.hibernate.loader.Loader.loadEntity(Loader.java:1860)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:48)
at org.hibernate.loader.entity.AbstractEntityLoader.load(AbstractEntityLoader.java:42)



Possible solution:
execute this query:
alter table public.request alter column body type character varying(4096) using ‘’;

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo