[jira] [Work logged] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?focusedWorklogId=453191=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-453191
 ]

ASF GitHub Bot logged work on KNOX-2397:


Author: ASF GitHub Bot
Created on: 01/Jul/20 01:55
Start Date: 01/Jul/20 01:55
Worklog Time Spent: 10m 
  Work Description: butaozhang commented on a change in pull request #357:
URL: https://github.com/apache/knox/pull/357#discussion_r448072677



##
File path: pom.xml
##
@@ -212,8 +213,10 @@
 2.0
 1.1
 2.3.0
-2.3.2
-2.3.2
+2.3.3
+2.3.3

Review comment:
   Thanks for review ! I have update the pom for minimal changes.
   After  changing jaxws-ri version, In java8 env, knox will build failed with 
error:
   `[WARNING]
   Dependency convergence error for com.sun.activation:jakarta.activation:1.2.2 
paths to dependency are:
   +-org.apache.knox:gateway-provider-rewrite-step-secure-query:1.4.0
 +-org.apache.knox:gateway-server:1.4.0
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.activation:jakarta.activation:1.2.2
   and
   +-org.apache.knox:gateway-provider-rewrite-step-secure-query:1.4.0
 +-org.apache.knox:gateway-server:1.4.0
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.messaging.saaj:saaj-impl:1.5.2
 +-com.sun.activation:jakarta.activation:1.2.2
   and
   +-org.apache.knox:gateway-provider-rewrite-step-secure-query:1.4.0
 +-org.apache.knox:gateway-server:1.4.0
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-eclipselink-plugin:2.3.3
   +-com.sun.mail:jakarta.mail:1.6.5
 +-com.sun.activation:jakarta.activation:1.2.1`
   
   And in java11 env, knox will build failed with error:
   `[WARNING]
   Dependency convergence error for com.sun.xml.fastinfoset:FastInfoset:1.2.18 
paths to dependency are:
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.fastinfoset:FastInfoset:1.2.18
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.pac4j:pac4j-saml:3.8.3
   +-org.opensaml:opensaml-security-api:3.4.3
 +-org.apache.santuario:xmlsec:2.1.5
   +-org.glassfish.jaxb:jaxb-runtime:2.3.2
 +-com.sun.xml.fastinfoset:FastInfoset:1.2.16
   
   [WARNING]
   Dependency convergence error for org.jvnet.staxex:stax-ex:1.8.3 paths to 
dependency are:
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-org.jvnet.staxex:stax-ex:1.8.3
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.stream.buffer:streambuffer:1.5.9
 +-org.jvnet.staxex:stax-ex:1.8.3
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.messaging.saaj:saaj-impl:1.5.2
 +-org.jvnet.staxex:stax-ex:1.8.3
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.pac4j:pac4j-saml:3.8.3
   +-org.opensaml:opensaml-security-api:3.4.3
 +-org.apache.santuario:xmlsec:2.1.5
   +-org.glassfish.jaxb:jaxb-runtime:2.3.2
 +-org.jvnet.staxex:stax-ex:1.8.1
   `
   
   We should specify the specific version for jakarta.activation、FastInfoset 
and stax-ex to resolve dependencies conflict.





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 453191)
Time Spent: 1h  (was: 50m)

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>

[GitHub] [knox] butaozhang commented on a change in pull request #357: KNOX-2397 knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNe

2020-06-30 Thread GitBox


butaozhang commented on a change in pull request #357:
URL: https://github.com/apache/knox/pull/357#discussion_r448072677



##
File path: pom.xml
##
@@ -212,8 +213,10 @@
 2.0
 1.1
 2.3.0
-2.3.2
-2.3.2
+2.3.3
+2.3.3

Review comment:
   Thanks for review ! I have update the pom for minimal changes.
   After  changing jaxws-ri version, In java8 env, knox will build failed with 
error:
   `[WARNING]
   Dependency convergence error for com.sun.activation:jakarta.activation:1.2.2 
paths to dependency are:
   +-org.apache.knox:gateway-provider-rewrite-step-secure-query:1.4.0
 +-org.apache.knox:gateway-server:1.4.0
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.activation:jakarta.activation:1.2.2
   and
   +-org.apache.knox:gateway-provider-rewrite-step-secure-query:1.4.0
 +-org.apache.knox:gateway-server:1.4.0
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.messaging.saaj:saaj-impl:1.5.2
 +-com.sun.activation:jakarta.activation:1.2.2
   and
   +-org.apache.knox:gateway-provider-rewrite-step-secure-query:1.4.0
 +-org.apache.knox:gateway-server:1.4.0
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-eclipselink-plugin:2.3.3
   +-com.sun.mail:jakarta.mail:1.6.5
 +-com.sun.activation:jakarta.activation:1.2.1`
   
   And in java11 env, knox will build failed with error:
   `[WARNING]
   Dependency convergence error for com.sun.xml.fastinfoset:FastInfoset:1.2.18 
paths to dependency are:
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.fastinfoset:FastInfoset:1.2.18
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.pac4j:pac4j-saml:3.8.3
   +-org.opensaml:opensaml-security-api:3.4.3
 +-org.apache.santuario:xmlsec:2.1.5
   +-org.glassfish.jaxb:jaxb-runtime:2.3.2
 +-com.sun.xml.fastinfoset:FastInfoset:1.2.16
   
   [WARNING]
   Dependency convergence error for org.jvnet.staxex:stax-ex:1.8.3 paths to 
dependency are:
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-org.jvnet.staxex:stax-ex:1.8.3
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.stream.buffer:streambuffer:1.5.9
 +-org.jvnet.staxex:stax-ex:1.8.3
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.apache.knox:gateway-server:1.5.0-SNAPSHOT
   +-com.sun.xml.ws:jaxws-ri:2.3.3
 +-com.sun.xml.ws:jaxws-rt:2.3.3
   +-com.sun.xml.messaging.saaj:saaj-impl:1.5.2
 +-org.jvnet.staxex:stax-ex:1.8.3
   and
   +-org.apache.knox:gateway-provider-security-pac4j:1.5.0-SNAPSHOT
 +-org.pac4j:pac4j-saml:3.8.3
   +-org.opensaml:opensaml-security-api:3.4.3
 +-org.apache.santuario:xmlsec:2.1.5
   +-org.glassfish.jaxb:jaxb-runtime:2.3.2
 +-org.jvnet.staxex:stax-ex:1.8.1
   `
   
   We should specify the specific version for jakarta.activation、FastInfoset 
and stax-ex to resolve dependencies conflict.





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Resolved] (KNOX-2150) Unable to submit Hive jobs using Knox JWTProvider

