[NEUTRON-32] feature:install odl-neutorn-service binds to the wrong eclipse.persistence bundle Created: 24/Apr/15  Updated: 08/Jun/15  Resolved: 08/Jun/15

Status: Resolved
Project: neutron
Component/s: General
Affects Version/s: unspecified
Fix Version/s: None

Type: Bug
Reporter: James Gregory Hall Assignee: James Gregory Hall
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Operating System: All
Platform: All


External issue ID: 3058

 Description   

This issue only occurs if you feature:install odl-neutron-service on a running controller where some other feature has loaded an earlier version of org.eclipse.persistence. If you load all features from featuresBoot this problem doesn't occur.

To be clear, we package a controller which leverages feature:install so we are broken by this issue.

See that northbound-api/pom.xml has an explicit Import-Package without a version specification. We need the version specification added.



 Comments   
Comment by James Gregory Hall [ 24/Apr/15 ]

Reproduction:

Remove odl-neutron-service from the featuresBoot in org.ops4j.apache.features.cfg as well as any features which depends on neutron such as ovsdb.

Remove the data directory to force a rewiring on restart.

Restart the controller, and make sure odl-neutron-service is not installed yet.

POST to http://localhost:8181/controller/nb/v2/neutron/networks

{
"network":

{ "id": "4e8e5957-648e-477b-9e5b-f1f75b21c03c", "name": "net1", "admin_state_up": true, "shared": false, "tenant_id": "9bacb3c5d39d41a79512987f338cf177", "router:external": false, "provider:network_type": "flat", "status": "ACTIVE", "subnets": [], "segments": [] }

You get a http 500 error:

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 Server Error</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /controller/nb/v2/neutron/networks. Reason:
<pre> Server Error</pre></p><h3>Caused by:</h3><pre>java.lang.NoClassDefFoundError: org/eclipse/persistence/internal/libraries/antlr/runtime/tree/Tree
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getNewXMLReader(SAXUnmarshaller.java:200)
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.getXMLReader(SAXUnmarshaller.java:188)
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:425)
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:375)
at org.eclipse.persistence.internal.oxm.record.SAXUnmarshaller.unmarshal(SAXUnmarshaller.java:705)
at org.eclipse.persistence.oxm.XMLUnmarshaller.unmarshal(XMLUnmarshaller.java:655)
at org.eclipse.persistence.jaxb.JAXBUnmarshaller.unmarshal(JAXBUnmarshaller.java:301)
at org.eclipse.persistence.jaxb.rs.MOXyJsonProvider.readFrom(MOXyJsonProvider.java:580)
}

Comment by James Gregory Hall [ 24/Apr/15 ]

https://git.opendaylight.org/gerrit/#/c/19025/

Comment by Ryan Moats [ 08/Jun/15 ]

Fixed by https://git.opendaylight.org/gerrit/#/c/19037/

Generated at Wed Feb 07 20:25:22 UTC 2024 using Jira 8.20.10#820010-sha1:ace47f9899e9ee25d7157d59aa17ab06aee30d3d.