Activity Stream Breaks due to InvalidCharacterException

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

When attempting to view the Activity Stream, the below error is shown:

The following appears in the atlassian-jira.log:

2012-08-02 15:52:24,181 http-8080-4 ERROR pirateman 952x1497x1 1x45sii 127.0.0.1 /plugins/servlet/streams [streams.internal.servlet.StreamsActivityServlet] Error sending feed
org.apache.abdera.i18n.iri.IRISyntaxException: org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x25(%)
	at org.apache.abdera.i18n.iri.IRI.parseAuthority(IRI.java:549)
	at org.apache.abdera.i18n.iri.IRI.parse(IRI.java:565)
	at org.apache.abdera.i18n.iri.IRI.<init>(IRI.java:64)
	at org.apache.abdera.parser.stax.FOMIRI.setValue(FOMIRI.java:63)
	at org.apache.abdera.parser.stax.FOMPerson.setUri(FOMPerson.java:150)
	at com.atlassian.streams.internal.atom.abdera.AbderaAtomFeedRenderer$AtomFeedBuilder.buildPerson(AbderaAtomFeedRenderer.java:390)
	at com.atlassian.streams.internal.atom.abdera.AbderaAtomFeedRenderer$AtomFeedBuilder.buildAuthors(AbderaAtomFeedRenderer.java:368)
	at com.atlassian.streams.internal.atom.abdera.AbderaAtomFeedRenderer$AtomFeedBuilder.getAtomEntry(AbderaAtomFeedRenderer.java:230)
	at com.atlassian.streams.internal.atom.abdera.AbderaAtomFeedRenderer$AtomFeedBuilder.build(AbderaAtomFeedRenderer.java:162)
	at com.atlassian.streams.internal.atom.abdera.AbderaAtomFeedRenderer.writeFeed(AbderaAtomFeedRenderer.java:100)
	at com.atlassian.streams.internal.servlet.StreamsActivityServlet.doGet(StreamsActivityServlet.java:85)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at com.atlassian.plugin.servlet.DelegatingPluginServlet.service(DelegatingPluginServlet.java:42)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at com.atlassian.plugin.servlet.ServletModuleContainerServlet.service(ServletModuleContainerServlet.java:52)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at com.atlassian.jira.web.filters.steps.ChainedFilterStepRunner.doFilter(ChainedFilterStepRunner.java:78)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at com.atlassian.core.filters.HeaderSanitisingFilter.doFilter(HeaderSanitisingFilter.java:44)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:46)
	at com.atlassian.plugin.servlet.filter.DelegatingPluginFilter$1.doFilter(DelegatingPluginFilter.java:66)
	at com.atlassian.applinks.core.rest.context.ContextFilter.doFilter(ContextFilter.java:25)
	...
Caused by: org.apache.abdera.i18n.text.InvalidCharacterException: Invalid Character 0x25(%)
	at org.apache.abdera.i18n.text.CodepointIterator$RestrictedCodepointIterator.next(CodepointIterator.java:476)
	at org.apache.abdera.i18n.text.CharUtils.verify(CharUtils.java:820)
	at org.apache.abdera.i18n.text.CharUtils.verify(CharUtils.java:838)
	at org.apache.abdera.i18n.iri.IRI.parseAuthority(IRI.java:547)
	... 130 more

Cause

This problem may happen due to either of the causes below:

  • There is an underscore in the Base URL and the following bug is happening:  JRA-41887 - Getting issue details... STATUS
  • There is an invalid character within the Base URL.

Resolution

Modify that the Base URL (as in Configuring JIRA Options) so that it does not contain the invalid character, as listed in the stack trace. In this example it was caused by the following URL and fixed by changing it to http://jira.atlassian.com.

http://jira.atlassian.com

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.