Re: Appstats RecordingFuture classcast exception

2013-01-30 Thread ingo
FYI: I updated this issue with my findings: 
http://code.google.com/p/googleappengine/issues/detail?id=7052. I found 
another issue which is Google says is closed, 
see http://code.google.com/p/googleappengine/issues/detail?id=6071. However 
in my application I am still seeing this behaviour with GAE 1.7.3.

Thanks,
Ingo 

On Tuesday, January 29, 2013 5:13:33 PM UTC-5, ingo wrote:

 Hi,

 I have the exact same issue. Did you ever get around this problem?

 Thanks,
 Ingo

 On Friday, April 22, 2011 9:58:17 AM UTC-4, Baloe wrote:

 Hi all, 

 We're using the appstats for extra logging. Works fine as far as I've 
 looked at it, but not we get a classcast exception for most requests. 
 Looks like a java version conflict to me, but we only included the 
 library, so there is no point in fixing anything. 


 The error: 

 Reason: 
 precom.google.appengine.tools.appstats.RecordingFuture cannot be 
 cast to com.google.appengine.tools.appstats.RecordingFuture/pre/ 
 ph3Caused by:/h3prejava.lang.ClassCastException: 
 com.google.appengine.tools.appstats.RecordingFuture cannot be cast to 
 com.google.appengine.tools.appstats.RecordingFuture 



 The only thing we did was add it to the web.xml: 

  filter 
 filter-nameappstats/filter-name 
 filter- 
 classcom.google.appengine.tools.appstats.AppstatsFilter/filter- 
 class 
 init-param 
 param-namelogMessage/param-name 
 param-valueAppstats available: /appstats/details? 
 time={ID}/param-value 
 /init-param 
 /filter 
 filter-mapping 
 filter-nameappstats/filter-name 
 url-pattern/ourstuff/*/url-pattern 
 /filter-mapping 


  servlet 
 servlet-nameappstats/servlet-name 
 servlet- 
 classcom.google.appengine.tools.appstats.AppstatsServlet/servlet- 
 class 
 /servlet 
 servlet-mapping 
 servlet-nameappstats/servlet-name 
 url-pattern/appstats/*/url-pattern 
 /servlet-mapping 

 Thanks, 
 Niels 



-- 
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: Appstats RecordingFuture classcast exception

2013-01-29 Thread ingo
Hi,

I have the exact same issue. Did you ever get around this problem?

Thanks,
Ingo

On Friday, April 22, 2011 9:58:17 AM UTC-4, Baloe wrote:

 Hi all, 

 We're using the appstats for extra logging. Works fine as far as I've 
 looked at it, but not we get a classcast exception for most requests. 
 Looks like a java version conflict to me, but we only included the 
 library, so there is no point in fixing anything. 


 The error: 

 Reason: 
 precom.google.appengine.tools.appstats.RecordingFuture cannot be 
 cast to com.google.appengine.tools.appstats.RecordingFuture/pre/ 
 ph3Caused by:/h3prejava.lang.ClassCastException: 
 com.google.appengine.tools.appstats.RecordingFuture cannot be cast to 
 com.google.appengine.tools.appstats.RecordingFuture 



 The only thing we did was add it to the web.xml: 

  filter 
 filter-nameappstats/filter-name 
 filter- 
 classcom.google.appengine.tools.appstats.AppstatsFilter/filter- 
 class 
 init-param 
 param-namelogMessage/param-name 
 param-valueAppstats available: /appstats/details? 
 time={ID}/param-value 
 /init-param 
 /filter 
 filter-mapping 
 filter-nameappstats/filter-name 
 url-pattern/ourstuff/*/url-pattern 
 /filter-mapping 


  servlet 
 servlet-nameappstats/servlet-name 
 servlet- 
 classcom.google.appengine.tools.appstats.AppstatsServlet/servlet- 
 class 
 /servlet 
 servlet-mapping 
 servlet-nameappstats/servlet-name 
 url-pattern/appstats/*/url-pattern 
 /servlet-mapping 

 Thanks, 
 Niels 


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




GWT/AppEngine application for distributed role playing - dorp

2012-02-23 Thread ingo
Hello,

did you love to play role playing games with your friends but you just
went abroad so you cannot meet with them to play anymore? Worry no
more because you can go on playing with a little help from dorp:
distributed online role playing. dorp is a Google Web Toolkit
application running on Google App Engine. Together with a couple of
friends I created dorp just for fun and put it online at
http://distributedroleplaying.appspot.com/. We typically use Skype for
talking and dorp for sharing information about our characters as well
as images, e.g. maps, magical items, drawings.

For more information see 
http://usability-nightmare.blogspot.com/2012/02/distributed-online-role-playing-with.html.

Cheers,
Ingo

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



Boost Extensibility and Simplify Maintainability of Web Applications: Proposals for Google Web Toolkit Plug-in Architectures

2011-01-17 Thread Ingo Jaeckel
Hello everyone

I wrote a short article proposes a plug-in management architecture for
GWT/AppEngine applications, see
http://honeycrm.googlecode.com/files/BoostExtensibilityAndSimplifyMaintainabilityOfWebApplicationsProposalsForGoogleWebToolkitPlugInArchitectures.pdf.
Now, I would like to invite the community to discuss my proposal.
Thanks in advance to everyone for reading and discussing the proposal.

Abstract: The extensibility of Google Web Toolkit (GWT) applications
running on the Google App Engine platform is currently limited due to
the absence of a plug-in infrastructure. Even though for desktop,
server, and web applications, plug-ins have been existing for decades,
they are not prevalent in GWT today. In this article, I outline the
development environment restrictions that make it a challenge to
provide dynamic plug-in loading support. I assume that the
introduction of a plug-in architecture would dramatically enhance the
extensibility and the maintainability of GWT applications. Therefore,
this article proposes approaches for statically and dynamically loaded
plug-ins for GWT applications.

Kind regards

Ingo

-- 
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: Boost Extensibility and Simplify Maintainability of Web Applications: Proposals for Google Web Toolkit Plug-in Architectures

2011-01-17 Thread Ingo Jaeckel
Hello everyone

after discussing the topic with a college, I realized I have to
explain the context of my proposal.

There is no application independent mechanism in GWT to dynamically
load extensions. Consequently, GWT applications either do not support
it or implement plug-in loading on their own. I am convinced this has
to be changed, mainly because of two obervations: The dramatically
increasing popularity of both (1) AppStores, e.g. Apple App Store,
Android Market, and (2) browser/web applications. To support AppStore
concepts in web applications, the GWT/AppEngine community would profit
from having an application independent framework for the management of
application extensions, i.e. plug-ins, apps, or add-ons.

