[52N SWE] Error When Inserting an Observation

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[52N SWE] Error When Inserting an Observation

Dillabough, Craig
Hello,
I am having trouble getting InsertObservation to work. When I attempt to
add an observation I get the following error message:


java.lang.ClassCastException:
net.opengis.swe.x101.impl.SimpleDataRecordTypeImpl cannot be cast to
net.opengis.swe.x101.DataRecordType
       
org.n52.sos.decode.impl.OMDecoder.parseGenericObservation(OMDecoder.java
:975)
       
org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.parseInsertObsReq
uest(HttpPostRequestDecoderStandard.java:285)
       
org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.receiveRequest(Ht
tpPostRequestDecoderStandard.java:216)
       
org.n52.sos.RequestOperator.doPostOperation(RequestOperator.java:190)
        org.n52.sos.SOS.doPost(SOS.java:353)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

The log files give a longer stack trace, but end with the same messages
as shown above. Oddly, if I use the exact same request on another
deployment of the SOS Server it inserts the observation correctly.

I've attached the XML code for my InsertObservation request, but it
doesn't seem to be the problem.  Has anyone else seen a similar error
before.

Thanks for any help.

Regards,
Craig Dillabaugh





_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe

InsertObservation.xml (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Error When Inserting an Observation

Carsten Hollmann-3
Hi Craig,

We have changed the InsertObservation for om:Observation that you can
insert spatial data via the GenericObservation. In the SVN you can find
the changes since revision 7387 (committed: 2010-04-14).
But the changes are not included in the last release ( version 3.1.1).

What you can do to solve the problem:
Change 'swe:SimpleDataRecord' to 'swe:DataRecord'  in your
InsertObservation request.

Regards,
Carsten

-----

Carsten Hollmann

IfGI - Institute for Geoinformatics
University of Muenster

Mail: [hidden email]

Am 13.08.2010 20:34, schrieb Dillabough, Craig:

> Hello,
> I am having trouble getting InsertObservation to work. When I attempt to
> add an observation I get the following error message:
>
>
> java.lang.ClassCastException:
> net.opengis.swe.x101.impl.SimpleDataRecordTypeImpl cannot be cast to
> net.opengis.swe.x101.DataRecordType
>
> org.n52.sos.decode.impl.OMDecoder.parseGenericObservation(OMDecoder.java
> :975)
>
> org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.parseInsertObsReq
> uest(HttpPostRequestDecoderStandard.java:285)
>
> org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.receiveRequest(Ht
> tpPostRequestDecoderStandard.java:216)
>
> org.n52.sos.RequestOperator.doPostOperation(RequestOperator.java:190)
> org.n52.sos.SOS.doPost(SOS.java:353)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> The log files give a longer stack trace, but end with the same messages
> as shown above. Oddly, if I use the exact same request on another
> deployment of the SOS Server it inserts the observation correctly.
>
> I've attached the XML code for my InsertObservation request, but it
> doesn't seem to be the problem.  Has anyone else seen a similar error
> before.
>
> Thanks for any help.
>
> Regards,
> Craig Dillabaugh
>
>
>
>
>
>
>
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://www2.52north.org/mailman/listinfo/swe
_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Error When Inserting an Observation

Dillabough, Craig
Carsten,

Thank you. That worked perfectly!

So just to clarify that I understand correctly. The current code in the
SVN would support 'swe:SimpleDataRecord', as will future releases? Is
that correct?

Cheers,
Craig

-----Original Message-----
From: Carsten Hollmann [mailto:[hidden email]]
Sent: Saturday, August 14, 2010 5:44 AM
To: Sensor Web developer communication
Cc: Dillabough, Craig
Subject: Re: [52N SWE] Error When Inserting an Observation


Hi Craig,

We have changed the InsertObservation for om:Observation that you can
insert spatial data via the GenericObservation. In the SVN you can find
the changes since revision 7387 (committed: 2010-04-14).
But the changes are not included in the last release ( version 3.1.1).

What you can do to solve the problem:
Change 'swe:SimpleDataRecord' to 'swe:DataRecord'  in your
InsertObservation request.

Regards,
Carsten

-----

Carsten Hollmann

IfGI - Institute for Geoinformatics
University of Muenster

Mail: [hidden email]

Am 13.08.2010 20:34, schrieb Dillabough, Craig:
> Hello,
> I am having trouble getting InsertObservation to work. When I attempt
to
> add an observation I get the following error message:
>
>
> java.lang.ClassCastException:
> net.opengis.swe.x101.impl.SimpleDataRecordTypeImpl cannot be cast to
> net.opengis.swe.x101.DataRecordType
>
>
org.n52.sos.decode.impl.OMDecoder.parseGenericObservation(OMDecoder.java
> :975)
>
>
org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.parseInsertObsReq
> uest(HttpPostRequestDecoderStandard.java:285)
>
>
org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.receiveRequest(Ht
> tpPostRequestDecoderStandard.java:216)
>
> org.n52.sos.RequestOperator.doPostOperation(RequestOperator.java:190)
> org.n52.sos.SOS.doPost(SOS.java:353)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
> The log files give a longer stack trace, but end with the same
messages

> as shown above. Oddly, if I use the exact same request on another
> deployment of the SOS Server it inserts the observation correctly.
>
> I've attached the XML code for my InsertObservation request, but it
> doesn't seem to be the problem.  Has anyone else seen a similar error
> before.
>
> Thanks for any help.
>
> Regards,
> Craig Dillabaugh
>
>
>
>
>
>
>
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://www2.52north.org/mailman/listinfo/swe
_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe
Reply | Threaded
Open this post in threaded view
|

Re: [52N SWE] Error When Inserting an Observation

Carsten Hollmann-3
Hi Craig,

No, the current code in the SVN only supports 'swe:DataRecord' and
future releases will only support 'swe:DataRecord', too.

Unless we have time to add the support for 'swe:SimpleDataRecord' in the
future for numeric and text values. But 'swe:SimpleDataRecord' is less
powerful then 'swe:DataRecord'.

Cheers,
Carsten

-----

Carsten Hollmann

IfGI - Institute for Geoinformatics
University of Muenster

Mail: [hidden email]

Am 16.08.2010 16:13, schrieb Dillabough, Craig:

> Carsten,
>
> Thank you. That worked perfectly!
>
> So just to clarify that I understand correctly. The current code in the
> SVN would support 'swe:SimpleDataRecord', as will future releases? Is
> that correct?
>
> Cheers,
> Craig
>
> -----Original Message-----
> From: Carsten Hollmann [mailto:[hidden email]]
> Sent: Saturday, August 14, 2010 5:44 AM
> To: Sensor Web developer communication
> Cc: Dillabough, Craig
> Subject: Re: [52N SWE] Error When Inserting an Observation
>
>
> Hi Craig,
>
> We have changed the InsertObservation for om:Observation that you can
> insert spatial data via the GenericObservation. In the SVN you can find
> the changes since revision 7387 (committed: 2010-04-14).
> But the changes are not included in the last release ( version 3.1.1).
>
> What you can do to solve the problem:
> Change 'swe:SimpleDataRecord' to 'swe:DataRecord'  in your
> InsertObservation request.
>
> Regards,
> Carsten
>
> -----
>
> Carsten Hollmann
>
> IfGI - Institute for Geoinformatics
> University of Muenster
>
> Mail: [hidden email]
>
> Am 13.08.2010 20:34, schrieb Dillabough, Craig:
>> Hello,
>> I am having trouble getting InsertObservation to work. When I attempt
> to
>> add an observation I get the following error message:
>>
>>
>> java.lang.ClassCastException:
>> net.opengis.swe.x101.impl.SimpleDataRecordTypeImpl cannot be cast to
>> net.opengis.swe.x101.DataRecordType
>>
>>
> org.n52.sos.decode.impl.OMDecoder.parseGenericObservation(OMDecoder.java
>> :975)
>>
>>
> org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.parseInsertObsReq
>> uest(HttpPostRequestDecoderStandard.java:285)
>>
>>
> org.n52.sos.decode.impl.HttpPostRequestDecoderStandard.receiveRequest(Ht
>> tpPostRequestDecoderStandard.java:216)
>>
>> org.n52.sos.RequestOperator.doPostOperation(RequestOperator.java:190)
>> org.n52.sos.SOS.doPost(SOS.java:353)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>
>> The log files give a longer stack trace, but end with the same
> messages
>> as shown above. Oddly, if I use the exact same request on another
>> deployment of the SOS Server it inserts the observation correctly.
>>
>> I've attached the XML code for my InsertObservation request, but it
>> doesn't seem to be the problem.  Has anyone else seen a similar error
>> before.
>>
>> Thanks for any help.
>>
>> Regards,
>> Craig Dillabaugh
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> SWE mailing list
>> [hidden email]
>> http://www2.52north.org/mailman/listinfo/swe
>
_______________________________________________
SWE mailing list
[hidden email]
http://www2.52north.org/mailman/listinfo/swe