Bug 1275752

Summary: WLS: cloning repo results in java.lang.RuntimeException
Product: [Retired] JBoss BPMS Platform 6 Reporter: Pavel Kralik <pkralik>
Component: Business CentralAssignee: Maciej Swiderski <mswiders>
Status: CLOSED NOTABUG QA Contact: Pavel Kralik <pkralik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 6.2.0CC: jhrcek, kverlaen, pkralik
Target Milestone: ER5   
Target Release: 6.2.0   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-10 07:33:22 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
WLS cloning modal dialog
none
WLS server log file none

Description Pavel Kralik 2015-10-27 16:12:08 UTC
Created attachment 1086912 [details]
WLS cloning modal dialog

Description of problem:
When clone repo Mortgages to Org Unit Mortgages from URL: https://github.com/pkralik/mortgage-demo.git
it results in modal dialog with java.lang.RuntimeException.

Version-Release number of selected component (if applicable):
BPMS 6.2.0.ER4

How reproducible:
Always

Steps to Reproduce:
1. Create org unit Mortgages
2. Clone to repo Mortgages
3. with Git URL: https://github.com/pkralik/mortgage-demo.git

Actual results:
java.lang.RuntimeException

Expected results:
Successful cloning

Additional info:

Comment 2 Maciej Swiderski 2015-10-28 15:44:31 UTC
just tried on latest build of 6.3.x and I could clone both repository given in description as well as both playground repositories (uf-playground and jbpm-playground). Moving to modified to retest

Comment 3 Pavel Kralik 2015-11-06 09:35:06 UTC
Above HTTPS GIT repository cannot be cloned in BPMS 6.2.0.ER5. I am attaching the server log.

Comment 4 Pavel Kralik 2015-11-06 09:35:38 UTC
Created attachment 1090544 [details]
WLS server log file

Comment 5 Maciej Swiderski 2015-11-06 17:42:29 UTC
Since I cannot reproduce that there might be something related to the environment and thus might randomly work or not. Since this is a third party application server which would be time consuming to figure out how to resolve it. Moreover it happens when doing git operations via jgit which again is third party and we cannot alter the way it handles https connections.

There is a which that is suppose to solve the problem (though haven't verified myself since I cannot reproduce the original issue) I recommend to try it and if it does solve the problem document it.

Parameter that needs to be set is UseSunHttpHandler=true which is another system property

[1] http://stackoverflow.com/questions/18512009/weblogic-net-http-soaphttpsurlconnection-cannot-be-cast-to-javax-net-ssl-httpsur

Comment 6 Jan Hrcek 2015-11-10 07:33:22 UTC
Maciej, 
setting the system property UseSunHttpHandler=true (using JAVA_OPTIONS as described in the above stackoverflow answer) resolved the issue, so that now it's possible to clone the repositories from urls starting with "https://"
I'm closing this bugzilla as NOTABUG and I'll open new, separate bugzilla for documentation.
Thank you

Comment 7 Jan Hrcek 2015-11-10 07:53:23 UTC
Documentation Bug #1279741 created.