Re: Problems with Eclipse Oxygen and GWT Plugin

2017-07-10 Thread JP
Hello Juan,

thanks for your reply. Unfortunately I had this version installed already. 
Perhapy you have another hint?

Kind regards, 

JP

Am Freitag, 7. Juli 2017 15:23:15 UTC+2 schrieb Juan Pablo Gardella:
>
> I'm using https://github.com/gwt-plugins/gwt-eclipse-plugin without 
> problems. Try with this.
>
>
>
> On Fri, 7 Jul 2017 at 06:30 JP <isj...@gmail.com > wrote:
>
>> Hello,
>>
>> I have installed Eclipse Oxygen Release Java EE IDE for Web Developers 
>> (64 bit) and found GWT Eclipse Plugin 3.0.0 in the Marketplace.
>>
>> After successfully installation of the plugin, I tried to create a new 
>> GWT Web Application Project *without *sampe code. The result was an 
>> error "Creation of element failed".
>>
>> I tried another project creation, this time *with* sample code. It 
>> worked! However, when I tried to add a GWT module, I got another error 
>> (extract from log file):
>>
>> !MESSAGE Problems occurred when invoking code from plug-in: 
>> "org.eclipse.jface".
>> !STACK 0
>> java.lang.ClassCastException: org.eclipse.jdt.internal.core.JarEntryFile 
>> cannot be cast to org.eclipse.core.resources.IFile
>> at 
>> com.google.gwt.eclipse.core.modules.AbstractModule.getShortName(AbstractModule.java:294)
>> at 
>> com.google.gwt.eclipse.core.modules.AbstractModule.getQualifiedName(AbstractModule.java:272)
>> at 
>> com.google.gwt.eclipse.core.modules.ModuleJarResource.getQualifiedName(ModuleJarResource.java:1)
>> at 
>> com.google.gwt.eclipse.core.modules.AbstractModule.getSimpleName(AbstractModule.java:342)
>> at 
>> com.google.gwt.eclipse.core.modules.ModuleJarResource.getSimpleName(ModuleJarResource.java:1)
>> at 
>> com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:220)
>> at 
>> com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:1)
>> ...
>>
>> How can I create a module? Is there a way around this error?
>>
>> Kind regards,
>>
>> JP 
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "GWT Users" 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-we...@googlegroups.com 
>> .
>> Visit this group at https://groups.google.com/group/google-web-toolkit.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Problems with Eclipse Oxygen and GWT Plugin

2017-07-07 Thread JP
Hello,

I have installed Eclipse Oxygen Release Java EE IDE for Web Developers (64 
bit) and found GWT Eclipse Plugin 3.0.0 in the Marketplace.

After successfully installation of the plugin, I tried to create a new GWT 
Web Application Project *without *sampe code. The result was an error 
"Creation of element failed".

I tried another project creation, this time *with* sample code. It worked! 
However, when I tried to add a GWT module, I got another error (extract 
from log file):

!MESSAGE Problems occurred when invoking code from plug-in: 
"org.eclipse.jface".
!STACK 0
java.lang.ClassCastException: org.eclipse.jdt.internal.core.JarEntryFile 
cannot be cast to org.eclipse.core.resources.IFile
at 
com.google.gwt.eclipse.core.modules.AbstractModule.getShortName(AbstractModule.java:294)
at 
com.google.gwt.eclipse.core.modules.AbstractModule.getQualifiedName(AbstractModule.java:272)
at 
com.google.gwt.eclipse.core.modules.ModuleJarResource.getQualifiedName(ModuleJarResource.java:1)
at 
com.google.gwt.eclipse.core.modules.AbstractModule.getSimpleName(AbstractModule.java:342)
at 
com.google.gwt.eclipse.core.modules.ModuleJarResource.getSimpleName(ModuleJarResource.java:1)
at 
com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:220)
at 
com.google.gwt.eclipse.core.modules.ModuleUtils$3.visit(ModuleUtils.java:1)
...

How can I create a module? Is there a way around this error?

Kind regards,

JP 

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" 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 https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


How do I Serialize JDO Enhanced Classes for RPC?

2011-03-07 Thread JP
I've googled and tried for hours, but I can't find anything to back up
the fact that you can have a JDO enhanced class and pass it through
RPC other than this line in the GWT docs:
... previous versions of GWT were unable to perform RPC on enhanced
classes. As of GWT version 2.0, some common forms of persistence are
now handled by the GWT RPC mechanism.
http://code.google.com/webtoolkit/doc/latest/DevGuideServerCommunication.html#DevGuideSerializableTypes

How do I actually do it?