Kind regards

Ingo

2011/1/17 Ingo Jaeckel ingo.jaec...@googlemail.com:
 Hello everyone

 I wrote a short article proposes a plug-in management architecture for
 GWT/AppEngine applications, see
 http://honeycrm.googlecode.com/files/BoostExtensibilityAndSimplifyMaintainabilityOfWebApplicationsProposalsForGoogleWebToolkitPlugInArchitectures.pdf.
 Now, I would like to invite the community to discuss my proposal.
 Thanks in advance to everyone for reading and discussing the proposal.

 Abstract: The extensibility of Google Web Toolkit (GWT) applications
 running on the Google App Engine platform is currently limited due to
 the absence of a plug-in infrastructure. Even though for desktop,
 server, and web applications, plug-ins have been existing for decades,
 they are not prevalent in GWT today. In this article, I outline the
 development environment restrictions that make it a challenge to
 provide dynamic plug-in loading support. I assume that the
 introduction of a plug-in architecture would dramatically enhance the
 extensibility and the maintainability of GWT applications. Therefore,
 this article proposes approaches for statically and dynamically loaded
 plug-ins for GWT applications.

 Kind regards

 Ingo


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



Proposal of several plug-in architectures for GWT applications running on the Google App Engine platform

2011-01-07 Thread Ingo Jaeckel
Hello everyone,

this week I published an article entitled Proposals for Google Web
Toolkit application plug-in architectures [1] on of my HoneyCRM
project page [2]. The existence of plug-ins is not new for web
applications in general. However, there are a number of technical
issues making it difficult to develop plug-ins for GWT applications.
In the article I propose solutions around these problems.

The implementation of a plug-in system has been discussed a lot of
times in the community. I am looking forward for your feedback and
thoughts about my proposals. You can find more information as well as
prototype implementations in the wiki [3].

Kind regards,
Ingo

[1] 
http://honeycrm.googlecode.com/files/ProposalsForGoogleWebToolkitApplicationPlugInArchitectures.pdf
[2] http://code.google.com/p/honeycrm/
[3] http://code.google.com/p/honeycrm/w/list

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



Re: Volunteers???

2010-11-22 Thread ingo
hello rod,

this sounds like a great idea. before i started using GWT i used a lot
of the mighty YUI components. a tight integration of YUI into GWT
would be great because the basic GWT widgets are not sufficient for
real world projects. however, it all depends on the speed of a
potential integration. and GWT developers do not want to sacrifice
type safety - i think they usually use java and GWT because they love
strong types.

kind regards,
ingo

On 21 Nov., 16:54, Isuru 2eis...@gmail.com wrote:
 On 08/25/2010 09:17 PM, dolcra...@gmail.com wrote:

  Why not natively port YUI to GWT?  Yeah exposing the api/library can
  make it easier if you're writing code that needs to be accessible from
  external javascript, but if you wrote it as a native/pure gwt library
  you would be able to benefit from gwt's optimizations.

  On Aug 24, 12:37 pm, Rodriguerlag...@googlemail.com  wrote:
  Hi All,

  I came to the idea to start a new open source project with the aim to
  make the YUI javascrip library available to GWT programmers.

  The idea would be to make use of the ability of GWT to declare native
  methods to wrap YUI (similar to Smart Gwt) so that we can use YUI
  widgets while writing java code in a new future.

  You can find info about YUI here:http://developer.yahoo.com/yui/

  Some interested people?

  Rod

 That would be a good idea. I don't have a depth knowledge on how to do.
 But I think if you start the project, it will success. And natively
 porting YUI to GWT is best for future implementation to GWT optimization.

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



Re: All I Want for Christmas is a powerful Widget Library from Google !

2010-11-15 Thread ingo
+1
I am currently doing the GWT project honeycrm 
http://code.google.com/p/honeycrm/.
A more powerful set of widget is the very last thing that is missing
in the GWT puzzle.

On 15 Nov., 09:39, massimo malvestio massimo.malves...@gmail.com
wrote:
 +1
 I'm currently learning SmartGWT, LGPL version.
 I obviously can't take advantage of  everything newly introduced and waited
 for a long time, like MPV, I had to wrote my own implementation 3 years ago
 to decouple code, and now I have to use their good implementation, but
 exiting from GWT standard, with a large amount of work, now to adapt my code
 to SmartGWT, and probably in the future, if there will be a chance, to adapt
 again my custom code to GWT standards.

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



Re: Developing an AppStore for a GWT / App Engine application?

2010-10-15 Thread ingo
hello Артём,

thank you very much for your input! i kept on thinking about the idea.
i had to realise that even if one could compile the plugin code (java)
to javascript the _real_ problem still remains:

- how can you load this plugin code at runtime?
- what are the implications on the development process (i.e. the way
plugins are developed/tested) when plugins are loaded dynamically?
- what must (not) be part of the plugin javascript source (e.g. to
avoid doing gwt initialisation twice (?))?

i think there are two ways to build an appstore-ish application using
gwt:

(1) static plugins: plugins are part of the codebase i.e. they are
already installed. thus they are already part of the platform and
users might (in-)activate them using the application itself. for more
details about my idea see 
http://code.google.com/p/honeycrm/wiki/PluginsStaticApproach.

(2) dynamic plugins: everyone can potentially create plugin files and
publish them somewhere on the net. users will upload them to the
(plugin-aware) application. this has to extract the plugin, put the js
source into the database and perhaps has to update the configuration.

from my point of view (1) is the preferred way of doing it because of
the simplicity of a potential implementation. for some sample code see
http://honeycrm.googlecode.com/svn/branches/PlatformTest/. (1)
simplifies a lot of things - especially the live of the plugin
developer.

how should plugins be developed and _extracted_ from the development
system (for publishing them)? if you want to create external
repositories where people can download plugins, they have to be self-
contained. how could this be achieved for (2)?

however, the most important thing i would like to discuss is: what you
think about (1) static plugins 
http://code.google.com/p/honeycrm/wiki/PluginsStaticApproach

kind regards,
ingo

On 10 Okt., 10:14, Артём artem...@gmail.com wrote:
 The first problem I see is that the GWT compiler calls System.exit,
 therefore you can't easily call it's main function from your
 program. And you can't execute it as an external program via a command-
 line either. I suppose you'll have to use a modified version of GWT to
 do that. Then there's the question of GWT compiler execution time: it
 usually takes 25-35 seconds to run GWT on my hardware, I doubt
 AppEngine will allow the request to run this long.

 On Oct 4, 5:51 pm, Ingo Jaeckel ingo.jaec...@googlemail.com wrote:

  hello everyone,

  i want to build an app store for a GWT application. users should open
  the app store from within the application, browse through apps and
  install them like they are used to it from other app stores e.g. apple
  app store or android market. i outlined my ideas about it in the wiki
  of my projecthttp://code.google.com/p/honeycrm/wiki/Plugins
  (including a more detailed description of the store, apps and sequence
  diagrams of the installation process).

  - has something like this been done before?
  - are there any best practices on this topic?
  - is it realistically i.e. a good idea to put source code into the
  plugin package (e.g. a zip file) and do the transformations
  (compilation of .java - .class using javac and .java - .js using
  GWTs compiler)? 
  seehttp://code.google.com/p/honeycrm/wiki/Plugins#installation_of_plugins
  - can i do this within google app engine or do i have to use another
  servlet container e.g. for compilation.

  kind regards,
  ingo



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



Developing an AppStore for a GWT / App Engine application?

2010-10-04 Thread Ingo Jaeckel
hello everyone,

i want to build an app store for a GWT application. users should open
the app store from within the application, browse through apps and
install them like they are used to it from other app stores e.g. apple
app store or android market. i outlined my ideas about it in the wiki
of my project http://code.google.com/p/honeycrm/wiki/Plugins
(including a more detailed description of the store, apps and sequence
diagrams of the installation process).

- has something like this been done before?
- are there any best practices on this topic?
- is it realistically i.e. a good idea to put source code into the
plugin package (e.g. a zip file) and do the transformations
(compilation of .java - .class using javac and .java - .js using
GWTs compiler)? see
http://code.google.com/p/honeycrm/wiki/Plugins#installation_of_plugins
- can i do this within google app engine or do i have to use another
servlet container e.g. for compilation.

kind regards,
ingo

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



Re: Export to CSV file...

2010-09-08 Thread ingo
hello asela,

i am doing the honeycrm project http://code.google.com/p/honeycrm/. to
import csv files, i let users insert the csv file content into a text
field. the client side code then parses the data and calls an import
rpc method to create the new entities on the server side (see
http://code.google.com/p/honeycrm/source/browse/branches/honeycrm_r134_gwt2.1m2/src/honeycrm/server/CommonServiceImpl.java#199).

to export data i would do it exactly the other way round - i would
request the data from the server, convert it into csv formatting on
the client side and write all data into a text field. i have no
experiences how good / bad this works with huge datasets.

i think you want to do the csv file creation completely on the server
side and then send a csv file back to the client. i saw people
creating HttpServlet classes for this purpose, see
http://markmail.org/message/jnr5eboc6r223xqp#query:+page:1+mid:wyztahkpkvllpr7l+state:results
i have never done something like that but i would expect that you
could send csv files to the browser like that.

hope that helps. i would appreciate it, if you could post your
progress because maybe i will have the same problem very soon.

kind regards,
ingo

On 8 Sep., 11:40, Asela Neligama aselan...@gmail.com wrote:
 Hi all,

 I need to export a list of objects (Eg. ArrayList of Strings) to a CSV
 file.
 After having a look 
 athttp://code.google.com/webtoolkit/doc/latest/RefJreEmulation.html
 it seems that java.io.FileWriter isn't supported by GWT.

 Is there a way to accomplish my task?

 Thanks in advance,
 Asela.

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



How to run my DETAILED/PRETTY compiled GWT application locally / on app engine?

2010-09-02 Thread Ingo Jaeckel
hello everyone,

i want to profile the client side code of my gwt application honeycrm.
a lot of times i read i just have to compile my application with
pretty or detailed output style. then i should run and profile it e.g.
with firebug.

compiling my app with another output style is easy i.e. integrated
into the eclipse gwt plugin. but evertime i run my application from
eclipse it is recompiled with obfuscated output style. when i compile
it using detailed and then deploy it to app engine, the gwt plugin
in eclipse compiles it again and deploys the obfuscated js code.

how can i avoid the recompilation to obfuscated code and instead run
the js code compiled with detailed output style locally / when
deployed to app engine? i found no documentation/tutorials about this
yet.. thanks everyone in advance!

kind regards,
ingo

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



Re: How to run my DETAILED/PRETTY compiled GWT application locally / on app engine?

2010-09-02 Thread ingo
hello chris,

thank you so much for your explanation. i did not know for example
that stripping away the ?gwt.codesrv fragment runs my gwt app in
javascript mode. that is very very useful, thanks for the hint. i
already identified some of my applications hotspots and fixed them!

i summed up my experiences around the topic in the wiki of my project:
http://code.google.com/p/honeycrm/wiki/Profiling

happy profiling everyone!

kind regards,
ingo

On 2 Sep., 17:23, Chris Conroy con...@google.com wrote:
 When you run from eclipse, you are running in DevMode which does not cause a
 recompile.

 If you compile your app as you like (with DETAILED or PRETTY), run from
 Eclipse, and then strip the ?gwt.codesvr fragment from your URL, you'll be
 served up the DETAILED or PRETTY compiled version that you just created. For
 the vast majority of your issues though, debugging via DevMode (read: in
 Java) is going to be what you want.

 On Thu, Sep 2, 2010 at 6:08 AM, Ingo Jaeckel 
 ingo.jaec...@googlemail.comwrote:









  hello everyone,

  i want to profile the client side code of my gwt application honeycrm.
  a lot of times i read i just have to compile my application with
  pretty or detailed output style. then i should run and profile it e.g.
  with firebug.

  compiling my app with another output style is easy i.e. integrated
  into the eclipse gwt plugin. but evertime i run my application from
  eclipse it is recompiled with obfuscated output style. when i compile
  it using detailed and then deploy it to app engine, the gwt plugin
  in eclipse compiles it again and deploys the obfuscated js code.

  how can i avoid the recompilation to obfuscated code and instead run
  the js code compiled with detailed output style locally / when
  deployed to app engine? i found no documentation/tutorials about this
  yet.. thanks everyone in advance!

  kind regards,
  ingo

  --
  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.comgoogle-web-toolkit%2Bunsubs 
  cr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-web-toolkit?hl=en.

 --
 Chris Conroy
 Software Engineer
 Google, Atlanta

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



Screencast demonstrating how to profile a GWT application with JProfiler 6

2010-08-19 Thread Ingo Jaeckel
hello everyone,

some days ago i tried to profile my gwt application and started a
discussion on the google app engine mailing list about the topic
http://groups.google.com/group/google-appengine-java/browse_thread/thread/ec21bf87d57f8a82#

just wanted to let you know that i created a 3 minute screencast
showing how it works http://www.youtube.com/watch?v=zUJUSxXOOa4

sorry for the delay when my app runs locally being profiled :) i hope
this screencast helps everyone who wants to increase his apps
performance.

kind regards,
ingo

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



How to implement pagination using GWT 2.1 M2 SimplePager?

2010-08-17 Thread Ingo Jaeckel
hello everyone,

i am using the second milestone of gwt 2.1 mostly because of the new
list view related classes (e.g. ListViewAdapter, SimplePager,
PagingListView, SingleSelectionModel, etc.). based on these new
classes i implemented my own ListView class. i retrieve a couple of
dto objects from the server side and insert them into the list view
using ListViewAdapter.setList and CellTable.setDataSize. i also found
the following example that shows pagination should work like charm in
gwt 2.1 m2: see http://gwt-bikeshed.appspot.com/Scaffold.html and
source here http://google-web-toolkit.googlecode.com/svn/trunk/bikeshed/

unfortunately, in my own ListView class that is using all the new gwt
classes the pagination does not work at all (see code here lines
293-324 of 
http://code.google.com/p/honeycrm/source/browse/branches/honeycrm_r134_gwt2.1m2/src/honeycrm/client/view/ListView.java).
the values are not inserted into the listview and the item count (page
count) is not properly updated (or set at all). everytime the pager
receives a onRangeOrSizeChanged event I call refreshPage(newPage) if
the page number really has changed. this does an RPC call retrieving
the values from the server and inserting them by calling
refreshListViewValues(). this is how it looks like:

protected void initListView() {
pager = new SimplePagerDto(ct = new CellTableDto(), 
TextLocation.CENTER) {
@Override
public void onRangeOrSizeChanged(final 
PagingListViewDto listView) {
super.onRangeOrSizeChanged(listView);

/**
 * only do something if items have already been 
loaded
 */
if (itemsHaveBeenLoadedOnce) {
final int newPage = 1 + 
listView.getPageStart() / listView.getPageSize();
final boolean changedPage = newPage != 
currentPage;

if (changedPage) {
refreshPage(newPage); // this 
does a RPC calling
refreshListViewValues on sucess
}
}
};
};

}

protected void refreshListViewValues(ListQueryResult result) {
if (!itemsHaveBeenLoadedOnce) {
initListView();
itemsHaveBeenLoadedOnce = true;
}

ArrayListDto values = new ArrayListDto();
for (final Dto dto : result.getResults()) {
values.add(dto);
}

ct.setDataSize(result.getItemCount(), true); // ct is the cell 
table instance

// give the ListViewAdapter our data
lva.setList(values);
lva.refresh();
}

does anyone have a very simple working example explaining the
principle? i do not really understand the bikeshed code. i learned
the use of the new API from here
http://stackoverflow.com/questions/2891803/how-to-use-gwt-2-1-data-presentation-widgets.
currently i do not understand how to put all those new classes
together in a small, concise and working example.

kind regards,
ingo

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



developers, developers, developers: who wants to participate in creating a new opensource crm/erp software?

2010-07-01 Thread Ingo Jaeckel
hello guys,

after customizing, migrating and suffering for challenging sugarcrm
projects for more than two years now i am currently working on a
replacement for our sugarcrm extension open quotes and contracts aka
openqc. the project is called honeycrm
http://code.google.com/p/honeycrm/. have a look at the current
development snapshot on google app engine
http://honeyyycrm.appspot.com/

even in this early stage the powerful tools and java enables us to let
the project grow fast and keep the quality at a high level. more
information about our vision can be found in our commandments
http://code.google.com/p/honeycrm/wiki/10commandments

we are looking for developers who want to participate and contribute
to the open source (GPLv3) project: we need a lot more manpower for
all sorts of things: reviewing code, doing a design, writing bullet
proof test cases, implementing all sorts of features, keeping the ui
responsive, etc.

check out the source code via svn: svn checkout
http://honeycrm.googlecode.com/svn/trunk/ honeycrm-read-only
you can also become a project member very fast and get write access to
the repository.

i am looking forward for your feedback!

kind regards,
ingo

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



Re: Testing client code fails with JDOFatalUserException: Duplicate PMF name

2010-06-29 Thread Ingo Jaeckel
hello acerezo,

i do not think that i really solved the issue. nevertheless i coded
around it a bit and now i can run server side AND client side code
test cases without any problems. feel free to browse through the
honeycrm sourcecode to see how i did it:
http://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/honeycrm/client/test

important to note is the following: since the service (communication
from client to server side) could not be constructed using
gwt.create() when the client side tests are running, i decided to
replace the service before running the tests: see
http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/client/test/AbstractClientTest.java
and 
http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/client/ServiceRegistry.java

the result is not really satisfying since i cannot run the ui code
test cases and use the correct service (that will be used in
production mode). however, i can at least test all the other stuff and
i can test the ui code with a dummy service if i want to. of course, i
still want to have a real solution (instead of this dirty workaround)
allowing me to test the client code properly. but since i found no
solution yet and the google guys did not help me out either i had to
go on with this workaround until some gwt guru comes and fixes my
issue.

by the way: i am looking for developers who are interested in
participating in the honeycrm project. we welcome everyone who wants
to contribute and give feedback to the project!

kind regards,
ingo

2010/6/28 Acerezo acerezoguil...@gmail.com:
 Hello I've the same problem Did you find the solution?

 Thanks.

 On Jun 7, 10:13 am, ingo ingo.jaec...@googlemail.com wrote:
 hello google,

 believe it or not but this seems to be a problem as huherto wrote on
 the mailing list in earlier this year. unfortunately, he did not
 receive an answer either:

 http://groups.google.com/group/google-web-toolkit/browse_thread/threa...

 would appreciate a quick response to this issue.

 kind regards,
 ingo

 On 3 Jun., 11:42, ingo ingo.jaec...@googlemail.com wrote:

  as a workaround i removed the jdoconfig.xml file from the src/WEB-INF
  directory and from the war/WEB-INF/classes/META-INF directory. then i
  instantiated the persistence manager factory by using a map like the
  following:

                  final MapString, String map = new HashMapString, 
  String();
                  map.put(javax.jdo.PersistenceManagerFactoryClass,
  org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory);
                  map.put(javax.jdo.option.ConnectionURL, appengine);
                  map.put(javax.jdo.option.NontransactionalRead, true);
                  map.put(javax.jdo.option.NontransactionalWrite, true);
                  map.put(javax.jdo.option.RetainValues, true);
                  map.put(datanucleus.appengine.autoCreateDatastoreTxns, 
  true);

                 pmf= JDOHelper.getPersistenceManagerFactory(map);

  this somehow lets the test run successfully but throws the following
  exception nevertheless:

  [WARN] StandardContext[]Exception while dispatching incoming RPC call
  com.google.gwt.user.server.rpc.UnexpectedException: Service method
  'public abstract crm.client.dto.AbstractDto
  crm.client.CommonService.get(int,long)' threw an unexpected exception:
  java.lang.NullPointerException:NoAPIenvironmentisregisteredfor
  thisthread.
          at
  com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
  378)
          at
  com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
  581)
          at
  com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
  188)
          at
  com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
  224)
          at
  com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
  62)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
          at
  com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
  288)
          at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
          at
  org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
  237)
          at
  org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
  157)
          at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
  214)
          at
  org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
  104)
          at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
  520)
          at
  org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:
  198)
          at
  org.apache.catalina.core.StandardContextValve.invoke

