Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » NPE when trying to work on SQL file
NPE when trying to work on SQL file [message #51581] Wed, 19 November 2008 07:00 Go to next message
Lars Vogel is currently offline Lars Vogel
Messages: 1049
Registered: July 2009
Senior Member

Hi,

if I try to open an .sql file with the SQL file editor I receive NPE.

java.lang.NullPointerException
at
org.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLPar titionScanner.setCommentsScanner(SQLPartitionScanner.java:20 6)
at
org.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLPar titionScanner. <init>(SQLPartitionScanner.java:199)
at
org.eclipse.datatools.sqltools.sqleditor.SQLEditor.setupDocu mentPartitioner(SQLEditor.java:1657)
at
org.eclipse.datatools.sqltools.sqleditor.SQLEditor.doSetInpu t(SQLEditor.java:906)
at
org.eclipse.datatools.sqltools.internal.sqlscrapbook.editor. SQLScrapbookEditor.doSetInput(SQLScrapbookEditor.java:173)
at
org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:3026)
at
org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)
--

Any advise how to solve this?

Best regards, Lars
Re: NPE when trying to work on SQL file [message #51623 is a reply to message #51581] Sun, 30 November 2008 21:54 Go to previous message
Lars Vogel is currently offline Lars Vogel
Messages: 1049
Registered: July 2009
Senior Member

I posted a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=256997

Lars Vogel wrote:
> Hi,
>
> if I try to open an .sql file with the SQL file editor I receive NPE.
>
> java.lang.NullPointerException
> at
> org.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLPar titionScanner.setCommentsScanner(SQLPartitionScanner.java:20 6)
>
> at
> org.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLPar titionScanner. <init>(SQLPartitionScanner.java:199)
>
> at
> org.eclipse.datatools.sqltools.sqleditor.SQLEditor.setupDocu mentPartitioner(SQLEditor.java:1657)
>
> at
> org.eclipse.datatools.sqltools.sqleditor.SQLEditor.doSetInpu t(SQLEditor.java:906)
>
> at
> org.eclipse.datatools.sqltools.internal.sqlscrapbook.editor. SQLScrapbookEditor.doSetInput(SQLScrapbookEditor.java:173)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:3026)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)


--
Lars Vogel
http://www.vogella.de/eclipse.html - Tutorials about Eclipse
http://www.vogella.de/articles/RichClientPlatform/article.ht ml - Eclipse
RCP Tutorial
Re: NPE when trying to work on SQL file [message #593952 is a reply to message #51581] Sun, 30 November 2008 21:54 Go to previous message
Lars Vogel is currently offline Lars Vogel
Messages: 1049
Registered: July 2009
Senior Member

I posted a bug: https://bugs.eclipse.org/bugs/show_bug.cgi?id=256997

Lars Vogel wrote:
> Hi,
>
> if I try to open an .sql file with the SQL file editor I receive NPE.
>
> java.lang.NullPointerException
> at
> org.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLPar titionScanner.setCommentsScanner(SQLPartitionScanner.java:20 6)
>
> at
> org.eclipse.datatools.sqltools.sqleditor.internal.sql.SQLPar titionScanner. <init>(SQLPartitionScanner.java:199)
>
> at
> org.eclipse.datatools.sqltools.sqleditor.SQLEditor.setupDocu mentPartitioner(SQLEditor.java:1657)
>
> at
> org.eclipse.datatools.sqltools.sqleditor.SQLEditor.doSetInpu t(SQLEditor.java:906)
>
> at
> org.eclipse.datatools.sqltools.internal.sqlscrapbook.editor. SQLScrapbookEditor.doSetInput(SQLScrapbookEditor.java:173)
>
> at
> org.eclipse.ui.texteditor.AbstractTextEditor$19.run(Abstract TextEditor.java:3026)
>
> at
> org.eclipse.jface.operation.ModalContext.runInCurrentThread( ModalContext.java:458)
>
> at org.eclipse.jface.operation.ModalContext.run(ModalContext.ja va:366)


--
Lars Vogel
http://www.vogella.de/eclipse.html - Tutorials about Eclipse
http://www.vogella.de/articles/RichClientPlatform/article.ht ml - Eclipse
RCP Tutorial
Previous Topic:How to go about a DDL parser
Next Topic:Tool for atuogenerating DAO's
Goto Forum:
  


Current Time: Fri Oct 24 21:23:12 GMT 2014

Powered by FUDForum. Page generated in 0.01674 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software