regression of xsl files

View: New views
14 Messages — Rating Filter:   Alert me  

regression of xsl files

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

We’re once again experiencing the “0X0 is not a legal XML character” when CC is parsing the m2 build/test logs in the latest released version:

 

http://osdir.com/ml/java.cruise-control.user/2003-07/msg00061.html

 

I couldn’t find the bug in Jira…


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by Jeffrey Fredrick-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Did you just make a big jump in CC versions?  Because that file hasn't
changed in almost a year and half...

http://cruisecontrol.svn.sourceforge.net/viewvc/cruisecontrol/trunk/cruisecontrol/reporting/jsp/webcontent/xsl/testdetails.xsl?view=log

Jtf

On Thu, Jun 26, 2008 at 12:29 AM, EJ Ciramella <ejciramella@...> wrote:
> We're once again experiencing the "0X0 is not a legal XML character" when CC
> is parsing the m2 build/test logs in the latest released version:
>
> http://osdir.com/ml/java.cruise-control.user/2003-07/msg00061.html
>
> I couldn't find the bug in Jira…
>

--
http://blog.jeffreyfredrick.com
http://www.ohloh.net/accounts/JeffreyFredrick
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

No no, sorry, my fault for misleading people - we went from 2.7.1-rc3 to
2.7.2.  The problem isn't in the xsl file, it's in maven2Script.java -

Original version

            final Element msg = new Element("message");

            msg.addContent(new CDATA(line));

 

Our version

            final Element msg = new Element("message");

            msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));


Otherwise, parsing some of our logs fail with errors like this:

     [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating exploded ear file c:\work\up-sv
cs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear.]
     [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
exploded ear file
c:\work\up-svcs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear." is not
legal for a JDOM CDATA section: 0x0 is not a legal XML character.
     [java]     at org.jdom.CDATA.setText(CDATA.java:121)
     [java]     at org.jdom.CDATA.<init>(CDATA.java:95)
     [java]     at
net.sourceforge.cruisecontrol.builders.Maven2Script.consumeLine(Maven2Sc
ript.java:198)
     [java]     at
net.sourceforge.cruisecontrol.util.CompositeConsumer.consumeLine(Composi
teConsumer.java:67)
     [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.consumeLine(StreamPumper
.java:137)
     [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.run(StreamPumper.java:12
4)
     [java]     at java.lang.Thread.run(Thread.java:595)
     [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO] Initializing...
     [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO]  Creating
application.xml...
     [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating application.xml...]
     [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
application.xml..." is not legal for a JDOM CDATA
section: 0x0 is not a legal XML character.

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
Jeffrey Fredrick
Sent: Wednesday, June 25, 2008 10:08 PM
To: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

Did you just make a big jump in CC versions?  Because that file hasn't
changed in almost a year and half...

http://cruisecontrol.svn.sourceforge.net/viewvc/cruisecontrol/trunk/crui
secontrol/reporting/jsp/webcontent/xsl/testdetails.xsl?view=log

Jtf

On Thu, Jun 26, 2008 at 12:29 AM, EJ Ciramella
<ejciramella@...> wrote:
> We're once again experiencing the "0X0 is not a legal XML character"
when CC
> is parsing the m2 build/test logs in the latest released version:
>
> http://osdir.com/ml/java.cruise-control.user/2003-07/msg00061.html
>
> I couldn't find the bug in Jira...
>

--
http://blog.jeffreyfredrick.com
http://www.ohloh.net/accounts/JeffreyFredrick
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression in maven2Script.java

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I don't want to let this one fade into obscurity (as we hang up on it
with every release we evaluate).

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
EJ Ciramella
Sent: Thursday, June 26, 2008 11:11 AM
To: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

No no, sorry, my fault for misleading people - we went from 2.7.1-rc3 to
2.7.2.  The problem isn't in the xsl file, it's in maven2Script.java -

Original version

            final Element msg = new Element("message");

            msg.addContent(new CDATA(line));

 

Our version

            final Element msg = new Element("message");

            msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));


Otherwise, parsing some of our logs fail with errors like this:

     [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating exploded ear file c:\work\up-sv
cs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear.]
     [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
exploded ear file
c:\work\up-svcs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear." is not
legal for a JDOM CDATA section: 0x0 is not a legal XML character.
     [java]     at org.jdom.CDATA.setText(CDATA.java:121)
     [java]     at org.jdom.CDATA.<init>(CDATA.java:95)
     [java]     at
net.sourceforge.cruisecontrol.builders.Maven2Script.consumeLine(Maven2Sc
ript.java:198)
     [java]     at
net.sourceforge.cruisecontrol.util.CompositeConsumer.consumeLine(Composi
teConsumer.java:67)
     [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.consumeLine(StreamPumper
.java:137)
     [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.run(StreamPumper.java:12
4)
     [java]     at java.lang.Thread.run(Thread.java:595)
     [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO] Initializing...
     [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO]  Creating
application.xml...
     [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating application.xml...]
     [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
application.xml..." is not legal for a JDOM CDATA
section: 0x0 is not a legal XML character.

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
Jeffrey Fredrick
Sent: Wednesday, June 25, 2008 10:08 PM
To: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

Did you just make a big jump in CC versions?  Because that file hasn't
changed in almost a year and half...

http://cruisecontrol.svn.sourceforge.net/viewvc/cruisecontrol/trunk/crui
secontrol/reporting/jsp/webcontent/xsl/testdetails.xsl?view=log

Jtf

On Thu, Jun 26, 2008 at 12:29 AM, EJ Ciramella
<ejciramella@...> wrote:
> We're once again experiencing the "0X0 is not a legal XML character"
when CC
> is parsing the m2 build/test logs in the latest released version:
>
> http://osdir.com/ml/java.cruise-control.user/2003-07/msg00061.html
>
> I couldn't find the bug in Jira...
>

--
http://blog.jeffreyfredrick.com
http://www.ohloh.net/accounts/JeffreyFredrick
------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

------------------------------------------------------------------------
-
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Parent Message unknown Re: regression of xsl files

by Dan Rollo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi EJ,

I recently banked a fix for:
http://jira.public.thoughtworks.org/browse/CC-824
which I think may fix this problem for you.
Could you build CC using the latest source from subversion and confirm
if that solves the problem?

Also, out of curiosity, do you have an example of a simple way to create
such "invalid" characters in a maven build? I'd like to know what
generates these chars (and ideally have a reproducible case).

Thanks,
Dan


Subject: Re: [Cruisecontrol-user] regression in maven2Script.java

I don't want to let this one fade into obscurity (as we hang up on it
with every release we evaluate).

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
EJ Ciramella
Sent: Thursday, June 26, 2008 11:11 AM
To: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

No no, sorry, my fault for misleading people - we went from 2.7.1-rc3 to
2.7.2.  The problem isn't in the xsl file, it's in maven2Script.java -

Original version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line));



Our version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));


Otherwise, parsing some of our logs fail with errors like this:

      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating exploded ear file c:\work\up-sv
cs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear.]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
exploded ear file
c:\work\up-svcs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear." is not
legal for a JDOM CDATA section: 0x0 is not a legal XML character.
      [java]     at org.jdom.CDATA.setText(CDATA.java:121)
      [java]     at org.jdom.CDATA.<init>(CDATA.java:95)
      [java]     at
net.sourceforge.cruisecontrol.builders.Maven2Script.consumeLine(Maven2Sc
ript.java:198)
      [java]     at
net.sourceforge.cruisecontrol.util.CompositeConsumer.consumeLine(Composi
teConsumer.java:67)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.consumeLine(StreamPumper
.java:137)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.run(StreamPumper.java:12
4)
      [java]     at java.lang.Thread.run(Thread.java:595)
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO] Initializing...
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO]  Creating
application.xml...
      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating application.xml...]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
