[OTDev] OpenAM performance
Andreas Maunz andreas at maunz.deThu Jul 7 11:21:29 CEST 2011
- Previous message: [OTDev] OpenAM performance
- Next message: [OTDev] OpenAM performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi Vedrin, On Thu, 7 Jul 2011 12:00:00 +0300, Vedrin Jeliazkov <vedrin.jeliazkov at gmail.com> wrote: > After successful deletion of about 2500 policies, the Policy server > has started returning systematically the following NPE: > > - - - - - - - - 8< - - - - - - - - > 25373568 ["http-bio-8080"-exec-1067] ERROR > org.apache.wink.server.internal.RequestProcessor - > WebApplicationException (500 - Internal Server Error) occured during > the handlers chain invocation > javax.ws.rs.WebApplicationException > at org.opentox.pol.PolServiceImpl.getPolID(PolServiceImpl.java:432) If line numbers still match with mine, the code fragment would be: try { output = output.substring(output.indexOf("<Policies>"),output.length()); // incorporated XML formatting } catch (StringIndexOutOfBoundsException e) { throw new WebApplicationException(Response.status(500).entity("XML serialization failed.\n\n" + output + "\n\n").type("text/plain").build()); } So, can you find a StringIndexOutOfBoundsException in the logs? That would mean the corresponding policy has no such substring "Policies". It is unfortunately rather easy to feed OpenAM syntactically invalid policies, perhaps this has happened in your case, too. Andreas
- Previous message: [OTDev] OpenAM performance
- Next message: [OTDev] OpenAM performance
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Development mailing list