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
upload-dir giving error #38
Comments
I've rerun my test case for upload-dir and examined the code and don't see
a good explanation for this. Will you please rerun your command and add:
…-Ddumpinput=true
This will generate some additional output that I'd like to see.
Thanks,
Rich
On Fri, Jan 27, 2017 at 12:59 AM, gitUser2k17 ***@***.***> wrote:
Hi,
I have tried upload-dir command today, it is giving me errors. All
required properties are set but it is still throwing the following error
may be because 'https://x.x.x.x:5550 /service/mgmt/current' there is a
space between port and uri. Not sure where to correct this ( is it in Java
?? )
1. I have tried other commands like uploading a single file, importing
services, they are all fine.
2. I have taken the same SOMA request from the -Dcapturesoma generated
log and tried that with a testing tool to DP by removing space, it worked
fine. Only the ant command line is giving a problem.
Can someone please help ?
upload-dir:
BUILD FAILED
C:\Users\Thamma_2\Documents\svn_workspace\Automation\Datapower
Configuration Manager\deploy.ant.xml:1221: java.net.MalformedURLException:
For input string: "5550 "
at java.net.URL.(URL.java:627)
at java.net.URL.(URL.java:490)
at java.net.URL.(URL.java:439)
at com.ibm.dcm.SSLConnection.sendAndReceive(SSLConnection.java:153)
at com.ibm.dcm.taskDpupload.createDirectory(taskDpupload.java:393)
at com.ibm.dcm.taskDpupload.upload(taskDpupload.java:270)
at com.ibm.dcm.taskDpupload.execute(taskDpupload.java:119)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(
DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(
DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
Caused by: java.lang.NumberFormatException: For input string: "5550 "
at java.lang.NumberFormatException.forInputString(
NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:216)
at java.net.URL.(URL.java:622)
... 22 more
Total time: 3 seconds
Thanks.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#38>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADuMmnQbvc9FIsHad1AjIzmjkb1Jae49ks5rWYfBgaJpZM4LvdTk>
.
|
Hi, I have researched and this seems to be problem with the property entries I have defined. Port has space in it, others are truncating the space but upload-dir is using the port as is. I removed space in properties and this is working fine now. Thank you. |
ghost
closed this as completed
Jan 30, 2017
Closed
This issue was closed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I have tried upload-dir command today, it is giving me errors. All required properties are set but it is still throwing the following error may be because 'https://x.x.x.x:5550 /service/mgmt/current' there is a space between port and uri. Not sure where to correct this ( is it in Java ?? )
Can someone please help ?
upload-dir:
BUILD FAILED
C:\Users\S\Documents\svn_workspace\Automation\Datapower Configuration Manager\deploy.ant.xml:1221: java.net.MalformedURLException: For input string: "5550 "
at java.net.URL.(URL.java:627)
at java.net.URL.(URL.java:490)
at java.net.URL.(URL.java:439)
at com.ibm.dcm.SSLConnection.sendAndReceive(SSLConnection.java:153)
at com.ibm.dcm.taskDpupload.createDirectory(taskDpupload.java:393)
at com.ibm.dcm.taskDpupload.upload(taskDpupload.java:270)
at com.ibm.dcm.taskDpupload.execute(taskDpupload.java:119)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:293)
at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:435)
at org.apache.tools.ant.Target.performTasks(Target.java:456)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1405)
at org.apache.tools.ant.Project.executeTarget(Project.java:1376)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1260)
at org.apache.tools.ant.Main.runBuild(Main.java:857)
at org.apache.tools.ant.Main.startAnt(Main.java:236)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:287)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:113)
Caused by: java.lang.NumberFormatException: For input string: "5550 "
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Integer.parseInt(Integer.java:580)
at java.lang.Integer.parseInt(Integer.java:615)
at java.net.URLStreamHandler.parseURL(URLStreamHandler.java:216)
at java.net.URL.(URL.java:622)
... 22 more
Total time: 3 seconds
Thanks.
The text was updated successfully, but these errors were encountered: