org.apache.jena.riot.RiotParseException: [line: 1, col: 1 ] Bad character encoding

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Sakai JIRA by Justin Littman, 1 year ago
[line: 1, col: 1 ] Bad character encoding
via Sakai JIRA by Justin Littman, 1 year ago
[line: 1, col: 1 ] Bad character encoding
org.apache.jena.riot.RiotParseException: [line: 1, col: 1 ] Bad character encoding
at org.apache.jena.riot.tokens.TokenizerText.hasNext(TokenizerText.java:105)
at org.apache.jena.atlas.iterator.PeekIterator.fill(PeekIterator.java:50)
at org.apache.jena.atlas.iterator.PeekIterator.(PeekIterator.java:44)
at org.apache.jena.riot.lang.LangEngine.(LangEngine.java:45)
at org.apache.jena.riot.lang.LangBase.(LangBase.java:32)
at org.apache.jena.riot.lang.LangNTuple.(LangNTuple.java:61)
at org.apache.jena.riot.lang.LangNTriples.(LangNTriples.java:42)
at org.apache.jena.riot.RiotReader.createParserNTriples(RiotReader.java:360)
at org.apache.jena.riot.RiotReader.createParserNTriples(RiotReader.java:354)
at edu.cornell.mannlib.vitro.webapp.searchindex.IndexingChangeListener.parseTriple(IndexingChangeListener.java:147)
at edu.cornell.mannlib.vitro.webapp.searchindex.IndexingChangeListener.addedStatement(IndexingChangeListener.java:116)
at edu.cornell.mannlib.vitro.webapp.utils.developer.listeners.DeveloperDisabledChangeListener.addedStatement(DeveloperDisabledChangeListener.java:35)
at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.RDFServiceImpl.notifyListeners(RDFServiceImpl.java:119)
at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.ListeningGraph.performAdd(ListeningGraph.java:60)
at com.hp.hpl.jena.graph.GraphUtil.addIteratorWorker(GraphUtil.java:194)
at com.hp.hpl.jena.graph.GraphUtil.addInto(GraphUtil.java:183)
at com.hp.hpl.jena.rdf.model.impl.ModelCom.add(ModelCom.java:208)
at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena.operateOnModel(RDFServiceJena.java:117)
at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.RDFServiceJena.notifyListenersOfChanges(RDFServiceJena.java:99)
at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.jena.sdb.RDFServiceSDB.changeSetUpdate(RDFServiceSDB.java:90)
at edu.cornell.mannlib.vitro.webapp.rdfservice.impl.logging.LoggingRDFService.changeSetUpdate(LoggingRDFService.java:35)
at edu.cornell.mannlib.vitro.webapp.controller.jena.RDFUploadController.addUsingRDFService(RDFUploadController.java:239)
at edu.cornell.mannlib.vitro.webapp.controller.jena.RDFUploadController.doPost(RDFUploadController.java:147)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
at edu.cornell.mannlib.vitro.webapp.controller.VitroHttpServlet.service(VitroHttpServlet.java:71)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:291)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.PageRoutingFilter.doNonDisplayPage(PageRoutingFilter.java:108)
at edu.cornell.mannlib.vitro.webapp.filters.PageRoutingFilter.doFilter(PageRoutingFilter.java:99)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.ClickjackFilter.doFilter(ClickjackFilter.java:31)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.RequestModelsPrep.doFilter(RequestModelsPrep.java:56)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.URLRewriterFilter.doFilter(URLRewriterFilter.java:38)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.JSessionStripFilter.doFilter(JSessionStripFilter.java:60)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.CachingResponseFilter.produceBasicResponse(CachingResponseFilter.java:321)
at edu.cornell.mannlib.vitro.webapp.filters.CachingResponseFilter.doFilter(CachingResponseFilter.java:115)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.i18n.selection.LocaleSelectionFilter.doFilter(LocaleSelectionFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.CharsetEncodingFilter.doFilter(CharsetEncodingFilter.java:34)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.SessionTimeoutLimitingFilter.doFilter(SessionTimeoutLimitingFilter.java:39)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at edu.cornell.mannlib.vitro.webapp.filters.StartupStatusDisplayFilter.doFilter(StartupStatusDisplayFilter.java:64)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:239)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:219)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:142)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:610)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1091)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:668)
at org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:223)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1517)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.