Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Illegal character issue occurs from Jenkins webhook URL

prabuprasath October 22, 2019

Hello Team,

We have noticed that in our atlassian-bitbucket.log "Illegal character" error is occurring from Jenkins Webhook url.

Error msg: Caused by: java.net.URISyntaxException: Illegal character in path at index 66: https://$JenkinsURL/bitbucket-scmsource-hook/notify

Usually, this illegal character error occurs, if there is any empty space in the provided URL. But in our Jenkins URL there is no space and we have double checked it. 

So we need your support here to find out why this error is occurring in atlassian log . Also we could not able to find out from which repository this error is occurring.

1 answer

0 votes
Ana Retamal
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 24, 2019

Hi @prabuprasath, thanks for reaching out!

I've found a similar issue in the Jenkins issue tracker (https://issues.jenkins-ci.org/browse/JENKINS-44140). Can you compare the output you get to the log posted in that bug report and see if it matches? If it does, it might be a regression of that bug, in that case I'd recommend contacting Jenkins directly or submitting a new bug for them. 

If it looks like something different, please show us a bigger piece of the log, and let us know if this is affecting all of your webhooks or what issues are you experiencing so we can continue the investigation.

Best regards,

Ana  

prabuprasath October 24, 2019

Hello @Ana Retamal 

Thanks for the response. The log is different.

In bit bucket repository, we have post webhooks enabled and it is triggering multi job pipeline in Jenkins for one of our project.

So for each trigger from that project repositories, we are receiving below error message in atlassian-bitbucket.log .  We have verified that there is no empty space in post webhooks jenkin URL.

Also we are not able to find out from which repository this error is triggering in that project. So is there any way to show the repository details of error producing Jenkins URL.

Log Message:

2019-10-24 07:18:18,002 ERROR [threadpool:thread-9] c.a.s.i.c.DefaultTransferableStateManager Error while processing asynchronous task
java.lang.IllegalArgumentException: Illegal character in path at index 66: https://$JenkinsURL/bitbucket-scmsource-hook/notify
at java.net.URI.create(URI.java:852)
at nl.topicus.bitbucket.api.PullRequestListener.sendEvents(PullRequestListener.java:326)
at nl.topicus.bitbucket.api.PullRequestListener.lambda$onRepositoryRefsChanged$0(PullRequestListener.java:205)
at com.atlassian.stash.internal.concurrent.DefaultTransferableStateManager$StateTransferringRunnable.run(DefaultTransferableStateManager.java:166)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.lang.Thread.run(Thread.java:748)
... 1 frame trimmed
Caused by: java.net.URISyntaxException: Illegal character in path at index 66: https://$JenkinsURL/bitbucket-scmsource-hook/notify
at java.net.URI$Parser.fail(URI.java:2848)
at java.net.URI$Parser.checkChars(URI.java:3021)
at java.net.URI$Parser.parseHierarchical(URI.java:3105)
at java.net.URI$Parser.parse(URI.java:3053)
at java.net.URI.<init>(URI.java:588)
at java.net.URI.create(URI.java:850)
... 10 common frames omitted

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events