java.lang.RuntimeException: The following request caused an error to be thrown: {"endpoint":"language","method":"getAllDiagnostics","arguments":["composer-app"]} TypeError: Cannot convert undefined or null to object at LanguageEndpoint.getAllDiagnostics (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:54990:20) at Main.processRequest (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:55243:37) at Interface.<anonymous> (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:55232:23) at emitOne (events.js:96:13) at Interface.emit (events.js:188:7) at Interface._onLine (readline.js:224:10) at Interface.<anonymous> (readline.js:357:12) at Array.forEach (native) at Interface._normalWrite (readline.js:356:11) at Socket.ondata (readline.js:96:10)

GitHub | markwongsk | 4 months ago
  1. 0

    GitHub comment 323#235984366

    GitHub | 4 months ago | markwongsk
    java.lang.RuntimeException: The following request caused an error to be thrown: {"endpoint":"language","method":"getAllDiagnostics","arguments":["composer-app"]} TypeError: Cannot convert undefined or null to object at LanguageEndpoint.getAllDiagnostics (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:54990:20) at Main.processRequest (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:55243:37) at Interface.<anonymous> (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:55232:23) at emitOne (events.js:96:13) at Interface.emit (events.js:188:7) at Interface._onLine (readline.js:224:10) at Interface.<anonymous> (readline.js:357:12) at Array.forEach (native) at Interface._normalWrite (readline.js:356:11) at Socket.ondata (readline.js:96:10)
  2. 0

    TypeError: Cannot call method 'isError' of null

    GitHub | 2 years ago | mttcr
    java.lang.RuntimeException: The following request caused an error to be thrown: {"endpoint":"language","method":"getEmitOutput","arguments":["core-web","eclipse:/core-web/app/core/gui/controllers/TopWindow.ts"]} TypeError: Cannot call method 'isError' of null at getIDForTypeSubstitutionsOfType (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:44056:18) at GetIDForTypeSubStitutionWalker.memberSymbolWalk (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:44083:57) at Object.walkPullTypeSymbolStructure (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:61973:39) at getIDForTypeSubstitutionsFromObjectType (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:44072:36) at getIDForTypeSubstitutionsOfType (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:44059:25) at getIDForTypeSubstitutions (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:44047:53) at PullTypeSymbol.addSpecialization (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:42480:49) at Function.PullInstantiatedTypeReferenceSymbol.create (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:62831:22) at PullTypeResolver.instantiateType (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:57500:71) at PullInstantiatedTypeReferenceSymbol.populateInstantiatedMemberFromReferencedMember (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:62891:63) at PullInstantiatedTypeReferenceSymbol.findMember (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:62950:26) at PullTypeResolver.getNamedPropertySymbol (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:45467:33) at PullTypeResolver._getNamedPropertySymbolOfAugmentedType (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:45442:37) at PullTypeResolver.computeDottedNameExpressionFromLHS (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:51404:35) at PullTypeResolver.computeDottedNameExpression (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:51334:25) at PullTypeResolver.resolveDottedNameExpression (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:51313:31) at PullTypeResolver.resolveMemberAccessExpression (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:51300:25) at PullTypeResolver.resolveExpressionWorker (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50687:33) at PullTypeResolver.resolveExpressionAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50660:41) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50483:29) at PullTypeResolver.computeInvocationExpressionSymbol (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:53129:37) at PullTypeResolver.resolveInvocationExpression (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:53072:31) at PullTypeResolver.resolveExpressionWorker (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50708:33) at PullTypeResolver.resolveExpressionAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50660:41) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50483:29) at PullTypeResolver.resolveExpressionStatement (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:53058:22) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50602:33) at PullTypeResolver.resolveList (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49519:26) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50498:33) at PullTypeResolver.resolveBlock (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49979:22) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50623:33) at PullTypeResolver.typeCheckIfStatement (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49958:18) at PullTypeResolver.resolveIfStatement (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49948:22) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50617:33) at PullTypeResolver.resolveList (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49519:26) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50498:33) at PullTypeResolver.resolveBlock (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49979:22) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50623:33) at PullTypeResolver.typeCheckAnyFunctionDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:48622:18) at PullTypeResolver.resolveFunctionDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49148:22) at PullTypeResolver.resolveMemberFunctionDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:48762:25) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50578:33) at PullTypeResolver.resolveList (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49519:26) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50498:33) at PullTypeResolver.typeCheckClassDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:46693:18) at PullTypeResolver.resolveClassDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:46656:22) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50516:33) at PullTypeResolver.resolveList (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49519:26) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50498:33) at PullTypeResolver.typeCheckSingleModuleDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:46328:22) at PullTypeResolver.typeCheckModuleDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:46318:26) at PullTypeResolver.resolveModuleDeclaration (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:46244:22) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50510:33) at PullTypeResolver.resolveList (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:49519:26) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50498:33) at PullTypeResolver.resolveSourceUnit (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:46112:18) at PullTypeResolver.resolveAST (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:50504:33) at Function.PullTypeResolver.typeCheck (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:55957:26) at TypeScriptCompiler.getSemanticDiagnostics (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:66087:41) at LanguageServiceCompiler.getSemanticDiagnostics (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:70440:38) at LanguageService.getSemanticDiagnostics (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:72008:38) at LanguageService.getEmitOutput (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:72052:67) at LanguageService.getEmitOutputFiles (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:76026:51) at LanguageEndpoint.getEmitOutput (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:76852:54) at Main.processRequest (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:77069:37) at Interface.<anonymous> (C:\java\prg\eclipse44_64\plugins\com.palantir.typescript_1.0.1.v20140918-2352\bin\bridge.js:77053:23) at Interface.EventEmitter.emit (events.js:95:17) at Interface._onLine (readline.js:202:10) at Interface.<anonymous> (readline.js:322:12) at Array.forEach (native) at Interface._normalWrite (readline.js:321:11) at Socket.ondata (readline.js:91:10) at Socket.EventEmitter.emit (events.js:95:17) at Socket.<anonymous> (_stream_readable.js:746:14) at Socket.EventEmitter.emit (events.js:92:17) at emitReadable_ (_stream_readable.js:408:10) at emitReadable (_stream_readable.js:404:5) at readableAddChunk (_stream_readable.js:165:9) at Socket.Readable.push (_stream_readable.js:127:10) at Pipe.onread (net.js:528:21)
  3. 0

    GitHub comment 77#24987067

    GitHub | 3 years ago | aquavit
    java.lang.RuntimeException: The following request caused an error to be thrown: {"service":"language","method":"getAllDiagnostics","arguments":[]} {}
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    TypeError: Cannot call method 'diagnostics' of null

    GitHub | 3 years ago | barakka
    java.lang.RuntimeException: The following request caused an error to be thrown: {"service":"language","method":"getEmitOutput","arguments":["C:\\Users\\usu\\workspace\\NOMHAD-repo\\NOMHAD-cmr-plugin\\target\\classes\\library\\patientSummary.ts"]} TypeError: Cannot call method 'diagnostics' of null at TypeScriptCompiler.getSyntacticDiagnostics (C:\Development\eclipse\plugins\com.palantir.typescript_1.0.0.v20130820-0747\bin\bridge.js:53969:47) at CompilerState.getSyntacticDiagnostics (C:\Development\eclipse\plugins\com.palantir.typescript_1.0.0.v20130820-0747\bin\bridge.js:57827:34) at CompilerState.getEmitOutput (C:\Development\eclipse\plugins\com.palantir.typescript_1.0.0.v20130820-0747\bin\bridge.js:57891:58) at LanguageService.getEmitOutput (C:\Development\eclipse\plugins\com.palantir.typescript_1.0.0.v20130820-0747\bin\bridge.js:59151:39) at LanguageService.getEmitOutput (C:\Development\eclipse\plugins\com.palantir.typescript_1.0.0.v20130820-0747\bin\bridge.js:63241:41) at Main.processRequest (C:\Development\eclipse\plugins\com.palantir.typescript_1.0.0.v20130820-0747\bin\bridge.js:63348:37) at Interface.<anonymous> (C:\Development\eclipse\plugins\com.palantir.typescript_1.0.0.v20130820-0747\bin\bridge.js:63334:23) at Interface.EventEmitter.emit (events.js:95:17) at Interface._onLine (readline.js:202:10) at Interface.<anonymous> (readline.js:322:12)
  6. 0

    GitHub comment 38#23235638

    GitHub | 3 years ago | paztis
    java.lang.RuntimeException: The following request caused an error to be thrown: {"service":"language","method":"setFileOpen","arguments":["D:\\Workspaces\\TypeScript\\Test\\TotoProject\\src\\aaaa.ts",true]} TypeError: Cannot call method 'setOpen' of undefined at LanguageServiceHost.setFileOpen (C:\Eclipse_TypeScript\plugins\com.palantir.typescript_1.0.0.v20130825-2035\bin\bridge.js:63222:42) at LanguageService.setFileOpen (C:\Eclipse_TypeScript\plugins\com.palantir.typescript_1.0.0.v20130825-2035\bin\bridge.js:63557:38) at Main.processRequest (C:\Eclipse_TypeScript\plugins\com.palantir.typescript_1.0.0.v20130825-2035\bin\bridge.js:63596:37) at Interface.<anonymous> (C:\Eclipse_TypeScript\plugins\com.palantir.typescript_1.0.0.v20130825-2035\bin\bridge.js:63582:23) at Interface.EventEmitter.emit (events.js:95:17) at Interface._onLine (readline.js:202:10) at Interface.<anonymous> (readline.js:322:12) at Array.forEach (native) at Interface._normalWrite (readline.js:321:11) at Socket.ondata (readline.js:91:10)

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.RuntimeException

      The following request caused an error to be thrown: {"endpoint":"language","method":"getAllDiagnostics","arguments":["composer-app"]} TypeError: Cannot convert undefined or null to object at LanguageEndpoint.getAllDiagnostics (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:54990:20) at Main.processRequest (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:55243:37) at Interface.<anonymous> (/Users/mwong/github/eclipse-typescript/com.palantir.typescript/bin/bridge.js:55232:23) at emitOne (events.js:96:13) at Interface.emit (events.js:188:7) at Interface._onLine (readline.js:224:10) at Interface.<anonymous> (readline.js:357:12) at Array.forEach (native) at Interface._normalWrite (readline.js:356:11) at Socket.ondata (readline.js:96:10)

      at com.palantir.typescript.services.Bridge.processRequest()
    2. com.palantir.typescript
      TypeScriptBuilder.build
      1. com.palantir.typescript.services.Bridge.processRequest(Bridge.java:142)
      2. com.palantir.typescript.services.Bridge.call(Bridge.java:95)
      3. com.palantir.typescript.services.language.LanguageEndpoint.getAllDiagnostics(LanguageEndpoint.java:113)
      4. com.palantir.typescript.TypeScriptBuilder.createMarkers(TypeScriptBuilder.java:330)
      5. com.palantir.typescript.TypeScriptBuilder.build(TypeScriptBuilder.java:195)
      6. com.palantir.typescript.TypeScriptBuilder.fullBuild(TypeScriptBuilder.java:128)
      7. com.palantir.typescript.TypeScriptBuilder.build(TypeScriptBuilder.java:90)
      7 frames
    3. Core Resource Management
      BuildManager$2.run
      1. org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:734)
      1 frame
    4. Eclipse Core
      SafeRunner.run
      1. org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
      1 frame
    5. Core Resource Management
      Project.build
      1. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:205)
      2. org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:329)
      3. org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:404)
      4. org.eclipse.core.internal.resources.Project$1.run(Project.java:556)
      5. org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2241)
      6. org.eclipse.core.internal.resources.Project.internalBuild(Project.java:534)
      7. org.eclipse.core.internal.resources.Project.build(Project.java:119)
      7 frames
    6. com.palantir.typescript
      Builders$1.run
      1. com.palantir.typescript.Builders$1.run(Builders.java:103)
      1 frame
    7. Eclipse Jobs
      Worker.run
      1. org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
      1 frame