Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host - while writing to the csv file
Can anyone please suggest how to resolve this exception. I implemented a code which writes huge data to the csv file. I don't know why the connection is getting out. org.mortbay.jetty.EofException org.mortbay.jetty.EofException org.mortbay.jetty.HttpConnection$Output@f09f9a at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:760) at org.mortbay.jetty.AbstractGenerator$Output.flush(AbstractGenerator.java:566) at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:911) at sun.nio.cs.StreamEncoder.implFlush(StreamEncoder.java:297) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:141) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:229) at java.io.BufferedWriter.flush(BufferedWriter.java:254) at com.fedex.forecast.datamart.server.util.CSVFileDownloadServlet.writeCsv(CSVFileDownloadServlet.java:180) at com.fedex.forecast.datamart.server.util.CSVFileDownloadServlet.doPost(CSVFileDownloadServlet.java:75) at com.fedex.forecast.datamart.server.util.CSVFileDownloadServlet.doGet(CSVFileDownloadServlet.java:38) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) Caused by: java.io.IOException: An existing connection was forcibly closed by the remote host at sun.nio.ch.SocketDispatcher.write0(Native Method) at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:51) at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:94) at sun.nio.ch.IOUtil.write(IOUtil.java:51) at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:450) at org.mortbay.io.nio.ChannelEndPoint.flush(ChannelEndPoint.java:160) at org.mortbay.io.nio.SelectChannelEndPoint.flush(SelectChannelEndPoint.java:207) at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:693) ... 28 more -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
application does not open when deployed on tomcat
Hi, I deployed my application on tomcat and it doesnot open on any of the browser. It shows http 404 error . I created a war file file of the GWT application and placed it in the tomcat webapp folder. It doesnot show any error while running the server. My project name is Datamart I used http://localhost:8080/Datamart this http request to open my application . Please let me know what could be the reason? HTTP Status 404 - /Datamart -- *type* Status report *message* */Datamart* *description* *The requested resource is not available.* -- Apache Tomcat/7.0.40 Jun 22, 2013 7:20:54 PM org.apache.catalina.core.AprLifecycleListener init INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.7.0_15\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;C:\Program Files\Teradata\Client\13.0\ODBC Driver for Teradata\Lib;C:\oracle\product\10.2.0\client_1\bin;C:\Program Files\CA\SC\CAWIN\;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\PROGRA~1\CA\SC\CAM\bin;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Common Files\Roxio Shared\10.0\DLLShared\;C:\Program Files\CA\SC\CBB\;C:\Program Files\CA\DSM\bin;C:\Program Files\CA\SC\Csam\SockAdapter\bin;C:\Program Files\Teradata\Client\13.0\Shared ICU Libraries for Teradata\lib\;C:\Program Files\SAS\SharedFiles\Formats;C:\Program Files\Java\jdk1.7.0_15\bin;C:\apache-maven-3.0.5\bin;;C:\Users\937689\Downloads\eclipse;;. Jun 22, 2013 7:20:54 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["http-bio-8080"] Jun 22, 2013 7:20:54 PM org.apache.coyote.AbstractProtocol init INFO: Initializing ProtocolHandler ["ajp-bio-8009"] Jun 22, 2013 7:20:54 PM org.apache.catalina.startup.Catalina load INFO: Initialization processed in 306 ms Jun 22, 2013 7:20:54 PM org.apache.catalina.core.StandardService startInternal INFO: Starting service Catalina Jun 22, 2013 7:20:54 PM org.apache.catalina.core.StandardEngine startInternal INFO: Starting Servlet Engine: Apache Tomcat/7.0.40 Jun 22, 2013 7:20:54 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web application archive C:\Users\937689\Downloads\apache-tomcat-7.0.40\webapps\ Datamart.war Jun 22, 2013 7:20:55 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\937689\Downloads\apache-tomcat-7.0.40\webapps\docs Jun 22, 2013 7:20:55 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\937689\Downloads\apache-tomcat-7.0.40\webapps\examples Jun 22, 2013 7:20:55 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: contextInitialized() Jun 22, 2013 7:20:55 PM org.apache.catalina.core.ApplicationContext log INFO: SessionListener: contextInitialized() Jun 22, 2013 7:20:55 PM org.apache.catalina.core.ApplicationContext log INFO: ContextListener: attributeAdded('org.apache.jasper.compiler.TldLocationsCache', 'org.apache.jasper.compiler.TldLocationsCache@459fc2') Jun 22, 2013 7:20:55 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\937689\Downloads\apache-tomcat-7.0.40\webapps\host-manager Jun 22, 2013 7:20:56 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\937689\Downloads\apache-tomcat-7.0.40\webapps\manager Jun 22, 2013 7:20:56 PM org.apache.catalina.startup.HostConfig deployDirectory INFO: Deploying web application directory C:\Users\937689\Downloads\apache-tomcat-7.0.40\webapps\ROOT Jun 22, 2013 7:20:56 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["http-bio-8080"] Jun 22, 2013 7:20:56 PM org.apache.coyote.AbstractProtocol start INFO: Starting ProtocolHandler ["ajp-bio-8009"] Jun 22, 2013 7:20:56 PM org.apache.catalina.startup.Catalina start INFO: Server startup in 1295 ms -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
GWT passing value objects
In my current project I am building an interface where I will be passing huge list of values to the csv servlet class( i need to write the data to csv file) . Currently I am using window.open() method to pass the values to the csv class servlet. When the list of values to be send are huge the inbuilt jetty server closes the connection. Is there any framework in GWT i can use to send the values as a objects to the csv servlet class. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: get the month integer value by passing month name as a inout
hey i got it . thanks On Thursday, June 20, 2013 10:05:44 AM UTC-5, Jens wrote: > > GWT does not support Java's Calendar. You have to use Date directly. > > -- J. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: get the month integer value by passing month name as a inout
int it = DateTimeFormat.getFormat("MM").parse(Month).getMonth(); i used this logic but it is not returning the correct month value wat i am passing On Thursday, June 20, 2013 10:05:44 AM UTC-5, Jens wrote: > > GWT does not support Java's Calendar. You have to use Date directly. > > -- J. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: get the month integer value by passing month name as a inout
but how cud i get the specific month integer value out of the entire data On Thursday, June 20, 2013 10:05:44 AM UTC-5, Jens wrote: > > GWT does not support Java's Calendar. You have to use Date directly. > > -- J. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: get the month integer value by passing month name as a inout
hey how i do get the calendar instance in GWT On Sunday, June 16, 2013 3:13:32 PM UTC-5, Jens wrote: > > > Yes, I did but i was not able to get what I need? can you please > > > Whats the problem with DateTimeFormat? > DateTimeFormat.getFormat("M").parse("July") doesn't work? > > -- J. > > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: get the month integer value by passing month name as a inout
Yes, I did but i was not able to get what I need? can you please On Thursday, June 13, 2013 5:45:59 AM UTC-4, Frank Hossfeld wrote: > > HI, > > take a look at the DateTimeFormat class. > > Am Donnerstag, 13. Juni 2013 05:15:52 UTC+2 schrieb Shashank Beerla: >> >> Hi all, >> >> this particular logic in java returns the logic what I am asking for but >> GWT does not support java util package of calender. Can someone help me >> converting this logic with GWT util package >> >> Calendar cal = Calendar.getInstance(); >> cal.setTime(new SimpleDateFormat("MMM").parse("July"));int monthInt = >> cal.get(Calendar.MONTH) + 1; >> >> -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
Re: Problem in sending large size of data from GWT client to server by cross domain scripting
if u knw the answer y dont u give a detail procedure to follow instead scribblin somethin in vague On Thursday, May 12, 2011 4:09:52 AM UTC-4, Thomas Broyer wrote: > > There are tricks using a hidden form (FormPanel in GWT), but well, they're > a bit "hackish"... (what's hackish is communicating the result back to your > app: you have to send a redirect to a page that's the same origin as the > app, and this will call 2 FormPanel.SubmitEvent to be fired; or you could > use the "window.name" trick...) > Maybe not that helpful to you as i'm a bit "vague", but the point is: yes, > it's possible. > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/groups/opt_out.
get the month integer value by passing month name as a inout
Hi all, this particular logic in java returns the logic what I am asking for but GWT does not support java util package of calender. Can someone help me converting this logic with GWT util package Calendar cal = Calendar.getInstance(); cal.setTime(new SimpleDateFormat("MMM").parse("July"));int monthInt = cal.get(Calendar.MONTH) + 1; -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Export CellTable data to PDF and Excel Format using UIBinder
hey i have to GWT in my project, have u ever used TableToExcelClient widget? I followed the same instructions as per the https://code.google.com/p/gwt-table-to-excel/wiki/Usage but i am not able to download the data here is my code *final CellTable table = new CellTable();* * * * table.setPageSize(3);* * * * TextColumn nameColumn = new TextColumn() {* * @Override* * public String getValue(Contact object) {* *return object.name;* * }* *};* *table.addColumn(nameColumn, "Name");* ** *DateCell dateCell = new DateCell();* *Column dateColumn = new Column(dateCell) {* * @Override* * public Date getValue(Contact object) {* *return object.birthday;* * }* *};* *table.addColumn(dateColumn, "Birthday");* * * *TextColumn addressColumn = new TextColumn() {* *@Override* *public String getValue(Contact object) {* * return object.address;* *}* * };* * table.addColumn(addressColumn, "Address");* * * * final TableToExcelClient tableToExcelClient = new TableToExcelClient(table); hPanel.add(tableToExcelClient.getExportWidget()); web.xml http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; version="2.5" xmlns="http://java.sun.com/xml/ns/javaee";> sampleServlet com.fedex.forecast.datamart.server.SampleServiceImpl gwtTableToExcelServlet com.googlecode.gwtTableToExcel.server.TableToExcelServlet sampleServlet /sample2/sampleservice gwtTableToExcelServlet /sample2/excel Sample2.html gwt.xml http://google-web-toolkit.googlecode.com/svn/tags/2.5.1/distro-source/core/src/gwt-module.dtd";> but when i run the application i am not able to download excel and moreover i get an error (below message) - I have defined my url path in the web.xml as /sample/sampleservice/excel - I dont know why it still takes it as sample/excel. When i changed it in the browser to /sample/sampleservice/excel and run it i get javanullpointerexception. Can you please let me know what could be the issue HTTP ERROR: 404 NOT_FOUND RequestURI=/sample2/excel Powered by Jetty:// <http://jetty.mortbay.org/> * On Tuesday, June 4, 2013 11:07:47 AM UTC-5, Alain wrote: > > If you want to do it clientside I could recomment using ClientIO > > http://emitrom.com/announcements/flash4j-3.1-ga > > See it in action here > > http://eemi2010.github.io/ext4j/#!ClientIO > > > > > 2013/6/4 Shashank Beerla > > >> hey can u send me a complete code for celltable export to excel >> >> >> On Friday, May 25, 2012 9:21:38 AM UTC-5, Joseph Lust wrote: >>> >>> The gist is to: >>> >>>1. Get a list of all records you need to export from the celltable >>>on the client browser (and the sorting information). >>>2. Return this to the server. >>>3. Fetch all the information from (1). >>>4. Build into an Excel or CSV output using POI or similar. >>> >>> In reality it can be quite a pain. I implemented it in ExtJs grids using >>> POI and had to have columns in any order user had rearranged them to, >>> columns shown/hidden if user had changed them, numeric values as numeric >>> type in exported Excel file... etc. You probably want to try to use a >>> library to achieve this rather than write it yourself. >>> >>> I've not used this library, but it looks like a good start: >>> GWT-Table-To-Excel >>> http://**code.google.com/p/gwt-table-**to-excel/<http://code.google.com/p/gwt-table-to-excel/> >>> Note that the library uses HTML output, which is a hack (that even >>> ASP.Net recommends... LOL). You'll get a warning if you open a HTML table >>> in Excel that it is not the proper format, but then Excel will load it >>> anyway. If you need rich, native Excel exports, you'll probably need to >>> write your own POI framework. >>> >>> This topic was covered earlier here: https://groups.google.** >>> com/forum/#!msg/google-web-**toolkit/I9VEaFlkA1I/pDXGBBD2g_**AJ<https://groups.google.com/forum/#!msg/google-web-toolkit/I9VEaFlkA1I/pDXGBBD2g_AJ> >>> >>> >>> Sincerely, >>> Joseph >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google Web Toolkit" group
Re: Export CellTable data to PDF and Excel Format using UIBinder
hey can u send me a complete code for celltable export to excel On Friday, May 25, 2012 9:21:38 AM UTC-5, Joseph Lust wrote: > > The gist is to: > >1. Get a list of all records you need to export from the celltable on >the client browser (and the sorting information). >2. Return this to the server. >3. Fetch all the information from (1). >4. Build into an Excel or CSV output using POI or similar. > > In reality it can be quite a pain. I implemented it in ExtJs grids using > POI and had to have columns in any order user had rearranged them to, > columns shown/hidden if user had changed them, numeric values as numeric > type in exported Excel file... etc. You probably want to try to use a > library to achieve this rather than write it yourself. > > I've not used this library, but it looks like a good start: > GWT-Table-To-Excel http://code.google.com/p/gwt-table-to-excel/ > Note that the library uses HTML output, which is a hack (that even ASP.Net > recommends... LOL). You'll get a warning if you open a HTML table in Excel > that it is not the proper format, but then Excel will load it anyway. If > you need rich, native Excel exports, you'll probably need to write your own > POI framework. > > This topic was covered earlier here: > https://groups.google.com/forum/#!msg/google-web-toolkit/I9VEaFlkA1I/pDXGBBD2g_AJ > > > Sincerely, > Joseph > -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: Unable to find 'XXX.gwt.xml' on your classpath
hey can you be more elaborate on how to fix that issue...if possible show us the code what you modified..what you written really not helping us On Friday, October 28, 2011 6:45:06 PM UTC-5, dgaj wrote: > > Nevermind. Found it. > > Word of advice don't go mucking around too much with that 'rename-to' > property in your XXX.gwt.xml file. It will make you pay. > > On Oct 28, 7:11 pm, dgaj wrote: > > Hi all, > > I have a small project I've been working on. I was able to run it in > > Eclipse 3.7 on Ubuntu 11.04 using Chrome as the browser just fine. > > Things changed however when I tried running it in Debug. I get the > > following error when I load the app in Chrome. > > > > [ERROR] [toms] - Unable to find 'toms.gwt.xml' on your classpath; > > could be a typo, or maybe you forgot to include a classpath entry for > > source? > > > > I get this now whenever I run the app (Debug or Run). There was not a > > accompanying code change with this. It just started happening after I > > tried running Debug. > > > > Any advice? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.