My code fullfills the checklist in that doc. I had a working class
that I sent through RPC, and I had a working class that I stored in
the GAE Datastore, but if I try to combine them and use that class for
both functions I just get this runtime error for my client-side uses:
[DEBUG] [...] - Validating newly compiled units
[ERROR] [...] - Errors in 'file:/.../client/GameService.java'
[ERROR] [...] - Line 12: No source code is available for
type server.GameDatastore; did you forget to inherit a required
module?

I've tried moving GameDatastore around to /client and /shared to see
if that's what GWT is missing, but I get the same message.

This is the class:
@PersistenceCapable(identityType = IdentityType.APPLICATION,
detachable = true)
public class GameDatastore implements IsSerializable
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Key key;

@Persistent
private String title;
// Etc...

Any ideas on how to get it to work?

-- 
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 do I Serialize JDO Enhanced Classes for RPC?

2011-03-07 Thread JP
Solved it myself. I'll write it here for reference. I'll assume 
you've successfully written a Datastored object in JDO and sent some other 
object through RPC before.

First, make sure to follow the weakest links. In my case, RPC/GWT couldn't 
handle the URL-class objects and JDO/GAE couldn't handle the Date-class 
objects. So change them into some equivalent for storing. I used string and 
long, respectively. Like so:
@Persistent public String linkUrl; @Persistent public long releaseDate;

Second, this relates to the first: make sure your (Primary) Key object is 
serializable for RPC. I used a long instead of the Key-class. Like so:
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long key;

Third, if you want to keep it somewhere shared then you can use the /shared 
package. Make sure to add it to your *.gwt.xml-file. When you do that the 
implicitly defined source path=client/ will dissapear so you have to 
explicitly define it yourself. Like so:
  source path='client'/
  source path='shared'/

Fourth, the JDO annotation @PersistanceCapable needs to set identityType to 
Application and detachable to true. Not sure why the Application part is 
needed, maybe someone can elaborate? I did it like this:
@PersistenceCapable(identityType = IdentityType.APPLICATION, 
detachable=true)
public class GameData

Fifth, ties with the fourth and is the obvious implementation of 
IsSerializable for RPC. Like so:
public class GameData implements IsSerializable {

For your copy-paste convenience this is my whole file:
package net.seriema.calendar.game.shared;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import javax.jdo.annotations.IdentityType;

import com.google.gwt.user.client.rpc.IsSerializable;

@PersistenceCapable(identityType = IdentityType.APPLICATION, 
detachable=true)
public class GameData implements IsSerializable {
@SuppressWarnings(unused)
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long key;
 @Persistent public String title;
@Persistent public String linkUrl;
@Persistent public long releaseDate;
}

-- 
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 do I Serialize JDO Enhanced Classes for RPC?

2011-03-07 Thread JP
Thanks, you are correct. They Key was killing me, but once I fixed that I 
found new problems. I've detailed what I did below.

-- 
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.



Live scores client / JMS Consumer

2010-04-06 Thread JP
Hi guys,

I have created an application for broadcasting live scores from a few
sports games. Right now this application consists of a Flash client
and a BlazeDS server. The BlazeDS server is more or less a Java
Message Server.

This sort of works... but I am not that satisfied with it. The Flash
clients keep loosing the connection. These clients can run for a whole
day in some cases. Some are blown up on big screens etc.

So I am looking for another way of doing this, and I was thinking that
AJAX might be the way to go, but I am not sure about AJAX support for
push?!? It is emperative that the client can support push from either
a JMS (Java Message Server) or MSMQ (Microsoft Message Queuing). I do
not want the clients to poll the server constantly, and result in more
or less a DDOS on my own server.

Is this scenario possible using AJAX? Can anyone point towards a
suitable blog entry or howto?

Thanks,
Jay Pete

-- 
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-tool...@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.



I need to test the onError method of RequestCallback

2010-03-31 Thread jp
Hi all ,
In gwt test case I have to make an an ajax call using RequestBuilder ,
Need to test the onError method on RequestCallback
is executed or not if we provide a wrong URL, I tried setting the
status or response,
tried many ways the onError method is not executed
Please help me
thanks
JP

-- 
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-tool...@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 GWT.create()

2010-01-22 Thread JP
I'm having a problem with GWT.create() which I suspect has more to do
with my understanding thanGWT.create()
I'm using two different libraries that generate handlers for
classes.

Library A:
InterfaceForLibraryAPerson liba = GWT.create(Person.class);  //
Person implements MarkerA

Library B:
InterfaceForLibraryBPerson libb = GWT.create(Person.class);  //
Person also implements MarkerB

I'm actually using these two lines in code, but the first one is
giving me a ClassCastException (it's actually returning an
InterfaceForLibraryB).

I'm not actually surprised.  My very limited understanding of GWT
tells me that their respective generators both generate code and
unfortunately, B is winning out on A.

Is this behaviour normal ?  Would there be a way to get around this
problem ?  I have source for both libraries, so I might be able to fix
this).

-- 
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-tool...@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.