Re: Where is the server log ?

2009-08-17 Thread tolga ozdemir

this thread seems the same.. But I cannot reach the solution yet.. I
receive this error.. I cannot retrieve a List of my object via RPC
service

http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/8744f69c06e7241d


::: HERE IS MY OBJECT :::

package net.tolgaozdemir.gwt.client.domain;

import javax.persistence.Entity;
import javax.persistence.Table;

import com.google.gwt.user.client.rpc.IsSerializable;
import net.sf.gilead.pojo.java5.LightEntity;

public class Entry extends LightEntity implements IsSerializable{

/**
 *
 */
private static final long serialVersionUID = -4123250238413358095L;

private Integer ID;
private String entry;

// Properties
/**
 * @return the id
 */
public final Integer getId() {
return ID;
}
/**
 * @param id the id to set
 */
public final void setId(Integer id) {
this.ID = id;
}

public String getEntry(){
return entry;
}

public void setEntry(String entry){
this.entry = entry;
}

public Entry(){

}

}

--~--~-~--~~~---~--~~
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: Where is the server log ?

2009-08-17 Thread Trevis

This isnt a direct answer to your question but i think that this is
the root of what is going wrong. Class instances that you send to the
client have to play by the rules of GWT.  The class cant have imports
that are not available on the javascript runtime code.

import javax.persistence.Entity;
import javax.persistence.Table;

those classes are almost certainly not in the limited environment.

Trevis




On Aug 17, 8:21 am, tolga ozdemir tka...@gmail.com wrote:
 this thread seems the same.. But I cannot reach the solution yet.. I
 receive this error.. I cannot retrieve a List of my object via RPC
 service

 http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...

 ::: HERE IS MY OBJECT :::

 package net.tolgaozdemir.gwt.client.domain;

 import javax.persistence.Entity;
 import javax.persistence.Table;

 import com.google.gwt.user.client.rpc.IsSerializable;
 import net.sf.gilead.pojo.java5.LightEntity;

 public class Entry extends LightEntity implements IsSerializable{

         /**
          *
          */
         private static final long serialVersionUID = -4123250238413358095L;

         private Integer ID;
         private String entry;

         // Properties
         /**
          * @return the id
          */
         public final Integer getId() {
                 return ID;
         }
         /**
          * @param id the id to set
          */
         public final void setId(Integer id) {
                 this.ID = id;
         }

         public String getEntry(){
                 return entry;
         }

         public void setEntry(String entry){
                 this.entry = entry;
         }

         public Entry(){

         }

 }
--~--~-~--~~~---~--~~
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: Where is the server log ?

2009-08-17 Thread Daniel Jue
While searching for something else, I saw some gwt directories in the Local
Settings\Temp dir, which had some log files in them.

C:\Documents and Settings\MyName\Local
Settings\Temp\gwtc2884477077954149866.tmp\myModuleName\shell\gen

These look like logs for the RPCs.

On Mon, Aug 17, 2009 at 9:47 AM, Trevis trevistho...@gmail.com wrote:


 This isnt a direct answer to your question but i think that this is
 the root of what is going wrong. Class instances that you send to the
 client have to play by the rules of GWT.  The class cant have imports
 that are not available on the javascript runtime code.

 import javax.persistence.Entity;
 import javax.persistence.Table;

 those classes are almost certainly not in the limited environment.

 Trevis




 On Aug 17, 8:21 am, tolga ozdemir tka...@gmail.com wrote:
  this thread seems the same.. But I cannot reach the solution yet.. I
  receive this error.. I cannot retrieve a List of my object via RPC
  service
 
  http://groups.google.com/group/Google-Web-Toolkit/browse_thread/threa...
 
  ::: HERE IS MY OBJECT :::
 
  package net.tolgaozdemir.gwt.client.domain;
 
  import javax.persistence.Entity;
  import javax.persistence.Table;
 
  import com.google.gwt.user.client.rpc.IsSerializable;
  import net.sf.gilead.pojo.java5.LightEntity;
 
  public class Entry extends LightEntity implements IsSerializable{
 
  /**
   *
   */
  private static final long serialVersionUID =
 -4123250238413358095L;
 
  private Integer ID;
  private String entry;
 
  // Properties
  /**
   * @return the id
   */
  public final Integer getId() {
  return ID;
  }
  /**
   * @param id the id to set
   */
  public final void setId(Integer id) {
  this.ID = id;
  }
 
  public String getEntry(){
  return entry;
  }
 
  public void setEntry(String entry){
  this.entry = entry;
  }
 
  public Entry(){
 
  }
 
  }
 


--~--~-~--~~~---~--~~
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: Where is the server log ?

2009-08-17 Thread tolga ozdemir

Daniel thanks a lot.. we have found log file folder! :)


here is my log file guys.. I will look but if u understand something..
pls let me know

Reachable types computed on: Sat Aug 15 16:27:38 EEST 2009
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException
   Serialization status
  Instantiable
   Path
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.lang.Exception
   Serialization status
  Field serializable
   Path
  'java.lang.Exception' is reachable as a supertype of type 'class
java.lang.RuntimeException'
  'java.lang.RuntimeException' is reachable as a supertype of type
'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.lang.RuntimeException
   Serialization status
  Field serializable
   Path
  'java.lang.RuntimeException' is reachable as a supertype of type
'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.lang.String
   Serialization status
  Instantiable
   Path
  'java.lang.String' is reachable as a subtype of type 'class
java.lang.String'
  Started from 'java.lang.String'

java.lang.Throwable
   Serialization status
  Field serializable
   Path
  'java.lang.Throwable' is reachable as a supertype of type 'class
java.lang.Exception'
  'java.lang.Exception' is reachable as a supertype of type 'class
java.lang.RuntimeException'
  'java.lang.RuntimeException' is reachable as a supertype of type
'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
 
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException' is
reachable as a subtype of type 'class
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'
  Started from
'com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException'

java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry
   Serialization status
  Instantiable
   Path
  'java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry'
is reachable as a subtype of type 'class
java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry'
  Started from
'java.util.ArrayListnet.tolgaozdemir.gwt.client.domain.Entry'

java.util.HashMapjava.lang.String, java.lang.String
   Serialization status
  Instantiable
   Path
  'java.util.HashMapjava.lang.String, java.lang.String' is
reachable as a subtype of type 'interface
java.util.Mapjava.lang.String, java.lang.String'
  'java.util.Mapjava.lang.String, java.lang.String' is reachable
from field '_proxyInformations' of type
'net.sf.gilead.pojo.java5.LightEntity'
  'net.sf.gilead.pojo.java5.LightEntity' is reachable as a
supertype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  'net.tolgaozdemir.gwt.client.domain.Entry' is reachable as a
subtype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  Started from 'net.tolgaozdemir.gwt.client.domain.Entry'

java.util.IdentityHashMapjava.lang.String, java.lang.String
   Serialization status
  Instantiable
   Path
  'java.util.IdentityHashMapjava.lang.String, java.lang.String'
is reachable as a subtype of type 'interface
java.util.Mapjava.lang.String, java.lang.String'
  'java.util.Mapjava.lang.String, java.lang.String' is reachable
from field '_proxyInformations' of type
'net.sf.gilead.pojo.java5.LightEntity'
  'net.sf.gilead.pojo.java5.LightEntity' is reachable as a
supertype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  'net.tolgaozdemir.gwt.client.domain.Entry' is reachable as a
subtype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  Started from 'net.tolgaozdemir.gwt.client.domain.Entry'

java.util.LinkedHashMapjava.lang.String, java.lang.String
   Serialization status
  Instantiable
   Path
  'java.util.LinkedHashMapjava.lang.String, java.lang.String' is
reachable as a subtype of type 'interface
java.util.Mapjava.lang.String, java.lang.String'
  'java.util.Mapjava.lang.String, java.lang.String' is reachable
from field '_proxyInformations' of type
'net.sf.gilead.pojo.java5.LightEntity'
  'net.sf.gilead.pojo.java5.LightEntity' is reachable as a
supertype of type 'class net.tolgaozdemir.gwt.client.domain.Entry'
  'net.tolgaozdemir.gwt.client.domain.Entry' is reachable as a

Where is the server log ?

2009-08-16 Thread tolga ozdemir

Hi,

I use GWT 1.7 and eclipse on Windows XP.. As a sample, I use a
hibernate project.. I have a function with signature ListEntry
listEntries();

When I run the project I got this error

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived


So, where is this server log file located on my computer? Do you have
any idea??


--~--~-~--~~~---~--~~
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: Where is the server log ?

2009-08-16 Thread Paul Grenyer
If you're running in hosted mode they should be written to the eclipse console. 
Have you got it open!

Sent from my Archimedes A3000

-Original Message-
From: tolga ozdemir tka...@gmail.com

Date: Sun, 16 Aug 2009 09:13:46 
To: Google Web ToolkitGoogle-Web-Toolkit@googlegroups.com
Subject: Where is the server log ?



Hi,

I use GWT 1.7 and eclipse on Windows XP.. As a sample, I use a
hibernate project.. I have a function with signature ListEntry
listEntries();

When I run the project I got this error

com.google.gwt.user.client.rpc.StatusCodeException: The call failed on
the server; see server log for details
at
com.google.gwt.user.client.rpc.impl.RequestCallbackAdapter.onResponseReceived


So, where is this server log file located on my computer? Do you have
any idea??




--~--~-~--~~~---~--~~
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: Where is the server log ?

2009-08-16 Thread tolga ozdemir

Yes.. if it is so..

I recieve a 500 - POST error

my request seems full and content type text/x-gwt-rpc whereas my
Response's content type text/plain

Simply I want to use RPC services with hibernate and I have a function
returns a list of my Entry object

this is my method..

public ListEntry listAllEntries() {
Session session=null;


try{
session = 
HibernateContext.getSessionFactory().openSession();
return new ArrayListEntry( session.createQuery(from 
tblentry
).list() );
}
catch (RuntimeException e) {
throw e;
}
finally
{
if (session != null)
{
session.close();
}
}
}


but I recieve this error... :(

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