Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [geomesa-users] GeoServer plugin throwing String to java.io.File error

Chris,

Apparently my ability to read has been compromised :p  

I have been able to get  back to this project for a little while today.

I clicked through the Raster Data Sources Accumulo... when I have been testing through the Vector Data Sources Accumulo...

Once I add to the correct section, my table is exposed as normal. I still run into issues with ClassNotFoundExceptions.  Maybe I missed something in building?

This is an example error

lookup failed for tablet 2;13;12
	java.io.IOException: java.lang.ClassNotFoundException: geomesa.core.iterators.AggregatingCombiner
		at org.apache.accumulo.core.iterators.IteratorUtil.loadIterators(IteratorUtil.java:250)
		at org.apache.accumulo.core.iterators.IteratorUtil.loadIterators(IteratorUtil.java:215)
		at org.apache.accumulo.core.iterators.IteratorUtil.loadIterators(IteratorUtil.java:193)
		at org.apache.accumulo.server.tabletserver.Tablet$ScanDataSource.createIterator(Tablet.java:2109)
		at org.apache.accumulo.server.tabletserver.Tablet$ScanDataSource.iterator(Tablet.java:2047)
		at org.apache.accumulo.core.iterators.system.SourceSwitchingIterator.seek(SourceSwitchingIterator.java:163)
		at org.apache.accumulo.server.tabletserver.Tablet.lookup(Tablet.java:1625)
		at org.apache.accumulo.server.tabletserver.Tablet.lookup(Tablet.java:1730)
		at org.apache.accumulo.server.tabletserver.TabletServer$ThriftClientHandler$LookupTask.run(TabletServer.java:1038)
		at org.apache.accumulo.trace.instrument.TraceRunnable.run(TraceRunnable.java:47)
		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
		at org.apache.accumulo.trace.instrument.TraceRunnable.run(TraceRunnable.java:47)
		at org.apache.accumulo.core.util.LoggingRunnable.run(LoggingRunnable.java:34)
		at java.lang.Thread.run(Thread.java:744)
	Caused by: java.lang.ClassNotFoundException: geomesa.core.iterators.AggregatingCombiner
		at org.apache.commons.vfs2.impl.VFSClassLoader.findClass(VFSClassLoader.java:175)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
		at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
		at org.apache.accumulo.start.classloader.vfs.AccumuloVFSClassLoader.loadClass(AccumuloVFSClassLoader.java:103)
		at org.apache.accumulo.core.iterators.IteratorUtil.loadIterators(IteratorUtil.java:234)
		... 14 more

Thanks,

Chris Snider
Senior Software Engineer
Intelligent Software Solutions, Inc.



-----Original Message-----
From: geomesa-users-bounces@xxxxxxxxxxxxxxxx [mailto:geomesa-users-bounces@xxxxxxxxxxxxxxxx] On Behalf Of Chris Eichelberger
Sent: Tuesday, June 17, 2014 12:27 PM
To: Geomesa User discussions
Subject: Re: [geomesa-users] GeoServer plugin throwing String to java.io.File error

Chris,

If you want a raster version of some part of your data, WMS is the best way to do that.

The coverage format is half of a feature that we have not finished integrating into GeoMesa that supports writing and reading rasters on a pixel-by-pixel basis.  It is not tied to the feature store.

Sorry for the confusion.

Sincerely,
  -- Chris Eichelberger


