GWT2.8.1 errors "Exception: com.google.gwt.core.client.JavaScriptException: (TypeError) : object_0_g$.getXXX_30_g$ is not a function"

2017-05-17 Thread Darren Smith
Hi all

since upgrading to GWT2.8.1 I am seeing an error message never before 
encountered (and I've been developing with GWT for numerous years).

   "Exception: com.google.gwt.core.client.JavaScriptException: (TypeError) 
: object_0_g$.getXXX_30_g$ is not a function"

Reverting back to GWT2.8 caused the problem to disappear.


The problem has only occurred in anonymous classes up until now (but no 
idea if that is important or not).


For example, I have

public class SomeTable extends DataGrid {

  private void initTable() {

 TextColumn arcIdCol = new TextColumn() {
@Override
public String getValue(SomeClass object) {
logger.info("= " + object.get());  // EXECUTION PROBLEM HERE
return object.get()
}
};
   ..
}

The java code compiles fine, and the GWT compilation works fine when 
SuperDev mode is launched (all done in Eclipse).

When the logger.info line is reached, the error ".. not a function" is 
thrown.

Examining in the browser debugger, I can see that the prototype (_proto_) 
associated to the " SomeClass object" parameter  does not contain the 
function get.

If I re-edit the file SomeClass.java, adding in a new dummy method, and 
re-save, then this time it works -- the function get exists.

Sounds like an incomplete incremental compilation?

What is frustrating is that the problem is sporadic - other classes 
employing the same design patterns work fine.

Has anyone encountered similar issues?

Rgs
Darren

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


Re: GWT2.8 : org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

2016-10-18 Thread Darren Smith
Hi Ian,

Yes, we are still seeing the problem. I've put it aside for the moment, 
hoping to revisit once we upgrade to a new GWT Release Candidate.
Glad to know I'm not the only one suffering from this :)

Cheers
Darren

On Monday, October 10, 2016 at 5:10:08 PM UTC+2, Ian Whyman wrote:
>
> Hi Darren,
>
> We are seeing the same issue, did you find any resolution?
>
> Regards,
>
> Ian
>
> On Thursday, 6 October 2016 08:20:49 UTC+1, Darren Smith wrote:
>>
>> Hi,
>>
>> I am developing a  that contains within it
>>   - a vanilla HttpServlet
>>   - a GWT RPC Service implementation (RemoteServiceServlet) 
>>
>> I am currently using [GWT2.8rc1].
>>
>> Both servlets manipulate XML documents, and hence make calls to the 
>> following code
>> DocumentBuilderFactory docfactory = DocumentBuilderFactory.newInstance();
>> docfactory.setNamespaceAware(true); 
>>
>> DocumentBuilder builder = docfactory.newDocumentBuilder();   // * problem 
>> here *
>>
>> When I launch the application in Eclipse, using the embedded 
>> Jetty container, the vanilla HttpServlet will fail at the line
>> DocumentBuilder builder = docfactory.newDocumentBuilder();   // * problem 
>> here *
>>
>> The error message is 
>>   java.lang.ClassCastException: 
>> org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast 
>> to org.apache.xerces.xni.parser.XMLParserConfiguration
>>
>> Having done some research, this exception is typically raised when there 
>> are several Xerces implementations found on the classpath.
>> (I can only see Xerces implementations in gwt-dev and in Eclipse as a 
>> plugin).
>>
>>
>> For the GWT RPC Service implementation, launched as part of the same 
>> , the XML document processing works fine - i.e. no exception 
>> raised.
>>
>> If I comment out in the web.xml file the GWT-RPC servlet defintion, then 
>> the vanilla HttpServlet will perform the XML document processing without an 
>> exception.
>>
>>
>> Has anyone encountered similar problems?
>>
>> Darren Smith.
>>
>>
>>

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


GWT2.8 : org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast to org.apache.xerces.xni.parser.XMLParserConfiguration

2016-10-06 Thread Darren Smith
Hi,

I am developing a  that contains within it
  - a vanilla HttpServlet
  - a GWT RPC Service implementation (RemoteServiceServlet) 

I am currently using [GWT2.8rc1].

Both servlets manipulate XML documents, and hence make calls to the 
following code
DocumentBuilderFactory docfactory = DocumentBuilderFactory.newInstance();
docfactory.setNamespaceAware(true); 

DocumentBuilder builder = docfactory.newDocumentBuilder();   // * problem 
here *

When I launch the application in Eclipse, using the embedded 
Jetty container, the vanilla HttpServlet will fail at the line
DocumentBuilder builder = docfactory.newDocumentBuilder();   // * problem 
here *

The error message is 
  java.lang.ClassCastException: 
org.apache.xerces.parsers.XIncludeAwareParserConfiguration cannot be cast 
to org.apache.xerces.xni.parser.XMLParserConfiguration

Having done some research, this exception is typically raised when there 
are several Xerces implementations found on the classpath.
(I can only see Xerces implementations in gwt-dev and in Eclipse as a 
plugin).


For the GWT RPC Service implementation, launched as part of the same 
, the XML document processing works fine - i.e. no exception 
raised.

If I comment out in the web.xml file the GWT-RPC servlet defintion, then 
the vanilla HttpServlet will perform the XML document processing without an 
exception.


Has anyone encountered similar problems?

Darren Smith.


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


Re: Request Context clear queue on method invocations when onConstraintViolation is called

2014-09-11 Thread darren . hurt
What about if your request context interface has multiple methods?

I have a save and a cancel on mine, and I have to use the cancel to do some 
server side cleanup if the user decides to abandon their changes. If I call 
save and it fails validation or whatever, and then the user decides to 
cancel, then the save method invocation is still present on the request 
context, when for a cancel call I only want a cancel call in the queue. I 
really don't understand why there is no API for manipulating the invocation 
queue, as it seems a valid thing to want to do.
I can probably make a separate context for the cancel, and do it this way, 
as in that case I'm not interested in anything that has changed in the 
'editing' context.
Is this the right approach?

-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Request Context clear queue on method invocations when onConstraintViolation is called

2014-09-11 Thread darren . hurt
In fact I can't just make a new context and send cancel(Proxy).fire() to it 
as the proxy was created by the original request (the one holding the save 
call in its invocation queue) , and it tries to call edit on the proxy in 
the GWT internals when I call cancel on the new request (why, I don't know 
- I only want to pass it across as an argument, and have no intention of 
editing it in the new context) and then falls over because the proxy was 
already edited in the original request. 

I guess my cancel will have to take different arguments and do the query 
for the object I want to get hold of and clean up in my server code 
(annoying as I'll be duplicating what the find methods on the locator do - 
albeit my factoring will mean I can do it without duplicating code, but 
still.).

Any better ideas anyone?  


On Thursday, September 11, 2014 10:43:48 AM UTC+1, darre...@gmail.com wrote:

 What about if your request context interface has multiple methods?

 I have a save and a cancel on mine, and I have to use the cancel to do 
 some server side cleanup if the user decides to abandon their changes. If I 
 call save and it fails validation or whatever, and then the user decides to 
 cancel, then the save method invocation is still present on the request 
 context, when for a cancel call I only want a cancel call in the queue. I 
 really don't understand why there is no API for manipulating the invocation 
 queue, as it seems a valid thing to want to do.
 I can probably make a separate context for the cancel, and do it this way, 
 as in that case I'm not interested in anything that has changed in the 
 'editing' context.
 Is this the right approach?



-- 
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.
For more options, visit https://groups.google.com/d/optout.


Re: Protocol Buffers for GWT: Issue 2649

2012-12-21 Thread Darren Robinson
I just starred both issues. I really hope to see support for this issue 
also. I would much prefer to use Protocol Buffers over JSON or XML for web 
applications. Protocol Buffers are so much more elegant. 

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/S28zwRl68GcJ.
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: Highcharts - updating chart with data

2011-11-17 Thread Darren Salomons
Hi Rob,  I see your demo on the site with highcharts but I don't see it in 
the code on googlecode.  Is there a different codebase that you are working 
on for the highcharts integration?

Thanks!  Darren

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/3SsrVFdjOLEJ.
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: ui:style src attribute causes error in the Google Eclipse plugin

2011-10-19 Thread Darren Salomons
Philippe,

I have found a way to use the src/main/gwt folder work seamless between m2e, 
GPE and maven-gwt-plugin. 

When using this method src/main/gwt shows up in Eclipse as a src folder and 
nothing is excluded.  Also doing a gwt:compile and gwt:run from the command 
line worked  fine as well.  You can safely put your .gwt.xml files in this 
folder and even GPE will be able find them.

Add the following to your build plugins and make sure to install the m2e 
configurator for the plugin as well.

plugin
groupIdorg.codehaus.mojo/groupId
artifactIdbuild-helper-maven-plugin/artifactId
executions
execution
idadd-source/id
phasegenerate-sources/phase
goals
goaladd-source/goal
/goals
configuration
sources
sourcesrc/main/gwt/source
/sources
/configuration
/execution
/executions
/plugin

-- 
You received this message because you are subscribed to the Google Groups 
Google Web Toolkit group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-web-toolkit/-/M__Im6L2MuwJ.
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.



click event completes in hosted mode but not once deployed?

2009-11-29 Thread darren
Hi Everyone

In my web application i have some links that, when clicked are
supposed to:
- use an RPC to get some data from the server
- construct a new Panel
- insert the panel into the browser document

My solution seems to work as expected while in hosted mode, but not
once the application is deployed.  I am using App Engine as a
server.

From what I can tell, the clickEvent does cause the asynchronous RPC
to fire, and the correct results are returned to the client.  I see
the values I expect in FireBug's header view.  For some reason the
clickEvent is not finishing as i would expect - the new panel is not
displayed.

There appear to be no errors on the server, as the logs remain
clean.

Any help on how to debug this would be much appreciated.

One possible problem area may be my use of java packages on the
client? I have my code in several packages:
com.app.client
com.app.client.model
com.app.client.util
etc

I have not made any changes to my gwt.xml file, as I'm somewhat
confused about modules.  With no changes here, the app is working as
expected in hosted mode, and the app does compile without error.

Thanks.

--

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: click event completes in hosted mode but not once deployed?

2009-11-29 Thread darren
ok, I found my problem.

In my client code, I had a try/catch expression that would ignore a
NullPointerException when a Map entry was attepted that didn't exist.
I replaced this, and my web app works as expected.

On a similar note, does anybody have any javascript debugging tips for
GWT? I have no way to set breakpoints / or otherwise observe the
javascript of my app. this is making debugging with alert statements
tedious.

On Nov 29, 12:36 am, darren minof...@gmail.com wrote:
 Hi Everyone

 In my web application i have some links that, when clicked are
 supposed to:
 - use an RPC to get some data from the server
 - construct a new Panel
 - insert the panel into the browser document

 My solution seems to work as expected while in hosted mode, but not
 once the application is deployed.  I am using App Engine as a
 server.

 From what I can tell, the clickEvent does cause the asynchronous RPC
 to fire, and the correct results are returned to the client.  I see
 the values I expect in FireBug's header view.  For some reason the
 clickEvent is not finishing as i would expect - the new panel is not
 displayed.

 There appear to be no errors on the server, as the logs remain
 clean.

 Any help on how to debug this would be much appreciated.

 One possible problem area may be my use of java packages on the
 client? I have my code in several packages:
 com.app.client
 com.app.client.model
 com.app.client.util
 etc

 I have not made any changes to my gwt.xml file, as I'm somewhat
 confused about modules.  With no changes here, the app is working as
 expected in hosted mode, and the app does compile without error.

 Thanks.

--

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.




Calling remote service defined in different module

2009-09-29 Thread Darren

I have a remote service MyServlet defined in a module module1, and
I wish to call the service from a different module module2.

The trouble is that the URL that is generated, and used for the POST
is of the form module2/MyServlet instead of module1/MyServlet. This
doesn't match the URL mapping in my web.xml

What should I do here? Should I add a URL servlet mapping for each
module that uses the servlet?

Thanks


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



Alternative Languages?

2009-06-02 Thread Darren

are there any other languages planned for the GWT? such as C# or C its
self? as not everyone knows java, and not everyone is willing to learn
a new language to use the toolkit.

since if C# and C/C++ are covered along side java, you cover almost
all the programmers who would want to/be able to, use this toolkit?


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



[gwt-contrib] Re: GWT Flash components and toggling visibility issue

2009-03-10 Thread Darren

Ray,

Thanks for the help. What you described is kinda the workaround
that I was just coding up while I was waiting for my posting to
appear.
I hadn't planned on keeping all of my state in the GWT, but to get
this to work I guess I'll have to go that route.

The solution that I'd love to see here would be for the browsers to
standardize and adopt one of the Canvas 3D approaches and I can
drop the Flash... but I'm not going to hold my breath...

Thanks,
Darren



On Mar 10, 4:01 pm, Ray Cromwell cromwell...@gmail.com wrote:
 You can try looking at my FlashCanvas class
 (http://code.google.com/p/gwt-chronoscope/source/browse/trunk/chronosc...)

 Essentially what I do is that on startup of the SWF, I invoke a GWT
 callback method. This method setups up some state, and then calls the
 SWF and tells it that it's ready as well. What happens if you toggle
 display: none? The next time the SWF is loaded, it calls the callback
 again, but this time, the GWT code sees that it is not the first time,
 so is redraws everything from scratch.

 This approach is only viable if you are keeping most of your state in
 GWT code. If you're using Flash as just a 3D renderer, consider it
 just like a DirectX/Direct3D surface, which can be lost if the user
 ALT-TABs your game or application. You detect the loss of rendering
 surface, and reupload all the state back.

 I don't really think there's a good solution for this. Sure, you could
 change tab panel to use 'visibility: hidden', but there's many other
 GWT panels that can't use visibility: hidden, because they need to
 resize when components are hidden (e.g. DisclosurePanel, StackPanel,
 etc)  Then you'd be forcing some kind of hack into all GWT components
 to use 'visibility: hidden, width: 0, height: 0, border: 0, padding:
 0, margin: 0' just to hide the Flash component.

 One thing you'll also find that that Flash's ExternalInterface doesn't
 like to be deeply nested in HTML on Internet Explorer, so if you place
 your object/embed inside of a form tag, it will break (see the
 fixSWFinIE() function in FlashCanvas).  Secondly, putting the object
 inside of a p also breaks ExternalInterface for me on IE6.

 -Ray

 On Tue, Mar 10, 2009 at 10:55 AM, Darren siegel.dar...@gmail.com wrote:

  I have a GWT application that utilizes a Flash/PaperVision3D component
  that I have created. The GWT app places creates instances of the Flash
  component on different tabs in a tab panel. During execution of the
  app, everything works great until the user starts clicking in between
  tabs. At the GWT level, the generated JavaScript is changing the
  style.display attribute to hide and show the contents of the tabs. It
  appears that the Flash component (included in the page by natively
  scripting an 'embed' tag) is reloading/restarting each time that it is
  made visible.

  How can I prevent it from restarting/reloading? I don't have much
  control at all over the fact that the DIV tag is getting set to
  style.display = 'none', as that is being controlled by the
  autogenerated GWT code, so I can't take the route of playing some
  games of setting transparency or shrinking it down. Is there some
  setting perhaps in the Flex/Flash development to allow it to do this?
  Or maybe in the Embed tag? Or even at the JavaScript level?

  It seems that a side effect of the unloading/reloading is that the API
  that I export from my Flash component via ExternalInterface is not
  available when the component is not visible.

  I know there are plenty of GWT Flash based components out there? How
  have you folks solved this problem in those and similar components?

  Thanks,
  Darren
--~--~-~--~~~---~--~~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~--~~~~--~~--~--~---



Re: Google Reader Splitter

2009-01-20 Thread Darren Bell
anyone help?

On Mon, Jan 19, 2009 at 5:25 PM, Kango_V djb.b...@gmail.com wrote:

 I'm trying to implement a splitter the same as that used in Google
 Reader.  This is more of a collapsible panel rather than a splitter
 though.

 Anyone give me some pointers or explain how it's done.

 Thanks.

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



Geocode Directions?

2008-12-11 Thread Darren

I'm wish to return the distance and expected travel time from point A
to point B. I don't particularly want to view the polyline - I'm just
really after the distance and expected travel time.

I do a lot of geocoding and would love to add this information to what
I'm doing - is it possible?

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~--~~~~--~~--~--~---