Bug 574070 - Illegal reflective access by org.eclipse.sphinx.platform.util.ReflectUtil
Summary: Illegal reflective access by org.eclipse.sphinx.platform.util.ReflectUtil
Status: CLOSED WONTFIX
Alias: None
Product: Sphinx
Classification: Automotive
Component: JDT and PDE Extensions (show other bugs)
Version: 0.11.0   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-08 06:16 EDT by Hossam Ali CLA
Modified: 2024-05-07 00:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hossam Ali CLA 2021-06-08 06:16:32 EDT
I'm using Artop and I'm updating my environment from java 8 to java 15 but the following message appears:
---------------------------------------------------
WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by org.eclipse.sphinx.platform.util.ReflectUtil (file:.../org.eclipse.sphinx.platform_0.8.0.201405281456.jar) to field com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$AttributesProxy.fAttributes

WARNING: Please consider reporting this to the maintainers of org.eclipse.sphinx.platform.util.ReflectUtil

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release
-----------------------------------------------------------

And the trace reached to the function "getInvisibleFieldValue":



WARNING: Illegal reflective access by org.eclipse.sphinx.platform.util.ReflectUtil (file:.../org.eclipse.sphinx.platform_0.8.0.201405281456.jar) to field com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser$AttributesProxy.fAttributes
	at org.eclipse.sphinx.platform.util.ReflectUtil.getInvisibleFieldValue(ReflectUtil.java:184)
	at org.eclipse.sphinx.platform.util.XMLRootElementHandler.getTargetNamespaceFromDeclaredXMLNamespaces(XMLRootElementHandler.java:128)
	at org.eclipse.sphinx.platform.util.XMLRootElementHandler.startElement(XMLRootElementHandler.java:114)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:518)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:374)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:613)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3078)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:836)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:112)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:541)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1224)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324)
	at java.xml/javax.xml.parsers.SAXParser.parse(SAXParser.java:197)
	at org.eclipse.sphinx.platform.util.XMLRootElementHandler.parseContents(XMLRootElementHandler.java:228)
	at org.eclipse.sphinx.emf.util.EcoreResourceUtil.readRootElement(EcoreResourceUtil.java:258)
	at org.eclipse.sphinx.emf.util.EcoreResourceUtil.readModelNamespace(EcoreResourceUtil.java:304)
	at org.eclipse.sphinx.emf.util.EcoreResourceUtil.readModelNamespace(EcoreResourceUtil.java:286)
	at org.artop.aal.common.resource.impl.AutosarResourceFactoryImpl.getResourceVersionDescriptor(AutosarResourceFactoryImpl.java:229)
	at org.artop.aal.common.resource.impl.AutosarResourceFactoryImpl.initDefaultOptions(AutosarResourceFactoryImpl.java:190)
	at org.artop.aal.common.resource.impl.AutosarResourceFactoryImpl.initResource(AutosarResourceFactoryImpl.java:165)
	at autosar40.util.Autosar40ResourceFactoryImpl.createResource(Autosar40ResourceFactoryImpl.java:82)
	at org.eclipse.emf.ecore.resource.impl.ResourceSetImpl.createResource(ResourceSetImpl.java:434)
	at org.eclipse.sphinx.emf.util.EcoreResourceUtil.loadResource(EcoreResourceUtil.java:1133)
	at org.eclipse.sphinx.emf.util.EcoreResourceUtil.loadResource(EcoreResourceUtil.java:784)
Comment 1 Hossam Ali CLA 2021-06-08 09:46:36 EDT
I tested also sphinx version 0.11.2 and I have the same result of "illegal reflective access"
Comment 2 Balazs Grill CLA 2021-07-14 03:57:02 EDT
Can you please provide some additional info?
I'm interested in your artop and jre versions specifically. I failed to reproduce the issue with artop 4.13 and java 15.
Comment 3 Balazs Grill CLA 2024-05-07 00:30:23 EDT
Closed stale issue before migration