epam / sap-commerce-intellij-idea-plugin

A plugin for integration of SAP Commerce (aka Hybris) platform with JetBrains IntelliJ IDEA
https://plugins.jetbrains.com/plugin/12867-sap-commerce-developers-toolset/
GNU Lesser General Public License v3.0
53 stars 41 forks source link

Remote Hybris Instance - Unable to obtain session id #41

Closed amddsc closed 1 year ago

amddsc commented 2 years ago

Hi,

when I try to connect to the Remote Hybris Instance running on my localhost I always get an error saying "Unable to obtain sessionId for https://localhost:9002". I can login to hac with this server and credentials without problems. Running intellij and commerce instance inside wsl2.

grafik

paulograbin commented 2 years ago

I believe this happens only when testing the connection. If you try to import an impex file or running a flexible search query with the same settings it will work. Tested using Commerce 2105, Intellij 2021.3 and latest plugin version.

ablil commented 2 years ago

I am having alos this issue, I tried testing the connection and importing impex or running a simple flexible search, but either of them worked for me, is there any solution for this ?? Context: I am using the latest version of both, Intellij Idea and Hybris plugin.

rsinghmerkle commented 2 years ago

I am facing the same issue

MykytaKostiuk commented 2 years ago

Hello, @amddsc , @paulograbin , @ablil , @rsinghmerkle The fix is already available with the newest version of the plugin for IDEA 2022.1 (https://confluence.jetbrains.com/display/IDEADEV/IDEA+2022.1+latest+builds). Don't forget to change the SSL protocol version

dorgz commented 2 years ago

Still having this issue. Updated to IJ EAP and latest EPAM plugin version as per screenshot. Tried with many combinations of input ie. changing SSL protocol, SSL on/off, webroots

Screenshot 2022-03-25 at 14 08 04

paulograbin commented 2 years ago

@dorgz did you try to run an impex and/or flexible search? Or did you just tried to configure the connection?

I have problems setting up the connection, but I can run a flexible search without any problems.

dorgz commented 2 years ago

Unfortunately I get the same error running impex and flexible search.

The Solr panel works perfectly though.

MykytaKostiuk commented 2 years ago

@dorgz , what version of hybris do you use?

dorgz commented 2 years ago

@MykytaKostiuk I'm using version 2011.15

dorgz commented 2 years ago

Strangely enough, the plugin started working on my machine using the older IDEA and plugin versions. I haven't changed anything that I'm aware of.

Screenshot 2022-03-27 at 19 25 03
leoferreiralima commented 2 years ago

I haved the same problem, i'm using wsl2 with sap commerce cloud 2105 and intellij community 2021.3.3.

i changed the host to wsl2 ip and the TLS version to 1.2 and worked on the second time a have tried do connect.

I believe that first try didn't work because crsf verification.

image

image

LostKatana commented 1 year ago

I have successfully managed to establish a connection to my locally running system. image

In my local.properties I also have this entry: hac.webroot=/hac Maybe someone can manage to get the connection working like this.

mlytvyn commented 1 year ago

for all new configurations default SSL protocol changed to TLSv1.2, also Plugin will try to identify most suitable settings, like Port or webroot based on [y] instance configuration, see https://github.com/epam/sap-commerce-intellij-idea-plugin/pull/143