From: Aaron J. <yo...@ml...> - 2006-03-27 20:06:55
|
Ok, I've been working on a problem with updating data through WFS-T for a while. I have now managed to update data in a shape file without any problems. The big problem now is I'm getting a ClassCastException when I try to use WFS-T to update with the same method. The stack trace I get is: Exception in thread "Thread-4" java.lang.ClassCastException: org.geotools.data.wfs.WFSTransactionState at org.geotools.data.AbstractDataStore.state(AbstractDataStore.java:455) at org.geotools.data.AbstractDataStore.getFeatureWriter(AbstractDataStore.java:513) at org.geotools.data.AbstractDataStore.getFeatureWriterAppend(AbstractDataStore.java:531) at mcmc.client.resource.WFSClient.addRoad(WFSClient.java:306) at mcmc.client.WFSTEntry$1.run(WFSTEntry.java:428) I'm just using the default transaction with tasmania_cities. Should I be doing something different for the Transaction? Transaction t = new DefaultTransaction(); WFSFeatureStore fs = (WFSFeatureStore)ds.getFeatureSource("topp:tasmania_cities"); fs.setTransaction(t); Yolan ************************************************* * Yolan (Aaron Jackson) yo...@ml... * * http://mlug.missouri.edu/~yolan/ * * AIM: YolanLINUX, YolanOTHER, YolanLAPTOP * * ICQ: 74624109 * ************************************************* * Doubling Technologies * ************************** |