This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 262346 - IllegalArgumentException: Token id must not be null. Fix lexer com.tsi.netbeans.modules.languages.velocity.lexer.VTLLexer@789bffd5
Summary: IllegalArgumentException: Token id must not be null. Fix lexer com.tsi.netbea...
Status: NEW
Alias: None
Product: third-party
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@third-party
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-06 13:14 UTC by scanti
Modified: 2016-06-06 13:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 224367


Attachments
stacktrace (5.62 KB, text/plain)
2016-06-06 13:14 UTC, scanti
Details

Note You need to log in before you can comment on or make changes to this bug.
Description scanti 2016-06-06 13:14:30 UTC
This issue was reported manually by ralphbenjamin.
It already has 9 duplicates 


Build: NetBeans IDE 8.1 (Build 201510222201)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.72-b15, Java(TM) SE Runtime Environment, 1.8.0_72-b15
OS: Linux

User Comments:
GUEST: editing the following source code: 

                    //Initialise the context objects
                    VelocityContext context = new VelocityContext();
                    //add variables
                    context.put("filename", FilenameUtils.getBaseName(sourceFile.getCanonicalPath()));
                    context.put("id", UUID.randomUUID());
                    //output buffer
                    String propsFileContent = VelocityProductionHelper.mergeTemplate(context, "VideoMetadata.vm");
                    //prepare output file
                    propertiesFile.createNewFile();

all projects are standard java projects

GUEST: returning to a project group i was using a short while ago

GUEST: Opening a velocity (vm) file using the third party module for syntax highlighting in velocity files

GUEST: i don't remeber what i was doing

GUEST: editing velocity .vm file

scanti: Editing a velocity template

GUEST: ...

GUEST: Mercurial Diff of velocity file




Stacktrace: 
java.lang.IllegalArgumentException: Token id must not be null. Fix lexer com.tsi.netbeans.modules.languages.velocity.lexer.VTLLexer@789bffd5
   at org.netbeans.lib.lexer.LexerInputOperation.checkTokenIdNonNull(LexerInputOperation.java:308)
   at org.netbeans.lib.lexer.LexerInputOperation.createToken(LexerInputOperation.java:313)
   at org.netbeans.spi.lexer.TokenFactory.createToken(TokenFactory.java:105)
   at org.netbeans.spi.lexer.TokenFactory.createToken(TokenFactory.java:89)
   at com.tsi.netbeans.modules.languages.velocity.lexer.VTLLexer.nextToken(VTLLexer.java:64)
   at org.netbeans.lib.lexer.LexerInputOperation.nextToken(LexerInputOperation.java:215)
Comment 1 scanti 2016-06-06 13:14:33 UTC
Created attachment 159968 [details]
stacktrace