Bug 1360814 - JavaSDK fails on java.lang.NoClassDefFoundError, when running jar build with HttpClent45 support, but using HttpClent42
Summary: JavaSDK fails on java.lang.NoClassDefFoundError, when running jar build with ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: ovirt-engine-sdk-java
Classification: oVirt
Component: Core
Version: 4.0.0.alpha13
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ovirt-4.0.4
: 4.0.0.alpha15
Assignee: Ondra Machacek
QA Contact: movciari
URL:
Whiteboard:
Depends On:
Blocks: 1347215
TreeView+ depends on / blocked
 
Reported: 2016-07-27 14:32 UTC by Ondra Machacek
Modified: 2016-09-26 12:37 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-09-26 12:37:13 UTC
oVirt Team: Infra
Embargoed:
rule-engine: ovirt-4.0.z+
mgoldboi: planning_ack+
omachace: devel_ack+
pstehlik: testing_ack+


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
oVirt gerrit 61560 0 master MERGED Support both httpclient versions in built jar 2016-08-01 10:23:55 UTC
oVirt gerrit 61753 0 sdk_4.0 MERGED Support both httpclient versions in built jar 2016-08-01 10:32:37 UTC

Description Ondra Machacek 2016-07-27 14:32:25 UTC
Description of problem:
JavaSDK fails on java.lang.NoClassDefFoundError, when running jar build with HttpClent45 support, but using HttpClent42

Version-Release number of selected component (if applicable):
4.0.0.alpha13

How reproducible:
always

Steps to Reproduce:
1. Use jar with classes compiled for apache httclient 45
2. use apache httclient 42 as your library

Actual results:
java.lang.NoClassDefFoundError: org/apache/http/conn/socket/LayeredConnectionSocketFactory at org.ovirt.engine.sdk4.ConnectionBuilder.connection(ConnectionBuilder.java:67)

Expected results:
We should ship both 42 and 45 classes in jar file. So such use case succed.

Additional info:

Comment 1 Red Hat Bugzilla Rules Engine 2016-07-28 14:23:08 UTC
Target release should be placed once a package build is known to fix a issue. Since this bug is not modified, the target version has been reset. Please use target milestone to plan a fix for a oVirt release.


Note You need to log in before you can comment on or make changes to this bug.