File Upload Problem - java.lang.NoClassDefFoundError: Could not initialize class org.apache.commons.fileupload.disk.DiskFileItem

2012-03-29 Thread Nishant
Hi,

I have problem with the File Upload in GWT using the Apache Commons
File Upload.

I am using Windows XP + Eclipse Indigo + GWT for Eclipse Indigo.
I have the following jars in my Build Path and the war/WEB-INF/lib
*commons-fileupload-1.2.3.jar
commons-io-2.1.jar*

I am trying to upload file from the client to server following the
code on this link http://commons.apache.org/fileupload/using.html

But every time I try to upload a file I get one of the following
errors

java.lang.NoClassDefFoundError: Could not initialize class
org.apache.commons.fileupload.disk.DiskFileItem
   at
org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(
DiskFileItemFactory.java:
199)
   at
org.apache.commons.fileupload.FileUploadBase.parseRequest(
FileUploadBase.java:
361)
   at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
ServletFileUpload.java:
126)
   at
com.tibco.gwt.server.FileUploadServlet.doPost(FileUploadServlet.java:
28)

or

java.lang.NoClassDefFoundError: java.rmi.server.UID is a restricted
class. Please see the Google  App Engine developer's guide for more
details.
   at
com.google.appengine.tools.development.agent.runtime.
Runtime.reject(Runtime.java:
51)
   at
org.apache.commons.fileupload.disk.DiskFileItem.(DiskFileItem.java:
109)
   at
org.apache.commons.fileupload.disk.DiskFileItemFactory.createItem(
DiskFileItemFactory.java:
199)
   at
org.apache.commons.fileupload.FileUploadBase.parseRequest(
FileUploadBase.java:
361)
   at
org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(
ServletFileUpload.java:
126)
   at
com.tibco.gwt.server.FileUploadServlet.doPost(FileUploadServlet.java:
28)

The error is always at the following line:
*// Parse the request
List /* FileItem */ items = upload.parseRequest(request);*

Can any of you experts let me the solution for this problem.

Regards,
Nishant 

-- 
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/-/HKfLvsBE5ggJ.
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: To poll server when a event happens

2011-08-27 Thread nishant mc
public static void doWhatever(String id) { //doing

greetingService.greetServer(id,
new AsyncCallback() {
public void onFailure(Throwable caught) 
{
// Show the RPC error message 
to the user
dialogBox

.setText("Remote Procedure Call - Failure");
serverResponseLabel

.addStyleName("serverResponseLabelError");

serverResponseLabel.setHTML(SERVER_ERROR);
dialogBox.center();
closeButton.setFocus(true);
}

public void onSuccess(String result) {
dialogBox.setText("Remote 
Procedure Call");
serverResponseLabel

.removeStyleName("serverResponseLabelError");

serverResponseLabel.setHTML(result);
dialogBox.center();
closeButton.setFocus(true);
}
});

}
public static native void defineBridgeMethod() /*-{
$wnd.doWhatever = function(id) {
$wnd.alert(id);
   return @com.faceme.client.FaceMe::doWhatever(Ljava/lang/String;)
(id);
}
 }-*/;


This is a code which i tried to do. But even the alert is not showing
when i call doWhatever from page


On Aug 27, 10:56 am, nishant mc  wrote:
> Hi,
>
> My req is, I have a JS library which authenticates the user, After
> this event i have to load some data into the table. The table is a
> flextable.
> So what i was wondering is can i call a function in server via a
> javascript call which loads the data from database and fill values in
> the flextable.
>
> Please help me.
>
> Thanks and Regards,
>
> Nishant.M.C

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



To poll server when a event happens

2011-08-27 Thread nishant mc

Hi,

My req is, I have a JS library which authenticates the user, After
this event i have to load some data into the table. The table is a
flextable.
So what i was wondering is can i call a function in server via a
javascript call which loads the data from database and fill values in
the flextable.

Please help me.

Thanks and Regards,

Nishant.M.C

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



Menu Bar and Hot Key

2008-09-23 Thread nishant (bhai)

Hi,
 can i used hot key in menu bar(like combination of alt+f).Please
guide me as soon as posssible.i have posted this query yesterday
also,but i haven't received any mail regarding this query.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Regarding MenuBar

2008-09-23 Thread nishant (bhai)

Can i select menu item by using hot key(like combination of alt+f
etc.).If yes so please guide me .I have another problem with
setAccesskey(char ) method of HasFocus Interface  .It is working fine
with Button ,but not working with PushButton and ToggleButton.while it
implemented in all class(button,pushbutton etc).Please guide me as
soon as 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
-~--~~~~--~~--~--~---