Petals SE XSLT

Default XSL transformer factory provided by JDK can no longer be used

Details

  • Type: Task Task
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 2.10.0
  • Fix Version/s: 2.11.0
  • Component/s: None
  • Security Level: Public
  • Description:
    Hide

    The default XSL transformer factory provided by JDK 17+ can no longer be used explicitly, otherwise an illegal access occurs:

    java.lang.IllegalAccessException: class org.ow2.petals.se.xslt.model.XsltConfigurationHandler cannot access class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xalan.internal.xsltc.trax to unnamed module @34252efb
    	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
    	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
    	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:489)
    	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
    	at org.ow2.petals.se.xslt.model.XsltConfigurationHandler.createTransformerFactory(XsltConfigurationHandler.java:310)
    	... 29 more
    Show
    The default XSL transformer factory provided by JDK 17+ can no longer be used explicitly, otherwise an illegal access occurs:
    java.lang.IllegalAccessException: class org.ow2.petals.se.xslt.model.XsltConfigurationHandler cannot access class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xalan.internal.xsltc.trax to unnamed module @34252efb
    	at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
    	at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
    	at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:489)
    	at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
    	at org.ow2.petals.se.xslt.model.XsltConfigurationHandler.createTransformerFactory(XsltConfigurationHandler.java:310)
    	... 29 more
  • Environment:
    -

Issue Links

Activity

Christophe DENEUX made changes - Thu, 25 May 2023 - 11:36:08 +0200
Field Original Value New Value
Status New [ 10000 ] Open [ 10002 ]
Priority Major [ 3 ]
Christophe DENEUX made changes - Thu, 25 May 2023 - 11:36:10 +0200
Status Open [ 10002 ] In Progress [ 10003 ]
Hide
Christophe DENEUX added a comment - Thu, 25 May 2023 - 11:37:44 +0200

An information was added in user documentation of the document to explain how to define explicitly the use of Xalan: the use of Petals Shared Library Xalan is required !

Show
Christophe DENEUX added a comment - Thu, 25 May 2023 - 11:37:44 +0200 An information was added in user documentation of the document to explain how to define explicitly the use of Xalan: the use of Petals Shared Library Xalan is required !
Christophe DENEUX made changes - Thu, 25 May 2023 - 11:37:44 +0200
Status In Progress [ 10003 ] Resolved [ 10004 ]
Fix Version/s 2.11.0 [ 11120 ]
Resolution Fixed [ 1 ]
Christophe DENEUX made changes - Thu, 25 May 2023 - 11:37:55 +0200
Link This issue blocks PETALSSEXSLT-44 [ PETALSSEXSLT-44 ]
Christophe DENEUX made changes - Thu, 25 May 2023 - 11:39:01 +0200
Summary Default XSL transformer factory provided by JDK can not be used Default XSL transformer factory provided by JDK can no longer be used
Description The default XSL transformer factory provided by JDK 17+ can not be used explicitely The default XSL transformer factory provided by JDK 17+ can no longer be used explicitly
Christophe DENEUX made changes - Thu, 25 May 2023 - 11:40:00 +0200
Description The default XSL transformer factory provided by JDK 17+ can no longer be used explicitly The default XSL transformer factory provided by JDK 17+ can no longer be used explicitly, otherwise an illegal access occurs:
{code}
java.lang.IllegalAccessException: class org.ow2.petals.se.xslt.model.XsltConfigurationHandler cannot access class com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl (in module java.xml) because module java.xml does not export com.sun.org.apache.xalan.internal.xsltc.trax to unnamed module @34252efb
at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:392)
at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:674)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:489)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.ow2.petals.se.xslt.model.XsltConfigurationHandler.createTransformerFactory(XsltConfigurationHandler.java:310)
... 29 more
{code}
Transition Status Change Time Execution Times Last Executer Last Execution Date
New New Open Open
6s
1
Christophe DENEUX
Thu, 25 May 2023 - 11:36:08 +0200
Open Open In Progress In Progress
2s
1
Christophe DENEUX
Thu, 25 May 2023 - 11:36:10 +0200
In Progress In Progress Resolved Resolved
1m 34s
1
Christophe DENEUX
Thu, 25 May 2023 - 11:37:44 +0200



People

Dates

  • Created:
    Thu, 25 May 2023 - 11:36:02 +0200
    Updated:
    Thu, 25 May 2023 - 11:40:00 +0200
    Resolved:
    Thu, 25 May 2023 - 11:37:44 +0200