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 97697 - ensureMarkIsFirst when mouse moves over fragment div tag
Summary: ensureMarkIsFirst when mouse moves over fragment div tag
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Peter Zavadsky
URL:
Keywords: REGRESSION
: 99296 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-13 02:57 UTC by Lark Fitzgerald
Modified: 2007-05-29 20:33 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2007-03-13 02:57:52 UTC
5.5.1 0308_2

1. Fresh userdir
2. New project
3. Create a new page (page2)
4. Add a page fragment to page2
5. open page fragment (double click)
6. add a property sheet to the page fragment.
7. switch back to page 2
8. Goto project tab and set page2 as Start Page
9. move your mouse over the page fragment and the error appears. 

I tried it with 5.5 and could not reproduce this issue. 

*********** Exception occurred ************ at 9:02 PM on Mar 12, 2007
java.lang.NullPointerException
   at com.sun.rave.text.Range.ensureMarkIsFirst(Range.java:184)
   at com.sun.rave.text.Range.<init>(Range.java:113)
   at com.sun.rave.text.DesignerCaret.handleSetDot(DesignerCaret.java:852)
   at com.sun.rave.text.DesignerCaret.setDot(DesignerCaret.java:765)
   at com.sun.rave.text.DesignerPaneBase.setCaretPosition
(DesignerPaneBase.java:845)
   at com.sun.rave.designer.InteractionManager.updateDropState
(InteractionManager.java:725)
   at com.sun.rave.designer.InteractionManager$MouseHandler.mouseMoved
(InteractionManager.java:2671)
   at java.awt.Component.processMouseMotionEvent(Component.java:5533)
   at javax.swing.JComponent.processMouseMotionEvent(JComponent.java:3144)
   at java.awt.Component.processEvent(Component.java:5257)
   at java.awt.Container.processEvent(Container.java:1966)
   at java.awt.Component.dispatchEventImpl(Component.java:3955)
   at java.awt.Container.dispatchEventImpl(Container.java:2024)
   at java.awt.Component.dispatchEvent(Component.java:3803)
   at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
   at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3905)
   at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
   at java.awt.Container.dispatchEventImpl(Container.java:2010)
   at java.awt.Window.dispatchEventImpl(Window.java:1778)
   at java.awt.Component.dispatchEvent(Component.java:3803)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
[catch] at java.awt.EventDispatchThread.pumpOneEventForHierarchy
(EventDispatchThread.java:242)
   at java.awt.EventDispatchThread.pumpEventsForHierarchy
(EventDispatchThread.java:163)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
   at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
   at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Lark Fitzgerald 2007-03-13 15:20:26 UTC
Went through the other components.  Here is a woodstock list of components 
that error when inside of a page fragment whose parent page is marked as the 
start page:

Property sheet, dropdown, textarea, listbox, checkbox, password, file upload, 
anchor

These do NOT error

textfield, calendar, tree, statictext, button, hyperlink, image hyperlink, 
checkbox group, radio button group, image, table, hidden field, message, 
message group, group panel, layout panel, page separator, tab set, page 
fragment, page alert, form, alert, add remove, breadcrumbs, inline help. 
Comment 2 Lark Fitzgerald 2007-03-13 15:34:50 UTC
Both the Standard, and braveheart components seem to work error free, so the 
issue is specific to woodstock.
Comment 3 Dongmei Cao 2007-03-13 18:57:41 UTC
Peter, could you please take a look at this bug since the NPE is from a designer
class? It might still be a woodstock bug.
Comment 4 Peter Zavadsky 2007-03-13 19:47:03 UTC
Yes, I am gonna have a look at it. The NPE shouldn't happen in the designer, and
I will fix at least that part, but the cause of this issue might be still
somewhere else.
Comment 5 Peter Zavadsky 2007-03-13 21:00:13 UTC
Lark I can't reproduce it. Please attach entire log. From the code, there should
be some exceptions (at least informational) which occure before this one.
Comment 6 Peter Zavadsky 2007-03-13 21:08:49 UTC
Now I succeded to reproduce it!
Comment 7 Peter Zavadsky 2007-03-13 22:00:16 UTC
Fixed in 5.5.1
Checking in designer/src/com/sun/rave/designer/InteractionManager.java;
/cvs/rave/designer/src/com/sun/rave/designer/InteractionManager.java,v  <-- 
InteractionManager.java
new revision: 1.89.2.1; previous revision: 1.89
done
Comment 8 _ krystyna 2007-03-14 01:04:44 UTC
I was able to reproduce the exception with 5.5 using the scenario which
included the property sheet. Could not reproduce with a dropdown. 
(on WXP, jdk1.6)
Comment 9 Lark Fitzgerald 2007-03-14 14:01:08 UTC
I can't reproduce it with property sheet & dropdown on 5.5:
jdk 1.5.0_08-b03, vwp 1127_6.  I have the jboss cobundle.
Comment 10 Peter Zavadsky 2007-03-28 21:32:23 UTC
*** Issue 99296 has been marked as a duplicate of this issue. ***
Comment 11 Lark Fitzgerald 2007-05-29 20:33:44 UTC
Verified using 5.5.1 FCS