java.lang.IllegalArgumentException: Argument "sourceCRS" should not be null.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via Geographic Information Systems by Tom
, 1 year ago
Argument "sourceCRS" should not be null.
via Google Groups by Micho Gar, 1 year ago
El argumento "targetCRS" no debe ser nulo.(The targetCRS argument must not be null)
via Google Groups by Nawaz Khurshid, 5 months ago
java.lang.IllegalArgumentException: Argument "sourceCRS" should not be null.
at org.geotools.referencing.operation.AbstractCoordinateOperationFactory.ensureNonNull(AbstractCoordinateOperationFactory.java:734)
at org.geotools.referencing.operation.BufferedCoordinateOperationFactory.createOperation(BufferedCoordinateOperationFactory.java:249)
at org.geotools.referencing.CRS.findMathTransform(CRS.java:1205)
at org.geotools.referencing.CRS.findMathTransform(CRS.java:1173)
at org.geotools.swt.SwtMapPane.setCrs(SwtMapPane.java:436)
at org.geotools.swt.SwtMapPane.layerAdded(SwtMapPane.java:812)
at org.geotools.map.MapContent.fireLayerAdded(MapContent.java:468)
at org.geotools.map.MapContent$LayerList.addIfAbsent(MapContent.java:1063)
at org.geotools.map.MapContent.addLayer(MapContent.java:369)
at org.geotools.JSurveyMvn.App.fileOpen(App.java:87)
at org.geotools.JSurveyMvn.App$1.widgetSelected(App.java:113)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:234)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1258)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3540)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
at org.geotools.JSurveyMvn.App.(App.java:47)
at org.geotools.JSurveyMvn.App.main(App.java:58)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.