[ 
https://issues.apache.org/jira/browse/CLEREZZA-220?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Reto Bachmann-Gmür closed CLEREZZA-220.
---------------------------------------

    Resolution: Fixed

> instead of throwing a runtime exception, a html snippet (eg div) should be 
> generated with the respective texts, if no renderer could be created
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CLEREZZA-220
>                 URL: https://issues.apache.org/jira/browse/CLEREZZA-220
>             Project: Clerezza
>          Issue Type: Improvement
>            Reporter: Hasan
>
> instead of throwing a runtime exception while trying to render a resource as 
> below, a snippet like
> <div>
>   no rendered could be created for ...
> </div>
> should be generated by the system
> File: file:/.../page.ssp
> Description:
> java.lang.RuntimeException: no renderer could be created for 
> <http://localhost:8080/example-wwf-page/index-content/7> (in 
> [org.apache.clerezza.rdf.core.bn...@db56e0 
> <http://discobits.org/ontology#pos> 
> "1"^^<http://www.w3.org/2001/XMLSchema#integer>., 
> org.apache.clerezza.rdf.core.bn...@db56e0 
> <http://discobits.org/ontology#holds> 
> <http://localhost:8080/example-wwf-page/photogallery/1-content>., 
> org.apache.clerezza.rdf.core.bn...@db56e0 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://discobits.org/ontology#Entry>., 
> org.apache.clerezza.rdf.core.bn...@10cb6aa 
> <http://discobits.org/ontology#holds> 
> <http://localhost:8080/example-wwf-page/index-content/7>., 
> org.apache.clerezza.rdf.core.bn...@10cb6aa 
> <http://discobits.org/ontology#pos> 
> "7"^^<http://www.w3.org/2001/XMLSchema#integer>., 
> org.apache.clerezza.rdf.core.bn...@10cb6aa 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://discobits.org/ontology#Entry>., 
> <http://localhost:8080/example-wwf-page/index-content/7> 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://clerezza.org/2010/01/wwf#PhotoGallery>., 
> <http://localhost:8080/example-wwf-page/index-content/7> 
> <http://discobits.org/ontology#contains> 
> org.apache.clerezza.rdf.core.bn...@db56e0., 
> <http://localhost:8080/example-wwf-page/index-content/7> 
> <http://discobits.org/ontology#contains> 
> org.apache.clerezza.rdf.core.bn...@872f55., 
> <http://localhost:8080/example-wwf-page/index-content> 
> <http://discobits.org/ontology#contains> 
> org.apache.clerezza.rdf.core.bn...@10cb6aa., 
> org.apache.clerezza.rdf.core.bn...@872f55 <http://discobits.org/ontology#pos> 
> "0"^^<http://www.w3.org/2001/XMLSchema#integer>., 
> org.apache.clerezza.rdf.core.bn...@872f55 
> <http://discobits.org/ontology#holds> 
> <http://localhost:8080/example-wwf-page/photogallery/1-title>., 
> org.apache.clerezza.rdf.core.bn...@872f55 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://discobits.org/ontology#Entry>.]), wwf-main,[application/xhtml+xml]
> Stack trace:
> java.lang.RuntimeException: no renderer could be created for 
> <http://localhost:8080/example-wwf-page/index-content/7> (in 
> [org.apache.clerezza.rdf.core.bn...@db56e0 
> <http://discobits.org/ontology#pos> 
> "1"^^<http://www.w3.org/2001/XMLSchema#integer>., 
> org.apache.clerezza.rdf.core.bn...@db56e0 
> <http://discobits.org/ontology#holds> 
> <http://localhost:8080/example-wwf-page/photogallery/1-content>., 
> org.apache.clerezza.rdf.core.bn...@db56e0 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://discobits.org/ontology#Entry>., 
> org.apache.clerezza.rdf.core.bn...@10cb6aa 
> <http://discobits.org/ontology#holds> 
> <http://localhost:8080/example-wwf-page/index-content/7>., 
> org.apache.clerezza.rdf.core.bn...@10cb6aa 
> <http://discobits.org/ontology#pos> 
> "7"^^<http://www.w3.org/2001/XMLSchema#integer>., 
> org.apache.clerezza.rdf.core.bn...@10cb6aa 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://discobits.org/ontology#Entry>., 
> <http://localhost:8080/example-wwf-page/index-content/7> 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://clerezza.org/2010/01/wwf#PhotoGallery>., 
> <http://localhost:8080/example-wwf-page/index-content/7> 
> <http://discobits.org/ontology#contains> 
> org.apache.clerezza.rdf.core.bn...@db56e0., 
> <http://localhost:8080/example-wwf-page/index-content/7> 
> <http://discobits.org/ontology#contains> 
> org.apache.clerezza.rdf.core.bn...@872f55., 
> <http://localhost:8080/example-wwf-page/index-content> 
> <http://discobits.org/ontology#contains> 
> org.apache.clerezza.rdf.core.bn...@10cb6aa., 
> org.apache.clerezza.rdf.core.bn...@872f55 <http://discobits.org/ontology#pos> 
> "0"^^<http://www.w3.org/2001/XMLSchema#integer>., 
> org.apache.clerezza.rdf.core.bn...@872f55 
> <http://discobits.org/ontology#holds> 
> <http://localhost:8080/example-wwf-page/photogallery/1-title>., 
> org.apache.clerezza.rdf.core.bn...@872f55 
> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> 
> <http://discobits.org/ontology#Entry>.]), wwf-main,[application/xhtml+xml]
>       at 
> org.apache.clerezza.platform.typerendering.CallbackRendererImpl.render(CallbackRendererImpl.java:46)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$.render$1(pagedbffd44e8877d40619f920bf236590ea:65529)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$$anonfun$run$1$11$$anonfun$apply$12.apply(pagedbffd44e8877d40619f920bf236590ea:330)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$$anonfun$run$1$11$$anonfun$apply$12.apply(pagedbffd44e8877d40619f920bf236590ea:329)
>       at scala.Seq$class.map(Seq.scala:280)
>       at 
> org.apache.clerezza.rdf.scala.utils.CollectedIter.map(CollectedIter.scala:27)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$$anonfun$run$1$11.apply(pagedbffd44e8877d40619f920bf236590ea:329)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$$anonfun$run$1$11.apply(pagedbffd44e8877d40619f920bf236590ea:329)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$.ifx$1(pagedbffd44e8877d40619f920bf236590ea:65533)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$.run$1(pagedbffd44e8877d40619f920bf236590ea:328)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$$anonfun$main$1$$anonfun$apply$13.apply(pagedbffd44e8877d40619f920bf236590ea:376)
>       at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
>       at scala.Console$.withOut(Console.scala:84)
>       at scala.Console$.withOut(Console.scala:102)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$$anonfun$main$1.apply(pagedbffd44e8877d40619f920bf236590ea:375)
>       at scala.util.DynamicVariable.withValue(DynamicVariable.scala:73)
>       at scala.Console$.withIn(Console.scala:121)
>       at scala.Console$.withIn(Console.scala:139)
>       at 
> pagedbffd44e8877d40619f920bf236590ea$.main(pagedbffd44e8877d40619f920bf236590ea:374)
>       at 
> pagedbffd44e8877d40619f920bf236590ea.main(pagedbffd44e8877d40619f920bf236590ea)
>       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 
> 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:146)
>       at java.security.AccessController.doPrivileged(Native Method)
>       at 
> org.apache.clerezza.platform.typerendering.scalaserverpages.ScalaServerPagesRenderlet.render(ScalaServerPagesRenderlet.java:142)
>       at 
> org.apache.clerezza.platform.typerendering.RendererImpl.render(RendererImpl.java:85)
>       at 
> org.apache.clerezza.platform.typerendering.GenericGraphNodeMBW.writeTo(GenericGraphNodeMBW.java:151)
>       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(Subject.java:396)
>       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)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to