2020-06-30 Thread Kevin Risden (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Kevin Risden resolved KNOX-2150.

Resolution: Won't Fix

This needs to be fixed in Hive. HIVE-22655 would allow passing the value 
correctly.

> Unable to submit Hive jobs using  Knox JWTProvider
> --
>
> Key: KNOX-2150
> URL: https://issues.apache.org/jira/browse/KNOX-2150
> Project: Apache Knox
>  Issue Type: Bug
>  Components: KnoxSSO
>Reporter: Neeraj Verma
>Priority: Major
> Attachments: image-2019-12-17-19-21-15-150.png
>
>
> While trying to submit Hive Job over JDBC with JWTProvider  ,  I faced 2 
> issues
>  # Space not supported between "{{Bearer ey.."}}
>  # {{if we remove space then http }}{{Authorization}} header is overwritten 
> by default Basic token .
>  
> {{beeline -u 
> "jdbc:hive2://localhost:8443/;ssl=true;AllowSelfSignedCerts=1;AllowAllHostNames=1;sslTrustStore=/Users/abc/knox/install/knox-1.3.0/data/security/keystores/gateway.jks;;AuthMech=0;trustStorePassword=knox;transportMode=http;httpPath=gateway/tokenbased/hive;http.header.Authorization=Bearer
>  eyJraWQiOiJp...df"}}
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Work logged] (KNOX-2343) Improve API services display on Knox Home page

2020-06-30 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2343?focusedWorklogId=453018=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-453018
 ]

ASF GitHub Bot logged work on KNOX-2343:


Author: ASF GitHub Bot
Created on: 30/Jun/20 14:01
Start Date: 30/Jun/20 14:01
Worklog Time Spent: 10m 
  Work Description: moresandeep commented on a change in pull request #355:
URL: https://github.com/apache/knox/pull/355#discussion_r447701443



##
File path: 
gateway-service-definitions/src/main/resources/services/druid-coordinator/0.0.1/service.xml
##
@@ -22,6 +22,28 @@
 The Druid Coordinator process is primarily responsible 
for segment management and distribution. 
 More specifically, the Druid Coordinator process communicates to 
Historical processes to load or drop segments based on configurations. 
 The Druid Coordinator is responsible for loading new segments, 
dropping outdated segments, managing segment replication, and balancing segment 
load.
+
+
+Fetch the current leader Coordinator of the 
cluster

Review comment:
   Small case c in Coordinator.

##
File path: 
gateway-service-definitions/src/main/resources/services/ambari/2.2.0/service.xml
##
@@ -20,6 +20,32 @@
 /ambari/api
 Apache Ambari API
 The Ambari API facilitates the management and monitoring 
of the resources of an Apache Hadoop cluster.
+
+
+Fetch all Ambari-mamanged cluaters

Review comment:
   Typo in cluster name

##
File path: 
gateway-service-definitions/src/main/resources/services/yarn-rm/2.5.0/service.xml
##
@@ -21,6 +21,22 @@
 /resourcemanager
 YARN Resource Manager
 The YARN Resource Manager Service (RM) is the central 
controlling authority for resource management and makes allocation decisions 
ResourceManager has two main components: Scheduler and 
ApplicationsManager.
+
+
+Fecth cluster info

Review comment:
   Typo in Fetch

##
File path: knox-homepage-ui/home/app/topologies/sample.ts
##
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export class Sample {
+description: string;
+value: string;
+}

Review comment:
   Perhaps a newline?

##
File path: 
gateway-service-definitions/src/main/resources/services/zeppelinws/0.8.1/service.xml
##
@@ -21,6 +21,27 @@
 /zeppelin/ws
 Zeppelin WS API
 Apache Zeppelin is a web-based notebook that enables 
data-driven, interactive data analytics and collaborative documents with SQL, 
Scala and more.
+
+
+Fetch the available notes on your 
server

Review comment:
   notebooks vs notes





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 453018)
Time Spent: 0.5h  (was: 20m)

> Improve API services display on Knox Home page
> --
>
> Key: KNOX-2343
> URL: https://issues.apache.org/jira/browse/KNOX-2343
> Project: Apache Knox
>  Issue Type: Sub-task
>  Components: Homepage
>Reporter: Sandor Molnar
>Assignee: Sandor Molnar
>Priority: Major
> Fix For: 1.5.0
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> Proposal:
> similarly to the UI service Knox should display the logo of each API service 
> instead of its textual representation. Clicking a log would end up opening a 
> new modal window with the following information of that particular API 
> service:
>  * service name and version
>  * a description of the service
>  * curl/pyhton examples
>  * JDBC query string and/or 

[GitHub] [knox] moresandeep commented on a change in pull request #355: KNOX-2343 - Enhanced API services' display on the Knox Home page

2020-06-30 Thread GitBox


moresandeep commented on a change in pull request #355:
URL: https://github.com/apache/knox/pull/355#discussion_r447701443



##
File path: 
gateway-service-definitions/src/main/resources/services/druid-coordinator/0.0.1/service.xml
##
@@ -22,6 +22,28 @@
 The Druid Coordinator process is primarily responsible 
for segment management and distribution. 
 More specifically, the Druid Coordinator process communicates to 
Historical processes to load or drop segments based on configurations. 
 The Druid Coordinator is responsible for loading new segments, 
dropping outdated segments, managing segment replication, and balancing segment 
load.
+
+
+Fetch the current leader Coordinator of the 
cluster

Review comment:
   Small case c in Coordinator.

