I am also new to google visualization api and appengine. My issue is that I 
have a working chart page in the local environment but when I deploy it to 
appengine I am getting this error:

java.lang.NoSuchMethodError: 
com.google.common.collect.ImmutableList.copyOf(Ljava/util/Collection;)Lcom/google/common/collect/ImmutableList;


I had the same error before copying the guava and guava JWT jar to the 
.../eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.8.3/appengine-java-sdk-1.8.3/lib/impl


How can I include the guava jars on the appengine ?


Thanks in advance for your help.




On Thursday, October 13, 2011 5:28:18 AM UTC-4, P G wrote:
>
> Hi, 
>
> I am new to this google visualization api. I am trying to create 
> datatable from java backend and javascript will create chart for me 
> using google visualization javascript API. 
> Java code - 
> while (itr.hasNext()) { 
>                                         DatamartPrice priceObj = 
> (DatamartPrice) itr.next(); 
>                                         TableRow row = new TableRow(); 
>                                         
> row.addCell(priceObj.getValueDate().toString()); 
>
>                                         row.addCell(priceObj.getValue()); 
>                                         chartDataTable.addRow(row); 
>                                 } 
>
> Jar files in classpath are - visualization-datasource-1.1.1.jar and 
> google-collections-1.0-rc4.jar 
>
> Exception is thorwn on line chartDataTable.addRow(row); 
>
> java.lang.NoSuchMethodError: 
> com.google.common.collect.ImmutableList.copyOf(Ljava/util/ 
> Collection;)Lcom/google/common/collect/ImmutableList; 
>         at 
> com.google.visualization.datasource.datatable.TableRow.getCells(Unknown 
> Source) 
>         at 
> com.google.visualization.datasource.datatable.DataTable.addRow(Unknown 
> Source) 
>         at 
> com.jpmorgan.research.cfp.datamart.DatamartUtil.getDatamartPriceDataForGraph(DatamartUtil.java:
>  
>
> 49) 
>         at 
> com.jpmorgan.research.cfp.servlets.PerformanceChartServlet.doGet(PerformanceChartServlet.java:
>  
>
> 57) 
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) 
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) 
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
>  
>
> 290) 
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
>  
>
> 206) 
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
>  
>
> 233) 
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
>  
>
> 191) 
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java: 
> 127) 
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java: 
> 102) 
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: 
>
> 109) 
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: 
> 291) 
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java: 
> 859) 
>         at org.apache.coyote.http11.Http11Protocol 
> $Http11ConnectionHandler.process(Http11Protocol.java:602) 
>         at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java: 
> 489) 
>         at java.lang.Thread.run(Thread.java:619) 
>
>
> Can someone help me to resolve this issue? 
>
> Thanks, 
> PG

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to