-
Notifications
You must be signed in to change notification settings - Fork 82
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migrated 4.3.x database to 4.4.0 - GetDataAvailability throws error #557
Comments
Hi David, in the featureofinterest table an existing column was modified which is not considered by the update functionality. These changes have to be made manually with a SQL script. Execute the following SQL scripts:
Best, |
Thanks Carsten, I added those lines to my deployment script, and GetDataAvailability now works with both (SOS2.0,POX) versions in the client's examples. It raised another issue when I tried to add a sensor using the client's example
I updated the database with the following and it then inserted OK, and observations were inserted against it OK too. I guess the question is, is it OK to set that to null - I assume so.
It raises another issue now, but I don't know if I should open a new ticket here, or in your API project. The API, when using only the imported/modified 4.3.8 database, shows nothing under quantities, e.g. features, procedures, when I use: After adding the SOS client's example sensor, and some observations under it, the API now shows that example sensor's details in the expanded services. |
Hi David, the REST-API requires a new column in the series table which is created during the update process but not filled with data. Please run this SQL script to insert the required information into the column. Then the REAT-API should show data. Best, |
I forgot the say a word to the SQL statement you mentiond. Best, |
Hi Carsten - that's it working perfectly now with the client and the API, thanks for the help. :-) |
Hi,
I installed the recently released 4.4.0 SOS Bundle, and during install I used an existing 4.3.8 database. I asked it to upgrade and it seemed to work, there were no errors that I saw. The installation finished as normal after settings, credentials registration.
On the client provided, I tried a GetDataAvailability request example (both versions that are available) with no filtering criteria. For both I received the following reply:
<ows:Exception exceptionCode="NoApplicableCode"> <ows:ExceptionText>Error while querying data for GetDataAvailability! [EXCEPTION]: Object [id=4] was not of the specified subclass [org.n52.sos.ds.hibernate.entities.feature.AbstractFeatureOfInterest] : Discriminator: T</ows:ExceptionText>
Looking in the log file I get the same error there:
2017-07-20 08:05:57,660 INFO [http-nio-8080-exec-6] [DefaultLoadEventListener.java:159] HHH000327: Error performing load command : org.hibernate.WrongClassException: Object [id=4] was not of the specified subclass [org.n52.sos.ds.hibernate.entities.feature.AbstractFeatureOfInterest] : Discriminator: T
The database works OK when used with the 3.8.15 release, both using the bundled client and REST API. I saw the #554 issue and wondered if it is related to that?
David
The text was updated successfully, but these errors were encountered: