As documented in WebDSL/226, StrategoAnalysisQueue can cause a null pointer exception.

More details:


heeft te maken met een file waarvoor het project niet kan worden gevonden.
In dit geval is het moeilijk te achterhalen waarom dat is…

Merk wel dat de WebDSL plugin slecht functioneerd op Windows. Een van de problemen lijkt te komen doordat StrategoObserver.tryGetProjectPath een OS-specifiek pad terug geeft; in EditorIOAgent.getProject wordt geprobeerd van het project pad een URI te maken. Dat lukt niet als er backslashes in het pad zitten. Misschien altijd padnamen met / gebruiken, dus toOSString vervangen door toString in tryGetProjectPath?


— Original message —


WebDSL #fail bij tutorial:

  • Lennart

@ 04:16 PM 10/17/2010, Xabriel J Collazo-Mojica wrote:
Subject: Stack trace from WebDSL on a Mac 64-bit
From: Xabriel J

Stack trace from WebDSL on a Mac 64-bit:

Error: Internal error evaluating strategy editor-analyze

org.strategoxt.lang.StrategoException: Exception in execution of
primitive ‘SSL_EXT_queue_analysis’
at org.strategoxt.HybridInterpreter.invoke(
at org.strategoxt.imp.runtime.Environment$1.invoke(
Caused by: org.strategoxt.lang.StrategoException: Exception in
execution of primitive ‘SSL_EXT_queue_analysis’
at org.strategoxt.lang.Context.invokePrimitive(
at org.strategoxt.lang.Context.invokePrimitive(
at trans.queue_analysis_0_0.invoke(
at trans.lifted189.invoke(
at org.strategoxt.stratego_lib.try_1_0.invoke(
at trans.read_import_0_1.invoke(
at trans.lifted183.invoke(
at trans.open_import_sig_cached_2_0.invoke(
at trans.lifted233.invoke(
at org.strategoxt.stratego_lib.dr_scope_1_1.invoke(
at trans.open_import_sig_4_0.invoke(
at trans.editor_parse_webdsl_module_0_0.invoke(
at trans.lifted99.invoke(
at org.strategoxt.stratego_lib.dr_scope_1_1.invoke(
at trans.get_imports_0_0.invoke(
at org.strategoxt.lang.SRTS_EXT_filter_1_0.filterMaintainAnnos(
at org.strategoxt.lang.SRTS_EXT_filter_1_0.invoke(
at org.strategoxt.lang.compat.override.performance_tweaks.filter_1_0_override.invoke(
at trans.lifted77.invoke(
at org.strategoxt.stratego_lib.dr_scope_1_1.invoke(
at trans.lifted76.invoke(
at org.webdsl.webdsl_generator.lifted636.invoke(
at org.strategoxt.stratego_lib.dr_scope_1_1.invoke(
at org.webdsl.webdsl_generator.in_typechecking_phase_1_0.invoke(
at trans.editor_analyze_work_0_0.invoke(
at trans.editor_analyze_0_0.invoke(
at org.strategoxt.lang.Strategy.invokeDynamic(
at org.strategoxt.lang.InteropSDefT.evaluate(
at org.strategoxt.lang.InteropSDefT.evaluate(
at org.strategoxt.lang.InteropSDefT$StrategyBody.evaluate(
at org.spoofax.interpreter.core.Interpreter.invoke(
at org.strategoxt.HybridInterpreter.invoke(
… 7 more
Caused by: java.lang.NullPointerException
at org.strategoxt.imp.runtime.stratego.QueueAnalysisPrimitive.queue(
at org.strategoxt.lang.Context.invokePrimitive(
… 38 more

Submitted by Lennart Kats on 25 October 2010 at 10:36

On 25 October 2010 at 12:54 Lennart Kats closed this issue.

On 25 October 2010 at 12:54 Lennart Kats commented:

Looking at the problematic code I think Nathan’s analysis is accurate: the exception occurs on the line

IPath absolutePath = project.getLocation().append(path);

where project cannot be null, but apparently refers to some location that does not exist in the workspace. This causes getLocation() to return null.

I changed EditorIOAgent.getProject() in revision 21299, which should address this problem.

On 8 November 2010 at 18:09 Nathan Bruning commented:

But… the tryGetProjectPath method still returns an OS-specific path. This still causes trouble for the WebDSL editor.

Would be nice not to deal with platform specific paths in the editor rules!

On 8 November 2010 at 18:09 Nathan Bruning reopened this issue.

On 9 November 2010 at 10:35 Lennart Kats commented:

Hm, well, that may be a good idea. If you want to change it to “platform independent” paths go right ahead.

On 9 November 2010 at 17:10 Lennart Kats commented:

Should be fixed in r21343: Nathan implemented /-separated paths for all platforms.

On 9 November 2010 at 17:10 Lennart Kats closed this issue.

Log in to post comments