Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Getting NullPointerException when trying to edit JSP pages:
Getting NullPointerException when trying to edit JSP pages: [message #141091] Wed, 28 September 2005 14:28 Go to next message
James Lewis is currently offline James LewisFriend
Messages: 4
Registered: July 2009
Junior Member
I am using the eclipse 3.1 + WTP 0.7 bundle.

I have added a <%@ taglib uri="" prefix="" %> statement to a JSP page,
then when I edit the page one of two things happen:

(and I know this sounds funny!)
1. If I type in the JSP, the characters are added *backwards*. E.G.
"<html" is rendered as "<lmth" in the editor.
2. If I try and delete/paste otherwise edit any text, a
NullPointerException is thrown and in the logs I find the following
stack trace:

"!ENTRY org.eclipse.ui 4 4 2005-09-28 15:21:17.695
!MESSAGE "Delete" did not complete normally. Please see the log for
more information.

!ENTRY org.eclipse.ui 4 0 2005-09-28 15:21:17.705
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.RuntimeException: java.lang.NullPointerException
at
org.eclipse.wst.sse.core.internal.text.JobSafeStructuredDocu ment.replaceText(JobSafeStructuredDocument.java:118)
at
org.eclipse.wst.sse.core.internal.text.BasicStructuredDocume nt.replaceText(BasicStructuredDocument.java:2293)
at
org.eclipse.wst.sse.ui.internal.StructuredDocumentToTextAdap ter.replaceTextRange(StructuredDocumentToTextAdapter.java:11 87)

<snip>
Caused by: java.lang.NullPointerException
at
sun.net.www.protocol.jar.JarURLConnection.setUseCaches(JarUR LConnection.java:243)
at
org.eclipse.jst.jsp.core.internal.contentmodel.tld.CMDocumen tFactoryTLD.createCMDocument(CMDocumentFactoryTLD.java:666)
at
org.eclipse.jst.jsp.core.internal.contentmodel.tld.TLDCMDocu mentManager.loadTaglib(TLDCMDocumentManager.java:985)

<snip>

Any ideas?

Cheers,

James Lewis
Re: Getting NullPointerException when trying to edit JSP pages: [message #141678 is a reply to message #141091] Sat, 01 October 2005 00:47 Go to previous message
David Williams is currently offline David WilliamsFriend
Messages: 722
Registered: July 2009
Senior Member
On Wed, 28 Sep 2005 10:28:11 -0400, James Lewis <james.lewis@goodtechnol=
ogy.com> wrote:

> (and I know this sounds funny!)
> 1. If I type in the JSP, the characters are added *backwards*. E.G. "<=
html" is rendered as "<lmth" in the editor.
>

What backwards? How can that happen?
I didn't believe it myself until I saw it, in previous posts/bugzilla's.=


I has been fixed in 0.7.1, officially released just today,
See
http://download.eclipse.org/webtools/downloads/drops/M-0.7.1 -20050927072=
0/

I'm not sure about your other problem.
Previous Topic:Server definition for Sun Application Server
Next Topic:Update Site
Goto Forum:
  


Current Time: Fri Apr 19 10:17:31 GMT 2024

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

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

Back to the top