incubator-clerezza-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Strässer <oliver.straes...@getunik.com>
Subject Scala Serverpage Problem
Date Thu, 15 Apr 2010 14:18:58 GMT
Hello together.

What could be the reason for the following error - I could not found the reason.
The  SSP Function "returnValue" works on other places very well.


register template:


   template = getClass().getResource(
                "clips-details.ssp");
        renderletManager.registerRenderlet(ScalaServerPagesRenderlet.class.getName(),
                new UriRef(template.toURI().toString()),
                CLIPS.ClipDetails, null,
                MediaType.APPLICATION_JSON_TYPE, true);



method:
@GET
    @Path("details")
    @Produces("application/json")
    public GraphNode retrieveDetails(
            @QueryParam(value = "uri") UriRef uri,
            @Context UriInfo uriInfo) {

        MGraph graph = clipsFeedProvider.getBundleGraph();
        Iterator<Triple> items = graph.filter(uri, RDF.type, CLIPS.ClipFeed);
        if (items.hasNext()) {
            GraphNode node = new GraphNode(items.next().getSubject(), new UnionMGraph(new
SimpleMGraph(), graph));
            node.addProperty(RDF.type, CLIPS.ClipDetails);
            return node;
        }
        throw new WebApplicationException(Response.status(Status.NOT_FOUND).build());
    }


ssp:

import org.apache.clerezza.rdf.scala.utils.CollectedIter
import org.apache.clerezza.rdf.scala.utils.RichGraphNode
import org.json.simple.JSONObject

ef dct(s: Any) = new UriRef("http://purl.org/dc/terms/"+s)
def clips(s: Any) = new UriRef("http://www.getunik.com/2010/02/clips#"+s)
def returnValue(iter: CollectedIter[RichGraphNode]) = try { if((iter).length > 0){iter*}
else {""}} catch {case e:Exception => ""}


def returnDate(iter: CollectedIter[RichGraphNode]) =
try {
if((iter).length > 0){

var startDate = iter*;
try {
{startDate .substring(0, startDate .indexOf('T')+6)replace('T', ' ')}
} catch {
case e:Exception => iter*;
}
} else {
""
}
} catch {case e:Exception => ""}



"{" +
"\"uri\":\"" + JSONObject.escape((res*)) + "\"," +
"\"title\":\"" + JSONObject.escape(returnValue(res/dct("title"))) + "\"," +
"\"modified\":\"" + JSONObject.escape(returnDate(res/dct("modified"))) + "\"," +
"\"searchterm\":\"" + JSONObject.escape(returnValue(res/clips("searchterm"))) + "\"," +
"\"sorting\":\"" + JSONObject.escape(returnValue(res/clips("sorting"))) + "\"," +
"\"max_entries\":\"" + JSONObject.escape(returnValue(res/clips("max_entries"))) + "\"," +
"\"comment\":\"" + JSONObject.escape(returnValue(res/rdfs("comment"))) +
"\"}";




HTTP ERROR 500
Problem accessing /admin/clips/feeds/details. Reason:
    org.wymiwyg.wrhapi.HandlerException: java.security.PrivilegedActionException: javax.script.ScriptException:
java.lang.RuntimeException: Literals cannot be the subject of a List
Caused by:
java.lang.RuntimeException: org.wymiwyg.wrhapi.HandlerException: java.security.PrivilegedActionException:
javax.script.ScriptException: java.lang.RuntimeException: Literals cannot be the subject of
a List
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:349)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.access$200(ResponseProcessor.java:260)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1$3.run(ResponseProcessor.java:293)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Unknown Source)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:289)
        at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerFactory.java:110)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Caused by: org.wymiwyg.wrhapi.HandlerException: java.security.PrivilegedActionException: javax.script.ScriptException:
java.lang.RuntimeException: Literals cannot be the subject of a List
        at org.apache.clerezza.triaxrs.JaxRsHandler.handleException(JaxRsHandler.java:590)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:319)
        ... 23 more
Caused by: java.security.PrivilegedActionException: javax.script.ScriptException: java.lang.RuntimeException:
Literals cannot be the subject of a List
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet.render(ScalaServerPagesRenderlet.java:139)
        at org.apache.clerezza.platform.typerendering.RendererImpl.render(RendererImpl.java:85)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:146)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:74)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:313)
        ... 23 more
Caused by: javax.script.ScriptException: java.lang.RuntimeException: Literals cannot be the
subject of a List
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:275)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:292)
        at org.apache.clerezza.scala.service.CompiledScript.execute(CompiledScript.scala:77)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet$1.run(ScalaServerPagesRenderlet.java:143)
        ... 29 more
Caused by: java.lang.RuntimeException: Literals cannot be the subject of a List
        at org.apache.clerezza.rdf.utils.GraphNode.asList(GraphNode.java:437)
        at org.apache.clerezza.rdf.scala.utils.RichGraphNode.$bang$bang(RichGraphNode.scala:44)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.run$1(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:21)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1$$anonfun$apply$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:37)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withOut(Console.scala:84)
        at scala.Console$.withOut(Console.scala:102)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:36)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withIn(Console.scala:121)
        at scala.Console$.withIn(Console.scala:139)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:35)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:269)
        ... 32 more
Caused by:
org.wymiwyg.wrhapi.HandlerException: java.security.PrivilegedActionException: javax.script.ScriptException:
java.lang.RuntimeException: Literals cannot be the subject of a List
        at org.apache.clerezza.triaxrs.JaxRsHandler.handleException(JaxRsHandler.java:590)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:319)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.access$200(ResponseProcessor.java:260)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1$3.run(ResponseProcessor.java:293)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Unknown Source)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:289)
        at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerFactory.java:110)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Caused by: java.security.PrivilegedActionException: javax.script.ScriptException: java.lang.RuntimeException:
