[ 
https://issues.apache.org/jira/browse/KNOX-2397?focusedWorklogId=452844&page=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.<init>(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.<init>(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.<clinit>(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 message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to