That is a server error (HTTP 500) - you'll need to look into what is going on there. G
On Dec 7, 2010, at 12:46 AM, [email protected] wrote: > > Dear all > > when i use PutQuery(Pivot-web-2.0.jar) to execute DB update.got a > exception as below: > > org.apache.pivot.web.QueryException: 500 java.io.IOException: Error > writing to server > > Code: > PutQuery putQuery > = new > PutQuery(PivotConstants.hostName, > > PivotConstants.hostPort, > > PivotConstants.hostPath + "XX.jsp",false); > putQuery.getParameters().put("SQL", sql string); > try { > // update > putQuery.execute(); > } catch (Exception ex) { > ... > } > > when sql is simple like "update a set ...".It's OK. > when sql'length over some limit(actually still very simple just like 100 > update sql),the exception above comes out. > > My test server is tomcat.and IDE is eclipse. > > I really don't understand where this exception comes .Can anyone give me a > hint or sth else? > > Thanks and regards > > Hero
