2014-03-24 17:43 GMT+01:00 Elena Pop <elena0...@gmail.com>: > Hello, > > I am working on a project that requires me to pass data from a client to > eclipse and for that i am using a servlet. But i will need to display the > points passed on a shape file. > > I am handling the shape file loading in the contextDestroyed method, > however when i try to display it i get an error that looks like this and the > server does not stop : > > Exception in thread "AWT-Windows" java.lang.IllegalStateException: Shutdown > in progress > at > java.lang.ApplicationShutdownHooks.add(ApplicationShutdownHooks.java:66) > at java.lang.Runtime.addShutdownHook(Runtime.java:211) > at sun.awt.windows.WToolkit$2.run(WToolkit.java:279) > at java.security.AccessController.doPrivileged(Native Method) > at sun.awt.windows.WToolkit.registerShutdownHook(WToolkit.java:264) > at sun.awt.windows.WToolkit.run(WToolkit.java:290) > at java.lang.Thread.run(Thread.java:744) > > After some debugging i found out that the error comes from this line > JMapFrame.showMap(map); > Could you please give me a hand to understand where is the problem?
without your code I'm just guessing here, however I would note the following: 1. the servlet api states "All servlets and filters will have been destroyed before any ServletContextListeners are notified of context destruction." as part of the contract for void contextDestroyed(ServletContextEvent sce) basically this means the servlet(s) can no longer do any work for you as it has been shut down 2. it seems strange to me to run AWT/GUI code as part of a non-gui (servlet) environment Mark -- Disclaimer; This message is just a reflection of what I thought at the time of sending. The message may contain information that is not intended for you or that you don't understand. ------------------------------------------------------------------------------ Learn Graph Databases - Download FREE O'Reilly Book "Graph Databases" is the definitive new guide to graph databases and their applications. Written by three acclaimed leaders in the field, this first edition is now available. Download your free book today! http://p.sf.net/sfu/13534_NeoTech _______________________________________________ GeoTools-GT2-Users mailing list GeoTools-GT2-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users