Re: Testing client code fails with JDOFatalUserException: Duplicate PMF name

2010-06-29 Thread Ingo Jaeckel
hello andrés,

great to hear that you checked out the sourcecode. aaah and thank you
very much for the hint! i just added the missing jar file to the
repository.

kind regards,
ingo

2010/6/29 Andrés Cerezo acerezoguil...@gmail.com:
 Hello, I'have a problem with import com.google.gwt.visualization.*; ¿perhaps
 the jar is not in the svn?.

 Thanks.

 2010/6/29 Andrés Cerezo acerezoguil...@gmail.com

 ok, I'll check out the source code and I'll tell you.

 Thanks.

 2010/6/29 Ingo Jaeckel ingo.jaec...@googlemail.com

 hello acerezo,

 i do not think that i really solved the issue. nevertheless i coded
 around it a bit and now i can run server side AND client side code
 test cases without any problems. feel free to browse through the
 honeycrm sourcecode to see how i did it:

 http://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/honeycrm/client/test

 important to note is the following: since the service (communication
 from client to server side) could not be constructed using
 gwt.create() when the client side tests are running, i decided to
 replace the service before running the tests: see

 http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/client/test/AbstractClientTest.java
 and
 http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/client/ServiceRegistry.java

 the result is not really satisfying since i cannot run the ui code
 test cases and use the correct service (that will be used in
 production mode). however, i can at least test all the other stuff and
 i can test the ui code with a dummy service if i want to. of course, i
 still want to have a real solution (instead of this dirty workaround)
 allowing me to test the client code properly. but since i found no
 solution yet and the google guys did not help me out either i had to
 go on with this workaround until some gwt guru comes and fixes my
 issue.

 by the way: i am looking for developers who are interested in
 participating in the honeycrm project. we welcome everyone who wants
 to contribute and give feedback to the project!

 kind regards,
 ingo

 2010/6/28 Acerezo acerezoguil...@gmail.com:
  Hello I've the same problem Did you find the solution?
 
  Thanks.
 
  On Jun 7, 10:13 am, ingo ingo.jaec...@googlemail.com wrote:
  hello google,
 
  believe it or not but this seems to be a problem as huherto wrote on
  the mailing list in earlier this year. unfortunately, he did not
  receive an answer either:
 
 
  http://groups.google.com/group/google-web-toolkit/browse_thread/threa...
 
  would appreciate a quick response to this issue.
 
  kind regards,
  ingo
 
  On 3 Jun., 11:42, ingo ingo.jaec...@googlemail.com wrote:
 
   as a workaround i removed the jdoconfig.xml file from the
   src/WEB-INF
   directory and from the war/WEB-INF/classes/META-INF directory. then
   i
   instantiated the persistence manager factory by using a map like the
   following:
 
                   final MapString, String map = new HashMapString,
   String();
                   map.put(javax.jdo.PersistenceManagerFactoryClass,
  
   org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory);
                   map.put(javax.jdo.option.ConnectionURL,
   appengine);
                   map.put(javax.jdo.option.NontransactionalRead,
   true);
                   map.put(javax.jdo.option.NontransactionalWrite,
   true);
                   map.put(javax.jdo.option.RetainValues, true);
  
   map.put(datanucleus.appengine.autoCreateDatastoreTxns, true);
 
                  pmf= JDOHelper.getPersistenceManagerFactory(map);
 
   this somehow lets the test run successfully but throws the following
   exception nevertheless:
 
   [WARN] StandardContext[]Exception while dispatching incoming RPC
   call
   com.google.gwt.user.server.rpc.UnexpectedException: Service method
   'public abstract crm.client.dto.AbstractDto
   crm.client.CommonService.get(int,long)' threw an unexpected
   exception:
   java.lang.NullPointerException:NoAPIenvironmentisregisteredfor
   thisthread.
           at
  
   com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:
   378)
           at
   com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
   581)
           at
  
   com.google.gwt.user.server.rpc.RemoteServiceServlet.processCall(RemoteServiceServlet.java:
   188)
           at
  
   com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:
   224)
           at
  
   com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:
   62)
           at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
           at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
           at
  
   com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
   288)
           at
   javax.servlet.http.HttpServlet.service(HttpServlet.java:806

Re: how to enable scrolling for app using DecoratedTabPanel?

2010-06-18 Thread ingo
hello stefan,

thank you very much for this hint. i think so too and i tried it. but
it does not have the desired effect. see the diff
http://code.google.com/p/honeycrm/source/detail?r=73#
i put a scrollpanel around the widget that i insert into the decorated
tab panel. did you mean it this way?

kind regards,
ingo

On 17 Jun., 19:52, Stefan Bachert stefanbach...@yahoo.de wrote:
 Hi Ingo,

 from user point of view neither of your mentiones widget should scroll
 at all.

 RootLayoutPanel
  \_ DockLayoutPanel (TabLayout class)
   \_ DecoratedTabPanel (TabCenterView class)

      \_ScrollPanel
       \_Content A
      \_ScrollPanel
       \_Content B
      \_ScrollPanel
       \_Content C

 The content page of a tab should be able to scroll.
 Just put a scrollPanel in between.

 Stefan Bacherthttp://gwtworld.de

 On Jun 16, 9:12 am, ingo ingo.jaec...@googlemail.com wrote:

  hello everyone,

  i am using the DecoratedTabPanel to split my application into several
  modules (http://honeyyycrm.appspot.com). however, i have currently no
  scrolling at all (in no browser). i read about this in the mailing
  list and it seems like a lot of developers have issues with this
  (especially when they use TabPanels). i experimented with the
  suggestions but i did not yet find a working solution. is there any
  point in the documentation describing what to do to enable scrolling
  when using TabPanels?

  this is the widget that is inserted into the 
  RootLayoutPanel:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...
  it contains a docklayoutpanel and inserts an instance of TabCenterView
  into 
  itself:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...

  RootLayoutPanel
   \_ DockLayoutPanel (TabLayout class)
    \_ DecoratedTabPanel (TabCenterView class)

  this is the current hierarchy. now which steps are neccessary to
  enable proper scrolling for the app?

  regards,
  ingo



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



my app does not work in IE at all

2010-06-16 Thread ingo
hello everyone,

i am working on the honeycrm project http://code.google.com/p/honeycrm/.
when users open the app the first thing they see is a loading screen
(similiar to gmail login). after the loading has finished the loading
dialog is hidden and the real ui is inserted into the RootLayoutPanel,
see 
http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/client/LoadingPanel.java#83.
this means a DecoratedTabPanel is inserted into the RootLayoutPanel.
this works fine in firefox, safari and chrome but not at all in IE. in
IE only a blue screen (the background color defined by the css) is
shown - nothing more. you can try the app on appengine:
honeyyycrm.appspot.com

regards,
ingo

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



how to enable scrolling for app using DecoratedTabPanel?

2010-06-16 Thread ingo
hello everyone,

i am using the DecoratedTabPanel to split my application into several
modules (http://honeyyycrm.appspot.com). however, i have currently no
scrolling at all (in no browser). i read about this in the mailing
list and it seems like a lot of developers have issues with this
(especially when they use TabPanels). i experimented with the
suggestions but i did not yet find a working solution. is there any
point in the documentation describing what to do to enable scrolling
when using TabPanels?

this is the widget that is inserted into the RootLayoutPanel:
http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/client/TabLayout.java
it contains a docklayoutpanel and inserts an instance of TabCenterView
into itself: 
http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/client/TabCenterView.java

RootLayoutPanel
 \_ DockLayoutPanel (TabLayout class)
  \_ DecoratedTabPanel (TabCenterView class)

this is the current hierarchy. now which steps are neccessary to
enable proper scrolling for the app?

regards,
ingo

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



Re: How to generate report in GWT.

2010-06-16 Thread ingo
hello gopal,

i think this is possible with the google chart api (formerly known as
visualisation api). for more details see the google code page of the
project 
http://code.google.com/p/gwt-google-apis/wiki/VisualizationSampleApplications

regards,
ingo

On 16 Jun., 12:10, gopal bhalala gopalbhal...@gmail.com wrote:
 Hi,

 My application is on school admission system.

 I want report for merit list of school admission in html or in other tools.

 Any tools in gwt for report?

 Thanking you,
 Gopal Bhalala

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



Re: my app does not work in IE at all

2010-06-16 Thread ingo
hello thomas,

thanks a lot for this hint. it solved the issue immediately (see the
diff here 
http://code.google.com/p/honeycrm/source/diff?spec=svn67r=67format=sidepath=/trunk/war/Gae.html).

kind regards,
ingo

On 16 Jun., 12:38, Thomas Broyer t.bro...@gmail.com wrote:
 On Jun 16, 9:03 am, ingo ingo.jaec...@googlemail.com wrote:

  hello everyone,

  i am working on the honeycrm projecthttp://code.google.com/p/honeycrm/.
  when users open the app the first thing they see is a loading screen
  (similiar to gmail login). after the loading has finished the loading
  dialog is hidden and the real ui is inserted into the RootLayoutPanel,
  seehttp://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl
  this means a DecoratedTabPanel is inserted into the RootLayoutPanel.
  this works fine in firefox, safari and chrome but not at all in IE. in
  IE only a blue screen (the background color defined by the css) is
  shown - nothing more. you can try the app on appengine:
  honeyyycrm.appspot.com

 Layout panels need the page to be in standards mode to work well
 (particularly in IE), yours is in quirks mode.
 Replace your doctype with a simple !DOCTYPE html, it's enough to
 switch to standards mode (that's why it has been chosen for HTML5)

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



Re: how to enable scrolling for app using DecoratedTabPanel?

2010-06-16 Thread ingo
hello oliver,

thank you very much for the link! i want to achieve a page layout
similar to the google code ui http://code.google.com/p/honeycrm/: tabs
on top of the screen and right under the tabs is the module specific
content. if the content right under the tabs is too big the whole page
or the content of the tabpanel component should have scrollbars.

at the moment i do not really care where the scrollbars are - more
importantly is that there are scrollbars at all :-)

what do you mean with your suggestion to use a dockpanel instead of a
docklayoutpanel? should this solve the problem, too? i tried and it
did not work out for me.

i will read the stuff in the docs and play around with the different
containers. would really find a solution for this issue. has anyone
some sample code that i can have a look at? in the meantime you can
have a look at my code by browsing through the project
http://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/honeycrm/client

kind regards,
ingo

On 16 Jun., 13:48, Olivier Monaco olivier.mon...@free.fr wrote:
 Do you want:
 1) scroll the whole page? Don't use layouts (*LayoutPanel), there are
 made to avoid scrolling. Did you 
 readhttp://code.google.com/intl/fr/webtoolkit/doc/latest/DevGuideUiPanels...

 Try:

 RootPanel
  \_ DockPanel
   \_ DecoratedTabPanel

 2) scroll the content area of the tabs? Add a ScrollPanel in each tab
 content.

 Olivier

 On 16 juin, 09:12, ingo ingo.jaec...@googlemail.com wrote:



  hello everyone,

  i am using the DecoratedTabPanel to split my application into several
  modules (http://honeyyycrm.appspot.com). however, i have currently no
  scrolling at all (in no browser). i read about this in the mailing
  list and it seems like a lot of developers have issues with this
  (especially when they use TabPanels). i experimented with the
  suggestions but i did not yet find a working solution. is there any
  point in the documentation describing what to do to enable scrolling
  when using TabPanels?

  this is the widget that is inserted into the 
  RootLayoutPanel:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...
  it contains a docklayoutpanel and inserts an instance of TabCenterView
  into 
  itself:http://code.google.com/p/honeycrm/source/browse/trunk/src/honeycrm/cl...

  RootLayoutPanel
   \_ DockLayoutPanel (TabLayout class)
    \_ DecoratedTabPanel (TabCenterView class)

  this is the current hierarchy. now which steps are neccessary to
  enable proper scrolling for the app?

  regards,
  ingo

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



Re: Testing client code fails with JDOFatalUserException: Duplicate PMF name

2010-06-03 Thread ingo
i could reproduce this in a minimal fresh new project with the
greeting service that initiates a persistence manager factory.
additionally i found this on the IDEA bugtracker
http://youtrack.jetbrains.net/issue/IDEA-50403

anyone?


On 2 Jun., 19:16, ingo ingo.jaec...@googlemail.com wrote:
 hello everyone,

 does anyone know the root cause of this problem? i thought the reason
 might be duplicate jdoconfig.xml file. however, it turns out that
 deleting this file from the src/META-INF/ directory is not a good idea
 since it creates even more exceptions:

 [WARN] StandardWrapperValve[shell]: Servlet.service() for servlet
 shell threw exception
 java.lang.ExceptionInInitializerError
         at
 crm.server.AbstractCommonService.clinit(AbstractCommonService.java:
 37)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at
 com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServle 
 t.java:
 953)
         at
 com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
 276)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio 
 nFilterChain.java:
 237)
         at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC 
 hain.java:
 157)
         at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j 
 ava:
 214)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex 
 tValve.java:
 198)
         at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j 
 ava:
 152)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
 137)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
 118)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 102)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:
 109)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
 929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
 160)
         at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
 799)
         at org.apache.coyote.http11.Http11Protocol
 $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
 577)
         at org.apache.tomcat.util.threads.ThreadPool
 $ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:637)
 Caused by: javax.jdo.JDOFatalUserException: A property named
 javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar
 file with
 a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be
 in the classpath, or a property named javax.jdo.option.PersistenceUnit
 Name must be specified.
 NestedThrowables:
 javax.jdo.JDOUserException: You have either specified for this PMF to
 use a persistence-unit of transactions-optional (yet this doesnt e
 xist!) or you called JDOHelper.getPersistenceManagerFactory with
 transactions-optional as the name of a properties file (and this
 doesnt e
 xist in the CLASSPATH)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 856)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 1092)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 914)
         at crm.server.PMF.clinit(PMF.java:20)
         ... 30 more
 Caused by: javax.jdo.JDOUserException: You have either specified for
 this PMF to use a persistence-unit of transactions-optional (yet
 th
 is doesnt exist!) or you called JDOHelper.getPersistenceManagerFactory
 with transactions-optional as the name of a properties file (and th
 is doesnt exist in the CLASSPATH)
         at
 org.datanucleus.jdo.JDOPersistenceManagerFactory.initialiseProperties(JDOPe 
 rsistenceManagerFactory.java:
 377)
         at
 org.datanucleus.jdo.JDOPersistenceManagerFactory.init(JDOPersistenceManag 
 erFactory.java:
 260

Re: Testing client code fails with JDOFatalUserException: Duplicate PMF name

2010-06-03 Thread ingo
)
at
org.datanucleus.store.appengine.query.JDOQLQuery.performExecute(JDOQLQuery.java:
89)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1489)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:
1371)
at org.datanucleus.store.query.Query.execute(Query.java:1344)
at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:221)
at
crm.server.AbstractCommonService.getDomainObject(AbstractCommonService.java:
75)
at crm.server.CommonServiceReader.get(CommonServiceReader.java:48)
at crm.server.CommonServiceImpl.get(CommonServiceImpl.java:54)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
com.google.gwt.user.server.rpc.RPC.invokeAndEncodeResponse(RPC.java:
562)
... 31 more
logging for HtmlUnit thread
   [ERROR] Alert: class
com.google.gwt.user.client.rpc.StatusCodeException

another user describes this problem here:
http://www.mail-archive.com/google-gu...@googlegroups.com/msg02473.html

anyone?


On 2 Jun., 19:16, ingo ingo.jaec...@googlemail.com wrote:
 hello everyone,

 does anyone know the root cause of this problem? i thought the reason
 might be duplicate jdoconfig.xml file. however, it turns out that
 deleting this file from the src/META-INF/ directory is not a good idea
 since it creates even more exceptions:

 [WARN] StandardWrapperValve[shell]: Servlet.service() for servlet
 shell threw exception
 java.lang.ExceptionInInitializerError
         at
 crm.server.AbstractCommonService.clinit(AbstractCommonService.java:
 37)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at
 com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServle 
 t.java:
 953)
         at
 com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
 276)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio 
 nFilterChain.java:
 237)
         at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC 
 hain.java:
 157)
         at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j 
 ava:
 214)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex 
 tValve.java:
 198)
         at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j 
 ava:
 152)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
 137)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
 118)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 102)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:
 109)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
 929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
 160)
         at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
 799)
         at org.apache.coyote.http11.Http11Protocol
 $Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
         at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
 577)
         at org.apache.tomcat.util.threads.ThreadPool
 $ControlRunnable.run(ThreadPool.java:683)
         at java.lang.Thread.run(Thread.java:637)
 Caused by: javax.jdo.JDOFatalUserException: A property named
 javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar
 file with
 a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be
 in the classpath, or a property named javax.jdo.option.PersistenceUnit
 Name must be specified.
 NestedThrowables:
 javax.jdo.JDOUserException: You have either specified for this PMF to
 use a persistence-unit of transactions-optional (yet this doesnt e
 xist!) or you called JDOHelper.getPersistenceManagerFactory

Testing client code fails with JDOFatalUserException: Duplicate PMF name

2010-06-02 Thread ingo
hello everyone,

i am currently doing the honeycrm project http://code.google.com/p/honeycrm/.
i wrote some server side tests that run without any problems:
http://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/crm/server/test

now, i would like to test the user interface code (e.g. testing
visibility of widgets as well as testing client-server-rpc
communication with timeouts). however, i am still unable to run the
user interface test code. for example, when i run the ServiceTest case
(http://code.google.com/p/honeycrm/source/browse/trunk/src/crm/client/
test/ServiceTest.java) i get the following exception:

Caused by: javax.jdo.JDOFatalUserException: Duplicate PMF name
transactions-optional found in file:/Users/ingo/svn/honeycrm_all/
trunk/src/
META-INF/jdoconfig.xml and file:/Users/ingo/svn/honeycrm_all/trunk/war/
WEB-INF/classes/META-INF/jdoconfig.xml.
at javax.jdo.JDOHelper.getNamedPMFProperties(JDOHelper.java:1300)
at javax.jdo.JDOHelper.getPropertiesFromJdoconfig(JDOHelper.java:
1232)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
1079)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
914)
at crm.server.PMF.clinit(PMF.java:20)
... 30 more

running the DetailViewTest (http://code.google.com/p/honeycrm/source/
browse/trunk/src/crm/client/test/DetailViewTest.java) case throws the
following exception (however, it seems like the test code is executed
nevertheless since the output is printed properly):

