[Geoserver-devel] DXF OutputFormat on Geoserver

Hi There,

Sorry if this message is going duplicated, but i posted a reply that
apparently was not accepted..

So here it goes again,
I'm trying to build the dxf module from geoserver source code,
but it keeps giving me this error when maven build runs the tests for this
module:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.geoserver.wfs.response.dxf.util.JulianDateTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
<<< FAILURE!
Running org.geoserver.wfs.response.DXFOutputFormatTest
05 Jan 12:03:35 ERROR [geoserver.ows] -
java.lang.UnsupportedOperationException: Version 13 not supported by dxf
output format
        at
org.geoserver.wfs.response.DXFOutputFormat.write(DXFOutputFormat.java:254)

( . . . )

Results :

Failed tests:
  testSimple(org.geoserver.wfs.response.dxf.util.JulianDateTest)

Does anyone have any ideas why isn't this working?

Thanks in advance.
--
View this message in context: http://old.nabble.com/DXF-OutputFormat-on-Geoserver-tp27026625p27026625.html
Sent from the GeoServer - Dev mailing list archive at Nabble.com.

jjmbv wrote:

Hi There,

Sorry if this message is going duplicated, but i posted a reply that
apparently was not accepted..

So here it goes again,
I'm trying to build the dxf module from geoserver source code, but it keeps giving me this error when maven build runs the tests for this
module:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.geoserver.wfs.response.dxf.util.JulianDateTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062 sec
<<< FAILURE!
Running org.geoserver.wfs.response.DXFOutputFormatTest
05 Jan 12:03:35 ERROR [geoserver.ows] -
java.lang.UnsupportedOperationException: Version 13 not supported by dxf
output format
        at
org.geoserver.wfs.response.DXFOutputFormat.write(DXFOutputFormat.java:254)

( . . . )

Results :

Failed tests:
  testSimple(org.geoserver.wfs.response.dxf.util.JulianDateTest)

Does anyone have any ideas why isn't this working?

Thanks in advance.
  

Sorry for the inconvenience. There was a bug in JulianDate. I have just committed a patch to svn. The fixed JulianDate source is also attached to this message. Let me know if you can compile with it.

Thanks,
Mauro

(attachments)

JulianDate.java (1.45 KB)

Hi,

Thanks for the answer.
With this patch I can now compile and build the project.

Despite the following message that still appears while running the tests,

-----
Running org.geoserver.wfs.response.DXFOutputFormatTest
07 Jan 11:06:53 ERROR [geoserver.ows] -
java.lang.UnsupportedOperationException: Version 13 not supported by dxf
output format
        at
org.geoserver.wfs.response.DXFOutputFormat.write(DXFOutputFormat.java:254)
-----

everything seems ok at the end.

----
Results :

Tests run: 14, Failures: 0, Errors: 0, Skipped: 0
-----

Thanks again,
Jose Vieira

-----Original Message-----
From: Mauro Bartolomeoli [mailto:m.bartolomeoli@anonymised.com]
Sent: quinta-feira, 7 de Janeiro de 2010 08:58
To: jjmbv
Cc: geoserver-devel@lists.sourceforge.net
Subject: Re: [Geoserver-devel] DXF OutputFormat on Geoserver

jjmbv wrote:

Hi There,

Sorry if this message is going duplicated, but i posted a reply that
apparently was not accepted..

So here it goes again,
I'm trying to build the dxf module from geoserver source code, but it
keeps giving me this error when maven build runs the tests for this
module:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running org.geoserver.wfs.response.dxf.util.JulianDateTest
Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.062
sec <<< FAILURE!
Running org.geoserver.wfs.response.DXFOutputFormatTest
05 Jan 12:03:35 ERROR [geoserver.ows] -
java.lang.UnsupportedOperationException: Version 13 not supported by
dxf output format
        at
org.geoserver.wfs.response.DXFOutputFormat.write(DXFOutputFormat.java:
254)

( . . . )

Results :

Failed tests:
  testSimple(org.geoserver.wfs.response.dxf.util.JulianDateTest)

Does anyone have any ideas why isn't this working?

Thanks in advance.
  

Sorry for the inconvenience. There was a bug in JulianDate. I have just
committed a patch to svn. The fixed JulianDate source is also attached to
this message. Let me know if you can compile with it.

Thanks,
Mauro

Jose Vieira wrote:

Hi,

Thanks for the answer.
With this patch I can now compile and build the project.

Despite the following message that still appears while running the tests,

-----
Running org.geoserver.wfs.response.DXFOutputFormatTest
07 Jan 11:06:53 ERROR [geoserver.ows] -
java.lang.UnsupportedOperationException: Version 13 not supported by dxf
output format
        at
org.geoserver.wfs.response.DXFOutputFormat.write(DXFOutputFormat.java:254)
-----

everything seems ok at the end.
  

Don't worry about that, the test is explicitly testing that an exception is thrown in certain conditions.

Cheers,
Mauro