You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bu...@apache.org on 2013/03/06 03:16:02 UTC

[Bug 54641] New: XSLTC problem with StringUtils

https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

            Bug ID: 54641
           Summary: XSLTC problem with StringUtils
           Product: Ant
           Version: 1.8.4
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: critical
          Priority: P2
         Component: Optional Tasks
          Assignee: notifications@ant.apache.org
          Reporter: jglick@apache.org
    Classification: Unclassified

XMLResultAggregatorTest.testFrames fails on JDK 7u17 with:

Fatal error during transformation
    at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.fatalError(TraXLiaison.java:531)
    at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:895)
    at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.readTemplates(TraXLiaison.java:300)
    at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.createTransformer(TraXLiaison.java:317)
    at
org.apache.tools.ant.taskdefs.optional.TraXLiaison.transform(TraXLiaison.java:178)
    at org.apache.tools.ant.taskdefs.XSLTProcess.process(XSLTProcess.java:850)
    ... 19 more
Caused by: javax.xml.transform.TransformerConfigurationException: Could not
compile stylesheet
    at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:885)
    ... 23 more

Bug #51668 comment #6 notes that this is known as
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384757 and (cannot read it but)
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7167657 as well.

http://xml.apache.org/xalan-j/extensions.html#ext-func-calls says

TransformerFactory.newInstance().newTemplates(new StreamSource(new
File("…src/etc/junit-noframes.xsl")));

should work but it fails:

ERROR:  'The first argument to the non-static Java function 'replace' is not a
valid object reference.'
FATAL ERROR:  'Could not compile stylesheet'
Exception in thread "main"
javax.xml.transform.TransformerConfigurationException: Could not compile
stylesheet
    at
com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl.newTemplates(TransformerFactoryImpl.java:843)

Apparently newer versions of XSLTC try to verify extension method signatures,
or something like that, and StringUtils does not work here.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Antoine Levy-Lambert <an...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |1.9.1

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Brett Randall <ja...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |javabrett@gmail.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Markus Keller <ma...@fastmail.fm> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|PC                          |All
   Target Milestone|---                         |1.9.0
                 OS|Linux                       |All

--- Comment #5 from Markus Keller <ma...@fastmail.fm> ---
(In reply to comment #3)
> I think fixed in revision 1453414 (not in 1.9.0). Markus if you could verify
> that would be appreciated.

The stylesheets look good and they do fix the problem in the Eclipse Ant runner
(
https://bugs.eclipse.org/bugs/show_bug.cgi?id=384757 ).

I verified that funny characters are properly replaced; also with Java 1.4.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Jesse Glick <jg...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jglick@apache.org
         Resolution|---                         |FIXED

--- Comment #3 from Jesse Glick <jg...@apache.org> ---
I think fixed in revision 1453414 (not in 1.9.0). Markus if you could verify
that would be appreciated.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Re: [Bug 54641] XSLTC problem with StringUtils

Posted by Antoine Levy Lambert <an...@gmx.de>.
Hello Jesse,

yes, now that I am "restarted" I feel like making more releases.

The problem with the stylesheet breaks junitreport on JDK 1.7 but users can provide their own stylesheet so there is a workaround.

Regards,

Antoine
On Mar 6, 2013, at 9:24 AM, Jesse Glick wrote:

> On 03/05/2013 11:19 PM, Antoine Levy Lambert wrote:
>> can this problem with the junit-frames.xsl wait for ant 1.9.1 ?
>> 
>> I feel like making another release in one month to 6 weeks from now.
> 
> If you are volunteering to do another release that soon, then sure! I marked it high priority since it seems to completely break <junitreport> on currently released JDKs.
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: [Bug 54641] XSLTC problem with StringUtils

Posted by Jesse Glick <jg...@cloudbees.com>.
On 03/05/2013 11:19 PM, Antoine Levy Lambert wrote:
> can this problem with the junit-frames.xsl wait for ant 1.9.1 ?
>
> I feel like making another release in one month to 6 weeks from now.

If you are volunteering to do another release that soon, then sure! I marked it high priority since it seems to completely break <junitreport> on currently released JDKs.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Re: [Bug 54641] XSLTC problem with StringUtils

Posted by Antoine Levy Lambert <an...@gmx.de>.
Hello Jesse,

can this problem with the junit-frames.xsl wait for ant 1.9.1 ?

I feel like making another release in one month to 6 weeks from now.

Regards,

Antoine
On Mar 5, 2013, at 9:20 PM, bugzilla@apache.org wrote:

> https://issues.apache.org/bugzilla/show_bug.cgi?id=54641
> 
> Jesse Glick <jg...@apache.org> changed:
> 
>           What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                 CC|                            |jglick@apache.org
>   Target Milestone|---                         |1.9.0
> 
> -- 
> You are receiving this mail because:
> You are the assignee for the bug.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Jesse Glick <jg...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jglick@apache.org
   Target Milestone|---                         |1.9.0

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Jesse Glick <jg...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|jglick@apache.org           |markuskeller@fastmail.fm

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

--- Comment #1 from Jesse Glick <jg...@apache.org> ---
Created attachment 30021
  --> https://issues.apache.org/bugzilla/attachment.cgi?id=30021&action=edit
First attempt at a fix

Makes XMLResultAggregatorTest pass but causes failures in JUnitReportTest.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

--- Comment #4 from Markus Keller <ma...@fastmail.fm> ---
(In reply to comment #0)
> Apparently newer versions of XSLTC try to verify extension method
> signatures, or something like that, and StringUtils does not work here.

Note that Apache Xalan works fine, but Oracle copied Xalan and added changes
like http://java.net/projects/jaxp-sources/sources/svn/revision/3040 , which
broke some XSLTC functions when a security manager is present.

Unfortunately, Oracle's public bug database is in a horrible read-only state
for more than a year now, and it continues to hide bug reports that used to be
available. I also can't read their 7167657 any more.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Michael Rennie <mi...@ca.ibm.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |michael_rennie@ca.ibm.com

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

--- Comment #2 from Jesse Glick <jg...@apache.org> ---
http://stackoverflow.com/a/12364925/12916 claims to have a fix, will test.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

--- Comment #7 from Jackie Rosen <ja...@hushmail.com> ---
*** Bug 260998 has been marked as a duplicate of this bug. ***
Seen from the domain http://volichat.com
Page where seen: http://volichat.com/adult-chat-rooms
Marked for reference. Resolved as fixed @bugzilla.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Jesse Glick <jg...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.9.0                       |---

--- Comment #6 from Jesse Glick <jg...@apache.org> ---
Not in 1.9.0.

-- 
You are receiving this mail because:
You are the assignee for the bug.

[Bug 54641] XSLTC problem with StringUtils

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=54641

Jesse Glick <jg...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|1.9.0                       |---

-- 
You are receiving this mail because:
You are the assignee for the bug.