##
File path: 
gateway-service-definitions/src/main/resources/services/ambari/2.2.0/service.xml
##
@@ -20,6 +20,32 @@
 /ambari/api
 Apache Ambari API
 The Ambari API facilitates the management and monitoring 
of the resources of an Apache Hadoop cluster.
+
+
+Fetch all Ambari-mamanged cluaters

Review comment:
   Typo in cluster name

##
File path: 
gateway-service-definitions/src/main/resources/services/yarn-rm/2.5.0/service.xml
##
@@ -21,6 +21,22 @@
 /resourcemanager
 YARN Resource Manager
 The YARN Resource Manager Service (RM) is the central 
controlling authority for resource management and makes allocation decisions 
ResourceManager has two main components: Scheduler and 
ApplicationsManager.
+
+
+Fecth cluster info

Review comment:
   Typo in Fetch

##
File path: knox-homepage-ui/home/app/topologies/sample.ts
##
@@ -0,0 +1,21 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+export class Sample {
+description: string;
+value: string;
+}

Review comment:
   Perhaps a newline?

##
File path: 
gateway-service-definitions/src/main/resources/services/zeppelinws/0.8.1/service.xml
##
@@ -21,6 +21,27 @@
 /zeppelin/ws
 Zeppelin WS API
 Apache Zeppelin is a web-based notebook that enables 
data-driven, interactive data analytics and collaborative documents with SQL, 
Scala and more.
+
+
+Fetch the available notes on your 
server

Review comment:
   notebooks vs notes





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Work logged] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?focusedWorklogId=453014=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-453014
 ]

ASF GitHub Bot logged work on KNOX-2397:


Author: ASF GitHub Bot
Created on: 30/Jun/20 13:50
Start Date: 30/Jun/20 13:50
Worklog Time Spent: 10m 
  Work Description: moresandeep commented on a change in pull request #357:
URL: https://github.com/apache/knox/pull/357#discussion_r447697954



##
File path: pom.xml
##
@@ -212,8 +213,10 @@
 2.0
 1.1
 2.3.0
-2.3.2
-2.3.2
+2.3.3
+2.3.3

Review comment:
   Why are we changing other versions? shouldn't jaxws-ri be enough?





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 453014)
Time Spent: 50m  (was: 40m)

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch, KNOX-2397.2.patch
>
>  Time Spent: 50m
>  Remaining Estimate: 0h
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
>  at 
> org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
>  at 
> org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at 
> javax.xml.bind.ContextFinder.find(ContextFinder.java:293) at 
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) at 
> org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.getJAXBContext(DefaultTopologyService.java:121)
>  at 
> 

[GitHub] [knox] moresandeep commented on a change in pull request #357: KNOX-2397 knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setN

2020-06-30 Thread GitBox


moresandeep commented on a change in pull request #357:
URL: https://github.com/apache/knox/pull/357#discussion_r447697954



##
File path: pom.xml
##
@@ -212,8 +213,10 @@
 2.0
 1.1
 2.3.0
-2.3.2
-2.3.2
+2.3.3
+2.3.3

Review comment:
   Why are we changing other versions? shouldn't jaxws-ri be enough?





This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Updated] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread zhangbutao (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhangbutao updated KNOX-2397:
-
Attachment: KNOX-2397.2.patch

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch, KNOX-2397.2.patch
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
>  at 
> org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
>  at 
> org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at 
> javax.xml.bind.ContextFinder.find(ContextFinder.java:293) at 
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) at 
> org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.getJAXBContext(DefaultTopologyService.java:121)
>  at 
> org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.(DefaultTopologyService.java:90)
>  at 
> org.apache.knox.gateway.services.CLIGatewayServices.init(CLIGatewayServices.java:88)
>  at org.apache.knox.gateway.util.KnoxCLI.initializeServices(KnoxCLI.java:194) 
> at org.apache.knox.gateway.util.KnoxCLI.run(KnoxCLI.java:164) at 
> org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at 
> org.apache.knox.gateway.util.KnoxCLI.main(KnoxCLI.java:2273) ... 9 more{code}
>  
> Just like KNOX-1987, there are mixed version of 2.7.6 and 2.7.4 eclipse 
> persistence jars in knox/dep folder:
> {code:java}
> eclipselink-2.7.6.jar
> sdo-eclipselink-plugin-2.3.2.jar
> jaxws-eclipselink-plugin-2.3.2.jar
> org.eclipse.persistence.core-2.7.4.jar   
> org.eclipse.persistence.sdo-2.7.4.jar
> org.eclipse.persistence.asm-2.7.4.jar
> org.eclipse.persistence.moxy-2.7.4.jar
> {code}
> We should upgrade jaxws-ri from 2.3.2 to 2.3.3 so that eclipse persistence 
> class will have the same 2.7.6 version.



