This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Import fails with SocketTimeoutException (through duplicate key value) or ExceptionReport: null #44
Comments
This was referenced Jul 21, 2015
With the help of @CarstenHollmann and the SOS server log level set to
Looking at the sensordata.csv.52n-sos-import-config-0.5.xml we discovered that I was using the same identifier for multiple columns in the .csv file. I am going to create a new configuration file. Please decide if you want to use the above information to enhance the error output of the importer. |
johnjohndoe
changed the title
Import fails with SocketTimeoutException or ExceptionReport: null
Import fails with SocketTimeoutException (through duplicate key value) or ExceptionReport: null
Jul 29, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I am using the latest development version at commit d678a8b. I am trying to import a single row. This process fails in different scenarios. I boiled it down to the following.
Test files
These files can be used to reproduce the errors:
Shell command
I use the following command to execute the importer and write the console output to a log file.
$ java -jar ./feeder/target/52n-sos-importer-feeder-bin.jar \ -c sensordata.csv.52n-sos-import-config-0.5.xml \ -d sensordata-dummy-1.csv > /tmp/sensordata-dummy-1a.log
The names of the data file and log files change within the scenarios and subsequent runs.
Scenario 1
The SOS instance has enabled the following insert operations:
InsertObservation
,InsertSensor
.InsertResult
andInsertResultTemplate
are disabled as shown in the screenshot.At the 1st run the import fails with a
SocketTimeoutException: Read timed out
for each sensor value. When I run the same import a 2nd time the line is skipped.The failure of the 1st run can be reproduced by simply renaming the data input file.
Scenario 2
In the scenario I renamed the data file to avoid that the row is skipped.
The SOS instance has enabled the following insert operations:
InsertObservation
,InsertSensor
,InsertResult
andInsertResultTemplate
as shown in the screenshot.At the 1st run the import fails with
org.n52.oxf.ows.ExceptionReport: null
. When I run the same import a 2nd time the line is skipped.The text was updated successfully, but these errors were encountered: