Re: transfer Objects between GWT and EJB
Hi, thank you for your answer, but this isn't my problem. I already know the links you have posted. It wasn't a problem fpr me to send Strings between GWt client and a Session Bean and to store an entity in a database. My problem is that I want to send Objects between GWT and EJB Project like the Example Company object above. The communication between GWT servlet and Ejb project works fine. I can call methods and so on. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/p3l2_a2mslsJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: transfer Objects between GWT and EJB
Hi, but how should I represent the entities on my gwt Side? When I create a Company Pojo there on the gwt side I would't anyway not be able to transfer it. Or you mean I should use Wrapper on the Servlet to transfer the Entites from my EJB Project to Pojo's from the gwt side? On 2 Dez., 02:53, Mark wrote: > I dont know that you can do that directly. The best way I know of is > to create a pojo to represent the entity on the gwt side and then > translate back and forth between them. > > On Dec 1, 5:01 pm, ph09 wrote: > > > > > > > > > Hello, > > > I have got a question because of the architectur of my project. > > At the one side there is a GWT Package with the Client Side and also a > > Servlet to communicate with an EJB Project. > > On the other Side there is a EJB Project with Session Beans and > > Entities which schould be stored in a database and send between GWT > > Client and the database. But I don't know how I can realize that. how > > can I send an Object from my Session Bean to the GWT Servlet, because > > the GWT Servlet don't know about the Entitities Classes. > > > Thats my Project Structur: > > > Entities + Session Bean:http://pastebin.com/anAbCqgd > > > GWT Servlet:http://pastebin.com/Ujjka9vT > > > I hope that it is clear where my problem is ;) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
transfer Objects between GWT and EJB
Hello, I have got a question because of the architectur of my project. At the one side there is a GWT Package with the Client Side and also a Servlet to communicate with an EJB Project. On the other Side there is a EJB Project with Session Beans and Entities which schould be stored in a database and send between GWT Client and the database. But I don't know how I can realize that. how can I send an Object from my Session Bean to the GWT Servlet, because the GWT Servlet don't know about the Entitities Classes. Thats my Project Structur: Entities + Session Bean: http://pastebin.com/anAbCqgd GWT Servlet: http://pastebin.com/Ujjka9vT I hope that it is clear where my problem is ;) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + EJB + MYSQL
Ok, I have got the reason for the exception. I have got (cascade={CascadeType.PERSIST}) forgotten. But how could I transfer for example the company object to my GWT Client Side? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cg0dTCK_dj4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT + EJB + MYSQL
Thank you for your answer. I use glassfish app server for my project, maybe there is something wrong? To clarify my project structur: Entities + SessionBean: http://pastebin.com/4zRHMrcA GWT Servlet: http://pastebin.com/rSUSymNi I have got a GWT Client Side where I temporally want to use POJOs from the EJB Project. Then there is a GWT Servlet, which is there to communicate with my EJB Project. At least I have got a EJB Project with my Session Beans for managing the Persistence Entities, which should be able to be transferd to GWT Client Side. When I want to test if I could persist this little example, I got the following Exception: http://pastebin.com/DEYjBrvY Seems like I couldn`t use Transactionmanagement.. And how can I tell my GWT Project which Persistence Entities I have? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3SyK4WfTtK4J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT + EJB + MYSQL
Hello, I have got some Question concerning Serialization and persistence. At First I have got a GWT project with Client code and a Servlet to communicate with my EJB Project. In the EJB project there are some Persistent Entitie Classes with references among each other and beans to manage them. The Reference may look like this: Object A /\ Object B Object C \ Object D Mostly there are 1:n Relationships, which i have to modelling with oneToMany or something like this.. I store them into a MYSQL Database which already work with Strings. With Strings I haven't got Problems to transfer them from the GWT Client Side over the GWt Servlet to the EJB Bean and then into the Database and the same way back to the Client Side. But when I try to transfer an own created Class object (POJO?) between GWT Client and EJB, I always get an Serialization Exception. Is it because of the GWT Servlet? I read something that you have to use DTo or Value Objects? Is this correct? or isn't there a easy way to solve this? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/cbDIKRBsKUgJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWt with EJB and JBoss
I tried to connect my WGT Application with EJB via JBoss by doing this Tutorial: http://jamies-gwt.blogspot.com/2010/03/walkthrough-integrating-gwt-with-jboss.html I used GWT 2.4, Eclipse Indigo, Jboss 6.1.0.Final and this Eclipse Plugin: http://download.jboss.org/jbosstools/updates/stable/helios/ When i try to start the Application, nothing happen ant sometimes I get an error from the JBoss. Thats the log: > 18:26:57,766 INFO [AbstractJBossASServerBase] Server Configuration: > > >> JBOSS_HOME URL: file:/C:/jboss-6.1.0.Final/ > > Bootstrap: $JBOSS_HOME\server/default/conf/bootstrap.xml > > Common Base: $JBOSS_HOME\common/ > > Common Library: $JBOSS_HOME\common/lib/ > > Server Name: default > > Server Base: $JBOSS_HOME\server/ > > Server Library: $JBOSS_HOME\server/default/lib/ > > Server Config: $JBOSS_HOME\server/default/conf/ > > Server Home: $JBOSS_HOME\server/default/ > > Server Data: $JBOSS_HOME\server/default/data/ > > Server Log: $JBOSS_HOME\server/default/log/ > > Server Temp: $JBOSS_HOME\server/default/tmp/ > > >> 18:26:57,771 INFO [AbstractServer] Starting: JBossAS [6.1.0.Final "Neo"] > > 18:26:59,945 INFO [ServerInfo] Java version: 1.6.0_27,Sun Microsystems >> Inc. > > 18:26:59,946 INFO [ServerInfo] Java Runtime: Java(TM) SE Runtime >> Environment (build 1.6.0_27-b07) > > 18:26:59,946 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM >> 20.2-b06,Sun Microsystems Inc. > > 18:26:59,946 INFO [ServerInfo] OS-System: Windows 7 6.1,x86 > > 18:26:59,947 INFO [ServerInfo] VM arguments: -Dprogram.name=JBossTools: >> JBoss 6.0 Runtime -Xms256m -Xmx768m -XX:MaxPermSize=256m >> -Dsun.rmi.dgc.client.gcInterval=360 >> -Dsun.rmi.dgc.server.gcInterval=360 >> -Djava.endorsed.dirs=C:\jboss-6.1.0.Final\lib\endorsed >> -Djava.library.path=C:/jboss-6.1.0.Final/bin/native >> -Dlogging.configuration=file:C:/jboss-6.1.0.Final/bin/logging.properties >> -Dfile.encoding=Cp1252 > > 18:26:59,991 INFO [JMXKernel] Legacy JMX core initialized > > 18:27:10,268 INFO [AbstractServerConfig] JBoss Web Services - Stack CXF >> Server 3.4.1.GA > > 18:27:10,999 INFO [JSFImplManagementDeployer] Initialized 3 JSF >> configurations: [Mojarra-1.2, MyFaces-2.0, Mojarra-2.0] > > 18:27:24,144 WARNUNG [FileConfigurationParser] AIO wasn't located on this >> platform, it will fall back to using pure Java NIO. If your platform is >> Linux, install LibAIO to enable the AIO journal > > 18:27:24,640 INFO [JMXConnector] starting JMXConnector on host >> localhost:1090 > > 18:27:24,880 INFO [MailService] Mail Service bound to java:/Mail > > 18:27:26,931 INFO [HornetQServerImpl] live server is starting with >> configuration HornetQ Configuration >> (clustered=false,backup=false,sharedStore=true,journalDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/journal,bindingsDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/bindings,largeMessagesDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/largemessages,pagingDirectory=C:\jboss-6.1.0.Final\server\default\data/hornetq/paging) > > 18:27:26,934 INFO [HornetQServerImpl] Waiting to obtain live lock > > 18:27:27,083 INFO [JournalStorageManager] Using NIO Journal > > 18:27:27,131 WARNUNG [HornetQServerImpl] Security risk! It has been >> detected that the cluster admin user and password have not been changed >> from the installation default. Please see the HornetQ user guide, cluster >> chapter, for instructions on how to do this. > > 18:27:27,359 INFO [FileLockNodeManager] Waiting to obtain live lock > > 18:27:27,359 INFO [FileLockNodeManager] Live Server Obtained live lock > > 18:27:28,718 INFO [NettyAcceptor] Started Netty Acceptor version >> 3.2.3.Final-r${buildNumber} localhost:5455 for CORE protocol > > 18:27:28,720 INFO [NettyAcceptor] Started Netty Acceptor version >> 3.2.3.Final-r${buildNumber} localhost:5445 for CORE protocol > > 18:27:28,726 INFO [HornetQServerImpl] Server is now live > > 18:27:28,727 INFO [HornetQServerImpl] HornetQ Server version 2.2.5.Final >> (HQ_2_2_5_FINAL_AS7, 121) [cf21bf14-0959-11e1-a1aa-002243686b23] started > > 18:27:28,875 INFO [WebService] Using RMI server codebase: >> http://localhost:8083/ > > 18:27:29,467 INFO [jbossatx] ARJUNA-32010 JBossTS Recovery Service (tag: >> JBOSSTS_4_14_0_Final) - JBoss Inc. > > 18:27:29,487 INFO [arjuna] ARJUNA-12324 Start RecoveryActivators > > 18:27:29,554 INFO [arjuna] ARJUNA-12296 ExpiredEntryMonitor running at >> Mo, 7 Nov 2011 18:27:29 > > 18:27:29,813 INFO [arjuna] ARJUNA-12310 Recovery manager listening on >> endpoint 127.0.0.1:4712 > > 18:27:29,815 INFO [arjuna] ARJUNA-12344 RecoveryManagerImple is ready on >> port 4712 > > 18:27:29,818 INFO [jbossatx] ARJUNA-32013 Starting transaction recovery >> manager > > 18:27:29,862 INFO [arjuna] ARJUNA-12163 Starting service >> com.arjuna.ats.arjuna.recovery.ActionStatusService on port 4713 > > 18:27:29,874 INFO [arjuna] ARJUNA-12337 TransactionStatusManagerItem >> host: 127.0.0.1 port: 4
GWT + EJB
Hello, I want to use EJB in my GWT Application, but I coulnd't find a current Tutorial. I am new to the topic of EJB's and with GWt I have worked the last months. At the moment I have got some RPC Calls in my GWT Application and this works. Is it's possible in GWT to use EJB and if yes would it be difficult to install? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/3_KJXXPkkScJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
StackPanelLayout
I started working with the StackLayoutPanel and now I have got two questions. At first, is there any chance that the StacklayoutPanel manage his height dynamicly? I have got a Tree Widget on the StackPanelLayout and this grows dynamicly. So I would be nice that the StackPanelLayout grows also dynamicly like the StackPanel widget ist had done. And second, when I click on a header there should be additionally fired an event so that there can be open a menu or something else. Is there any method for? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/Dj_ErPNplmcJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: GWT Composite open/visible Handler
Hmm, ok I explain it in another words. I have got a tab with several Composites on it.When a user click on one of them, the Composite is shown to the user. In this Case I would like to start a method, but I doesn't know if there is any Handler for.. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/9GqDo58Ap2UJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
GWT Composite open/visible Handler
Hello, I have got several Composite and I would like to add an Handler to one of them which fire an event when the user open this composite. Is there any Handler for? Thank you.. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/xH2VOcFcak0J. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem with RPC Call
Hi, I want to make a RPC Call but instead i get the following Error: com.google.gwt.user.client.rpc.StatusCodeException: 404 Error 404 NOT_FOUND HTTP ERROR 404 Problem accessing /focus/SpeicherService. Reason: NOT_FOUNDPowered by Jetty:// And so on... That`s my web.xml: SpeicherService de.fhdo.focus.server.SpeicherServiceImpl SpeicherService FoCuS/SpeicherService FoCuS.html And the gwt.xml: What`s wrong here? I rather don't know how the servlet works.. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Problem by finding gwt.xml
Hello, I have changed and renamed my packet structur of my gwt project. Then I want to start the project as a web application, but the module isn't found and I get the following Exeption: [ERROR] Unable to find 'de/xx/focus/My_Projekt.gwt.xml' on your classpath; could be a typo, or maybe you forgot to include a classpath entry for source? [ERROR] shell failed in doStartup method In wich Class is the module be loaded respectively where have I to change the new path? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Centering text in a Label
Hello, I try to centering text in a Label with following CSS: .gwt-Label-1 { border: 1px solid; font-size: 13px; vertical-align: middle; text-align: center; background-color: lavender; } It works all except of "vertical-align: middle". The text is always at the top of the Label. Does anyone know why? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: How to get the size of a Label?
Ok, but when I attached the Label to the AbsolutePanel and do "getOffsetWidth()", I get for Example a width of 700px for the AbsolutePanel and a width of 698px for the Label. Certainly the label is less smaller. Is there any reason for? I want to place the Label at the center of the Panel, but therefore I have to know the size of the Label. On 6 Sep., 20:49, Jeff Larsen wrote: > the label needs to be attached before you're able to get the size. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
How to get the size of a Label?
Hey, I want to get the Size of a label, but I always get 0. Here is the Code: Label label= new Label("..."); rootLabel.setStyleName("gwt-Label-1"); int width = label.getOffsetWidth(); Is there anything wrong? I guess not... With an Absolute Panel "getOffsetWidth()" works. greets -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Querry Wrapper
Hi, can someone explain me how the Querry Wrapper works? Is it made for Tree's? If I have got a GWT Tree, would it be able to visualize it in this way? https://spreadsheets.google.com/pub?key=rCaVQNfFDMhOM6ENNYeYZ9Q In the example Code Javascript is used: http://code.google.com/intl/de-CH/apis/chart/interactive/docs/examples.html Works it also with java? -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Graphical representation of a tree
What about this one: http://code.google.com/p/raphaelgwt/ Has someone any experience?? On 2 Aug., 13:12, ph09 wrote: > Ok thank you. > Any other suggestions? > > On 1 Aug., 18:10, "J.Ganesan" wrote: > > > > > > > > > Tryhttp://code.google.com/p/gwt-g2d/. You may have to implement > > picking and translation for Drag & Drop. > > > J.Ganesanwww.DataStoreGwt.com > > > On Aug 1, 7:18 pm, ph09 wrote: > > > > Hello, > > > > I want to represent a Tree in a antoher way as the standard graphical > > > representation. > > > Drag & Drop should be able. > > > Like this one:http://s1.directupload.net/file/d/2603/yzo588bb_jpg.htm > > > > Do you know a good GWT Extension to realize this? > > > I have already looked at the Google Web Toolkit Gallery. > > > Do you think something like this would solve the > > > problem?http://gwtgallery.appspot.com/about_app?app_id=86 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Graphical representation of a tree
Ok thank you. Any other suggestions? On 1 Aug., 18:10, "J.Ganesan" wrote: > Tryhttp://code.google.com/p/gwt-g2d/. You may have to implement > picking and translation for Drag & Drop. > > J.Ganesanwww.DataStoreGwt.com > > On Aug 1, 7:18 pm, ph09 wrote: > > > > > > > > > Hello, > > > I want to represent a Tree in a antoher way as the standard graphical > > representation. > > Drag & Drop should be able. > > Like this one:http://s1.directupload.net/file/d/2603/yzo588bb_jpg.htm > > > Do you know a good GWT Extension to realize this? > > I have already looked at the Google Web Toolkit Gallery. > > Do you think something like this would solve the > > problem?http://gwtgallery.appspot.com/about_app?app_id=86 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Graphical representation of a tree
Hello, I want to represent a Tree in a antoher way as the standard graphical representation. Drag & Drop should be able. Like this one: http://s1.directupload.net/file/d/2603/yzo588bb_jpg.htm Do you know a good GWT Extension to realize this? I have already looked at the Google Web Toolkit Gallery. Do you think something like this would solve the problem? http://gwtgallery.appspot.com/about_app?app_id=86 -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC Serialization
Hey there, I want to make a RPC Call with an Object called Feature. This class included an ArrayList with refereces to other Object. So when I do the RPC Call and want to reach the Object from the ArrayList, i get the following Eception: com.google.gwt.user.client.rpc.SerializationException at com.google.gwt.user.client.rpc.impl.SerializerBase.getTypeHandler(SerializerBase.java: 153) at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 125) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 179) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at com.google.gwt.user.client.rpc.core.java.util.Collection_CustomFieldSerializerBase.serialize(Collection_CustomFieldSerializerBase.java: 45) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_CustomFieldSerializer.serialize(ArrayList_CustomFieldSerializer.java: 40) at com.google.gwt.user.client.rpc.core.java.util.ArrayList_FieldSerializer.serial(ArrayList_FieldSerializer.java: 23) at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 126) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 179) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at de.fhdo.kuss.client.Feature_FieldSerializer.serialize(Feature_FieldSerializer.java: 51) at de.fhdo.kuss.client.Feature_FieldSerializer.serial(Feature_FieldSerializer.java: 64) at com.google.gwt.user.client.rpc.impl.SerializerBase.serialize(SerializerBase.java: 126) at com.google.gwt.user.client.rpc.impl.ClientSerializationStreamWriter.serialize(ClientSerializationStreamWriter.java: 179) at com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java: 126) at de.fhdo.kuss.client.SpeicherService_Proxy.test(SpeicherService_Proxy.java: 327) at de.fhdo.kuss.client.FM_Gui.test(FM_Gui.java:834) at de.fhdo.kuss.client.FM_Gui.(FM_Gui.java:67) at de.fhdo.kuss.client.Kuss_Projekt.buildGui(Kuss_Projekt.java:61) at de.fhdo.kuss.client.Kuss_Projekt.onModuleLoad(Kuss_Projekt.java: 31) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:396) at com.google.gwt.dev.shell.OophmSessionHandler.loadModule(OophmSessionHandler.java: 193) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java: 510) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java: 352) at java.lang.Thread.run(Unknown Source) Is it because of the ArrayList? Thats my Class: public class Feature implements Serializable { private static final long serialVersionUID = 1L; private String name; private ArrayList subgroups = new ArrayList(); private String context; public Feature(){ } public Feature(String name) { this.name = name; } public String getName() { return name; } public void setName(String name) { this.name = name; } public void addSubgroup(Group group) { subgroups.add(group); } public ArrayList getSubGroups() { return subgroups; } } And that is my Call: public void test() { AsyncCallback callback = new AsyncCallback() { public void onFailure(Throwable caught) { caught.printStackTrace(); } public void onSuccess(String result) { Window.alert(result); } }; Feature feature2 = new Feature("test Feature"); Feature feature = new Feature("root"); Group group = new Group(GroupType.mandatory,feature2); feature.addSubgroup(group); SpeicherService.Util.getInstance().test(feature, callback); } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/gr
Re: RPC RemoteServiceServlet multiple methods
On 22 Jul., 15:39, Jens wrote: > Sure you can and its totally fine to do so. Just make sure that all methods > are defined in the service interface and in its async interface. > > The exception you have received indicates that your browser uses some old > cached javascript file (so clear your cache and reload the site) or your > have forgotten to put your getName2() method into the service interface. Thank for your help so far. I clear the cache with no effect. Maybe i show you my other classes. I think the service interface have to be correct. the problem might be by calling the service? I call both method, test1() and test2() and only test1() get served. @RemoteServiceRelativePath("SpeicherService") public interface SpeicherService extends RemoteService { String getName(String name); String getName2(String name2); public static class Util { private static SpeicherServiceAsync instance; public static SpeicherServiceAsync getInstance(){ if (instance == null) { instance = GWT.create(SpeicherService.class); } return instance; } } } public interface SpeicherServiceAsync { void getName(String name, AsyncCallback callback); void getName2(String name2, AsyncCallback callback); } public void test(String ausgabe) { AsyncCallback callback = new AsyncCallback() { @Override public void onFailure(Throwable caught) { System.out.println("Server Fehler"); caught.printStackTrace(); } @Override public void onSuccess(String result) { Window.alert(result); } }; SpeicherService.Util.getInstance().getName(ausgabe, callback); } public void test2() { AsyncCallback callback = new AsyncCallback() { @Override public void onFailure(Throwable caught) { System.out.println("Server Fehler"); caught.printStackTrace(); } @Override public void onSuccess(String result) { Window.alert(result); } }; SpeicherService.Util.getInstance().getName2("miau",callback); } > I don't know if you already know it, but try to avoid using general > interfaces in your RPC method signature (e.g. List) because GWT has to > generate code for every possible implementation of these interfaces (because > GWT does not know which implementation you will choose). So in case of List > its better to directly use ArrayList of whatever List implementation you > would like to use in the method signature. You mean something like this, or is it ok? public static class Util { private static SpeicherServiceAsync instance; public static SpeicherServiceAsync getInstance(){ if (instance == null) { instance = GWT.create(SpeicherService.class); } return instance; } } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC RemoteServiceServlet multiple methods
Hey, I have got some questions about the RPC. Is it possible to define more than one method in one RemoteServiceServlet? And does this make any Sense? Like this: public class SpeicherServiceImpl extends RemoteServiceServlet implements SpeicherService { /** * */ private static final long serialVersionUID = 1L; @Override public String getName(String name) { return("Server hat folgendes empfangen: \n" + name); } public String getName2(String name2){ return("Test2" + name2); } } I tried to call both methods. The first method was served, but the second throw the following Exception: [ERROR] javax.servlet.ServletContext log: SpeicherService: An IncompatibleRemoteServiceException was thrown while processing this call. com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException: This application is out of date, please click the refresh button on your browser. ( Could not locate requested method 'getName2(java.lang.String)' in interface 'de.fhdo.kuss.client.SpeicherService' ) at com.google.gwt.user.server.rpc.RPC.decodeRequest(RPC.java:310) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java: 206) at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java: 248) at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java: 62) at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.tools.development.HeaderVerificationFilter.doFilter(HeaderVerificationFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java: 122) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.appengine.tools.development.BackendServersFilter.doFilter(BackendServersFilter.java: 94) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:351) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.content(HttpConnection.java:938) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:212) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java: 409) at org.mortbay.thread.QueuedThreadPool $PoolThread.run(QueuedThreadPool.java:582) -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
RPC Error: No file found for..
Hello, sry I am newbie to this Topic. I have searched the whole day for a solution, but I can't find the problem. I've tried a lot, without any bettering. Hope you can help me. When I tried to call a RPC Service, I get always this Message: [WARN] No file found for: /kuss_projekt/SpeicherService Thats my source code: web.xml: SpeicherService de.fhdo.kuss.server.SpeicherServiceImpl SpeicherService /SpeicherService Kuss_Projekt.html - Kuss_Projekt.gwt.xml: - Speicherservice: @RemoteServiceRelativePath("SpeicherService") public interface SpeicherService extends RemoteService { String getName(String name); public static class Util { private static SpeicherServiceAsync instance; public static SpeicherServiceAsync getInstance(){ if (instance == null) { instance = GWT.create(SpeicherService.class); } return instance; } } } - SpeicherServiceAsync: public interface SpeicherServiceAsync { void getName(String name, AsyncCallback callback); } - SpeicherServiceImpl: public class SpeicherServiceImpl extends RemoteServiceServlet implements SpeicherService { @Override public String getName(String name) { return("Server meldet sich " + name); } } - Test(): public void test() { AsyncCallback callback = new AsyncCallback() { @Override public void onFailure(Throwable caught) { // TODO Auto-generated method stub } @Override public void onSuccess(String result) { Window.alert(result); } }; SpeicherService.Util.getInstance().getName("test",callback); } -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/JeNzul1toOEJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.