Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug report]java.lang.IllegalArgumentException: URL is malformed #440

Closed
rxxy opened this issue Jan 31, 2023 · 15 comments · Fixed by #441
Closed

[bug report]java.lang.IllegalArgumentException: URL is malformed #440

rxxy opened this issue Jan 31, 2023 · 15 comments · Fixed by #441
Assignees
Labels

Comments

@rxxy
Copy link

rxxy commented Jan 31, 2023

java.lang.IllegalArgumentException: URL is malformed
	at org.codinjutsu.tools.jenkins.logic.UrlBuilder.handleException(UrlBuilder.java:158)
	at org.codinjutsu.tools.jenkins.logic.UrlBuilder.buildUrl(UrlBuilder.java:219)
	at org.codinjutsu.tools.jenkins.logic.UrlBuilder.createFillValueItemsUrl(UrlBuilder.java:212)
	at org.codinjutsu.tools.jenkins.logic.RequestManager.getFillValueItems(RequestManager.java:506)
	at org.codinjutsu.tools.jenkins.logic.RequestManager.lambda$getGitParameterChoices$11(RequestManager.java:500)
	at java.base/java.util.Optional.map(Optional.java:260)
	at org.codinjutsu.tools.jenkins.logic.RequestManager.getGitParameterChoices(RequestManager.java:500)
	at org.codinjutsu.tools.jenkins.view.extension.JobParameterRenderers.createGitParameterChoices(JobParameterRenderers.java:163)
	at org.codinjutsu.tools.jenkins.view.extension.JobParameterRenderers.lambda$createGitParameterChoices$2(JobParameterRenderers.java:149)
	at org.codinjutsu.tools.jenkins.view.parameter.GitParameterRenderer.render(GitParameterRenderer.java:56)
	at org.codinjutsu.tools.jenkins.view.BuildParamDialog.addParameterInputs(BuildParamDialog.java:119)
	at org.codinjutsu.tools.jenkins.view.BuildParamDialog.<init>(BuildParamDialog.java:71)
	at org.codinjutsu.tools.jenkins.view.BuildParamDialog.lambda$showDialog$0(BuildParamDialog.java:79)
	at com.intellij.openapi.application.TransactionGuardImpl.runWithWritingAllowed(TransactionGuardImpl.java:209)
	at com.intellij.openapi.application.TransactionGuardImpl.access$100(TransactionGuardImpl.java:21)
	at com.intellij.openapi.application.TransactionGuardImpl$1.run(TransactionGuardImpl.java:191)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
	at com.intellij.openapi.application.impl.ApplicationImpl$3.run(ApplicationImpl.java:454)
	at com.intellij.openapi.application.impl.FlushQueue.doRun(FlushQueue.java:74)
	at com.intellij.openapi.application.impl.FlushQueue.runNextEvent(FlushQueue.java:114)
	at com.intellij.openapi.application.impl.FlushQueue.flushNow(FlushQueue.java:36)
	at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:318)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:779)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:730)
	at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:724)
	at java.base/java.security.AccessController.doPrivileged(AccessController.java:399)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
	at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:749)
	at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:909)
	at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:756)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$5(IdeEventQueue.java:437)
	at com.intellij.openapi.progress.impl.CoreProgressManager.computePrioritized(CoreProgressManager.java:787)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$6(IdeEventQueue.java:436)
	at com.intellij.openapi.application.TransactionGuardImpl.performActivity(TransactionGuardImpl.java:105)
	at com.intellij.ide.IdeEventQueue.performActivity(IdeEventQueue.java:615)
	at com.intellij.ide.IdeEventQueue.lambda$dispatchEvent$7(IdeEventQueue.java:434)
	at com.intellij.openapi.application.impl.ApplicationImpl.runIntendedWriteActionOnCurrentThread(ApplicationImpl.java:838)
	at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:480)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:207)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
	at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:92)
Caused by: java.net.MalformedURLException: no protocol: descriptorByName/net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition/fillValueItems?param=BRANCH_TAGdescriptorByName/net.uaznia.lukanus.hudson.plugins.gitparameter.GitParameterDefinition/fillValueItems?param=BRANCH_TAG
	at java.base/java.net.URL.<init>(URL.java:674)
	at java.base/java.net.URL.<init>(URL.java:569)
	at java.base/java.net.URL.<init>(URL.java:516)
	at org.codinjutsu.tools.jenkins.logic.UrlBuilder.buildUrlNotNull(UrlBuilder.java:227)
	at org.codinjutsu.tools.jenkins.logic.UrlBuilder.buildUrl(UrlBuilder.java:217)
	... 42 more

@rxxy
Copy link
Author

rxxy commented Jan 31, 2023

image

image

@MCMicS
Copy link
Owner

MCMicS commented Jan 31, 2023

Thanks for filling the issue.
i will check and fix it

@MCMicS MCMicS added the bug label Jan 31, 2023
@Maoway
Copy link

Maoway commented Jan 31, 2023

Our team also encountered this problem

@MCMicS
Copy link
Owner

MCMicS commented Jan 31, 2023

I try to reproduce it

it seems that this occurs during get parameter for Git parameters.

Is this right?

Do you want to run a build with parameters?

@rxxy
Copy link
Author

rxxy commented Jan 31, 2023

image
Whenever I click on [build on Jenkins] this error happens, no popup as expected

@MCMicS
Copy link
Owner

MCMicS commented Jan 31, 2023

Ok but the job has a git parameter?

@rxxy
Copy link
Author

rxxy commented Jan 31, 2023

Yes,In addition to branch_tag, there is also an enriroment parameter

@rxxy
Copy link
Author

rxxy commented Jan 31, 2023

image

@MCMicS
Copy link
Owner

MCMicS commented Jan 31, 2023

Thanks
i try to reproduce it. Or is your server public available. You can also send me privately on gitter if you like

@MCMicS MCMicS self-assigned this Jan 31, 2023
@MCMicS
Copy link
Owner

MCMicS commented Jan 31, 2023

I find to bug. I fix it

@MCMicS
Copy link
Owner

MCMicS commented Jan 31, 2023

@rxxy
Copy link
Author

rxxy commented Jan 31, 2023

It works now! awesome

@Maoway
Copy link

Maoway commented Jan 31, 2023

It works now! Thanks

@MCMicS
Copy link
Owner

MCMicS commented Jan 31, 2023

nice to hear
sorry for the bug

@MCMicS
Copy link
Owner

MCMicS commented Feb 22, 2023

released with 0.13.17

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants