-
Notifications
You must be signed in to change notification settings - Fork 78
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
problem when import osm data #613
Comments
You have deleted the issue template: NoiseModelling version Geoserver log Attach geoserver log located in data_dir\logs\geoserver.log |
sorry. |
19 004 16:04:22 INFO [geoserver.logging] - Log4j 2 configuration set to CUSTOM_LOGGING.xml |
Reader is null so the path is none of this cases. if (pathFile.endsWith(".pbf")) {
InputStream inputStream = new FileInputStream(pathFile);
reader = new OsmosisReader(inputStream);
} else if (pathFile.endsWith(".osm")) {
reader = new XmlReader(new File(pathFile), true, CompressionMethod.None);
} else if (pathFile.endsWith(".osm.gz")) {
reader = new XmlReader(new File(pathFile), true, CompressionMethod.GZip);
} The code should be smarter when detecting extension ( throw error in a else and also should call lowercase) |
…a more explicit error
About #613 handle wrong file extension with a more explicit error
Process failed during execution javax.script.ScriptException: java.lang.NullPointerException: Cannot invoke method setSink() on null object java.lang.NullPointerException: Cannot invoke method setSink() on null object Cannot invoke method setSink() on null object
WPS report when try to import osm file, pbf format
The text was updated successfully, but these errors were encountered: