JDev throws NPE using Visual Editor

Hi,
I post this here for information.
Whilst trying to track down an intermittant JDev hang I ran the command line exe (jdev.exe) and saw this stack trace when using the Visual Ed to modify a panel layout.
java.lang.NullPointerException
at oracle.jdevimpl.uieditor.assistant.GridBagLayoutAssistant.prepareMouseMoveStatus(GridBagL
ayoutAssistant.java:2507)
at oracle.jdevimpl.uieditor.UIEditorController.mouseMoveNode(UIEditorController.java:767)
at oracle.jdevimpl.uieditor.uicanvas.UICanvas$GlassPane.processMouseMoved(UICanvas.java:2406
at oracle.jdevimpl.uieditor.uicanvas.UICanvas$GlassPane.processMouseMotionEvent(UICanvas.jav
a:1624)
at java.awt.Component.processEvent(Component.java:4901)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3211)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Regards
Andy

The code on that line is doing this:
<pre>
2501: public String prepareMouseMoveStatus(CmtModelNode node,
2502: CmtModelNode toNode,
2503: Point location)
2504: {
2505: Container container = toNode.getSubcomponent().getAsContainer();
2506: GridBagLayout layout = (GridBagLayout) container.getLayout();
2507: Point cell = layout.location(location.x, location.y);
</pre>
So either layout or location is null. I don't otherwise know enough about this area to say specifically what might be the problem. Can you send me sample code that reproduces the problem?
Thanks,
Brian

Similar Messages

  • Using visual editor with a modified component...

    Hi,
    I'm creating an MDI application with eclipse.
    I'm using Visual editor plugin;
    Now I've two visual class like this:
    public class CommonFrame extends JInternalFrame {
      public CommonFrame(){
        super();
    public class specificFrame extends CommonFrame {
      public specificFrame(){
        super();
    }Now when I open specificFrame class in eclipse, Visual editor try to load GUI interface, but it fails to do this and show me this error:
    java.lang.NoSuchMethodException(gui.CommonFrame.<init>())
    I grant the code works fine;
    the only problem is I must modify GUI class manually or
    I must change the code "extend CommonFrame" into "extend JInternalFrame", then graphically modify the class, and then re-change the code.
    Is there a way to resolve the above error?
    Thank you in advance.
    MargNat

    My class has a no-args constructor, that is:
    public specificFrame(/* no args */)
    According to this error message:
    java.lang.NoSuchMethodException(gui.CommonFrame.<init>())gui.CommonFrame doesn't.

  • Error in Visual Editor for java with eclipse

    hello eb
    till i ysterday i used visual editor for java with eclipse normally without any problem but to day when i opened eclipse it display me this error :
    Error trying to set new File into editor
    Motif : java.lang.NullPointerException
    and i think that the problem comes from the visual editor plugin because when i add a new frame or even for the old frame it dosent display for me the graphical component like every time
    if si has the solution or can advise me thank you alot and i really dont know what to do .
    it is for my stydy project and i have to finish xorking as fast as possible so if so can help me

    well this forum here is the official java-forum by Sun.
    you are asking for help on Eclipse, a software made by IBM since the cooperation between the two werent that bright all the time.(hence the name eclipse)
    i just looked a few hours myself, and the latest version of the VE was suited for 3.0.2, the version fitting to the latest 3.1 build of eclipse, was still just a release candidate.
    wait a few days/weeks for a final build and retry.

  • Using Visual Studio as an HTML editor with SharePoint's Design Manager

    I'm building a master page using Design Manager. I've mapped a network drive so that I can access the MasterPage.html file with an HTML editor.
    I'd like to use Visual Studio 2012 as my HTML editor.  But, when I modify MasterPage.html in VS, it creates a MasterPage.html~RF9158aed.TMP file alongside the MasterPage.html and MasterPage.master files, which breaks the master page in SharePoint.
    I can modify MasterPage.html successfully with NotePad.  I can also modify an html file, that is not associated with a folder in SharePoint via a networked drive, with VS.
    Can I use Visual Studio as an HTML editor in this scenario?  If so, what am I doing wrong?
    Your help would be much appreciated.
    Thanking you in anticipation.
    Roger
    rogerwithnell

    The TMP file is used by VS to save off changes in the file your working on, so you can perform Undos for instance.  If you shut down VS it should clean those up for you.  However, this can be a challenge if you're still working on the file.
    I would just make a copy of the MasterPage and place it in a folder outside the mapped folder.  Then you can simply copy and paste it back into the mapped folder.
    FYI, don't do this with any OOTB MasterPages!  Please make a copy and rename one that comes with SP, you don't want to change those in case you need to revert back.
    Good luck!
    Brandon Atkinson
    Blog: http://sharepointbrandon.com

  • How can I use eCompanion in the Author mode with the visual editor in Firefox?

    Our college uses eCompanion, but the current platform on works with the visual editor in the XP version of the Windows operating system. Online Chat help said that using Firefox with the Xihna Here plugin was a successful work around. I am unable to find information about the above listed plugin. I need help.

    I have been experiencing similar problems with the HTML Editor and have managed to find an answer that should start to answer some of my questions. The Apex HTML Editor Standard is actually an HTML editor called FCKeditor. The FCKeditor has a Javascript API that can be found at http://docs.fckeditor.net/FCKeditor_2.x/Developers_Guide/JavaScript_API. Unfortuately this doesn't seem to give the whole answer and I found more at http://www.houseoffusion.com/groups/cf-talk/thread.cfm/threadid:49607.
    I needed to get the text entered within my html editor standard (e.g. P1_MYTEXT) and use it within my javascript function. I did this by using the following script
    <script language="JavaScript" type="text/javascript">
    function showtext(){
    var oEditor = FCKeditorAPI.GetInstance('P1_MYTEXT');
    var editortext = escape(oEditor.GetXHTML(oEditor.FormatOutput));
    alert(editortext);
    </script>
    Hope this helps.
    Matthew

  • JDev EA BUG: Visual Editor Proxy for Custom Swing Components

    I am trying to follow help file "Registering a Java Visual Editor Proxy for Custom Components" in JDeveloper 10.1.3 EA, and it sugest that I add something in "JDeveloper\lib\addins.xml" file.
    BUT there is no such file. Anywhere!
    It exist in 10.1.2 but not in 10.1.3 EA.
    So, either an help must be changed or file must be added.

    Hi,
    thanks for reporting this. I forwarded it to our doc team for update. The online help in 10.1.3 EA is not yet throughly updated to 10.1.3.
    Frank

  • JSF Rendering in the Visual Editor

    JDeveloper frequently fails to render JSF components in the Visual Editor when running the Car Demo example (as documented on this site). The error reported is a null pointer exception inside the View Tag code, caused by an inability to create a faces context.... Does anyone have any ideas?

    Jhon, what Frank mentioned can't be fixed from the outside. You or the developers who use phase listens without thinking about the design view are the ones to fix this. Frank provided you with the solution for this.
    However, we don't know if you use any self written phase listener. If you don't do this you have another problem. I do see some of your symptoms but can't reproduce them at the moment. As long as we can't reproduce the problem somehow it's difficult to to get a solution.
    My advise is to keep your eyes open (add I do) and whenever you can reproduce this behaviour come back and tell us about it. It's hard or impossible to give the 'best' settings for Jdev.conf as they depend on other factors e.g. operating system, memory, other applications running at the same time and many more.
    Personally I don't change the parameters as long as I can't put the problems to low memory (which I can't at the moment).
    Timo

  • Visual Editor cannot show the class extending a visual class of JFrame

    Hi,
    We want to create a base frame (BaseFrame) so that every form in our application extending it to share some common properties.
    But i found that the class (OrderFrame extends BaseFrame) cannot be shown properly in Visual Editor (run is ok).
    Is there any way to resolve it?
    Code Ref:
    BaseFrame.java
    public class BaseFrame extends JFrame {
    public BaseFrame() {
    try {
    jbInit();
    } catch (Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    this.getContentPane().setLayout( null );
    this.setSize( new Dimension(400, 300) );
    this.setTitle( "Standard JFrame" );
    OrderFrame.java
    public class OrderFrame extends BaseFrame {
    public OrderFrame() {
    try {
    jbInit();
    } catch (Exception e) {
    e.printStackTrace();
    private void jbInit() throws Exception {
    }

    Olaf,
    When using your own beans it is best to create the bean in one project, and then use it in a second project. So in your example; use Project1.jpr to create, compile, test, debug BaseFrame.java. Then, once you are satisfied with it, use Project2.jpr to create, compile, test, debug MyInternalFrame.java. Your scenario works fine when adopting this approach. However, be sure that MyInternalFrame.java includes the necessary import statement for BaseFrame, and be sure that the classpath for Project2.jpr includes the path to BaseFrame.class. If you are using the default classpath settings for each project (i.e. myclasses) then the classpath concern will be taken care of for you already.
    Enjoy.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by olaf:
    Hi,
    the situation :
    BaseFrame extends JInternalFrame
    and
    MyInternalFrame extends BaseFrame
    Now I want to edit MyInternalFrame in the visual editor.
    I tried that by making a bean of BaseFrame and addiing the bean to the Palette but MyInternalFrame won't show up in the editor,
    anybody knows how to set this up ?
    Thanks,
    -- olaf<HR></BLOCKQUOTE>
    null

  • Execute JSF tags in Visual Editor?

    Hi to all,
    I'm currently using JDev 10.1.3.0.3.3412; I read that, checking "Execute tags in JSP Visual Editor" should render my jsf tags once I press the refresh button. However, I have been unable to get it to work. I have the library defined and my web app works perfectly in the OC4J server, but in the Visual Editor I can only see the names and layout of the JSF components I have, not they real look.
    Am I missing something?
    Best regards
    Alejandro

    can you reproduce in a simple case - the labels will come out as placeholder/binding text but if you drop on, for example, a table you should be the table layout and the navigation bars in that table...
    See http://www.oracle.com/technology/products/jdev/collateral/4gl/viewlets/Workshop_intro.swf - towards the end of this viewlet you see a JSF page layout - is this what you are seeing?

  • Jdeveloper 10.1.3.3.0.4157  ADF faces  Do not render in visual editor

    The ADF Faces Components do not display in the visual editor
    The code window shows all these features present and properly coded
    These components are from the ADF Faces Core page of the Component Pallete
    I tried quitting and re-starting jdeveloper , to no avail
    I placed an af:panelPage on h:form and typed in a title-(blank visual editor)
    I placed an ObjectImage and placed it on the branding facet
    I bound a logo.image to this component - (still blank visual editor)
    All of this insertions into the form are recorded in the code window
    but do not appear in the Visual Designer.
    Using jdeveloper10.1.2.2.0.4157
    JDK 1.5.0_15
    windows xp professional
    The example project is from the Book:
    Oracle JDeveloper 10g for Forms & PL/SQL Developers

    Thank you for your reply.
    On jdevelper startup I get the following message:
    ResourceManager : unable to find resource 'VM_global_library.vm' in any resource loader.
    For no Reason at all,(except for starting and shutting down jdeveloper)
    I am now getting a view: An Outline with tags in order , but not a simulation
    of a web page???But a correct development structure with tags/values identified.
    there are many libraries in the properties page , I'm a newbie so wouldn't
    know if any of these would help?

  • JSF Visual Editor does not work with Tomahawk 1.1.3

    hi,
    i am using JDeveloper 10.1.3.0.4 (SU4) with tomahawk 1.1.3 and myfaces-core 1.1.3.
    All Tomahawk components that need the extensions filter to be rendered properly cannot be displayed
    in the UI Designer anymore (e.g. Calendar). More painfully: all compontents in the container that comes after the component
    that failed rendering will not be rendered too.
    I have enabled JSP Visual Editor Preferendes 'Show Design Time Messages in Log' and got the following
    exception:
    Error exercising tag : h:panelGrid
    java.lang.IllegalStateException: ExtensionsFilter not correctly configured. JSF mapping missing. JSF pages not covered. Please see: http://myfaces.apache.org/tomahawk/extensionsFilter.html
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.throwExtensionsFilterMissing(AddResourceFactory.java:371)
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.checkEnvironment(AddResourceFactory.java:333)
         at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:288)
    But the ExtensionsFilter is configured correctly - all works fine when running the page.
    A little help was to disable the ExtensionsFilter Check in web.xml
    <context-param>
    <param-name>org.apache.myfaces.CHECK_EXTENSIONS_FILTER</param-name>
    <param-value>false</param-value>
    </context-param>
    So only the components that need the extensions filter will not be rendered - others will not be affected.
    But this is not really satisfying (btw. all worked fine with myfaces 1.1.1)
    Has anyone else got the same expirience?
    thanks

    hi,
    to work with myfaces-1.1.1 and the newer versions in jdeveloper i have changed the tlib-versionS for myfaces-impl-1.1.3 and tomahawk-1.1.3 so that they differ from the 1.1.1 libs.
    then i registered the JSP libraries tomahawk.tld from tomahawk-1.1.3.jar, myfaces_html.tld and myfaces_core.tld from myfaces-impl-1.1.3.jar
    then i have created a user library containing myfaces-api-1.1.3.jar and myfaces-impl-1.1.3.jar
    on a new created JSF i allways have to manually remove the jsf-impl.jar from WEB-INF/lib directory because it conflicts with myfaces.
    i hope this helps

  • Upgrade to IE7 gives JavaScript error in visual editor

    Hello---
    After upgrading to Internet Explorer 7, a yellow bar appears at the top of the JSP/HTML Visual Editor window saying that "This page uses JavaScript and requires a JavaScript enabled browser. Your browser is not JavaScript enabled." JavaScript is enabled in Internet Explorer. How can I make the message go away?
    Please let me know if you need more information.
    Thanks for your help.

    Hi,
    not sure what you are seeing there. The visual editor has nothing to do with the selected browser. If the editor in JDeveloper 11 shows such message then something else went wrong. One attempt to fix this - which works for me - is to remove the JDeveloper system.xxx directory (or rename it).
    Frank

  • Flash Builder 4.7 Windows 64 bits MXML visual editor ?

    Hi, I installed Flash Builder 4.7 for windows 64bits, but I can not edit mxml in visual editor, no visual flap.
    Tanks.

    I too was upset, when read it.
    Adobe labs:
    Yes, Design View has been removed from Flash Builder 4.7.  In case you need to use Design View, please use Flash builder 4.6. ...
    http://labs.adobe.com/technologies/flashbuilder4-7/?tabID=details#FAQ

  • ADF JDeveloper wysiwyg visual editor does not render properly my jspx page

    Hi everybody,
    I am working with JDev 11.1.1.5 and I have an issue with the wysiwyg visual editor.
    My jspx page does not render properly: I cannot see the full page whatever is the resolution, even in full screen mode.
    I've tried to activate in the preferences the option Show Design Time Messages in Log but it does not display any error.
    When I run my page or execute a preview of my page, my page is rendered correctly the browser.
    Can someone help please?
    Thanks by advance

    Hi Frank,
    I've tried to change the resolution but whatever is the resolution the page is not rendered correctly. Actually, I can see the full page, but there are some panel boxes which are not displayed.
    In my page, I have a main panelgrouplayout which contains 2 dashboard panels. The second dashboard contains panel boxes, only the 3 first rows of panel boxes are displayed in this dashboard panel while I have 6 rows of panel boxes.
    In the design page, when I click on the 2nd dashboard and do "design this container", I can actually see that all the rows display correctly, it simply that I do not see them all in the main page.
    In short, the 2 dashboard panels display entirely, simply the 2nd one does not show all its content while displayed in the main page.
    Is there a solution for this?
    Thanks by advance

  • The visual editor not work properly in JDeveloper 10.1.3.2

    Hi
    When I attempt to drag and drop the components of JSF into the visual editor, these components not appear properly. The visual editor just show the names of these components and put them in tree form.
    Could you please tell me how can I fix this problem.
    Message was edited by:
    waheed

    Hi,
    here is a link to a link to a link that might help
    Good luck
    Page Editor Not Using WYSIWYG Editor

Maybe you are looking for

  • Hp printers

    hi  I wanted to buy a HP printer but at first I wanted to know what's the difference between HP Color Laserjet Enterprise M651dn and HP Color Laserjet Enterprise Cp4525dn , and what does enterprise mean in these products ?

  • 24" iMac display woes on startup

    About a month and a half ago I began to notice my display would not come up when I powered up my iMac. The power light would come on but no display would show. I obviously tried everything suggested in the Support pages and then called Apple Support

  • Envy 17 3D Demo Movie Disappeared

    Have had the Envy 17 for 3 weeks. Have viewed the 3D Demo "Megamind" a couple of times with no problem. Now, if I try to launch the 3D Demo, SmartDVD starts, but the Available 3D Demos box appears, but is blank. Have tried to launch the demo from the

  • Friend switched to different smartphone, is still listed as an iMessage contact, but doesn't get messages. How to update him to a SMS contact?

    If someone could please help me to update a previous iMessage contact to a regular SMS contact, I will be very grateful!

  • User exit for Tcode CL02

    Hello all, Can anyone help me with the User exit on SAVE for the Tcode CL02 when i change some class characteristics data. Arun