Ok, just dug in to this a bit, since I got the error on GeoServer. The
original commit was done by Jesse, and added a dependency on an arcsde
jar. Which must have contained this class. I also found this page:
http://gee.cs.oswego.edu/dl/concurrency-interest/index.html Which would
appear to be the same code, in line with what Jody said that it made
it's way in to Java 1.5.
I downloaded the jsr166 jar that is there, unfortunately it does not
contain that package. So I think the thing to do is to change the
package to be java.util.concurrent, and add the jsr166 jar in the
pom.xml, so that it works with 1.4. And then I believe everything
should be good to go.
C
Richard Gould wrote:
This one seems weird to me. The shapefile plugin pom.xml declares no
such dependency. What's the name of the jar that should contain this
ConcurrentHashMap class?
Richard
Jody Garnett wrote:
todd runstein wrote:
I have a ShapefileDataStore that I'm trying to render
with StreamingRenderer. I was able to do this in 2.2
M2, but in 2.2 RC3 I get an error (trace follows). I
am able to render a TigerDataStore with the same code,
but shapefiles throw the error.
The ConcurrentHashMap class isn't in any of the jars
for either version. Is this a new dependency that I
don't have? If so, what am I missing and where do I
get it?
I think this error goes out to Richard who put together the 2.2.RC3 list...
Richard is their a chance we missed switching something over to the
concurrency package?
Their is a great set of concurrency classes that has been adopted first by
esri and then by Java 5. The library is available seperatly and we now use
the original in geotools so as to still work with Java 1.4.
The motivation for the release of 2.2.RC3 was to remove the direct
dependency on ESRI code (even just stuff they repackaged).
Jody
Thanks,
Todd
Here's the trace:
java.lang.NoClassDefFoundError:
EDU/oswego/cs/dl/util/concurrent/ConcurrentHashMap
at org.geotools.data.Diff.<init>(Diff.java:69)
at
org.geotools.data.TransactionStateDiff.diff(TransactionStateDiff.java:100)
at
org.geotools.data.AbstractDataStore.getFeatureReader(AbstractDataStore.java:358)
at
org.geotools.data.DefaultFeatureResults.reader(DefaultFeatureResults.java:147)
at
org.geotools.renderer.lite.StreamingRenderer.getReader(StreamingRenderer.java:1090)
at
org.geotools.renderer.lite.StreamingRenderer.processStylers(StreamingRenderer.java:1188)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:506)
at
org.geotools.renderer.lite.StreamingRenderer.paint(StreamingRenderer.java:412)
at
com.mymaps.viewers.AbstractViewer$ImageGenerator.construct(AbstractViewer.java:765)
at
javax.swing.SwingWorker3.SwingWorker$2.run(SwingWorker.java:108)
at java.lang.Thread.run(Thread.java:534)
The only "dumb question" is the one you were too afraid to ask.
________________________________________
Check out RouteRuler - Free software for runners, cyclists, walkers, etc.
http://routeruler.sourceforge.net
________________________________________
Get a handle on your data with "pocOLAP", the "little" OLAP project
http://pocolap.sourceforge.net
________________________________________
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Geotools-gt2-users mailing list
Geotools-gt2-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel
!DSPAM:1003,4497097921638365517736!
--
Chris Holmes
The Open Planning Project
http://topp.openplans.org
begin:vcard
fn:Chris Holmes
n:Holmes;Chris
org:The Open Planning Project
adr:;;377 Broadway, 11th Floor;New York;NY;10013;USA
email;internet:[EMAIL PROTECTED]
title:VP, Strategic Development
x-mozilla-html:FALSE
url:http://topp.openplans.org
version:2.1
end:vcard
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Geotools-devel mailing list
Geotools-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-devel