I no longer have the XSQNameBindingTest Failure as of this morning after
checking the SVN. Thanks for you help. I am still getting the errors in
test3BandsByte_SLD and test4BandsUInt16_SLD in RasterSymbolizerTest.java.
I have narrowed the error down to getTiles() call in
testRasterSymbolizerHelper(). I'll paste the code below with bold as
before. Only the second testRasterSymbolizerHelper() call in
test3BandsByte_SLD and the first testRasterSymbolizerHelper() call in
test4BandsUInt16_SLD causes the error. I know almost nothing about
PlanarImage objects. I am at a loss as to how this can be fixed or if I am
just missing some class or something. I am trying to work with 2.5 and I
have Maven version: 2.0.9 and Java version: 1.6.0_05. Thanks again for all
your help.
private static void testRasterSymbolizerHelper(final
SubchainStyleVisitorCoverageProcessingAdapter rsh) {
if (TestData.isInteractiveTest()) {
visualize(((GridCoverage2D)rsh.getOutput()).getRenderedImage(),
rsh.getName()
.toString());
} else {
PlanarImage.wrapRenderedImage(((GridCoverage2D)rsh.getOutput()).getRenderedImage())
.getTiles();
rsh.dispose(new Random().nextBoolean() ? true : false);
}
}
Jody Garnett wrote:
>
> 2.4 is over and done; it is limited to Java 1.4.
> Jody
>
>> I too had the problem on geotools 2.4, not on trunk. (Using Java 1.5)
>>
>> Its in a hardcoded unit test, so the developer has no way of "sorting"
>> anything - it simply needs to pass reliably :-0
>>
>> what is the officieal position on what versions of java work for 2.4?
>> Is it limited to 1.4 still?
>>
>> RA
>>
>>
>> On Tue, Jun 17, 2008 at 11:19 AM, Jody Garnett
>> <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
>>
>> I had problems with this as well recently; I seem to recall that the
>> instance of DatatypeConverter changes if you are using Java 6? Are
>> you
>> using Java 6?
>> I placed try/catch code around this section of code but Justin did
>> not
>> accept my patch ...
>>
>> Java used to let us get away with not having a namespace; now we are
>> stuck ... is there any chance you can sort out your namespaces
>> prior to use?
>> Jody
>>
>> > I have narrowed this problem down to one line of code in the
>> > XSQNameBinding.java file. For some reason if the variable
>> 'value' does not
>> > start with "foo" then the code crashes when the QName is
>> initialized. Can
>> > someone please assist me with this. I have pasted the function
>> with the
>> > crashing line of code in bold below. If I am missing something
>> simple and
>> > being an idiot please point it out to me.
>> >
>> > public Object parse(InstanceComponent instance, Object value)
>> > throws Exception {
>> > QName qName = DatatypeConverter.parseQName((String) value,
>> > namespaceContext);
>> >
>> > if (qName != null) {
>> > return qName;
>> > }
>> >
>> > if (value == null) {
>> > return new QName(null);
>> > }
>> >
>> > String s = (String) value;
>> > int i = s.indexOf(':');
>> >
>> > if (i != -1) {
>> > String prefix = s.substring(0, i);
>> > String local = s.substring(i + 1);
>> >
>> > return new QName(null, local, prefix);
>> > }
>> >
>> > return new QName(null, s);
>> > }
>> >
>> >
>> >
>>
>>
>>
>> -------------------------------------------------------------------------
>> 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
>> _______________________________________________
>> Geotools-devel mailing list
>> [email protected]
>> <mailto:[email protected]>
>> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>>
>>
>
>
> -------------------------------------------------------------------------
> 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
> _______________________________________________
> Geotools-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geotools-devel
>
>
--
View this message in context:
http://www.nabble.com/XSQNameBindingTest-Failure-tp17809860p17936550.html
Sent from the geotools-devel mailing list archive at Nabble.com.
-------------------------------------------------------------------------
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
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel