coodysk8er
13 May 2009, 10:48 PM
I am using gxt1.2.4 with GWT and Google App Engine.
I got this weird error when compiling(Only ie6 successes, other failed).
I fund it happened when doing a RPC call. I marked the place below.
This is the error message.
[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError: null
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
.
.
.
...
This is my source code
=============================================
public class AccessControl extends SelectionListener<ComponentEvent>{
private Button doRegisterButton;
//skip some code
public void componentSelected(ComponentEvent ce) {
if(ce.component == doRegisterButton)
{
Account account = new Account();
doRegister(account);
waitingBox = MessageBox.wait("Progress", "Conneting to Server...", "Waiting...");
}
}
private void doRegister(Account account)
{
AccessServiceAsync accessService = (AccessServiceAsync)GWT.create(AccessService.class);
//Error occurs here!!!!!!!!!!!! when do a RCP call !!!!
accessService.register("hello", new AsyncCallback<String>() {
@Override
public void onFailure(Throwable caught) {
if(waitingBox != null)
waitingBox.close();
MessageBox.alert("Registeration Failed", "Please Try Again Later", null);
}
@Override
public void onSuccess(String result) {
if(waitingBox != null)
waitingBox.close();
}
});
}
}
Please help me! Thank you!
I got this weird error when compiling(Only ie6 successes, other failed).
I fund it happened when doing a RPC call. I marked the place below.
This is the error message.
[ERROR] Unexpected internal compiler error
java.lang.StackOverflowError: null
at java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
at java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.refill(Unknown Source)
at java.io.ObjectInputStream$BlockDataInputStream.read(Unknown Source)
at java.io.DataInputStream.readInt(Unknown Source)
.
.
.
...
This is my source code
=============================================
public class AccessControl extends SelectionListener<ComponentEvent>{
private Button doRegisterButton;
//skip some code
public void componentSelected(ComponentEvent ce) {
if(ce.component == doRegisterButton)
{
Account account = new Account();
doRegister(account);
waitingBox = MessageBox.wait("Progress", "Conneting to Server...", "Waiting...");
}
}
private void doRegister(Account account)
{
AccessServiceAsync accessService = (AccessServiceAsync)GWT.create(AccessService.class);
//Error occurs here!!!!!!!!!!!! when do a RCP call !!!!
accessService.register("hello", new AsyncCallback<String>() {
@Override
public void onFailure(Throwable caught) {
if(waitingBox != null)
waitingBox.close();
MessageBox.alert("Registeration Failed", "Please Try Again Later", null);
}
@Override
public void onSuccess(String result) {
if(waitingBox != null)
waitingBox.close();
}
});
}
}
Please help me! Thank you!