On Tue, 2014-06-17 at 18:20 +0000, Chris Snider wrote:
> Hi,
> 
>  
> 
> I rebuilt my GeoServer to 2.5 and GeoTools 11.0 to integrate with 
> GeoMesa 1.5.x/1.x that I recently built.  Once my GeoServer admin 
> screens are available, I tried to add the new raster data source from 
> my updated accumulo store and get the following error
> 
>  
> 
> 17 Jun 12:12:30 INFO [geoserver.web] - Getting list of coverages for 
> saved store 
> accumulo://USERNAME:PASSWORD@INSTANCE_NAME/TABLE_NAME//#resolution=#zo
> okeepers=MY_ZOOKEEPER_LEADER.com:2181#auths=COMMA,AUTHS
> 
> java.lang.RuntimeException: Could not list layers for this store, an 
> error occurred retrieving them: java.lang.String cannot be cast to 
> java.io.File
> 
>         at
> org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(New
> LayerPageProvider.java:150)
> 
>         at
> org.geoserver.web.data.layer.NewLayerPageProvider.getItems(NewLayerPag
> eProvider.java:58)
> 
>         at
> org.geoserver.web.wicket.GeoServerDataProvider.fullSize(GeoServerDataP
> rovider.java:236)
> 
>         at org.geoserver.web.wicket.GeoServerTablePanel
> $PagerDelegate.updateMatched(GeoServerTablePanel.java:562)
> 
>         at org.geoserver.web.wicket.GeoServerTablePanel
> $PagerDelegate.<init>(GeoServerTablePanel.java:555)
> 
>         at
> org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePane
> l.java:219)
> 
>         at
> org.geoserver.web.wicket.GeoServerTablePanel.<init>(GeoServerTablePane
> l.java:98)
> 
>         at org.geoserver.web.data.layer.NewLayerPage
> $1.<init>(NewLayerPage.java:101)
> 
>         at
> org.geoserver.web.data.layer.NewLayerPage.<init>(NewLayerPage.java:101
> )
> 
>         at
> org.geoserver.web.data.store.CoverageStoreNewPage.onSuccessfulSave(Cov
> erageStoreNewPage.java:76)
> 
>         at
> org.geoserver.web.data.store.CoverageStoreNewPage.onSave(CoverageStore
> NewPage.java:67)
> 
>         at org.geoserver.web.data.store.AbstractCoverageStorePage
> $1.onSubmit(AbstractCoverageStorePage.java:115)
> 
>         at org.apache.wicket.ajax.markup.html.form.AjaxSubmitLink
> $1.onSubmit(AjaxSubmitLink.java:68)
> 
>         at
> org.apache.wicket.ajax.form.AjaxFormSubmitBehavior.onEvent(AjaxFormSub
> mitBehavior.java:143)
> 
>         at
> org.apache.wicket.ajax.AjaxEventBehavior.respond(AjaxEventBehavior.jav
> a:177)
> 
>         at
> org.apache.wicket.ajax.AbstractDefaultAjaxBehavior.onRequest(AbstractD
> efaultAjaxBehavior.java:300)
> 
>         at
> org.apache.wicket.request.target.component.listener.BehaviorRequestTar
> get.processEvents(BehaviorRequestTarget.java:119)
> 
>         at
> org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(
> AbstractRequestCycleProcessor.java:92)
> 
>         at
> org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.ja
> va:1250)
> 
>         at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329)
> 
>         at
> org.apache.wicket.RequestCycle.steps(RequestCycle.java:1436)
> 
>         at
> org.apache.wicket.RequestCycle.request(RequestCycle.java:545)
> 
>         at
> org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:4
> 84)
> 
>         at
> org.apache.wicket.protocol.http.WicketServlet.doPost(WicketServlet.jav
> a:160)
> 
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> 
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 
>         at
> org.springframework.web.servlet.mvc.ServletWrappingController.handleRe
> questInternal(ServletWrappingController.java:159)
> 
>         at
> org.springframework.web.servlet.mvc.AbstractController.handleRequest(A
> bstractController.java:153)
> 
>         at
> org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.han
> dle(SimpleControllerHandlerAdapter.java:48)
> 
>         at
> org.springframework.web.servlet.DispatcherServlet.doDispatch(Dispatche
> rServlet.java:923)
> 
>         at
> org.springframework.web.servlet.DispatcherServlet.doService(Dispatcher
> Servlet.java:852)
> 
>         at
> org.springframework.web.servlet.FrameworkServlet.processRequest(Framew
> orkServlet.java:882)
> 
>         at
> org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServl
> et.java:789)
> 
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:646)
> 
>         at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:303)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.geoserver.filters.ThreadLocalsCleanupFilter.doFilter(ThreadLocalsC
> leanupFilter.java:27)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at org.geoserver.filters.SpringDelegatingFilter
> $Chain.doFilter(SpringDelegatingFilter.java:74)
> 
>         at
> org.geoserver.wms.animate.AnimatorFilter.doFilter(AnimatorFilter.java:
> 70)
> 
>         at org.geoserver.filters.SpringDelegatingFilter
> $Chain.doFilter(SpringDelegatingFilter.java:70)
> 
>         at
> org.geoserver.filters.SpringDelegatingFilter.doFilter(SpringDelegating
> Filter.java:45)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.geoserver.platform.AdvancedDispatchFilter.doFilter(AdvancedDispatc
> hFilter.java:49)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at org.springframework.security.web.FilterChainProxy
> $VirtualFilterChain.doFilter(FilterChainProxy.java:311)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
> 
>         at
> org.springframework.security.web.access.intercept.FilterSecurityInterc
> eptor.invoke(FilterSecurityInterceptor.java:116)
> 
>         at
> org.springframework.security.web.access.intercept.FilterSecurityInterc
> eptor.doFilter(FilterSecurityInterceptor.java:83)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
> 
>         at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoSer
> verCompositeFilter.java:91)
> 
>         at org.springframework.security.web.FilterChainProxy
> $VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
> 
>         at
> org.springframework.security.web.access.ExceptionTranslationFilter.doF
> ilter(ExceptionTranslationFilter.java:113)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
> 
>         at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoSer
> verCompositeFilter.java:91)
> 
>         at org.springframework.security.web.FilterChainProxy
> $VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> 
>         at
> org.geoserver.security.filter.GeoServerAnonymousAuthenticationFilter.d
> oFilter(GeoServerAnonymousAuthenticationFilter.java:53)
> 
>         at org.springframework.security.web.FilterChainProxy
> $VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
> 
>         at
> org.springframework.security.web.authentication.AbstractAuthentication
> ProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:
> 182)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
> 
>         at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoSer
> verCompositeFilter.java:91)
> 
>         at
> org.geoserver.security.filter.GeoServerUserNamePasswordAuthenticationF
> ilter.doFilter(GeoServerUserNamePasswordAuthenticationFilter.java:115)
> 
>         at org.springframework.security.web.FilterChainProxy
> $VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
> 
>         at
> org.springframework.security.web.authentication.rememberme.RememberMeA
> uthenticationFilter.doFilter(RememberMeAuthenticationFilter.java:146)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
> 
>         at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoSer
> verCompositeFilter.java:91)
> 
>         at org.springframework.security.web.FilterChainProxy
> $VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:68)
> 
>         at
> org.springframework.security.web.context.SecurityContextPersistenceFil
> ter.doFilter(SecurityContextPersistenceFilter.java:87)
> 
>         at
> org.geoserver.security.filter.GeoServerSecurityContextPersistenceFilte
> r$1.doFilter(GeoServerSecurityContextPersistenceFilter.java:52)
> 
>         at org.geoserver.security.filter.GeoServerCompositeFilter
> $NestedFilterChain.doFilter(GeoServerCompositeFilter.java:72)
> 
>         at
> org.geoserver.security.filter.GeoServerCompositeFilter.doFilter(GeoSer
> verCompositeFilter.java:91)
> 
>         at org.springframework.security.web.FilterChainProxy
> $VirtualFilterChain.doFilter(FilterChainProxy.java:323)
> 
>         at
> org.springframework.security.web.FilterChainProxy.doFilter(FilterChain
> Proxy.java:173)
> 
>         at
> org.geoserver.security.GeoServerSecurityFilterChainProxy.doFilter(GeoS
> erverSecurityFilterChainProxy.java:134)
> 
>         at
> org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(De
> legatingFilterProxy.java:346)
> 
>         at
> org.springframework.web.filter.DelegatingFilterProxy.doFilter(Delegati
> ngFilterProxy.java:259)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.geoserver.filters.LoggingFilter.doFilter(LoggingFilter.java:75)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.geoserver.filters.GZIPFilter.doFilter(GZIPFilter.java:42)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.geoserver.filters.SessionDebugFilter.doFilter(SessionDebugFilter.j
> ava:47)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.geoserver.filters.FlushSafeFilter.doFilter(FlushSafeFilter.java:43
> )
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.vfny.geoserver.filters.SetCharacterEncodingFilter.doFilter(SetChar
> acterEncodingFilter.java:109)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cationFilterChain.java:241)
> 
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
> lterChain.java:208)
> 
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
> lve.java:220)
> 
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
> lve.java:122)
> 
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticat
> orBase.java:501)
> 
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
> va:170)
> 
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
> va:98)
> 
>         at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:9
> 50)
> 
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
> e.java:116)
> 
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
> :408)
> 
>         at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp1
> 1Processor.java:1040)
> 
>         at org.apache.coyote.AbstractProtocol
> $AbstractConnectionHandler.process(AbstractProtocol.java:607)
> 
>         at org.apache.tomcat.util.net.JIoEndpoint
> $SocketProcessor.run(JIoEndpoint.java:313)
> 
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.j
> ava:1145)
> 
>         at java.util.concurrent.ThreadPoolExecutor
> $Worker.run(ThreadPoolExecutor.java:615)
> 
>         at java.lang.Thread.run(Thread.java:744)
> 
> Caused by: java.lang.ClassCastException: java.lang.String cannot be 
> cast to java.io.File
> 
>         at
> geomesa.plugin.wms.CoverageFormat.getReader(CoverageFormat.scala:53)
> 
>         at
> geomesa.plugin.wms.CoverageFormat.getReader(CoverageFormat.scala:26)
> 
>         at
> org.geoserver.catalog.ResourcePool.getGridCoverageReader(ResourcePool.
> java:1293)
> 
>         at
> org.geoserver.catalog.impl.CoverageStoreInfoImpl.getGridCoverageReader
> (CoverageStoreInfoImpl.java:58)
> 
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
> ava:57)
> 
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
> orImpl.java:43)
> 
>         at java.lang.reflect.Method.invoke(Method.java:606)
> 
>         at
> org.geoserver.catalog.impl.ModificationProxy.invoke(ModificationProxy.
> java:145)
> 
>         at com.sun.proxy.$Proxy9.getGridCoverageReader(Unknown Source)
> 
>         at
> org.geoserver.web.data.layer.NewLayerPageProvider.getItemsInternal(New
> LayerPageProvider.java:89)
> 
>         ... 117 more
> 
>  
> 
> Anyone else seen this issue?
> 
>  
> 
> Thanks,
> 
>  
> 
> Chris Snider
> 
> Senior Software Engineer
> 
> Intelligent Software Solutions, Inc.
> 
> Description: Description: Description:
> cid:image001.png@01CA1F1F.CBC93990
> 
>  
> 
> 
> _______________________________________________
> geomesa-users mailing list
> geomesa-users@xxxxxxxxxxxxxxxx
> http://www.locationtech.org/mailman/listinfo/geomesa-users

_______________________________________________
geomesa-users mailing list
geomesa-users@xxxxxxxxxxxxxxxx
http://www.locationtech.org/mailman/listinfo/geomesa-users


Back to the top