Code Monkey home page Code Monkey logo

realtime-json's People

Contributors

larrytin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

realtime-json's Issues

Wiki with lib usecases

It would be great if you could publish a wiki with the use cases of this lib. This would help a lot to use it.

Transpile with J2Objc

Do I have to include another lib with translating my Java code to ObjectiveC with you realtime-JSON lib?

com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

I included <inherits name="com.goodow.realtime.json.Json" />in my GWT 2.7 project. When I do GWT compile in eclipse there is no error. When I run the app in SuperDevMode and the browser triggers a recompile I get the following errors:

        Compiling 1 permutation
            Compiling permutation 0...
            [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:121)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:140)
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:132)
    at com.google.gwt.dev.jjs.impl.Devirtualizer.getStaticImpl(Devirtualizer.java:562)
    at com.google.gwt.dev.jjs.impl.Devirtualizer.access$400(Devirtualizer.java:75)
    at com.google.gwt.dev.jjs.impl.Devirtualizer$RewriteVirtualDispatches.ensureDevirtualVersionExists(Devirtualizer.java:184)
    at com.google.gwt.dev.jjs.impl.Devirtualizer$RewriteVirtualDispatches.endVisit(Devirtualizer.java:101)
    at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:580)
    at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:183)
    at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:355)
    at com.google.gwt.dev.jjs.ast.JInterfaceType.traverse(JInterfaceType.java:75)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:380)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:292)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:284)
    at com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1192)
    at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1156)
    at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:380)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:292)
    at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:284)
    at com.google.gwt.dev.jjs.impl.Devirtualizer.execImpl(Devirtualizer.java:320)
    at com.google.gwt.dev.jjs.impl.Devirtualizer.exec(Devirtualizer.java:218)
    at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler$MonolithicPermutationCompiler.normalizeSemantics(MonolithicJavaToJavaScriptCompiler.java:95)
    at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$PermutationCompiler.compilePermutation(JavaToJavaScriptCompiler.java:290)
    at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.compilePermutation(MonolithicJavaToJavaScriptCompiler.java:296)
    at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:143)
    at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:197)
    at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
    at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
    at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
    at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
    ... 27 more
               [ERROR] <no source info>: <source info not available>
               [ERROR] at JsonElement.java(19): public abstract JsonElement clear();

                  com.google.gwt.dev.jjs.ast.JMethod
               [ERROR] at JsonElement.java(18): interface JsonElement extends Serializable 
                  com.google.gwt.dev.jjs.ast.JInterfaceType
               [ERROR] at Unknown(0): <JProgram>
                  com.google.gwt.dev.jjs.ast.JProgram
            [ERROR] Unrecoverable exception, shutting down
com.google.gwt.core.ext.UnableToCompleteException: (see previous log entries)
    at com.google.gwt.dev.javac.CompilationProblemReporter.logAndTranslateException(CompilationProblemReporter.java:106)
    at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler$PermutationCompiler.compilePermutation(JavaToJavaScriptCompiler.java:367)
    at com.google.gwt.dev.jjs.MonolithicJavaToJavaScriptCompiler.compilePermutation(MonolithicJavaToJavaScriptCompiler.java:296)
    at com.google.gwt.dev.jjs.UnifiedAst.compilePermutation(UnifiedAst.java:143)
    at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:197)
    at com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
    at com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
    at java.lang.Thread.run(Thread.java:745)
            [ERROR] Not all permutation were compiled , completed (0/1)
      [WARN] recompile failed
      [WARN] continuing to serve previous version

JsonArray to List<String>

is there a faster way to get List from a JsonArray than that:

    JsonArray array = jsonObject.getArray("errorMessages");
    final List<String> errorMessages = new ArrayList<String>();
    array.forEach(new ListIterator<String>() {

      @Override
      public void call(int index, String value) {
        errorMessages.add(value);
      }
    });

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.