Websphere remote debugging and SOAP connection

Hello,

I'm new to Websphere remote debugging. In IDEA 14 I created a run/debug configuration. On Tab Startup/Connection at Debug I know how to set the Debug port and where I have to set the same port in Websphere.
However when I start I get a SOAP error.
On Tab Server there is the "Server Connection" area where a SOAP port of 8880 is set as the default value. This port is also configured in my Websphere server. However, if I click on "Test connection" I get a "Cannot connect" error message. I tried a lot filling the other input fields with actual values for Cell, Node, Server. All with no success. I have no idea at all about what to input into the User/Password field.

Can you help?

BTW, I can set up remote debugging using the generic "JSR45 Compatible Server" plugin. Here you just configure the correct debugging port as described above and it works.
So what is the extra value of the Websphere plugin anyway? I assume IDEA can do some remote administration through SOAP. What what for?


Best regards

Michael

19 comments
Comment actions Permalink
Hello

Please attach IDEA log after "Test connection" fails (here or in the new youtrack).

> I have no idea at all about what to input into the User/Password field.
If you have secured management connection to WebSphere, you should fill User/Password fields with corresponding values (they are the same as those required to access WebSphere web admin console).

> I assume IDEA can do some remote administration through SOAP. What what for?

IDEA performs deploy and checks application deployment status via WebSphere admininstration client, which in turn works via SOAP.

HTH
Michael

0
Comment actions Permalink

Hello,

this is the IDEA event log message when I click the "Test Connection" button.

13:57:57 Error connecting to the Application Server:
         com.intellij.javaee.process.common.WrappedException: com.ibm.websphere.management.exception.ConnectorException: ADMC0016E: Das System kann keinen SOAP-Connector erstellen, um die Verbindung zum Host localhost an Port 8880 herzustellen. Root cause: [SOAPException: faultCode=SOAP-ENV:Client; msg=Error parsing HTTP status line "      ": java.util.NoSuchElementException; targetException=java.lang.IllegalArgumentException: Error parsing HTTP status line "      ": java.util.NoSuchElementException]

0
Comment actions Permalink

Hello,

We have a number of similar requests related to "Error parsing HTTP status line".

https://devnet.jetbrains.com/message/5543015#5543015
https://devnet.jetbrains.com/message/5544379#5544379
https://youtrack.jetbrains.com/issue/IDEA-135881

It looks like a security-related issue on Windows 8.1. So far we were unable to reproduce this.
We have asked IBM to help us with investigating this problem but it is unfortunately not resolved yet.

Any comments and suggestions are welcome.
If you see this problem in IDEA but still have any other means to connect to WS from the same environment, we are keen to know all the details.

Sorry for bad news,







0
Comment actions Permalink

> If you see this problem in IDEA but still have any other means to  connect to WS from the same environment, we are keen to know all the  details.

You mean, connecting to Websphere through SOAP from the same Windows system but not from IDEA?

0
Comment actions Permalink

Yes. If it is your case, do you think we can setup some kind of remote access to this machine for a couple of hours? TeamViewer or something similar?

Regards,
Michael

0
Comment actions Permalink

Hm, this functionality is not extremely urgent for us.  Normally we would debug our web-app with Tomcat. We would only debug against Websphere if we find differences or need to test IBM MQ related stuff. I will discuss this with the team if we should spent the effort on our side. I think we would need to setup a VM with IDEA and Websphere and give you some kind of isolated access. I'll let you know our decision.

Thanks anyway so far!

Best regards


Michael

0
Comment actions Permalink

Hello,

one more question: Is it really required to have a local Websphere installation even if you want to setup remote debugging? What's the purpose? Setting up Websphere needs quite some effort, we would definitely not spend on every developer machine. So the question if we shall proceed with the Websphere plugin investigation is depending on this answer.

Best regards

Michael

0
Comment actions Permalink

> es. If it is your case, do you think we can setup some kind of remote  access to this machine for a couple of hours? TeamViewer or something  similar?

I discussed with the team. We would spend some effort on our side to investigate this. What exactly would you need for a test environment?

Best regards

Michael

0
Comment actions Permalink

ping Jetbrains ...


0
Comment actions Permalink
Hello