--
This 

[jira] [Work logged] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?focusedWorklogId=452971=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-452971
 ]

ASF GitHub Bot logged work on KNOX-2397:


Author: ASF GitHub Bot
Created on: 30/Jun/20 12:35
Start Date: 30/Jun/20 12:35
Worklog Time Spent: 10m 
  Work Description: butaozhang opened a new pull request #357:
URL: https://github.com/apache/knox/pull/357


   (It is very **important** that you created an Apache Knox JIRA for this 
change and that the PR title/commit message includes the Apache Knox JIRA ID!)
   
   ## What changes were proposed in this pull request?
   
   (Please fill in changes proposed in this fix)
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. For instance: running automated 
unit/integration tests, manual tests. Please write down your test steps as 
detailed as possible)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   
   Please review [Knox Contributing 
Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow)
 before opening a pull request.
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 452971)
Time Spent: 0.5h  (was: 20m)

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch
>
>  Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
>  at 
> org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
>  at 
> org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at 

[jira] [Work logged] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?focusedWorklogId=452973=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-452973
 ]

ASF GitHub Bot logged work on KNOX-2397:


Author: ASF GitHub Bot
Created on: 30/Jun/20 12:35
Start Date: 30/Jun/20 12:35
Worklog Time Spent: 10m 
  Work Description: butaozhang closed pull request #356:
URL: https://github.com/apache/knox/pull/356


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 452973)
Time Spent: 40m  (was: 0.5h)

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch
>
>  Time Spent: 40m
>  Remaining Estimate: 0h
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
>  at 
> org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
>  at 
> org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at 
> javax.xml.bind.ContextFinder.find(ContextFinder.java:293) at 
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) at 
> org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.getJAXBContext(DefaultTopologyService.java:121)
>  at 
> org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.(DefaultTopologyService.java:90)
>  at 
> org.apache.knox.gateway.services.CLIGatewayServices.init(CLIGatewayServices.java:88)
>  at org.apache.knox.gateway.util.KnoxCLI.initializeServices(KnoxCLI.java:194) 
> at org.apache.knox.gateway.util.KnoxCLI.run(KnoxCLI.java:164) at 
> 

[GitHub] [knox] butaozhang closed pull request #356: KNOX-2397 knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread GitBox


butaozhang closed pull request #356:
URL: https://github.com/apache/knox/pull/356


   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[GitHub] [knox] butaozhang opened a new pull request #357: KNOX-2397 knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)

2020-06-30 Thread GitBox


butaozhang opened a new pull request #357:
URL: https://github.com/apache/knox/pull/357


   (It is very **important** that you created an Apache Knox JIRA for this 
change and that the PR title/commit message includes the Apache Knox JIRA ID!)
   
   ## What changes were proposed in this pull request?
   
   (Please fill in changes proposed in this fix)
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. For instance: running automated 
unit/integration tests, manual tests. Please write down your test steps as 
detailed as possible)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   
   Please review [Knox Contributing 
Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow)
 before opening a pull request.
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Work logged] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?focusedWorklogId=452864=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-452864
 ]

ASF GitHub Bot logged work on KNOX-2397:


Author: ASF GitHub Bot
Created on: 30/Jun/20 08:18
Start Date: 30/Jun/20 08:18
Worklog Time Spent: 10m 
  Work Description: butaozhang commented on pull request #356:
URL: https://github.com/apache/knox/pull/356#issuecomment-651634761


   `[ERROR] 
testConcurrentGetToken(org.apache.knox.gateway.service.knoxtoken.TokenServiceResourceTest)
  Time elapsed: 0.025 s  <<< FAILURE!
   org.junit.ComparisonFailure: The token expirations should be the same. 
expected:<159350284[8]000> but was:<159350284[9]000>
at 
org.apache.knox.gateway.service.knoxtoken.TokenServiceResourceTest.testConcurrentGetToken(TokenServiceResourceTest.java:209`
 
   The failed test seems not be related this pr, and it can be successfully 
executed in my local knox code.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 452864)
Time Spent: 20m  (was: 10m)

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch
>
>  Time Spent: 20m
>  Remaining Estimate: 0h
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
>  at 
> org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
>  at 
> org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at 
> javax.xml.bind.ContextFinder.find(ContextFinder.java:293) at 
> 

[GitHub] [knox] butaozhang commented on pull request #356: KNOX-2397 knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)

2020-06-30 Thread GitBox


butaozhang commented on pull request #356:
URL: https://github.com/apache/knox/pull/356#issuecomment-651634761


   `[ERROR] 
testConcurrentGetToken(org.apache.knox.gateway.service.knoxtoken.TokenServiceResourceTest)
  Time elapsed: 0.025 s  <<< FAILURE!
   org.junit.ComparisonFailure: The token expirations should be the same. 
expected:<159350284[8]000> but was:<159350284[9]000>
at 
org.apache.knox.gateway.service.knoxtoken.TokenServiceResourceTest.testConcurrentGetToken(TokenServiceResourceTest.java:209`
 
   The failed test seems not be related this pr, and it can be successfully 
executed in my local knox code.



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Updated] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread zhangbutao (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhangbutao updated KNOX-2397:
-
Labels: patch pull-request-available  (was: patch)

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch, pull-request-available
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
>  at 
> org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
>  at 
> org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at java.lang.reflect.Method.invoke(Method.java:498) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at 
> javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at 
> javax.xml.bind.ContextFinder.find(ContextFinder.java:293) at 
> javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) at 
> org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.getJAXBContext(DefaultTopologyService.java:121)
>  at 
> org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.(DefaultTopologyService.java:90)
>  at 
> org.apache.knox.gateway.services.CLIGatewayServices.init(CLIGatewayServices.java:88)
>  at org.apache.knox.gateway.util.KnoxCLI.initializeServices(KnoxCLI.java:194) 
> at org.apache.knox.gateway.util.KnoxCLI.run(KnoxCLI.java:164) at 
> org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at 
> org.apache.knox.gateway.util.KnoxCLI.main(KnoxCLI.java:2273) ... 9 more{code}
>  
> Just like KNOX-1987, there are mixed version of 2.7.6 and 2.7.4 eclipse 
> persistence jars in knox/dep folder:
> {code:java}
> eclipselink-2.7.6.jar
> sdo-eclipselink-plugin-2.3.2.jar
> jaxws-eclipselink-plugin-2.3.2.jar
> org.eclipse.persistence.core-2.7.4.jar   
> org.eclipse.persistence.sdo-2.7.4.jar
> org.eclipse.persistence.asm-2.7.4.jar
> org.eclipse.persistence.moxy-2.7.4.jar
> {code}
> We should upgrade jaxws-ri from 2.3.2 to 2.3.3 so that eclipse persistence 
> class will have the same 2.7.6 version.



--
This 

[jira] [Work logged] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread ASF GitHub Bot (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?focusedWorklogId=452844=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-452844
 ]

ASF GitHub Bot logged work on KNOX-2397:


Author: ASF GitHub Bot
Created on: 30/Jun/20 07:22
Start Date: 30/Jun/20 07:22
Worklog Time Spent: 10m 
  Work Description: butaozhang opened a new pull request #356:
URL: https://github.com/apache/knox/pull/356


   (It is very **important** that you created an Apache Knox JIRA for this 
change and that the PR title/commit message includes the Apache Knox JIRA ID!)
   
   ## What changes were proposed in this pull request?
   
   (Please fill in changes proposed in this fix)
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. For instance: running automated 
unit/integration tests, manual tests. Please write down your test steps as 
detailed as possible)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   
   Please review [Knox Contributing 
Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow)
 before opening a pull request.
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
---

Worklog Id: (was: 452844)
Remaining Estimate: 0h
Time Spent: 10m

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch
>
>  Time Spent: 10m
>  Remaining Estimate: 0h
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
>  at 
> org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
>  at 
> org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
>  at 
> org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
>  at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
>  at 
> org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
>  at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
> org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
> at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>  at 

[GitHub] [knox] butaozhang opened a new pull request #356: KNOX-2397 knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)

2020-06-30 Thread GitBox


butaozhang opened a new pull request #356:
URL: https://github.com/apache/knox/pull/356


   (It is very **important** that you created an Apache Knox JIRA for this 
change and that the PR title/commit message includes the Apache Knox JIRA ID!)
   
   ## What changes were proposed in this pull request?
   
   (Please fill in changes proposed in this fix)
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. For instance: running automated 
unit/integration tests, manual tests. Please write down your test steps as 
detailed as possible)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   
   Please review [Knox Contributing 
Process](https://cwiki.apache.org/confluence/display/KNOX/Contribution+Process#ContributionProcess-GithubWorkflow)
 before opening a pull request.
   



This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org




[jira] [Updated] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread zhangbutao (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhangbutao updated KNOX-2397:
-
Description: 
knox  sometimes failed to start with error:
{code:java}
Caused by: java.lang.NoSuchMethodError: 
org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
 at 
org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
 at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
 at 
org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
 at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at 
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at 
javax.xml.bind.ContextFinder.find(ContextFinder.java:293) at 
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) at 
org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.getJAXBContext(DefaultTopologyService.java:121)
 at 
org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.(DefaultTopologyService.java:90)
 at 
org.apache.knox.gateway.services.CLIGatewayServices.init(CLIGatewayServices.java:88)
 at org.apache.knox.gateway.util.KnoxCLI.initializeServices(KnoxCLI.java:194) 
at org.apache.knox.gateway.util.KnoxCLI.run(KnoxCLI.java:164) at 
org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at 
org.apache.knox.gateway.util.KnoxCLI.main(KnoxCLI.java:2273) ... 9 more{code}
 

Just like KNOX-1987, there are mixed version of 2.7.6 and 2.7.4 eclipse 
persistence jars in knox/dep folder:
{code:java}
eclipselink-2.7.6.jar
sdo-eclipselink-plugin-2.3.2.jar
jaxws-eclipselink-plugin-2.3.2.jar
org.eclipse.persistence.core-2.7.4.jar   
org.eclipse.persistence.sdo-2.7.4.jar
org.eclipse.persistence.asm-2.7.4.jar
org.eclipse.persistence.moxy-2.7.4.jar
{code}
We should upgrade jaxws-ri from 2.3.2 to 2.3.3 so that eclipse persistence 
class will have the same 2.7.6 version.

  was:
knox  sometimes failed to start with error:
{code:java}
Caused by: java.lang.NoSuchMethodError: 
org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)VCaused 
by: java.lang.NoSuchMethodError: 
org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
 at 

[jira] [Updated] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread zhangbutao (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhangbutao updated KNOX-2397:
-
Description: 
knox  sometimes failed to start with error:
{code:java}
Caused by: java.lang.NoSuchMethodError: 
org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)VCaused 
by: java.lang.NoSuchMethodError: 
org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCompositeCollectionMapping(MappingsGenerator.java:2258)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateCollectionMapping(MappingsGenerator.java:1846)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMapping(MappingsGenerator.java:807)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2560)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateMappings(MappingsGenerator.java:2517)
 at 
org.eclipse.persistence.jaxb.compiler.MappingsGenerator.generateProject(MappingsGenerator.java:254)
 at 