application.xml..." is not legal for a JDOM CDATA
section: 0x0 is not a legal XML character.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok, I'll try to get to this at some point in time this week.



-----Original Message-----
From: Dan Rollo [mailto:danrollo@...]
Sent: Monday, June 30, 2008 9:37 PM
To: cruisecontrol-user@...; EJ Ciramella
Subject: Re: [Cruisecontrol-user] regression of xsl files

Hi EJ,

I recently banked a fix for:
http://jira.public.thoughtworks.org/browse/CC-824
which I think may fix this problem for you.
Could you build CC using the latest source from subversion and confirm
if that solves the problem?

Also, out of curiosity, do you have an example of a simple way to create

such "invalid" characters in a maven build? I'd like to know what
generates these chars (and ideally have a reproducible case).

Thanks,
Dan


Subject: Re: [Cruisecontrol-user] regression in maven2Script.java

I don't want to let this one fade into obscurity (as we hang up on it
with every release we evaluate).

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
EJ Ciramella
Sent: Thursday, June 26, 2008 11:11 AM
To: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

No no, sorry, my fault for misleading people - we went from 2.7.1-rc3 to
2.7.2.  The problem isn't in the xsl file, it's in maven2Script.java -

Original version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line));



Our version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));


Otherwise, parsing some of our logs fail with errors like this:

      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating exploded ear file c:\work\up-sv
cs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear.]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
exploded ear file
c:\work\up-svcs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear." is not
legal for a JDOM CDATA section: 0x0 is not a legal XML character.
      [java]     at org.jdom.CDATA.setText(CDATA.java:121)
      [java]     at org.jdom.CDATA.<init>(CDATA.java:95)
      [java]     at
net.sourceforge.cruisecontrol.builders.Maven2Script.consumeLine(Maven2Sc
ript.java:198)
      [java]     at
net.sourceforge.cruisecontrol.util.CompositeConsumer.consumeLine(Composi
teConsumer.java:67)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.consumeLine(StreamPumper
.java:137)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.run(StreamPumper.java:12
4)
      [java]     at java.lang.Thread.run(Thread.java:595)
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO] Initializing...
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO]  Creating
application.xml...
      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating application.xml...]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
application.xml..." is not legal for a JDOM CDATA
section: 0x0 is not a legal XML character.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

While checking out from svn, I realized, the code that's breaking is in
mave2script.

I don't see how any of the changes you made would solve this.

We explicitly remove any of the characters in question right in the
Maven2Script source:

            final Element msg = new Element("message");
            msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));

I don't have the exact set of characters in front of me (I'm building
from the trunk right now to pick up any newly banked changes).

Without patching, I'm positive I'll get the error that requires the
above lines in the maven2script.java file.

-----Original Message-----
From: Dan Rollo [mailto:danrollo@...]
Sent: Monday, June 30, 2008 9:37 PM
To: cruisecontrol-user@...; EJ Ciramella
Subject: Re: [Cruisecontrol-user] regression of xsl files

Hi EJ,

I recently banked a fix for:
http://jira.public.thoughtworks.org/browse/CC-824
which I think may fix this problem for you.
Could you build CC using the latest source from subversion and confirm
if that solves the problem?

Also, out of curiosity, do you have an example of a simple way to create

such "invalid" characters in a maven build? I'd like to know what
generates these chars (and ideally have a reproducible case).

Thanks,
Dan


Subject: Re: [Cruisecontrol-user] regression in maven2Script.java

I don't want to let this one fade into obscurity (as we hang up on it
with every release we evaluate).

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
EJ Ciramella
Sent: Thursday, June 26, 2008 11:11 AM
To: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

No no, sorry, my fault for misleading people - we went from 2.7.1-rc3 to
2.7.2.  The problem isn't in the xsl file, it's in maven2Script.java -

Original version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line));



Our version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));


Otherwise, parsing some of our logs fail with errors like this:

      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating exploded ear file c:\work\up-sv