Literals cannot be the subject of a List
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet.render(ScalaServerPagesRenderlet.java:139)
        at org.apache.clerezza.platform.typerendering.RendererImpl.render(RendererImpl.java:85)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:146)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:74)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:313)
        ... 23 more
Caused by: javax.script.ScriptException: java.lang.RuntimeException: Literals cannot be the
subject of a List
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:275)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:292)
        at org.apache.clerezza.scala.service.CompiledScript.execute(CompiledScript.scala:77)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet$1.run(ScalaServerPagesRenderlet.java:143)
        ... 29 more
Caused by: java.lang.RuntimeException: Literals cannot be the subject of a List
        at org.apache.clerezza.rdf.utils.GraphNode.asList(GraphNode.java:437)
        at org.apache.clerezza.rdf.scala.utils.RichGraphNode.$bang$bang(RichGraphNode.scala:44)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.run$1(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:21)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1$$anonfun$apply$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:37)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withOut(Console.scala:84)
        at scala.Console$.withOut(Console.scala:102)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:36)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withIn(Console.scala:121)
        at scala.Console$.withIn(Console.scala:139)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:35)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:269)
        ... 32 more
Caused by:
java.security.PrivilegedActionException: javax.script.ScriptException: java.lang.RuntimeException:
Literals cannot be the subject of a List
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet.render(ScalaServerPagesRenderlet.java:139)
        at org.apache.clerezza.platform.typerendering.RendererImpl.render(RendererImpl.java:85)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:146)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:74)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:313)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.access$200(ResponseProcessor.java:260)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1$3.run(ResponseProcessor.java:293)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Unknown Source)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:289)
        at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerFactory.java:110)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Caused by: javax.script.ScriptException: java.lang.RuntimeException: Literals cannot be the
subject of a List
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:275)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:292)
        at org.apache.clerezza.scala.service.CompiledScript.execute(CompiledScript.scala:77)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet$1.run(ScalaServerPagesRenderlet.java:143)
        ... 29 more
Caused by: java.lang.RuntimeException: Literals cannot be the subject of a List
        at org.apache.clerezza.rdf.utils.GraphNode.asList(GraphNode.java:437)
        at org.apache.clerezza.rdf.scala.utils.RichGraphNode.$bang$bang(RichGraphNode.scala:44)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.run$1(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:21)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1$$anonfun$apply$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:37)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withOut(Console.scala:84)
        at scala.Console$.withOut(Console.scala:102)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:36)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withIn(Console.scala:121)
        at scala.Console$.withIn(Console.scala:139)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:35)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:269)
        ... 32 more
Caused by:
javax.script.ScriptException: java.lang.RuntimeException: Literals cannot be the subject of
a List
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:275)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:292)
        at org.apache.clerezza.scala.service.CompiledScript.execute(CompiledScript.scala:77)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet$1.run(ScalaServerPagesRenderlet.java:143)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet.render(ScalaServerPagesRenderlet.java:139)
        at org.apache.clerezza.platform.typerendering.RendererImpl.render(RendererImpl.java:85)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:146)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:74)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:313)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.access$200(ResponseProcessor.java:260)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1$3.run(ResponseProcessor.java:293)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Unknown Source)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:289)
        at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerFactory.java:110)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
Caused by: java.lang.RuntimeException: Literals cannot be the subject of a List
        at org.apache.clerezza.rdf.utils.GraphNode.asList(GraphNode.java:437)
        at org.apache.clerezza.rdf.scala.utils.RichGraphNode.$bang$bang(RichGraphNode.scala:44)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.run$1(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:21)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1$$anonfun$apply$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:37)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withOut(Console.scala:84)
        at scala.Console$.withOut(Console.scala:102)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:36)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withIn(Console.scala:121)
        at scala.Console$.withIn(Console.scala:139)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:35)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:269)
        ... 32 more
Caused by:
java.lang.RuntimeException: Literals cannot be the subject of a List
        at org.apache.clerezza.rdf.utils.GraphNode.asList(GraphNode.java:437)
        at org.apache.clerezza.rdf.scala.utils.RichGraphNode.$bang$bang(RichGraphNode.scala:44)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.run$1(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:21)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1$$anonfun$apply$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:37)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withOut(Console.scala:84)
        at scala.Console$.withOut(Console.scala:102)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$$anonfun$main$1.apply(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:36)
        at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
        at scala.Console$.withIn(Console.scala:121)
        at scala.Console$.withIn(Console.scala:139)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f$.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f:35)
        at clips_feedd8987f68cc04bccdc86e6f2b4c8d837f.main(clips_feedd8987f68cc04bccdc86e6f2b4c8d837f)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:269)
        at org.apache.clerezza.scala.interpreter.ScalaInterpreter.execute(ScalaInterpreter.scala:292)
        at org.apache.clerezza.scala.service.CompiledScript.execute(CompiledScript.scala:77)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet$1.run(ScalaServerPagesRenderlet.java:143)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet.render(ScalaServerPagesRenderlet.java:139)
        at org.apache.clerezza.platform.typerendering.RendererImpl.render(RendererImpl.java:85)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:146)
        at org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:74)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:313)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.access$200(ResponseProcessor.java:260)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1$3.run(ResponseProcessor.java:293)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Unknown Source)
        at org.apache.clerezza.triaxrs.ResponseProcessor$1.writeTo(ResponseProcessor.java:289)
        at org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerFactory.java:110)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
        at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
        at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
        at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
        at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
        at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:864)
        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:539)
        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
        at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
________________________________
Powered by Jetty://



















Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message