> Is it really required to have a local Websphere installation even if you want to setup remote debugging?
WebSphere remote run configuration (just as any other app server remote run configuration in IDEA) is intended to be used primary for deployment to a locally running WebSphere, started outside of IDEA (or with another local run configuarion in IDEA).
Pure remote case, i.e. WebSphere running not on the local machine, is the secondary use case.

But in both cases WebSphere installation is needed to provide client libraries to administrate the server instance, since IDEA installation doesn't include client libraries for an app server.
In fact, administration connection to WebSphere is required to deploy an artifact. If you don't need to deploy, but just want to debug, you may use just the plain java debug 'Remote' run configuration in IDEA.

However for pure remote case you normally don't need to have the *really working* WS installation at the local machine.
Just a copy of the server home from the target machine should be accepted in IDEA as well because IDEA still should be able to find all necessary libraries.

> What exactly would you need for a test environment?
I need an environment with the issue reproducable. I.e. a machine with IDEA with the WebSphere remote run configuration, which allows to repoduce the subject issue.
The machine should be accessible by remote connection for a couple of days at any time.

Regards
Michael
0
Comment actions Permalink

Hello Michael,

thanks für clearing up things. I will prepare a VM with this error and will inform you here when it's ready.

Best regards

Michael

0
Comment actions Permalink

Hello Michael,

My first test was on an existing Windows XP VM with existing IDEA 8.1.3.I know this is not a valid setup with regard to our test - I just was curious if it works there.
I copied the complete Websphere folder to the VM, installed the "Websphere integration" plugin in IDEA and tried to create a Run/Debug configuration.
However, when I try to configure the Application Server, it tells me my path is not a valid Websphere Home. I specified the same directory "Appserver" as on my own machine with a true Websphere Setup.
What is wrong?

Best regards

Michael


0
Comment actions Permalink

Hello Michael,

I first tested it on an existing Windows XP VM with IDEA 8.1.3 on it. I know this is not a valid environment with regard to our test. I just was curious if it works there.
I copied the complete Websphere folder to this VM and tried to configure it as the Application Server. But IDEA tells me it is not a valid Websphere Home (screenshot). But it's the same directory as on my local machine with the true Websphere setup.
What am I doing wrong?

Best regards

Michael


0
Comment actions Permalink

You see, for any reason my posting including screenshots don't get through correctly ...

0
Comment actions Permalink
Actually, IDEA 8 is quite old version of IDEA (should be of year 2008?), and may not support the modern version of WebSphere you are using.
We normally guarantee support for the server releases available at the time of releasing the IDEA, and while we try to make support generic it is clearly impossible to predict the future changes in the server administration ahead of time.
Specifically WebSphere integration had been reworked a lot since IDEA 8, so you should probably either downgrade the server to its release from ~2008 or upgrade an IDEA to the latest release of IDEA 14.1.

Hope it makes sense to you
Michael
0
Comment actions Permalink

Of course, this makes sense to me.

My next attempt was with a Windows 7 VM I also had available. Again I know this is not our target test environment, but I'm still curiuos...
I installed a IDEA 14.1.3. I also copied my Websphere installation folder to the local harddisk.
Now in Run/Debug configuration it's recognized as a  Websphere 8.

I entered the host name (pc-ms3) of the machine where the actual Websphere runs and clicked on "Test Connection". Immediately in the IDEA event log I see the error

14:51:32 Error connecting to the Application Server:
         Unable to ping server at pc-ms3:8880

However I can confirm that a "telnet pc-ms3 8880" from cmd shell works.

So what is the problem here?

Best regards

Michael

0
Comment actions Permalink

Hello,

I would like to know if you're still interested in investigating this issue. If so I need quicker responses.

Best regards

Michael

0
Comment actions Permalink

Sorry for delay, it was vacation time.

If you have a firewall and/or an antivirus please try to switch them off first and reconnect.
If it doesn't help, please create a new youtrack and attach there an IDEA log and screenshot of your run configuration.

Thanks
0
Comment actions Permalink

I do not fully understand why I should create the YouTrack, but I did. Here's the link https://youtrack.jetbrains.com/issue/IDEA-143260

How do we continue?

Best regards

Michael

0

Please sign in to leave a comment.