cs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear.]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
exploded ear file
c:\work\up-svcs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear." is not
legal for a JDOM CDATA section: 0x0 is not a legal XML character.
      [java]     at org.jdom.CDATA.setText(CDATA.java:121)
      [java]     at org.jdom.CDATA.<init>(CDATA.java:95)
      [java]     at
net.sourceforge.cruisecontrol.builders.Maven2Script.consumeLine(Maven2Sc
ript.java:198)
      [java]     at
net.sourceforge.cruisecontrol.util.CompositeConsumer.consumeLine(Composi
teConsumer.java:67)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.consumeLine(StreamPumper
.java:137)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.run(StreamPumper.java:12
4)
      [java]     at java.lang.Thread.run(Thread.java:595)
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO] Initializing...
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO]  Creating
application.xml...
      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating application.xml...]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
application.xml..." is not legal for a JDOM CDATA
section: 0x0 is not a legal XML character.

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm trying hard not to make this single thread encompass a too much, but
there is a massive amount of deprecation warnings, a unit test failure
(AntBuilderTest.java - I can supply more info if requested), in the
dashboard build.xml, this fails:

<target name="-generate.svn.revsion" if="has.dotsvn.dir"
unless="current.revision">
<svn>
        <status path="${basedir}" revisionProperty="current.revision" />
</svn>
</target>

I'm guessing my basedir doesn't properly map to something subversion can
connect to/verify against.

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
EJ Ciramella
Sent: Wednesday, July 02, 2008 10:36 AM
To: Dan Rollo; cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

While checking out from svn, I realized, the code that's breaking is in
mave2script.

I don't see how any of the changes you made would solve this.

We explicitly remove any of the characters in question right in the
Maven2Script source:

            final Element msg = new Element("message");
            msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));

I don't have the exact set of characters in front of me (I'm building
from the trunk right now to pick up any newly banked changes).

Without patching, I'm positive I'll get the error that requires the
above lines in the maven2script.java file.

-----Original Message-----
From: Dan Rollo [mailto:danrollo@...]
Sent: Monday, June 30, 2008 9:37 PM
To: cruisecontrol-user@...; EJ Ciramella
Subject: Re: [Cruisecontrol-user] regression of xsl files

Hi EJ,

I recently banked a fix for:
http://jira.public.thoughtworks.org/browse/CC-824
which I think may fix this problem for you.
Could you build CC using the latest source from subversion and confirm
if that solves the problem?

Also, out of curiosity, do you have an example of a simple way to create

such "invalid" characters in a maven build? I'd like to know what
generates these chars (and ideally have a reproducible case).

Thanks,
Dan


Subject: Re: [Cruisecontrol-user] regression in maven2Script.java

I don't want to let this one fade into obscurity (as we hang up on it
with every release we evaluate).

-----Original Message-----
From: cruisecontrol-user-bounces@...
[mailto:cruisecontrol-user-bounces@...] On Behalf Of
EJ Ciramella
Sent: Thursday, June 26, 2008 11:11 AM
To: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

No no, sorry, my fault for misleading people - we went from 2.7.1-rc3 to
2.7.2.  The problem isn't in the xsl file, it's in maven2Script.java -

Original version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line));



Our version

             final Element msg = new Element("message");

             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
"")));


Otherwise, parsing some of our logs fail with errors like this:

      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating exploded ear file c:\work\up-sv
cs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear.]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
exploded ear file
c:\work\up-svcs\lty\proj\olmAdminApp\target\olmAdminAppWar.ear." is not
legal for a JDOM CDATA section: 0x0 is not a legal XML character.
      [java]     at org.jdom.CDATA.setText(CDATA.java:121)
      [java]     at org.jdom.CDATA.<init>(CDATA.java:95)
      [java]     at
net.sourceforge.cruisecontrol.builders.Maven2Script.consumeLine(Maven2Sc
ript.java:198)
      [java]     at
net.sourceforge.cruisecontrol.util.CompositeConsumer.consumeLine(Composi
teConsumer.java:67)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.consumeLine(StreamPumper
.java:137)
      [java]     at
net.sourceforge.cruisecontrol.util.StreamPumper.run(StreamPumper.java:12
4)
      [java]     at java.lang.Thread.run(Thread.java:595)
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO] Initializing...
      [java] [cc]Jun-26 11:09:03 ScriptRunner  - [INFO]  Creating
application.xml...
      [java] [cc]Jun-26 11:09:03 StreamPumper  - Problem consuming line
[[INFO]  Creating application.xml...]
      [java] org.jdom.IllegalDataException: The data "[INFO]  Creating
application.xml..." is not legal for a JDOM CDATA
section: 0x0 is not a legal XML character.

------------------------------------------------------------------------
-
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by Dan Rollo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you have an example of a simple way to create such "invalid"
characters in a maven build? I'd like to know what
generates these chars (and ideally have a reproducible case).

Thanks,
Dan

EJ Ciramella wrote:

> While checking out from svn, I realized, the code that's breaking is in
> mave2script.
>
> I don't see how any of the changes you made would solve this.
>
> We explicitly remove any of the characters in question right in the
> Maven2Script source:
>
>             final Element msg = new Element("message");
>             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
> "")));
>
> I don't have the exact set of characters in front of me (I'm building
> from the trunk right now to pick up any newly banked changes).
>
> Without patching, I'm positive I'll get the error that requires the
> above lines in the maven2script.java file.
>
> -----Original Message-----
> From: Dan Rollo [mailto:danrollo@...]
> Sent: Monday, June 30, 2008 9:37 PM
> To: cruisecontrol-user@...; EJ Ciramella
> Subject: Re: [Cruisecontrol-user] regression of xsl files
>
> Hi EJ,
>
> I recently banked a fix for:
> http://jira.public.thoughtworks.org/browse/CC-824
> which I think may fix this problem for you.
> Could you build CC using the latest source from subversion and confirm
> if that solves the problem?
>
> Also, out of curiosity, do you have an example of a simple way to create
>
> such "invalid" characters in a maven build? I'd like to know what
> generates these chars (and ideally have a reproducible case).
>
> Thanks,
> Dan
>


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>From the tip, I cannot recreate this error anymore.

I'm going to roll out this version to our staging env and we'll test
further from there.  If we have any further hiccups, I'll report it back
here.  But 2.7.2 still has this problem.

-----Original Message-----
From: Dan Rollo [mailto:danrollo@...]
Sent: Wednesday, July 02, 2008 11:40 AM
To: EJ Ciramella
Cc: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

Do you have an example of a simple way to create such "invalid"
characters in a maven build? I'd like to know what
generates these chars (and ideally have a reproducible case).

Thanks,
Dan

EJ Ciramella wrote:
> While checking out from svn, I realized, the code that's breaking is
in

> mave2script.
>
> I don't see how any of the changes you made would solve this.
>
> We explicitly remove any of the characters in question right in the
> Maven2Script source:
>
>             final Element msg = new Element("message");
>             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
> "")));
>
> I don't have the exact set of characters in front of me (I'm building
> from the trunk right now to pick up any newly banked changes).
>
> Without patching, I'm positive I'll get the error that requires the
> above lines in the maven2script.java file.
>
> -----Original Message-----
> From: Dan Rollo [mailto:danrollo@...]
> Sent: Monday, June 30, 2008 9:37 PM
> To: cruisecontrol-user@...; EJ Ciramella
> Subject: Re: [Cruisecontrol-user] regression of xsl files
>
> Hi EJ,
>
> I recently banked a fix for:
> http://jira.public.thoughtworks.org/browse/CC-824
> which I think may fix this problem for you.
> Could you build CC using the latest source from subversion and confirm

> if that solves the problem?
>
> Also, out of curiosity, do you have an example of a simple way to
create
>
> such "invalid" characters in a maven build? I'd like to know what
> generates these chars (and ideally have a reproducible case).
>
> Thanks,
> Dan
>


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by Dan Rollo-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good News! Please let us know how the testing goes.

Also, please do give me a simple way to create such "invalid" characters
in a maven build if at all possible.

Dan

EJ Ciramella wrote:

> From the tip, I cannot recreate this error anymore.
>
> I'm going to roll out this version to our staging env and we'll test
> further from there.  If we have any further hiccups, I'll report it back
> here.  But 2.7.2 still has this problem.
>
> -----Original Message-----
> From: Dan Rollo [mailto:danrollo@...]
> Sent: Wednesday, July 02, 2008 11:40 AM
> To: EJ Ciramella
> Cc: cruisecontrol-user@...
> Subject: Re: [Cruisecontrol-user] regression of xsl files
>
> Do you have an example of a simple way to create such "invalid"
> characters in a maven build? I'd like to know what
> generates these chars (and ideally have a reproducible case).
>
> Thanks,
> Dan
>
> EJ Ciramella wrote:
>> While checking out from svn, I realized, the code that's breaking is
> in
>> mave2script.
>>
>> I don't see how any of the changes you made would solve this.
>>
>> We explicitly remove any of the characters in question right in the
>> Maven2Script source:
>>
>>             final Element msg = new Element("message");
>>             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
>> "")));
>>
>> I don't have the exact set of characters in front of me (I'm building
>> from the trunk right now to pick up any newly banked changes).
>>
>> Without patching, I'm positive I'll get the error that requires the
>> above lines in the maven2script.java file.
>>
>> -----Original Message-----
>> From: Dan Rollo [mailto:danrollo@...]
>> Sent: Monday, June 30, 2008 9:37 PM
>> To: cruisecontrol-user@...; EJ Ciramella
>> Subject: Re: [Cruisecontrol-user] regression of xsl files
>>
>> Hi EJ,
>>
>> I recently banked a fix for:
>> http://jira.public.thoughtworks.org/browse/CC-824
>> which I think may fix this problem for you.
>> Could you build CC using the latest source from subversion and confirm
>
>> if that solves the problem?
>>
>> Also, out of curiosity, do you have an example of a simple way to
> create
>> such "invalid" characters in a maven build? I'd like to know what
>> generates these chars (and ideally have a reproducible case).
>>
>> Thanks,
>> Dan
>>
>


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user

Re: regression of xsl files

by EJ Ciramella-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here's an example of the text that choked out StreamPumper apparently:

2008-06-21 10:32:15,278 [Thread-1224] INFO  ScriptRunner -
[INFO]  application install unit directory,
C:\ATG\ATG2006.3\upromise\common which does not depend on the install
unit directory C:\ATG\ATG2006.3\CampaignOptimizer2006.3\ABTest, where
ABTest.runtime is located.  To correct this problem, you can include
module ABTest.runtime in your launcher or assembler invocation
explicitly, which will make sure its install directory directory is
included, or you can move the module upromise.common.abtestRuntime into
the install-directory for ABTest.runtime.
2008-06-21 10:32:15,278 [Thread-1224] ERROR StreamPumper - Problem
consuming line [[INFO]
located in a platform or application install unit directory,
C:\ATG\ATG2006.3\upromise\common which does not depend on the install
unit directory C:\ATG\ATG2006.3\CampaignOptimizer2006.3\ABTest, where
ABTest.runtime is located.  To correct this problem, you can include
module ABTest.runtime in your launcher or assembler invocation
explicitly, which will make sure its install directory directory is
included, or you can move the module upromise.common.abtestRuntime into
the install-directory for ABTest.runtime.]
org.jdom.IllegalDataException: The data "[INFO] nit directory,
C:\ATG\ATG2006.3\upromise\common which does not depend on the install
unit directory C:\ATG\ATG2006.3\CampaignOptimizer2006.3\ABTest, where
ABTest.runtime is located.  To correct this problem, you can include
module ABTest.runtime in your launcher or assembler invocation
explicitly, which will make sure its install directory directory is
included, or you can move the module upromise.common.abtestRuntime into
the install-directory for ABTest.runtime." is not legal for a JDOM CDATA
section: 0x0 is not a legal XML character.
        at org.jdom.CDATA.setText(CDATA.java:121)
        at org.jdom.CDATA.<init>(CDATA.java:95)
        at
net.sourceforge.cruisecontrol.builders.Maven2Script.consumeLine(Maven2Sc
ript.java:198)
        at
net.sourceforge.cruisecontrol.util.CompositeConsumer.consumeLine(Composi
teConsumer.java:67)
        at
net.sourceforge.cruisecontrol.util.StreamPumper.consumeLine(StreamPumper
.java:137)
        at
net.sourceforge.cruisecontrol.util.StreamPumper.run(StreamPumper.java:12
4)
        at java.lang.Thread.run(Thread.java:595)

-----Original Message-----
From: Dan Rollo [mailto:danrollo@...]
Sent: Thursday, July 03, 2008 6:44 PM
To: EJ Ciramella
Cc: cruisecontrol-user@...
Subject: Re: [Cruisecontrol-user] regression of xsl files

Good News! Please let us know how the testing goes.

Also, please do give me a simple way to create such "invalid" characters

in a maven build if at all possible.

Dan

EJ Ciramella wrote:
> From the tip, I cannot recreate this error anymore.
>
> I'm going to roll out this version to our staging env and we'll test
> further from there.  If we have any further hiccups, I'll report it
back

> here.  But 2.7.2 still has this problem.
>
> -----Original Message-----
> From: Dan Rollo [mailto:danrollo@...]
> Sent: Wednesday, July 02, 2008 11:40 AM
> To: EJ Ciramella
> Cc: cruisecontrol-user@...
> Subject: Re: [Cruisecontrol-user] regression of xsl files
>
> Do you have an example of a simple way to create such "invalid"
> characters in a maven build? I'd like to know what
> generates these chars (and ideally have a reproducible case).
>
> Thanks,
> Dan
>
> EJ Ciramella wrote:
>> While checking out from svn, I realized, the code that's breaking is
> in
>> mave2script.
>>
>> I don't see how any of the changes you made would solve this.
>>
>> We explicitly remove any of the characters in question right in the
>> Maven2Script source:
>>
>>             final Element msg = new Element("message");
>>             msg.addContent(new CDATA(line.replaceAll("[\\x00-\\x1f]",
>> "")));
>>
>> I don't have the exact set of characters in front of me (I'm building
>> from the trunk right now to pick up any newly banked changes).
>>
>> Without patching, I'm positive I'll get the error that requires the
>> above lines in the maven2script.java file.
>>
>> -----Original Message-----
>> From: Dan Rollo [mailto:danrollo@...]
>> Sent: Monday, June 30, 2008 9:37 PM
>> To: cruisecontrol-user@...; EJ Ciramella
>> Subject: Re: [Cruisecontrol-user] regression of xsl files
>>
>> Hi EJ,
>>
>> I recently banked a fix for:
>> http://jira.public.thoughtworks.org/browse/CC-824
>> which I think may fix this problem for you.
>> Could you build CC using the latest source from subversion and
confirm

>
>> if that solves the problem?
>>
>> Also, out of curiosity, do you have an example of a simple way to
> create
>> such "invalid" characters in a maven build? I'd like to know what
>> generates these chars (and ideally have a reproducible case).
>>
>> Thanks,
>> Dan
>>
>


-------------------------------------------------------------------------
Sponsored by: SourceForge.net Community Choice Awards: VOTE NOW!
Studies have shown that voting for your favorite open source project,
along with a healthy diet, reduces your potential for chronic lameness
and boredom. Vote Now at http://www.sourceforge.net/community/cca08
_______________________________________________
Cruisecontrol-user mailing list
Cruisecontrol-user@...
https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user