Starting HTTP on port 0
   HTTP listening on port 55998
Starting 
http://10.10.10.100:55998/crm.Gae.JUnit/junit.html?gwt.codesvr=10.10.10.100:55996
on browser FF3
Module crm.Gae.JUnit has been loaded
All clients connected (Limiting future permutations to: gecko1_8)
is not null
[WARN] StandardWrapperValve[shell]: Servlet.service() for servlet
shell threw exception
java.lang.ExceptionInInitializerError
at
crm.server.AbstractCommonService.clinit(AbstractCommonService.java:
37)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServlet.java:
953)
at
com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
276)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:
198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:
104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
799)
at org.apache.coyote.http11.Http11Protocol
$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
577)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:637)
Caused by: javax.jdo.JDOFatalUserException: Duplicate PMF name
transactions-optional found in file:/Users/ingo/svn/honeycrm_all/
trunk/src/
META-INF/jdoconfig.xml and file:/Users/ingo/svn/honeycrm_all/trunk/war/
WEB-INF/classes/META-INF/jdoconfig.xml.
at javax.jdo.JDOHelper.getNamedPMFProperties(JDOHelper.java:1300)
at javax.jdo.JDOHelper.getPropertiesFromJdoconfig

Re: Testing client code fails with JDOFatalUserException: Duplicate PMF name

2010-06-02 Thread ingo
)
at javax.jdo.JDOHelper$16.run(JDOHelper.java:1956)
at java.security.AccessController.doPrivileged(Native Method)
at javax.jdo.JDOHelper.invoke(JDOHelper.java:1951)
at
javax.jdo.JDOHelper.invokeGetPersistenceManagerFactoryOnImplementation(JDOHelper.java:
1159)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
839)
... 33 more
logging for HtmlUnit thread
   [ERROR] Alert: class
com.google.gwt.user.client.rpc.StatusCodeException

On 2 Jun., 11:54, ingo ingo.jaec...@googlemail.com wrote:
 hello everyone,

 i am currently doing the honeycrm projecthttp://code.google.com/p/honeycrm/.
 i wrote some server side tests that run without any 
 problems:http://code.google.com/p/honeycrm/source/browse/#svn/trunk/src/crm/se...

 now, i would like to test the user interface code (e.g. testing
 visibility of widgets as well as testing client-server-rpc
 communication with timeouts). however, i am still unable to run the
 user interface test code. for example, when i run the ServiceTest case
 (http://code.google.com/p/honeycrm/source/browse/trunk/src/crm/client/
 test/ServiceTest.java) i get the following exception:

 Caused by: javax.jdo.JDOFatalUserException: Duplicate PMF name
 transactions-optional found in file:/Users/ingo/svn/honeycrm_all/
 trunk/src/
 META-INF/jdoconfig.xml and file:/Users/ingo/svn/honeycrm_all/trunk/war/
 WEB-INF/classes/META-INF/jdoconfig.xml.
         at javax.jdo.JDOHelper.getNamedPMFProperties(JDOHelper.java:1300)
         at javax.jdo.JDOHelper.getPropertiesFromJdoconfig(JDOHelper.java:
 1232)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 1079)
         at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
 914)
         at crm.server.PMF.clinit(PMF.java:20)
         ... 30 more

 running the DetailViewTest (http://code.google.com/p/honeycrm/source/
 browse/trunk/src/crm/client/test/DetailViewTest.java) case throws the
 following exception (however, it seems like the test code is executed
 nevertheless since the output is printed properly):

 Starting HTTP on port 0
    HTTP listening on port 55998
 Startinghttp://10.10.10.100:55998/crm.Gae.JUnit/junit.html?gwt.codesvr=10.10
 on browser FF3
 Module crm.Gae.JUnit has been loaded
 All clients connected (Limiting future permutations to: gecko1_8)
 is not null
 [WARN] StandardWrapperValve[shell]: Servlet.service() for servlet
 shell threw exception
 java.lang.ExceptionInInitializerError
         at
 crm.server.AbstractCommonService.clinit(AbstractCommonService.java:
 37)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:169)
         at
 com.google.gwt.dev.shell.GWTShellServlet.tryGetOrLoadServlet(GWTShellServle 
 t.java:
 953)
         at
 com.google.gwt.dev.shell.GWTShellServlet.service(GWTShellServlet.java:
 276)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
         at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio 
 nFilterChain.java:
 237)
         at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC 
 hain.java:
 157)
         at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j 
 ava:
 214)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContex 
 tValve.java:
 198)
         at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j 
 ava:
 152)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
 137)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
 118)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 102)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav a:
 109)
         at
 org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveConte 
 xt.java:
 104)
         at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:
 520)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:
 929)
         at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:
 160)
         at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
 799)
         at org.apache.coyote.http11.Http11Protocol

How to unit test a RemoteServiceServlet referencing a PersistenceManager

2010-05-08 Thread ingo
hello everyone,

i wrote a class extending the gwttestcase class that should test my
remoteserviceservlet. i added a couple test* methods to it. as long as
i do not instantiate the remoteserviceservlet that i actually want to
test i can run the tests successfully :-) but when the
remoteserviceservlet is instantiated i got the following error:

Caused by: javax.jdo.JDOFatalUserException: Duplicate PMF name
transactions-optional found in file:/Users/ingo/svn/honeycrm_all/
trunk/src/
META-INF/jdoconfig.xml and file:/Users/ingo/svn/honeycrm_all/trunk/war/
WEB-INF/classes/META-INF/jdoconfig.xml.
at javax.jdo.JDOHelper.getNamedPMFProperties(JDOHelper.java:1300)
at javax.jdo.JDOHelper.getPropertiesFromJdoconfig(JDOHelper.java:
1232)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
1079)
at javax.jdo.JDOHelper.getPersistenceManagerFactory(JDOHelper.java:
914)
at crm.server.PMF.clinit(PMF.java:7)
... 30 more

you can browse through my sources causing the problems here
http://code.google.com/p/honeycrm/source/browse/trunk/src/crm/
(especially 
http://code.google.com/p/honeycrm/source/browse/trunk/src/crm/client/test/ServiceTest.java).

if found this error in other mailinglists / forums as well without any
solutions. does anybody know how to fix this? thanks in advance!

kind regards,
ingo

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