org.eclipse.persistence.jaxb.compiler.Generator.generateProject(Generator.java:191)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:1002)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:995)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:922)
 at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:122)
 at 
org.eclipse.persistence.jaxb.compiler.CompilerHelper.getXmlBindingsModelContext(CompilerHelper.java:491)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindings(JAXBContextFactory.java:310)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.processBindingFile(JAXBContextFactory.java:284)
 at 
org.eclipse.persistence.jaxb.JAXBContextFactory.getXmlBindingsFromProperties(JAXBContextFactory.java:264)
 at 
org.eclipse.persistence.jaxb.JAXBContext$ContextPathInput.createContextState(JAXBContext.java:870)
 at org.eclipse.persistence.jaxb.JAXBContext.(JAXBContext.java:205) at 
org.eclipse.persistence.jaxb.JAXBContextFactory.createContext(JAXBContextFactory.java:131)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498) at 
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:171) at 
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:131) at 
javax.xml.bind.ContextFinder.find(ContextFinder.java:293) at 
javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:431) at 
org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.getJAXBContext(DefaultTopologyService.java:121)
 at 
org.apache.knox.gateway.services.topology.impl.DefaultTopologyService.(DefaultTopologyService.java:90)
 at 
org.apache.knox.gateway.services.CLIGatewayServices.init(CLIGatewayServices.java:88)
 at org.apache.knox.gateway.util.KnoxCLI.initializeServices(KnoxCLI.java:194) 
at org.apache.knox.gateway.util.KnoxCLI.run(KnoxCLI.java:164) at 
org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76) at 
org.apache.knox.gateway.util.KnoxCLI.main(KnoxCLI.java:2273) ... 9 more{code}
 

Just like KNOX-1987, there are mixed version of 2.7.6 and 2.7.4 eclipse 
persistence jars in knox/dep folder:
{code:java}
eclipselink-2.7.6.jar
sdo-eclipselink-plugin-2.3.2.jar
jaxws-eclipselink-plugin-2.3.2.jar
org.eclipse.persistence.core-2.7.4.jar   
org.eclipse.persistence.sdo-2.7.4.jar
org.eclipse.persistence.asm-2.7.4.jar
org.eclipse.persistence.moxy-2.7.4.jar
{code}
We should upgrade jaxws-ri from 2.3.2 to 2.3.3 so that eclipse persistence 
class will have the same 2.7.6 version.

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch
>
>
> knox  sometimes failed to start with error:
> {code:java}
> Caused by: java.lang.NoSuchMethodError: 
> 

[jira] [Updated] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread zhangbutao (Jira)


 [ 
https://issues.apache.org/jira/browse/KNOX-2397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

zhangbutao updated KNOX-2397:
-
   Attachment: KNOX-2397.1.patch
Fix Version/s: 1.5.0
   Labels: patch  (was: )
   Status: Patch Available  (was: Open)

> knox failed to start with error "java.lang.NoSuchMethodError: 
> org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
> -
>
> Key: KNOX-2397
> URL: https://issues.apache.org/jira/browse/KNOX-2397
> Project: Apache Knox
>  Issue Type: Bug
>  Components: Server
>Affects Versions: 1.4.0
>Reporter: zhangbutao
>Priority: Major
>  Labels: patch
> Fix For: 1.5.0
>
> Attachments: KNOX-2397.1.patch
>
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)


[jira] [Created] (KNOX-2397) knox failed to start with error "java.lang.NoSuchMethodError: org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"

2020-06-30 Thread zhangbutao (Jira)
zhangbutao created KNOX-2397:


 Summary: knox failed to start with error 
"java.lang.NoSuchMethodError: 
org.eclipse.persistence.internal.oxm.mappings.Field.setNestedArray(Z)V"
 Key: KNOX-2397
 URL: https://issues.apache.org/jira/browse/KNOX-2397
 Project: Apache Knox
  Issue Type: Bug
  Components: Server
Affects Versions: 1.4.0
Reporter: zhangbutao






--
This message was sent by Atlassian Jira
(v8.3.4#803005)