Skip to content

Google compile error, can't compile src. #34

@GoogleCodeExporter

Description

@GoogleCodeExporter
why happened

error report:

[ERROR] An internal compiler exception occurred
com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
    at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:109)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:147)
    at com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:170)
    at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:125)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)
    at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:125)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:120)
    at com.google.gwt.dev.jjs.impl.TempLocalVisitor.visit(TempLocalVisitor.java:254)
    at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:80)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:413)
    at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:382)
    at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
    at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
    at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:98)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:287)
    at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1071)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
    at com.google.gwt.dev.jjs.impl.CompoundAssignmentNormalizer.accept(CompoundAssignmentNormalizer.java:276)
    at com.google.gwt.dev.jjs.impl.FixAssignmentToUnbox.exec(FixAssignmentToUnbox.java:97)
    at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:635)
    at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:284)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:233)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:145)
    at com.google.gwt.dev.Compiler.run(Compiler.java:232)
    at com.google.gwt.dev.Compiler.run(Compiler.java:198)
    at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
    at com.google.gwt.dev.Compiler.main(Compiler.java:177)
Caused by: java.lang.NumberFormatException: For input string: "mp"
    at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
    at java.lang.Integer.parseInt(Integer.java:447)
    at com.google.gwt.dev.jjs.impl.TempLocalVisitor$CollectScopes.endVisit(TempLocalVisitor.java:89)
    at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:51)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:144)
    ... 37 more
      [ERROR] at Bosh2Connector.java(198): String $tmp = body == null ? null : body.getAtribute("rid")
         com.google.gwt.dev.jjs.ast.JDeclarationStatement
      [ERROR] at Bosh2Connector.java(182): {
  if (this.this$0.state == Bosh2Connector$State.disconnected)
    return;
  final String httpResponse = response.getText();
  final int httpStatusCode = response.getStatusCode();
  final String lastSendedBody = (String) this.this$0.activeRequests.remove(request);
  System.out.println(" IN (" + httpStatusCode + "): " + httpResponse);
  this.this$0.fireOnBodyReceive(response, httpResponse);
  final Packet body = this.this$0.parse(response.getText().replaceAll(";", ";"));
  final String type = body == null ? null : body.getAtribute("type");
  final String receivedSid = body == null ? null : body.getAtribute("sid");
  String $tmp = body == null ? null : body.getAtribute("rid");
  final String ack = body == null ? null : body.getAtribute("ack");
  $tmp = body == null ? null : body.getAtribute("condition");
  if ($tmp != null)
    $tmp = $tmp.replace("-", "_");
  final Connector$BoshErrorCondition boshCondition = $tmp == null ? null : Connector$BoshErrorCondition.valueOf($tmp);
  final String wait = body == null ? null : body.getAtribute("wait");
  final String inactivity = body == null ? null : body.getAtribute("inactivity");
  if (wait != null && inactivity != null) {
    try {
      int w = Integer.parseInt(wait);
      int i = Integer.parseInt(inactivity);
      int t = (w + i / 2) * 1000;
      this.this$0.builder.setTimeoutMillis(t);
      GWT.log("New timeout: " + t + "ms", null);
    } catch (Exception e) {
      GWT.log("Error in wait and inactivity attributes", e);
    }
  }
  if (httpStatusCode != 200 || body == null || type != null && ("terminate".equals(type) || "error".equals(type))) {
    if (this.this$0.state == Bosh2Connector$State.resume) {
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireOnResumeFailed();
      return;
    }
    GWT.log("ERROR (" + httpStatusCode + "): " + httpResponse, null);
    ErrorCondition condition = body == null ? ErrorCondition.bad_request : ErrorCondition.undefined_condition;
    String msg = null;
    Packet error = body == null ? null : body.getFirstChild("error");
    if (error != null) {
      for (Iterator c$iterator = error.getChildren().iterator(); c$iterator.hasNext(); ) {
        Packet c = (Packet) c$iterator.next();
        String xmlns = c.getAtribute("xmlns");
        if ("text".equals(c.getName())) {
          msg = c.getCData();
          break;
        } else if (xmlns != null && "urn:ietf:params:xml:ns:xmpp-stanzas".equals(xmlns)) {
          condition = Bosh2Connector.getCondition(c.getName(), httpStatusCode);
        }
      }
    }
    if (condition == ErrorCondition.item_not_found) {
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireEventError(boshCondition, condition, msg);
    } else if (this.this$0.errorCounter < 3) {
      this.this$0.errorCounter++;
      this.this$0.send(lastSendedBody, this.this$0.standardHandler);
    } else if (type != null && "terminate".equals(type)) {
      GWT.log("Disconnected by server", null);
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireDisconnectByServer(boshCondition, condition, msg);
    } else {
      this.this$0.state = Bosh2Connector$State.disconnected;
      if (msg == null) {
        msg = "[" + httpStatusCode + "] " + condition.name().replace('_', '-');
      }
      this.this$0.fireEventError(boshCondition, condition, msg);
    }
  } else {
    this.this$0.errorCounter = 0;
    if (receivedSid != null && this.this$0.sid != null && !receivedSid.equals(this.this$0.sid)) {
      if (this.this$0.state == Bosh2Connector$State.resume)
        this.this$0.fireOnResumeFailed();
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireEventError(Connector$BoshErrorCondition.policy_violation, ErrorCondition.unexpected_request, "Unexpected session initialisation.");
    } else if (receivedSid != null && this.this$0.sid == null) {
      this.this$0.sid = receivedSid;
      Cookies.setCookie(this.val$user.getResource() + "sid", this.this$0.sid, null, null, "/", false);
      this.this$0.state = Bosh2Connector$State.connected;
    }
    if (this.this$0.state == Bosh2Connector$State.resume) {
      this.this$0.fireOnResumeSuccessed();
      this.this$0.state = Bosh2Connector$State.connected;
    }
    final List children = body.getChildren();
    if (children.size() > 0) {
      this.this$0.fireEventReceiveStanzas(children);
    }
    this.this$0.continuousConnection(ack);
  }
  System.out.println("............sid value is:" + this.this$0.sid);
}
         com.google.gwt.dev.jjs.ast.JBlock
      [ERROR] at Bosh2Connector.java(182): {
  if (this.this$0.state == Bosh2Connector$State.disconnected)
    return;
  final String httpResponse = response.getText();
  final int httpStatusCode = response.getStatusCode();
  final String lastSendedBody = (String) this.this$0.activeRequests.remove(request);
  System.out.println(" IN (" + httpStatusCode + "): " + httpResponse);
  this.this$0.fireOnBodyReceive(response, httpResponse);
  final Packet body = this.this$0.parse(response.getText().replaceAll("&semi;", ";"));
  final String type = body == null ? null : body.getAtribute("type");
  final String receivedSid = body == null ? null : body.getAtribute("sid");
  String $tmp = body == null ? null : body.getAtribute("rid");
  final String ack = body == null ? null : body.getAtribute("ack");
  $tmp = body == null ? null : body.getAtribute("condition");
  if ($tmp != null)
    $tmp = $tmp.replace("-", "_");
  final Connector$BoshErrorCondition boshCondition = $tmp == null ? null : Connector$BoshErrorCondition.valueOf($tmp);
  final String wait = body == null ? null : body.getAtribute("wait");
  final String inactivity = body == null ? null : body.getAtribute("inactivity");
  if (wait != null && inactivity != null) {
    try {
      int w = Integer.parseInt(wait);
      int i = Integer.parseInt(inactivity);
      int t = (w + i / 2) * 1000;
      this.this$0.builder.setTimeoutMillis(t);
      GWT.log("New timeout: " + t + "ms", null);
    } catch (Exception e) {
      GWT.log("Error in wait and inactivity attributes", e);
    }
  }
  if (httpStatusCode != 200 || body == null || type != null && ("terminate".equals(type) || "error".equals(type))) {
    if (this.this$0.state == Bosh2Connector$State.resume) {
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireOnResumeFailed();
      return;
    }
    GWT.log("ERROR (" + httpStatusCode + "): " + httpResponse, null);
    ErrorCondition condition = body == null ? ErrorCondition.bad_request : ErrorCondition.undefined_condition;
    String msg = null;
    Packet error = body == null ? null : body.getFirstChild("error");
    if (error != null) {
      for (Iterator c$iterator = error.getChildren().iterator(); c$iterator.hasNext(); ) {
        Packet c = (Packet) c$iterator.next();
        String xmlns = c.getAtribute("xmlns");
        if ("text".equals(c.getName())) {
          msg = c.getCData();
          break;
        } else if (xmlns != null && "urn:ietf:params:xml:ns:xmpp-stanzas".equals(xmlns)) {
          condition = Bosh2Connector.getCondition(c.getName(), httpStatusCode);
        }
      }
    }
    if (condition == ErrorCondition.item_not_found) {
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireEventError(boshCondition, condition, msg);
    } else if (this.this$0.errorCounter < 3) {
      this.this$0.errorCounter++;
      this.this$0.send(lastSendedBody, this.this$0.standardHandler);
    } else if (type != null && "terminate".equals(type)) {
      GWT.log("Disconnected by server", null);
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireDisconnectByServer(boshCondition, condition, msg);
    } else {
      this.this$0.state = Bosh2Connector$State.disconnected;
      if (msg == null) {
        msg = "[" + httpStatusCode + "] " + condition.name().replace('_', '-');
      }
      this.this$0.fireEventError(boshCondition, condition, msg);
    }
  } else {
    this.this$0.errorCounter = 0;
    if (receivedSid != null && this.this$0.sid != null && !receivedSid.equals(this.this$0.sid)) {
      if (this.this$0.state == Bosh2Connector$State.resume)
        this.this$0.fireOnResumeFailed();
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireEventError(Connector$BoshErrorCondition.policy_violation, ErrorCondition.unexpected_request, "Unexpected session initialisation.");
    } else if (receivedSid != null && this.this$0.sid == null) {
      this.this$0.sid = receivedSid;
      Cookies.setCookie(this.val$user.getResource() + "sid", this.this$0.sid, null, null, "/", false);
      this.this$0.state = Bosh2Connector$State.connected;
    }
    if (this.this$0.state == Bosh2Connector$State.resume) {
      this.this$0.fireOnResumeSuccessed();
      this.this$0.state = Bosh2Connector$State.connected;
    }
    final List children = body.getChildren();
    if (children.size() > 0) {
      this.this$0.fireEventReceiveStanzas(children);
    }
    this.this$0.continuousConnection(ack);
  }
  System.out.println("............sid value is:" + this.this$0.sid);
}
         com.google.gwt.dev.jjs.ast.JMethodBody
      [ERROR] at Bosh2Connector.java(182): {
  if (this.this$0.state == Bosh2Connector$State.disconnected)
    return;
  final String httpResponse = response.getText();
  final int httpStatusCode = response.getStatusCode();
  final String lastSendedBody = (String) this.this$0.activeRequests.remove(request);
  System.out.println(" IN (" + httpStatusCode + "): " + httpResponse);
  this.this$0.fireOnBodyReceive(response, httpResponse);
  final Packet body = this.this$0.parse(response.getText().replaceAll("&semi;", ";"));
  final String type = body == null ? null : body.getAtribute("type");
  final String receivedSid = body == null ? null : body.getAtribute("sid");
  String $tmp = body == null ? null : body.getAtribute("rid");
  final String ack = body == null ? null : body.getAtribute("ack");
  $tmp = body == null ? null : body.getAtribute("condition");
  if ($tmp != null)
    $tmp = $tmp.replace("-", "_");
  final Connector$BoshErrorCondition boshCondition = $tmp == null ? null : Connector$BoshErrorCondition.valueOf($tmp);
  final String wait = body == null ? null : body.getAtribute("wait");
  final String inactivity = body == null ? null : body.getAtribute("inactivity");
  if (wait != null && inactivity != null) {
    try {
      int w = Integer.parseInt(wait);
      int i = Integer.parseInt(inactivity);
      int t = (w + i / 2) * 1000;
      this.this$0.builder.setTimeoutMillis(t);
      GWT.log("New timeout: " + t + "ms", null);
    } catch (Exception e) {
      GWT.log("Error in wait and inactivity attributes", e);
    }
  }
  if (httpStatusCode != 200 || body == null || type != null && ("terminate".equals(type) || "error".equals(type))) {
    if (this.this$0.state == Bosh2Connector$State.resume) {
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireOnResumeFailed();
      return;
    }
    GWT.log("ERROR (" + httpStatusCode + "): " + httpResponse, null);
    ErrorCondition condition = body == null ? ErrorCondition.bad_request : ErrorCondition.undefined_condition;
    String msg = null;
    Packet error = body == null ? null : body.getFirstChild("error");
    if (error != null) {
      for (Iterator c$iterator = error.getChildren().iterator(); c$iterator.hasNext(); ) {
        Packet c = (Packet) c$iterator.next();
        String xmlns = c.getAtribute("xmlns");
        if ("text".equals(c.getName())) {
          msg = c.getCData();
          break;
        } else if (xmlns != null && "urn:ietf:params:xml:ns:xmpp-stanzas".equals(xmlns)) {
          condition = Bosh2Connector.getCondition(c.getName(), httpStatusCode);
        }
      }
    }
    if (condition == ErrorCondition.item_not_found) {
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireEventError(boshCondition, condition, msg);
    } else if (this.this$0.errorCounter < 3) {
      this.this$0.errorCounter++;
      this.this$0.send(lastSendedBody, this.this$0.standardHandler);
    } else if (type != null && "terminate".equals(type)) {
      GWT.log("Disconnected by server", null);
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireDisconnectByServer(boshCondition, condition, msg);
    } else {
      this.this$0.state = Bosh2Connector$State.disconnected;
      if (msg == null) {
        msg = "[" + httpStatusCode + "] " + condition.name().replace('_', '-');
      }
      this.this$0.fireEventError(boshCondition, condition, msg);
    }
  } else {
    this.this$0.errorCounter = 0;
    if (receivedSid != null && this.this$0.sid != null && !receivedSid.equals(this.this$0.sid)) {
      if (this.this$0.state == Bosh2Connector$State.resume)
        this.this$0.fireOnResumeFailed();
      this.this$0.state = Bosh2Connector$State.disconnected;
      this.this$0.fireEventError(Connector$BoshErrorCondition.policy_violation, ErrorCondition.unexpected_request, "Unexpected session initialisation.");
    } else if (receivedSid != null && this.this$0.sid == null) {
      this.this$0.sid = receivedSid;
      Cookies.setCookie(this.val$user.getResource() + "sid", this.this$0.sid, null, null, "/", false);
      this.this$0.state = Bosh2Connector$State.connected;
    }
    if (this.this$0.state == Bosh2Connector$State.resume) {
      this.this$0.fireOnResumeSuccessed();
      this.this$0.state = Bosh2Connector$State.connected;
    }
    final List children = body.getChildren();
    if (children.size() > 0) {
      this.this$0.fireEventReceiveStanzas(children);
    }
    this.this$0.continuousConnection(ack);
  }
  System.out.println("............sid value is:" + this.this$0.sid);
}
         com.google.gwt.dev.jjs.ast.JMethodBody
      [ERROR] at Bosh2Connector.java(182): public void onResponseReceived(Request request, Response response);

         com.google.gwt.dev.jjs.ast.JMethod
      [ERROR] at Bosh2Connector.java(132): final class Bosh2Connector$2 extends Object implements RequestCallback 
         com.google.gwt.dev.jjs.ast.JClassType
      [ERROR] at com.google.gwt.dev.jjs.ast.JProgram(0): <JProgram>
         com.google.gwt.dev.jjs.ast.JProgram



Original issue reported on code.google.com by pcens...@gmail.com on 26 Oct 2011 at 7:18

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions