Component MethodBinding NullPointerException

Hey everybody.. this is an issue that has been giving me problems for a while now, and I haven't been able to figure it out. I've created a menu bar component which I use in this fashion in my pages:
<or:menuBar pageClass="#{menuBarBean.PAGECLASS_HOME}" msg="#{menuBarBean.numQuestionsMessage}" />In my renderer for this component, I have set up HtmlCommandLinks which are supposed to invoke navigation methods in my MenuBarBean. The problem is, whenever I click on one of the links, a NullPointerException is thrown in my renderer's encodeEnd method.
All the piping seems to be working for the tag and the component.. meaning the "pageClass" and "msg" attributes get set and rendered properly on the menuBar. Also the thing renders correctly, but I have a feeling that I'm not setting the MethodBinding correctly for the "Action" property of the CommandLink, or I'm not setting it in the right place. Here's an abbreviated version of the code behind the component:
In my 'MenuBar.java' class:
public void setHomeBinding(MethodBinding mb)
{ homeBinding = mb; }
public MethodBinding getHomeBinding()
{ return homeBinding; }In the 'setProperties' method of my 'MenuBarTag.java' class:
MethodBinding mb = getFacesContext().getApplication().createMethodBinding("#{menuBarBean.gotoHome}", null);
menuBar.setHomeBinding(mb);In the 'encodeEnd' method of 'MenuBarRenderer.java' (Here's where I create the link and set the Action to the MethodBinding)
// If is this class, show a selected tab
if(menuBar.getPageClass().equals(MenuBarBean.PAGECLASS_HOME))
     HtmlGraphicImage homeButton = (HtmlGraphicImage)application.createComponent(HtmlGraphicImage.COMPONENT_TYPE);
     homeButton.setUrl(IMG_HOME_SRC_SELECTED);
     menuBar.getChildren().add(homeButton);
// else Render the button
else
     HtmlSwapImage homeSwapImg = (HtmlSwapImage)application.createComponent(HtmlSwapImage.COMPONENT_TYPE);
     homeSwapImg.setUrl(IMG_HOME_SRC_IDLE);
     homeSwapImg.setSwapImageUrl(IMG_HOME_SRC_OVER);
     homeSwapImg.setStyleClass("menuBarButton");
     HtmlCommandLink homeButton = (HtmlCommandLink)application.createComponent(HtmlCommandLink.COMPONENT_TYPE);
     homeButton.setAction(menuBar.getHomeBinding());
     homeButton.getChildren().add(homeSwapImg);
     menuBar.getChildren().add(homeButton);
menuBar.getChildren().add(spacer);
RendererUtils.renderChildren(facesContext, menuBar);
menuBar.getChildren().removeAll(menuBar.getChildren());And finally, in my MenuBar backing bean 'MenuBarBean.java'
public String gotoHome()
{ return("goto-home"); }
public String getPAGECLASS_HOME()
{ return PAGECLASS_HOME; }Now, like I said.. The appearance of the whole thing renders properly, image swapping and all. Just that whenever you click on one of the buttons, I get an execption, and a stack trace that looks sorta like:
ERROR[jsp]:704 - Servlet.service() for servlet jsp threw exception
java.lang.NullPointerException
    at packageName.MenuBarRenderer.encodeEnd(MenuBarRenderer.java:173)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:331)
    at javax.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:349)
    at javax.faces.webapp.UIComponnetTag.doEndTag(UIComponentTag.java:253)
.Anybody have any suggestions, or see any glaring problems in my coding? Any help would be much appreciated. Thanks!

Sure.. this snippet starts at 173:
if(!(menuBar.getMsg().equals(null)))
     writer.startElement(HTML.SPAN_ELEM, menuBar);
          writer.writeAttribute(HTML.CLASS_ATTR, "msgText", null);
          writer.write(menuBar.getMsg());
     writer.endElement(HTML.SPAN_ELEM);
}The thing is, this section of code works normally. It only throws an exception when I click on a link.

Similar Messages

  • Bug: JDev 10.1.3.1 Oracle Business Component Browser NullPointerException

    During the test of the Application Module using Business Components Browser (right click on TechnicianService -> Test):
    Oracle Business Component Browser: If you try to double click on ViewLink1 node as explained in JDeveloper Manual and set the TechName variable then you’ll get a NullPointer Exception.
    The workaround is to double click on Technicians Node and then set the TechName variable but it would be nice to have it patched.

    Hi,
    this is what I crated as a test based on teh HR schema
    1. DepartmentsView
    2. EmployeesView with a bind parameter for QBE
    3. DepartmentsView and EmployeesView linked via auto generated VL
    When I test this and double click the link then I see two scenarios
    - Departments and Employees are shown if the bind parameter has a default value
    - Departments with no Employees are shown if there is no default value set
    Double clicking the EmployeesView brings up the QBE dialog
    Can you confirm that his usecase works for you as well? In this case the problem shows to be within you project
    Frank

  • JSF + Tomahawk component NullPointerException

    Hi All,
    I made a sun JSF portlet by using the tomahawk 1.1.3 file upload component. The bean "UploadedFile myFile" is not getting set in the "MyBean.java" file. I get a java.lang.NullPointerException when I am trying to myFile.getName() or myFile.getInputStream().
    The inputFileUpload method should set the myFile Bean but it seems like its not getting set
    1
    2 <t:inputFileUpload id="myFileId"
    3            value="#{myBean.myFile}"
    4 storage="file"
    5 required="true"/>
    6 <h:message for="myFileId"/>
    I am attaching the whole code below
    Can somebody please help me. I have tried various versions of tomahawk and still not able to figure out the problem.
    I am using JSF 1.1.0 and tomahawk 1.1.3
    Please let me know if you need some more information from me
    1
      2======== index.jsp ==============
      3
      4<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      5<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      6<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
      7
      8<f:view>
      9
    10<h:form id="MyForm" enctype="multipart/form-data" >
    11
    12    <h:messages globalOnly="true" styleClass="message"/>
    13
    14    <h:panelGrid columns="3" border="0" cellspacing="5">
    15
    16        <h:outputLabel for="myFileId" value="File: "/>
    17        <t:inputFileUpload id="myFileId"
    18            value="#{myBean.myFile}"
    19            storage="file"
    20            required="true"/>
    21        <h:message for="myFileId"/>
    22
    23        <h:outputLabel for="myParamId" value="Param: "/>
    24        <h:selectOneMenu id="myParamId"
    25                value="#{myBean.myParam}"
    26                required="true">
    27            <f:selectItem itemLabel="" itemValue=""/>
    28            <f:selectItem itemLabel="MD5" itemValue="MD5"/>
    29            <f:selectItem itemLabel="SHA-1" itemValue="SHA-1"/>
    30            <f:selectItem itemLabel="SHA-256" itemValue="SHA-256"/>
    31            <f:selectItem itemLabel="SHA-384" itemValue="SHA-384"/>
    32            <f:selectItem itemLabel="SHA-512" itemValue="SHA-512"/>
    33        </h:selectOneMenu>
    34        <h:message for="myParamId"/>
    35
    36        <h:outputText value=" "/>
    37        <h:commandButton value="Submit"
    38            action="#{myBean.processMyFile}"/>
    39        <h:outputText value=" "/>
    40
    41    </h:panelGrid>
    42
    43</h:form>
    44
    45</f:view>
    46
    47
    48==========  MyBean.java ==============
    49
    50<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    51<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    52<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t" %>
    53
    54<f:view>
    55
    56<h:form id="MyForm" enctype="multipart/form-data" >
    57
    58    <h:messages globalOnly="true" styleClass="message"/>
    59
    60    <h:panelGrid columns="3" border="0" cellspacing="5">
    61
    62        <h:outputLabel for="myFileId" value="File: "/>
    63        <t:inputFileUpload id="myFileId"
    64            value="#{myBean.myFile}"
    65            storage="file"
    66            required="true"/>
    67        <h:message for="myFileId"/>
    68
    69        <h:outputLabel for="myParamId" value="Param: "/>
    70        <h:selectOneMenu id="myParamId"
    71                value="#{myBean.myParam}"
    72                required="true">
    73            <f:selectItem itemLabel="" itemValue=""/>
    74            <f:selectItem itemLabel="MD5" itemValue="MD5"/>
    75            <f:selectItem itemLabel="SHA-1" itemValue="SHA-1"/>
    76            <f:selectItem itemLabel="SHA-256" itemValue="SHA-256"/>
    77            <f:selectItem itemLabel="SHA-384" itemValue="SHA-384"/>
    78            <f:selectItem itemLabel="SHA-512" itemValue="SHA-512"/>
    79        </h:selectOneMenu>
    80        <h:message for="myParamId"/>
    81
    82        <h:outputText value=" "/>
    83        <h:commandButton value="Submit"
    84            action="#{myBean.processMyFile}"/>
    85        <h:outputText value=" "/>
    86
    87    </h:panelGrid>
    88
    89</h:form>
    90
    91</f:view>
    92
    93
    94=========== faces-config.xml ==========
    95
    96<?xml version="1.0"?>
    97<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN" "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
    98
    99<faces-config xmlns="http://java.sun.com/JSF/Configuration">
    100    <managed-bean>
    101        <managed-bean-name>user</managed-bean-name>
    102        <managed-bean-class>com.sample.jsfsun.bean.UserBean</managed-bean-class>
    103        <managed-bean-scope>session</managed-bean-scope>
    104    </managed-bean>
    105    <managed-bean>
    106        <managed-bean-name>myBean</managed-bean-name>
    107        <managed-bean-class>com.sample.jsfsun.bean.MyBean</managed-bean-class>
    108        <managed-bean-scope>request</managed-bean-scope>
    109    </managed-bean>
    110    <navigation-rule>
    111        <from-view-id>/index.jsp</from-view-id>
    112        <navigation-case>
    113            <from-outcome>submit</from-outcome>
    114            <to-view-id>/welcome.jsp</to-view-id>
    115        </navigation-case>
    116    </navigation-rule>
    117    <navigation-rule>
    118        <from-view-id>/welcome.jsp</from-view-id>
    119        <navigation-case>
    120            <from-outcome>back</from-outcome>
    121            <to-view-id>/index.jsp</to-view-id>
    122        </navigation-case>
    123    </navigation-rule>
    124</faces-config>
    125
    126============= web.xml =============
    127
    128
    129<?xml version="1.0"?>
    130<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
    131
    132<web-app>
    133    <display-name>friend_info_portlet</display-name>
    134    <context-param>
    135        <param-name>company_id</param-name>
    136        <param-value>liferay.com</param-value>
    137    </context-param>
    138    <context-param>
    139        <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
    140        <param-value>client</param-value>
    141    </context-param>
    142    <context-param>
    143        <param-name>javax.faces.application.CONFIG_FILES</param-name>
    144        <param-value>/WEB-INF/faces-config.xml</param-value>
    145    </context-param>
    146    <context-param>
    147        <param-name>com.sun.faces.validateXml</param-name>
    148        <param-value>false</param-value>
    149    </context-param>
    150    <filter>
    151        <filter-name>ExtensionsFilter</filter-name>
    152        <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>
    153        <init-param>
    154            <param-name>uploadMaxFileSize</param-name>
    155            <param-value>10m</param-value>
    156        </init-param>
    157        <init-param>
    158            <param-name>uploadThresholdSize</param-name>
    159            <param-value>100k</param-value>
    160        </init-param>
    161    </filter>
    162    <filter-mapping>
    163        <filter-name>ExtensionsFilter</filter-name>
    164        <servlet-name>Faces Servlet</servlet-name>
    165    </filter-mapping>
    166    <filter-mapping>
    167        <filter-name>ExtensionsFilter</filter-name>
    168        <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    169    </filter-mapping>
    170    <filter-mapping>
    171        <filter-name>ExtensionsFilter</filter-name>
    172        <url-pattern>*.jsf</url-pattern>
    173    </filter-mapping>
    174    <listener>
    175        <listener-class>com.liferay.portal.kernel.servlet.PortletContextListener</listener-class>
    176    </listener>
    177    <listener>
    178        <listener-class>com.liferay.util.jsf.sun.faces.config.LiferayConfigureListener</listener-class>
    179    </listener>
    180    <servlet>
    181        <servlet-name>friend_info_portlet</servlet-name>
    182        <servlet-class>com.liferay.portal.kernel.servlet.PortletServlet</servlet-class>
    183        <init-param>
    184            <param-name>portlet-class</param-name>
    185            <param-value>com.sun.faces.portlet.FacesPortlet</param-value>
    186        </init-param>
    187        <load-on-startup>0</load-on-startup>
    188    </servlet>
    189    <servlet>
    190        <servlet-name>Faces Servlet</servlet-name>
    191        <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    192        <load-on-startup>1</load-on-startup>
    193    </servlet>
    194    <servlet-mapping>
    195        <servlet-name>friend_info_portlet</servlet-name>
    196        <url-pattern>/friend_info_portlet/*</url-pattern>
    197    </servlet-mapping>
    198    <servlet-mapping>
    199        <servlet-name>Faces Servlet</servlet-name>
    200        <url-pattern>/faces/*</url-pattern>
    201    </servlet-mapping>
    202    <servlet-mapping>
    203        <servlet-name>Faces Servlet</servlet-name>
    204        <url-pattern>*.faces</url-pattern>
    205    </servlet-mapping>
    206    <welcome-file-list>
    207        <welcome-file>index.jsp</welcome-file>
    208    </welcome-file-list>
    209    <taglib>
    210        <taglib-uri>http://java.sun.com/portlet</taglib-uri>
    211        <taglib-location>/WEB-INF/tld/liferay-portlet.tld</taglib-location>
    212    </taglib>
    213</web-app>

    jabalsad wrote:
    contents of /WEB-INF/lib
    jsf-api.jar
    jsf-impl.jar
    myfaces-api-1.2.7.jar
    myfaces-impl-1.2.7.jar
    You cannot mix differnet JSF implementations. Use the one or the other.
    As you stated that you're "using" Mojarra, get rid of those myfaces jars.

  • JDeveloper NullPointerException at View Component Palette

    Hi everybody...
    The JDeveloper 9.0.3 is throwing an exception when I try to view the Component palette from the main menu or Ctrl+Shift+P command.
    The exception is as following:
    java.lang.NullPointerException
         void oracle.ideimpl.palette.PaletteImpl.populate()
              PaletteImpl.java:240
         void oracle.ideimpl.palette.PaletteWindowImpl.checkIfPopulated()
              PaletteWindowImpl.java:323
         void oracle.ideimpl.palette.PaletteWindowImpl.show()
              PaletteWindowImpl.java:364
         boolean oracle.ideimpl.palette.PaletteManagerImpl.handleEvent(oracle.ide.IdeAction, oracle.ide.addin.Context)
              PaletteManagerImpl.java:174
         void oracle.ide.IdeAction$1.run()
              IdeAction.java:579
         void java.awt.event.InvocationEvent.dispatch()
              InvocationEvent.java:154
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:337
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85
    Thanks
    What can I do to fix it?
    Rafael

    BUMP
    Just wanted to inform that I ran into the same problem. Derek's solution solved my problem. I noticed that before applying this fix my own palette.xml was 0 bytes in size.
    Using JDev 9.0.3.3 on a W2K3 TS.

  • NullPointerException: component argument pData

    I keep getting this error message.
    I am creating a screenManager, which sets a fullscreen displaymode based on the
    available and compatible displaymodes on the system, and restores the original
    displaymode upon exit. This is some new territory for me, and I have no idea where
    and why this error appears. I'll post code if none can instantly tell what makes this
    nullpointer exception appear.
    Thanks,
    Terje
    java.lang.NullPointerException: component argument pData
    at sun.awt.windows.Win32BackBufferSurfaceData.initSurface(Native Method)
    at sun.awt.windows.Win32BackBufferSurfaceData.createData(Win32BackBuffer
    SurfaceData.java:49)
    at sun.awt.windows.Win32BackBuffer.createHWData(Win32BackBuffer.java:28)
    at sun.awt.windows.WVolatileImage.initAcceleratedBackground(WVolatileIma
    ge.java:100)
    at sun.awt.windows.Win32BackBuffer.displayChanged(Win32BackBuffer.java:3
    5)
    at sun.awt.SunDisplayChanger.notifyListeners(SunDisplayChanger.java:102)
    at sun.awt.Win32GraphicsEnvironment.displayChanged(Win32GraphicsEnvironm
    ent.java:98)
    at sun.awt.windows.WToolkit$4.run(WToolkit.java:734)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:178)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:454)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:201)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.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)
    Press any key to continue . . .

    Well, I understand that much... The funny thing is the trace seems to be outside my code, and after running the application some more times, I occationally end up with the following message:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : EXCEPTION_ACCESS_VIOLATION (0xc0000005) occurred at PC=0x2E57E76
    Function=Java_sun_print_Win32PrintJob_endPrintRawData+0x1D42
    Library=E:\j2sdk_nb\j2sdk1.4.2\jre\bin\awt.dll
    followed by a list of all dynamic link libraries running.
    This log is additionally written to a file.
    Here is the code:
    import java.awt.*;
    import java.awt.image.*;
    import javax.swing.JFrame;
    public class MonsunScreenManager
         private GraphicsDevice gDevice = null;
         /** change this if you want a different bufferstrategy **/
         private static final int NUM_DISPLAY_BUFFERS = 2;
         private static MonsunScreenManager screenManager = new MonsunScreenManager();
         private MonsunScreenManager()
              GraphicsEnvironment env =
                   GraphicsEnvironment.getLocalGraphicsEnvironment();
              gDevice = env.getDefaultScreenDevice();
         public static MonsunScreenManager getScreenManager()
              return screenManager;
         /** get compatible displaymodes of system **/
         public DisplayMode[] getCompatibleDisplayModes()
              return gDevice.getDisplayModes();
         /** get first compatible mode, or null if none are **/
         public DisplayMode getFirstCompatibleMode( DisplayMode modes[] )
              DisplayMode goodModes[] = gDevice.getDisplayModes();
              for(int i=0;i<modes.length;i++)
                   for(int j=0;j<goodModes.length;j++)
                        if(displayModesMatch(modes,goodModes[j]))
                             return modes[i];
              return null;
         /** get current display mode **/
         public DisplayMode getCurrentDisplayMode()
              return gDevice.getDisplayMode();
         /* check if 2 display modes match. (same resolution, bit depth, and refresh
         * rate). if refresh rate is unknown, only the other two have to match. if bit
         * depth is multi, only the other two have to match.
         public boolean displayModesMatch( DisplayMode mode1, DisplayMode mode2 )
              if(     mode1.getWidth()      != mode2.getWidth()     ||
                   mode1.getHeight()     != mode2.getHeight())
                   return false;
              if(     mode1.getBitDepth()     !=     DisplayMode.BIT_DEPTH_MULTI     &&
                   mode2.getBitDepth()     !=     DisplayMode.BIT_DEPTH_MULTI     &&
                   mode1.getBitDepth()     !=     mode2.getBitDepth())
                   return false;
              if(     mode1.getRefreshRate()     !=     DisplayMode.REFRESH_RATE_UNKNOWN     &&
                   mode2.getRefreshRate()     !=     DisplayMode.REFRESH_RATE_UNKNOWN     &&
                   mode1.getRefreshRate()     !=     mode2.getRefreshRate())
                   return false;
              return true;
         /** changes to fullscreen mode. **/
         public void setFullScreen(DisplayMode displayMode)
              JFrame myDisplay = new JFrame();
              myDisplay.setUndecorated(true);
              myDisplay.setIgnoreRepaint(true);
              myDisplay.setResizable(false);
              gDevice.setFullScreenWindow(myDisplay);
              if(displayMode!=null && gDevice.isDisplayChangeSupported())
                   try
                        gDevice.setDisplayMode(displayMode);
                   catch(IllegalArgumentException e)
                        System.out.println("Boo?");
              myDisplay.createBufferStrategy(NUM_DISPLAY_BUFFERS);
         /** get the graphical context for the display **/
         public Graphics2D getGraphics()
              Window myWindow = gDevice.getFullScreenWindow();
              if(myWindow!=null)
                   BufferStrategy bufferStrat = myWindow.getBufferStrategy();
                   return (Graphics2D)bufferStrat.getDrawGraphics();
              return null;
         /** updates the display **/
         public void updateScreen()
              Window myWindow = gDevice.getFullScreenWindow();
              if(myWindow!=null)
                   BufferStrategy bufferStrat = myWindow.getBufferStrategy();
                   if(bufferStrat.contentsLost())
                        bufferStrat.show();
              // sync display! should be an "option", since it takes time??
              Toolkit.getDefaultToolkit().sync();
         /** returns the window used in fullscreen, or null if not in fullscreen! **/
         public Window getFullScreenWindow()
              return gDevice.getFullScreenWindow();
         /** returns width of window, or 0 if not in fullscreen mode **/
         public int getWidth()
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   return myWindow.getWidth();
              return 0;
         /** returns height of window, or 0 if not in fullscreen mode **/
         public int getHeight()
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   return myWindow.getHeight();
              return 0;
         /** restores the screen's display mode **/
         public void restoreScreen()
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   myWindow.dispose();
              gDevice.setFullScreenWindow(null);
         /** creates an image compatible with the current displaymode **/
         public BufferedImage createCompatibleImage(int dWidth,int dHeight, int dTrans)
              Window myWindow = getFullScreenWindow();
              if(myWindow!=null)
                   GraphicsConfiguration gC = myWindow.getGraphicsConfiguration();
                   return gC.createCompatibleImage(dWidth,dHeight,dTrans);
              return null;

  • NullPointerException when trying to display component palette 903

    I just downloaded the production release, and took the jClient partition tutorial after completing
    JClient Form wizard I got nullpointerexception.
    This exception is from the IDE and not while running the program.
    And also when I try to display the Component palette I get the same exception.
    After creating the jClient Frame jdeveloper opens the UIEditor for editing, and also displays component palette
    if not visible, So whenever I create a new frame I am getting the exception.
    I restarted the IDE but nothing is working, I just tried View Component palette, again NullPointerException.

    this is the stack trace,
    What a cool IDE it is displaying the exception in a big alert box.
    java.lang.NullPointerException
         void oracle.ideimpl.palette.PaletteImpl.populate()
              PaletteImpl.java:240
         void oracle.ideimpl.palette.PaletteWindowImpl.checkIfPopulated()
              PaletteWindowImpl.java:323
         void oracle.ideimpl.palette.PaletteWindowImpl.show()
              PaletteWindowImpl.java:364
         boolean oracle.ideimpl.palette.PaletteManagerImpl.handleEvent(oracle.ide.IdeAction, oracle.ide.addin.Context)
              PaletteManagerImpl.java:174
         void oracle.ide.IdeAction$1.run()
              IdeAction.java:579
         void java.awt.event.InvocationEvent.dispatch()
              InvocationEvent.java:154
         void java.awt.EventQueue.dispatchEvent(java.awt.AWTEvent)
              EventQueue.java:337
         boolean java.awt.EventDispatchThread.pumpOneEventForHierarchy(java.awt.Component)
              EventDispatchThread.java:131
         void java.awt.EventDispatchThread.pumpEventsForHierarchy(java.awt.Conditional, java.awt.Component)
              EventDispatchThread.java:98
         void java.awt.EventDispatchThread.pumpEvents(java.awt.Conditional)
              EventDispatchThread.java:93
         void java.awt.EventDispatchThread.run()
              EventDispatchThread.java:85

  • NullPointerException:Portlet bindings are null for portlet component portle

    Hi , I am new to Webcenter, after depoying portlet on weblogic using Jdeveloper, while accessing the url i am facing the following error,
    Any help appreciated.
    java.lang.NullPointerException: Portlet bindings are null for portlet component portlet1.
    at oracle.adf.view.rich.component.portlet.PortletBase.getPortletBinding(PortletBase.java:577)
    at oracle.adf.view.rich.component.portlet.PortletBase.getPortletModel(PortletBase.java:599)
    at oracle.adfinternal.view.faces.taglib.portlet.CorePortletTag.doStartTag(CorePortletTag.java:669)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
    at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
    at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:665)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:385)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:802)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:726)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:469)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
    at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.renderView(CustomViewHandler.java:279)
    at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.renderView(CustomViewHandler.java:279)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.renderView(CustomViewHandler.java:279)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:800)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:294)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:214)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.

    Hi , I am new to Webcenter, after depoying portlet on weblogic using Jdeveloper, while accessing the url i am facing the following error,
    Any help appreciated.
    java.lang.NullPointerException: Portlet bindings are null for portlet component portlet1.
    at oracle.adf.view.rich.component.portlet.PortletBase.getPortletBinding(PortletBase.java:577)
    at oracle.adf.view.rich.component.portlet.PortletBase.getPortletModel(PortletBase.java:599)
    at oracle.adfinternal.view.faces.taglib.portlet.CorePortletTag.doStartTag(CorePortletTag.java:669)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:50)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspIterationTagNode.executeHandler(OracleJspIterationTagNode.java:45)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspClassicTagNode.evalBody(OracleJspClassicTagNode.java:87)
    at oracle.jsp.runtime.tree.OracleJspBodyTagNode.executeHandler(OracleJspBodyTagNode.java:58)
    at oracle.jsp.runtime.tree.OracleJspCustomTagNode.execute(OracleJspCustomTagNode.java:261)
    at oracle.jsp.runtime.tree.OracleJspNode.execute(OracleJspNode.java:89)
    at oracle.jsp.runtimev2.ShortCutServlet._jspService(ShortCutServlet.java:89)
    at oracle.jsp.runtime.OracleJspBase.service(OracleJspBase.java:29)
    at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:665)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:385)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:802)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:726)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:175)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestDispatcherImpl.invokeServlet(RequestDispatcherImpl.java:524)
    at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:253)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:410)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at oracle.adfinternal.view.faces.config.rich.RecordRequestAttributesDuringDispatch.dispatch(RecordRequestAttributesDuringDispatch.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)
    at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267)
    at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:469)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:140)
    at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.renderView(CustomViewHandler.java:279)
    at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.renderView(CustomViewHandler.java:279)
    at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189)
    at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:193)
    at oracle.webcenter.portalframework.sitestructure.handler.CustomViewHandler.renderView(CustomViewHandler.java:279)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:800)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:294)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:214)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
    at weblogic.servlet.

  • Java.lang.NullpointerException when use source table as a mapping component

    Hi all,
    I am new to owb and I got NullPointerException when I try to drag a table to my mapping.
    The table is imported and it's from a windows oracle database. The mapping is located on my linux oracle database.
    By the way, I can even deploy the table.
    What have I done wrong and why this happen?
    thanks in advance.
    帖子经 953800编辑过

    Hi Timo,
    Thanks for the reply,
    If I understand correctly I need to apply to the weblogic server 10.3.5 + Sherman patch UPDATE1 patch #12979653 and patch #12917525. After this the ADF Runtime 11.1.1.5 installed in the Production environments will allow me to run my application that is running in ADF Runtime 11.1.2.1. right?
    I'm working on getting this patches installed. Thank you very much for your help.
    I run the test on my local server as a test class and as a web service, it worked perfect, nevertheless in the Production environment I got a interesting answer:
    Production 1 and 2:
    Request:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://model/">
    <env:Header/>
    <env:Body>
    <ns1:getVersion/>
    </env:Body>
    </env:Envelope>
    Response
    <?xml version='1.0' encoding='UTF-8'?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <S:Fault xmlns:ns4="http://www.w3.org/2003/05/soap-envelope">
    <faultcode>S:Server</faultcode>
    <faultstring>oracle/jbo/Version</faultstring>
    </S:Fault>
    </S:Body>
    </S:Envelope>
    Request:
    <?xml version="1.0" encoding="UTF-8"?>
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://model/">
    <env:Header/>
    <env:Body>
    <ns1:getBuildLabel/>
    </env:Body>
    </env:Envelope>
    Response:
    <?xml version='1.0' encoding='UTF-8'?>
    <S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
    <S:Body>
    <ns2:getBuildLabelResponse xmlns:ns2="http://model/">
    <return>oracle.jbo.Version</return>
    </ns2:getBuildLabelResponse>
    </S:Body>
    </S:Envelope>
    Edited by: 917852 on Jul 12, 2012 11:31 AM

  • HtmlCommandLink in a custom component

    Hi everybody,
    seems like I got stuck with this Problem here: I am trying to create HtmlCommandLink within my custom component that points to a method via method binding. My code looks as follows:
    ResponseWriter writer = context.getResponseWriter();
    HtmlForm htmlForm = new HtmlForm();
    htmlForm.encodeBegin(getFacesContext());
    HtmlCommandLink htmlCommandLink = new HtmlCommandLink();
    htmlCommandLink.setParent(htmlForm);
    MethodBinding methodBinding = getFacesContext().getApplication().createMethodBinding("#{TestAction.defaultAction}", null);
    htmlCommandLink.setAction(methodBinding);
    htmlCommandLink.encodeBegin(getFacesContext());
    writer.write("Link");
    htmlCommandLink.encodeEnd(getFacesContext());
    htmlForm.encodeEnd(getFacesContext());
    The Link is created in the page and I can click on it but the method is not invoked. I can invoke it in the code manually which means the reference to the method is working. Am I missing something here?
    Any help appreciated
    Florian

    thanks for your help, and i change the code as :
    @Override
         public void encodeBegin(FacesContext context) throws IOException {
              if (context == null) {
                   throw new NullPointerException();
              ResponseWriter writer = context.getResponseWriter();
              ExpressionFactory expressionFactory = context.getCurrentInstance().getApplication().getExpressionFactory();
              ELContext elContext = context.getCurrentInstance().getELContext();
              MethodExpression actionExpression = expressionFactory.createMethodExpression(elContext,
                        "#{UserManager.actionLoad}",null, new Class[] {ActionEvent.class});
              UIParameter parameter = (UIParameter)context.getCurrentInstance().getApplication().createComponent(UIParameter.COMPONENT_TYPE);
              parameter.setId("addId");
              parameter.setTransient(false);
              parameter.setName("id2");
              parameter.setValue(34);
              HtmlCommandLink link = (HtmlCommandLink) context.getApplication().createComponent(HtmlCommandLink.COMPONENT_TYPE);
              HtmlForm form = new HtmlForm();
              form.setId("pageForm");
              link.setTransient(true);
              link.setValue("Create");
              link.setActionExpression(actionExpression);
              link.getChildren().add(parameter);
              this.getParent().getChildren().add(link);
              form.encodeBegin(context);
              link.encodeBegin(context);
              link.encodeEnd(context);
              form.encodeEnd(context);
    I can click on it but the method is not invoked.
    Any help appreciated.

  • Error in deployment:java.lang.NullPointerException:sdu name can not be null

    HI Everyone!
        I try to deploy my web dynpro project to SAP J2EE engine. Configuration about SAP J2EE Engine is OK, but there is an error during the deployment. Here is the deployment trace:
    2007-6-28 14:56:27 /userOut/daView_category (com.sap.ide.eclipse.deployer.DVBaseLog) [Thread[Deploy Thread,6,main]] INFO: deployment trace
    14:56:24.207 [info  #300]  [#4]: Trying to connect to 'secude-vmcn0001:50004' as 'administrator'
    14:56:24.207 [debug #100]  [#4]: Session::getContext.[ B E G I N ].timerId=16
    14:56:25.161 [debug #100]  [#4]: Session::getContext.[ E N D ].timerId=[id:#16, elapsed: 954 ms.]
    14:56:25.161 [info  #300]  [#4]: Connected to 'secude-vmcn0001:50004' as 'administrator'
    14:56:25.161 [debug #100]  [#4]: DeployProcessor::ctor:New deploy processor created.deployerId=4
    14:56:25.161 [info  #300]  [#4]: +++++ Starting  D E P L O Y action +++++
    14:56:25.161 [info  #300]  [#4]: Selected archives for deployment
    14:56:25.161 [info  #300]  [#4]: D:\NetWeaverWorkspace\Workspace\Dashboard\Dashboard.ear
    14:56:25.536 [debug #100]  [#4]: DeployProcessor::deploy:going to generate Session id, deployerId=4
    14:56:25.755 [debug #100]  [#4]: DeployProcessor::deploy:got Session id='14',time:[id:#17, elapsed: 594 ms.], deployerId=4
    14:56:25.974 [info  #300]  [#4]: Upload archives to the server.Remote upload path is 'C:\SAP\JP1\JC00\j2ee\cluster\server0\temp\tcbldeploy_controller\archives\14'
    14:56:25.974 [debug #300]  [#4]: DeployProcessor::uploadItemsToServer:Going to upload 'D:\NetWeaverWorkspace\Workspace\Dashboard\Dashboard.ear' on the server.deployerId=4
    14:56:26.427 [info  #300]  [#4]: File 'D:\NetWeaverWorkspace\Workspace\Dashboard\Dashboard.ear' uploaded successfully as 'C:/SAP/JP1/JC00/j2ee/cluster/server0/temp/tcbldeploy_controller/archives/14/Dashboard.ear'. Time:[id:#18, elapsed: 453 ms.]
    14:56:26.427 [info  #300]  [#4]: Archives uploaded.time:[#18: 0.453 sec]
    14:56:26.427 [debug #100]  [#4]: DeployProcessor::deployItems:enter.timerId=19, deployerId=4
    14:56:26.427 [debug #100]  [#4]: DeployProcessor::internalCreateAndInitDeployer:get deployer from server, deployerId=4
    14:56:26.427 [debug #100]  [#4]: DeployProcessor::internalCreateAndInitDeployer:deployer get successfully:[id:#20, elapsed: 0 ms.], deployerId=4
    14:56:26.630 [info  #300]  [#4]: component version handling rule is UpdateAllVersions
    14:56:26.849 [info  #300]  [#4]: Error strategies:
    14:56:26.849 [debug #100]  [#4]: DeployProcessor::internalCreateAndInitDeployer:deployer initialized sucessfully:[id:#20, elapsed: 422 ms.], deployerId=4
    14:56:26.849 [debug #100]  [#4]: DeployProcessor::internalCreateAndInitDeployer:total time:[#20: 0.422 sec], deployerId=4
    14:56:26.849 [info  #300]  [#4]: Starting deployment
    14:56:27.177 [debug #100]  [#4]: DeployProcessor::internalMapSdus:sduMapperVisitor.setCompositeDeploymentItem(null),remoteSdu=name: 'null', vendor: 'null', location: 'LOKAL', version: '0.2007.06.28.14.28.59', software type: 'J2EE', dependencies: '[]'
    14:56:27.177 [debug #300]  [#4]: DeployProcessor::deployItems:finally.Total Time:[#19: 0.75 sec], deployerId=4
    14:56:27.177 [info  #300]  [#4]: +++++ End  D E P L O Y action +++++
    And here is the exception detail:
    2007-6-28 14:56:27 /userOut/daView_category (com.sap.ide.eclipse.deployer.DVBaseLog) [Thread[Deploy Thread,6,main]] ERROR: java.lang.NullPointerException: sdu name can not be null.
         at com.sap.engine.services.dc.api.model.impl.SduImpl.<init>(SduImpl.java:39)
         at com.sap.engine.services.dc.api.model.impl.SdaImpl.<init>(SdaImpl.java:51)
         at com.sap.engine.services.dc.api.model.impl.ModelFactoryImpl.createSda(ModelFactoryImpl.java:43)
         at com.sap.engine.services.dc.api.model.SduMapperVisitor.createSda(SduMapperVisitor.java:52)
         at com.sap.engine.services.dc.api.model.SduMapperVisitor.visit(SduMapperVisitor.java:64)
         at com.sap.engine.services.dc.repo.impl.SdaImpl.accept(SdaImpl.java:136)
         at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.internalMapSdus(DeployProcessorImpl.java:704)
         at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deployItems(DeployProcessorImpl.java:487)
         at com.sap.engine.services.dc.api.deploy.impl.DeployProcessorImpl.deploy(DeployProcessorImpl.java:155)
         at com.sap.ide.eclipse.deployer.dc.deploy.DeployProcessor70.deploy(DeployProcessor70.java:185)
         at com.sap.ide.eclipse.sdm.threading.DCDeployThread.run(DCDeployThread.java:115)
    It seems that there is something wrong about 'SDU', but i don't know what is it, and i can not find the answer both in sdn.sap.com and here.
    Anyone can help me on this?
    Thanks in Advance,
    MK

    Hi Sumit,
        Thank you for your concern.
    Below is a trace file on my server:
    C:\SAP\JP1\JC00\j2ee\cluster\server0\log\defaultTrace.0.trc
    #1.5 #000C296B3F6A000D0000000200000A3000EF90978C2E8C29#1183013784131#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###The session id 14 is associated with correlator id 67431500000169001. Use this correlator id to filter the trace and log messages.#
    #1.5 #000C296B3F6A000D0000000300000A3000EF90978C2E8C29#1183013784131#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###++++++++++++++ Starting deployment ++++++++++++++#
    #1.5 #000C296B3F6A000D0000000400000A3000EF90978C2E8C29#1183013784131#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###Archives specified for deployment are: #
    #1.5 #000C296B3F6A000D0000000500000A3000EF90978C2E8C29#1183013784131#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###C:/SAP/JP1/JC00/j2ee/cluster/server0/temp/tcbldeploy_controller/archives/14/Dashboard.ear#
    #1.5 #000C296B3F6A000D0000000600000A3000EF90978C2E8C29#1183013784131#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###Start loading archives ...#
    #1.5 #000C296B3F6A000D0000000700000A3000EF90978C2E8C29#1183013784147#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###Archives are loaded.#
    #1.5 #000C296B3F6A000D0000000800000A3000EF90978C2E8C29#1183013784147#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###Error Handling Action: 'UndeploymentAction', Error Handling Strategy: 'OnErrorStop'.
    Error Handling Action: 'DeploymentAction', Error Handling Strategy: 'OnErrorStop'.
    Error Handling Action: 'PrerequisitesCheckAction', Error Handling Strategy: 'OnErrorStop'.
    Version Handling Rule: 'UpdateAllVersions'.
    Deployment Strategy: 'normal deploy strategy'.
    Life Cycle Deployment Strategy: 'bulk deploy strategy'.
    There are no batch filters specified.#
    #1.5 #000C296B3F6A000D0000000900000A3000EF90978C2E8C29#1183013784194#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###The batch for session id 14 will be executed with normal parallelism strategy.#
    #1.5 #000C296B3F6A000D0000000A00000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name sap.com/tcwddispwda doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000000B00000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:tcddicddicruntime doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000000C00000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:com.sap.aii.util.rb doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000000D00000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:com.sap.aii.util.xml doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000000E00000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:com.sap.aii.proxy.framework doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000000F00000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:tc~cmi doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000001000000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:com.sap.aii.util.misc doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000001100000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:tcddicddicservices doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000001200000A3000EF90978C2E8C29#1183013784272#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###A component loader with name library:tcgraphicsigs doesn't exist, because is stopped or not deployed.#
    #1.5 #000C296B3F6A000D0000001300000A3000EF90978C2E8C29#1183013784366#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Warning#1#com.sap.engine.services.deploy#Plain###JLinEE validation of application local/Dashboard returned result
    WARNINGS:
    References Test: Count of deploy time references (described in META-INF/SAP_MANIFEST.MF) and runtime references (described in META-INF/application-j2ee-engine.xml) does not match., file: Dashboard.ear, column 0, line 0, severity: warning
    References Test: There are no matching deploy time references (described in META-INF/SAP_MANIFEST.MF) for the following runtime references [sap.com/tcwddispwda, sap.com/com.sap.mw.jco, sap.com/tcddicddicruntime, sap.com/com.sap.aii.util.rb, sap.com/com.sap.aii.util.xml, sap.com/webservices_lib, sap.com/com.sap.aii.proxy.framework, sap.com/sapxmltoolkit, sap.com/tccmi, sap.com/com.sap.security.api.sda, sap.com/com.sap.util.monitor.jarm, sap.com/com.sap.aii.util.misc, sap.com/tcddicddicservices, sap.com/com.sap.lcr.api.cimclient, sap.com/tcgraphics~igs, sap.com/sld] (described in the META-INF/application-j2ee-engine.xml)., file: Dashboard.ear, column 0, line 0, severity: warning
    #1.5 #000C296B3F6A000D0000001400000A3000EF90978C2E8C29#1183013784366#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#com.sap.engine.services.deploy#Plain#Exception while validating application local/Dashboard.
    No one of the [] containers, which processed it, returned deployed component names.
    The registered containers in this moment were [com.sap.security.ume, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, JMSConnector, appclient, dbschemacontainer, orpersistence, JDBCConnector, EJBContainer, webservices_container, scheduler~container].
    Possible reasons :
         1.An AS Java service, which is providing a container, is stopped or not deployed.
         2.The containers, which processed it, are not implemented correct. They deployed or started initially the application, but didn't return deployed components in the application deployment info.###
    #1.5 #000C296B3F6A000D0000001700000A3000EF90978C2E8C29#1183013784366#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#com.sap.engine.services.deploy#Plain#Exception in operation deploy with application local/Dashboard.###
    #1.5 #000C296B3F6A000D0000001B00000A3000EF90978C2E8C29#1183013784397#/System/Server##java.lang.Package#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#java.lang.Package#Java#error.action.filter#com/sap/engine/services/mngt_model/localization.properties#Exception thrown by Action Filter: com.sap.engine.services.mngt_model.spi.ActionFilteringException: com.sap.engine.services.deploy.server.utils.DSRemoteException: Application local/Dashboard is not deployed..Action will not be delivered to domain: connector. Action is: APPLICATION_DEPLOYED#3#com.sap.engine.services.mngt_model.plugins.ApplicationActionFilter@d46ed0#connector#APPLICATION_DEPLOYED#
    #1.5 #000C296B3F6A000D0000001D00000A3000EF90978C2E8C29#1183013784397#/System/Server##java.lang.Package#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#java.lang.Package#Java#error.action.filter#com/sap/engine/services/mngt_model/localization.properties#Exception thrown by Action Filter: com.sap.engine.services.mngt_model.spi.ActionFilteringException: com.sap.engine.services.deploy.server.utils.DSRemoteException: Application local/Dashboard is not deployed..Action will not be delivered to domain: servlet_jsp. Action is: APPLICATION_DEPLOYED#3#com.sap.engine.services.mngt_model.plugins.ApplicationActionFilter@d46ed0#servlet_jsp#APPLICATION_DEPLOYED#
    #1.5 #000C296B3F6A000D0000001F00000A3000EF90978C2E8C29#1183013784397#/System/Server##java.lang.Package#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#java.lang.Package#Java#error.action.filter#com/sap/engine/services/mngt_model/localization.properties#Exception thrown by Action Filter: com.sap.engine.services.mngt_model.spi.ActionFilteringException: com.sap.engine.services.deploy.server.utils.DSRemoteException: Application local/Dashboard is not deployed..Action will not be delivered to domain: appclient. Action is: APPLICATION_DEPLOYED#3#com.sap.engine.services.mngt_model.plugins.ApplicationActionFilter@d46ed0#appclient#APPLICATION_DEPLOYED#
    #1.5 #000C296B3F6A000D0000002100000A3000EF90978C2E8C29#1183013784397#/System/Server##java.lang.Package#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#java.lang.Package#Java#error.action.filter#com/sap/engine/services/mngt_model/localization.properties#Exception thrown by Action Filter: com.sap.engine.services.mngt_model.spi.ActionFilteringException: com.sap.engine.services.deploy.server.utils.DSRemoteException: Application local/Dashboard is not deployed..Action will not be delivered to domain: dbpool. Action is: APPLICATION_DEPLOYED#3#com.sap.engine.services.mngt_model.plugins.ApplicationActionFilter@d46ed0#dbpool#APPLICATION_DEPLOYED#
    #1.5 #000C296B3F6A000D0000002300000A3000EF90978C2E8C29#1183013784397#/System/Server##java.lang.Package#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#java.lang.Package#Java#error.action.filter#com/sap/engine/services/mngt_model/localization.properties#Exception thrown by Action Filter: com.sap.engine.services.mngt_model.spi.ActionFilteringException: com.sap.engine.services.deploy.server.utils.DSRemoteException: Application local/Dashboard is not deployed..Action will not be delivered to domain: jmsconnector. Action is: APPLICATION_DEPLOYED#3#com.sap.engine.services.mngt_model.plugins.ApplicationActionFilter@d46ed0#jmsconnector#APPLICATION_DEPLOYED#
    #1.5 #000C296B3F6A000D0000002500000A3000EF90978C2E8C29#1183013784397#/System/Server/Services/Deploy##com.sap.engine.services.deploy#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#com.sap.engine.services.deploy#Plain#Exception while validating application local/Dashboard.
    No one of the [] containers, which processed it, returned deployed component names.
    The registered containers in this moment were [com.sap.security.ume, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, JMSConnector, appclient, dbschemacontainer, orpersistence, JDBCConnector, EJBContainer, webservices_container, scheduler~container].
    Possible reasons :
         1.An AS Java service, which is providing a container, is stopped or not deployed.
         2.The containers, which processed it, are not implemented correct. They deployed or started initially the application, but didn't return deployed components in the application deployment info.###
    #1.5 #000C296B3F6A000D0000002800000A3000EF90978C2E8C29#1183013784397#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#com.sap.engine.services.tcxblxdeploy_controller#Plain#An error occurred while deploying the deployment item 'local_Dashboard'.###
    #1.5 #000C296B3F6A000D0000002B00000A3000EF90978C2E8C29#1183013784428#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###Unlocking the Deploy.#
    #1.5 #000C296B3F6A000D0000002C00000A3000EF90978C2E8C29#1183013784428#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Error#1#com.sap.engine.services.tcxblxdeploy_controller#Plain#An error occurred while deploying the deployment item 'local_Dashboard'.; nested exception is:
         java.rmi.RemoteException:  class com.sap.engine.services.dc.gd.DeliveryException: An error occurred during deployment of sdu id: local_Dashboard
    sdu file path: C:\SAP\JP1\JC00\j2ee\cluster\server0\temp\tcbldeploy_controller\archives\14\Dashboard.ear
    version status: NEW
    deployment status: Admitted
    description:
              1. Error:
    Error occurred while deploying ear file C:\SAP\JP1\JC00\j2ee\cluster\server0\temp\tcbldeploy_controller\archives\14\Dashboard.ear.
    Reason: Exception while validating application local/Dashboard.
    No one of the [] containers, which processed it, returned deployed component names.
    The registered containers in this moment were [com.sap.security.ume, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, JMSConnector, appclient, dbschemacontainer, orpersistence, JDBCConnector, EJBContainer, webservices_container, scheduler~container].
    Possible reasons :
         1.An AS Java service, which is providing a container, is stopped or not deployed.
         2.The containers, which processed it, are not implemented correct. They deployed or started initially the application, but didn't return deployed components in the application deployment info.
    . Cannot deploy it.; nested exception is:
         java.rmi.RemoteException:  class com.sap.engine.services.deploy.server.utils.DSRemoteException: Error occurred while deploying ear file C:\SAP\JP1\JC00\j2ee\cluster\server0\temp\tcbldeploy_controller\archives\14\Dashboard.ear.
    Reason: Exception while validating application local/Dashboard.
    No one of the [] containers, which processed it, returned deployed component names.
    The registered containers in this moment were [com.sap.security.ume, app_libraries_container, Cache Configuration Upload, servlet_jsp, dbcontentcontainer, connector, Cluster File System, JMSConnector, appclient, dbschemacontainer, orpersistence, JDBCConnector, EJBContainer, webservices_container, scheduler~container].
    Possible reasons :
         1.An AS Java service, which is providing a container, is stopped or not deployed.
         2.The containers, which processed it, are not implemented correct. They deployed or started initially the application, but didn't return deployed components in the application deployment info.###
    #1.5 #000C296B3F6A000D0000002F00000A3000EF90978C2E8C29#1183013784428#/System/Server/Deployment##com.sap.engine.services.tcxblxdeploy_controller#Administrator#4#####Thread[RMI/IIOP Worker [3],5,Dedicated_Application_Thread]##0#0#Info#1#com.sap.engine.services.tcxblxdeploy_controller#Plain###Deployment has finished#
    Thanks,
    MK

  • "AWT-EventQueue-0" java.lang.NullPointerException and JInternalFrame

    I have two classes one with main method second with GUI methods (JFrame, JInternalFrame). When I call method to start second JInternalFrame from main everything is working but if i call it form any other method i get:
    Exception in thread "main" java.lang.NullPointerException
    at pkg1.GUI.createFrame(GUI.java:123)
    at pkg1.GUI.startFrame2(GUI.java:66)
    at pkg1.Top.cos(Top.java:25)
    at pkg1.Top.main(Top.java:20) My code:
    GUI class
    package pkg1;
    import java.awt.Component;
    import java.awt.Dimension;
    import java.awt.Frame;
    import java.awt.Toolkit;
    import java.awt.event.MouseMotionListener;
    import javax.swing.JDesktopPane;
    import javax.swing.JFrame;
    import javax.swing.JInternalFrame;
    import javax.swing.JPanel;
    import javax.swing.plaf.basic.BasicInternalFrameUI;
    import oracle.jdeveloper.layout.XYLayout;
    public class GUI
        public JDesktopPane desktop;
        private XYLayout xYLayout1 = new XYLayout();
        public int openFrameCount = 0;
        JFrame f = new JFrame();
        public void GUII()  // Prepare JFrame
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.setSize(500, 600);
            f.setVisible(true);
        public void startFrame()
            desktop = new JDesktopPane();
            createFrame(); //create first "window"
            f.setContentPane(desktop);
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        public void startFrame2()
            createFrame(); //create second "window"
            f.setContentPane(desktop);
            desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE);
        public void createFrame()
            MyInternalFrame frame = new MyInternalFrame();
            frame.setVisible(true); //necessary as of 1.3
            desktop.add(frame);
            frame.add(new GUI2());
        } Top class
    public class Top
        public static void main(String[] args)
            GUI g = new GUI();
            g.GUII(); //Create JFrame
            g.startFrame(); //Create JInternalFrame
            Top t = new Top();
            t.sth();
        public void sth()
            GUI gui = new GUI();
            gui.startFrame2();
    } MyIntternalFrame class
    import javax.swing.JInternalFrame;
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.BorderFactory;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JPanel;
    import javax.swing.SwingConstants;
    import oracle.jdeveloper.layout.XYConstraints;
    import oracle.jdeveloper.layout.XYLayout;
    /* Used by InternalFrameDemo.java. */
    public class MyInternalFrame extends JInternalFrame {
        static int openFrameCount =  0;      
        static final int xOffset = 30, yOffset = 30;
        private XYLayout xYLayout1 = new XYLayout();
        private JButton jButton1 = new JButton();
        private JLabel jLabel1 = new JLabel();
        private JFrame c = new JFrame();
        private JPanel d = new JPanel();
        private XYLayout xYLayout2 = new XYLayout();
        public MyInternalFrame() {         
            super("Document #"  + (++openFrameCount),true /*resizable*/,true /*closable*/,true /*maximizable*/,true);//iconifiable*/
            //...Create the GUI and put it in the window...
            //...Then set the window size or call pack...
            int width = new GUI2().width + 10;
            int height = new GUI2().height + 40;
            setSize(width,height);
            setLocation(xOffset*openFrameCount, yOffset*openFrameCount);
    } Please tel me where is my mistake or maybe you knew another way to open JInternalFrame with public method form another class

    Some possibly helpful suggestions:
    1) Create one JDesktopPane, and do it in the constructor of GUI. You should call this constructor only once.
    2) Get rid of GUII. The GUI constructor will do all this and more.
    3) Get rid of startFrame and startFrame2.
    4) In GUI2, change your width and height to static variables if you are going to use them in outside classes. There is no reason to have to create a GUI2 object just to get those values. Get them from the class, not the instances.
    5) You're doing something funky in your Top class with your mixing of static code and non-static code. My gut tells me that Top is just a static universe that exists to get your code up and running, and that the code within it should all be static, but that's just my personal opinion.
    6) In MyInternalFrame, get the height and width from GUI2 (if that's what you want to do) again in a static fashion. Rather than new GUI2().width which makes no sense, use GUI2.width.
    Why can't you put the button inside of the JInternalFrame object? I believe that the contentPane of this object which may hold your button (unless you embed a jpanel) uses BorderLayout, so you have to take care how you add jcomponents to the jinternalframe (or more precisely, it's contentPane).

  • When I am trying to assign mobile component getting error

    Hi All,
    Whenever I am trying to find mobile component which newly added I am getting following error.
    com.sap.ip.mi.admin.core.ApplicationException: Field CHANGEDAT not a member of MEAPPLICATION_INTERFACE
    Apart that I am getting following error in another window.
    500   Internal Server Error
    Web Dynpro Container/SAP J2EE Engine/6.40
    Failed to process request. Please contact your system administrator.
    [Hide]
    Error Summary
    While processing the current request, an exception occured which could not be handled by the application or the framework.
    If the information contained on this page doesn't help you to find and correct the cause of the problem, please contact your system administrator. To facilitate analysis of the problem, keep a copy of this error page. Hint: Most browsers allow to select all content, copy it and then paste it into an empty document (e.g. email or simple text file).
    Root Cause
    The initial exception that caused the request to fail, was:
       java.lang.NullPointerException
        at com.sap.ip.mi.admin.wd.device.DeviceMaintenance.supplyUserList1(DeviceMaintenance.java:794)
        at com.sap.ip.mi.admin.wd.device.wdp.InternalDeviceMaintenance.supplyUserList1(InternalDeviceMaintenance.java:562)
        at com.sap.ip.mi.admin.wd.device.wdp.IPublicDeviceMaintenance$IUserList1Node.doSupplyElements(IPublicDeviceMaintenance.java:7220)
        at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:408)
        at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:351)
        ... 41 more
    See full exception chain for details.
    System Environment
    Client
    Web Dynpro Client Type     HTML Client
    User agent     Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.13) Gecko/20080311 Firefox/2.0.0.13
    Version     null
    DOM version     null
    Client Type     ns7
    Client Type Profile     nn7
    ActiveX     disabled
    Cookies     enabled
    Frames     enabled
    Java Applets     enabled
    JavaScript     enabled
    Tables     enabled
    VB Script     enabled
    Server
    Web Dynpro Runtime     Vendor: SAP, build ID: 7.0006.20060302084208.0000 (release=NW04S_06_REL, buildtime=2006-03-04:17:33:21[UTC], changelist=10570, host=pwdfm114), build date: Fri Oct 12 05:11:00 PDT 2007
    J2EE Engine     7.00 patchlevel
    Java VM     Java HotSpot(TM) Server VM, version:1.4.2_09-b05, vendor: Sun Microsystems Inc.
    Operating system     Windows 2003, version: 5.2, architecture: x86
    Session & Other
    Session Locale     en_US
    Time of Failure     Wed Apr 16 14:56:36 PDT 2008 (Java Time: 1208382996754)
    Web Dynpro Code Generation Infos
    sap.com/tclmwebadminmainframewd
    SapDictionaryGenerationCore     7.0006.20051128142640.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:17:18[UTC], changelist=378068, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates     7.0006.20051128142640.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:17:25[UTC], changelist=378068, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore     7.0006.20050713144242.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:07:06[UTC], changelist=357697, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer     7.0006.20051128151834.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:22:50[UTC], changelist=378108, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon     7.0006.20050929162929.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:07:45[UTC], changelist=369752, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore     7.0006.20050929162929.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:07:38[UTC], changelist=369752, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary     7.0006.20051128142655.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:15:16[UTC], changelist=378069, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro     7.0006.20051128151854.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:19:38[UTC], changelist=378109, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates     7.0006.20060118164839.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:44:56[UTC], changelist=385420, host=pwdfm101)
    SapWebDynproGenerationCore     7.0006.20051128151834.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:23:00[UTC], changelist=378108, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates     7.0006.20060118164839.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:44:56[UTC], changelist=385420, host=pwdfm101)
    sap.com/tcwddispwda
    No information available     null
    sap.com/tclmwebadminsldwd
    SapDictionaryGenerationCore     7.0006.20051128142640.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:17:18[UTC], changelist=378068, host=PWDFM101.wdf.sap.corp)
    SapDictionaryGenerationTemplates     7.0006.20051128142640.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:17:25[UTC], changelist=378068, host=PWDFM101.wdf.sap.corp)
    SapGenerationFrameworkCore     7.0006.20050713144242.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:07:06[UTC], changelist=357697, host=PWDFM101.wdf.sap.corp)
    SapIdeWebDynproCheckLayer     7.0006.20051128151834.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:22:50[UTC], changelist=378108, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCommon     7.0006.20050929162929.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:07:45[UTC], changelist=369752, host=PWDFM101.wdf.sap.corp)
    SapMetamodelCore     7.0006.20050929162929.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:07:38[UTC], changelist=369752, host=PWDFM101.wdf.sap.corp)
    SapMetamodelDictionary     7.0006.20051128142655.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:15:16[UTC], changelist=378069, host=PWDFM101.wdf.sap.corp)
    SapMetamodelWebDynpro     7.0006.20051128151854.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:19:38[UTC], changelist=378109, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationCTemplates     7.0006.20060118164839.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:44:56[UTC], changelist=385420, host=pwdfm101)
    SapWebDynproGenerationCore     7.0006.20051128151834.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:23:00[UTC], changelist=378108, host=PWDFM101.wdf.sap.corp)
    SapWebDynproGenerationTemplates     7.0006.20060118164839.0000 (release=645_VAL_REL, buildtime=2006-01-18:19:44:56[UTC], changelist=385420, host=pwdfm101)
    sap.com/tcwdcorecomp
    No information available     null
    Detailed Error Information
    Detailed Exception Chain
    java.lang.NullPointerException
         at com.sap.ip.mi.admin.wd.device.DeviceMaintenance.supplyUserList1(DeviceMaintenance.java:794)
         at com.sap.ip.mi.admin.wd.device.wdp.InternalDeviceMaintenance.supplyUserList1(InternalDeviceMaintenance.java:562)
         at com.sap.ip.mi.admin.wd.device.wdp.IPublicDeviceMaintenance$IUserList1Node.doSupplyElements(IPublicDeviceMaintenance.java:7220)
         at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:408)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:351)
         at com.sap.tc.webdynpro.progmodel.context.Node.createMappedElementList(Node.java:500)
         at com.sap.tc.webdynpro.progmodel.context.Node.supplyElements(Node.java:395)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:351)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElements(Node.java:339)
         at com.sap.tc.webdynpro.progmodel.context.Node.size(Node.java:723)
         at com.sap.ip.mi.admin.wd.device.AssignMobileComponentView.wdDoInit(AssignMobileComponentView.java:124)
         at com.sap.ip.mi.admin.wd.device.wdp.InternalAssignMobileComponentView.wdDoInit(InternalAssignMobileComponentView.java:332)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.doInit(DelegatingView.java:61)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.view.View.initController(View.java:398)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:690)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:560)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:155)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.doOpen(WebDynproWindow.java:311)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handle(ApplicationWindow.java:277)
         at com.sap.tc.webdynpro.clientserver.window.ApplicationWindow.handleWindowEvents(ApplicationWindow.java:262)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:149)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:298)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:705)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:659)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:227)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:150)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:56)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:47)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Thanks in advance.
    Regards,
    Ameer.

    Are you using "Shared" HR? You can refer to note >1074384.6 on Metalink for a resolution to this issue. If you are using the full install of HR then refer to note > 786785.1 on Metalink
    Edited by: pillair on Jun 12, 2012 9:03 PM

  • How to modify a tree component dinamically

    Hi to everybody. I'm a problem with RichTree component when I try to run my application in jdeveloper 11g.
    In jsp page I have a RichInputText and a button component. When you click on the button, it modifies one String type variable: it stores the same value of RichInputText component.
    After that the applicatiion should show a tree that use the modified variable before, but when I click on the button an exception occurs:
    javax.faces.el.EvaluationException: java.lang.NullPointerException
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:51)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
         at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:190)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.share.http.ServletADFFilter.doFilter(ServletADFFilter.java:61)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:149)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.NullPointerException
         at view.Tree_1.search(Tree_1.java:55)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.sun.el.parser.AstValue.invoke(AstValue.java:157)
         at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:283)
         at org.apache.myfaces.trinidad.component.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:46)
         ... 34 more
    I show the code in the following lines:
    Sense represents the tree nodes.
    ----------------------------------Sense.java
    public class Sense {
    private String _name = null;
    private List<Sense> _kids = null;
    public Sense(String name){
    setName(name);
    public String getName(){ return _name;}
    public void setName(String name){this._name = name;}
    public List<Sense> getKids(){ return _kids;}
    public void setKids(List<Sense> kids){this._kids = kids;}
    -----------------------------------Tree_1.java
    public class Tree_1{
    private Object _instance = null;
    private transient TreeModel _model = null;
    private String _key;
    private RichInputText inputText1;
    public RichInputText getInputText1(){return this.inputText1;}
    public void setInputText1(RichInputText inputText){
    this.inputText1 = inputText;
    public Tree_1() {
    ArrayList<Sense> root = new ArrayList<Sense>();
    Sense senso = new Sense(_key);
    root.add(senso);
    ArrayList<Sense> firstSon = new ArrayList<Sense>();
    Sense senso2 = new Sense(_key+"2");
    firstSon.add(senso2);
    senso.setKids(firstSon);
    this.setListInstance(root);
    public TreeModel getModel() throws IntrospectionException {
    if (_model == null) {
    model = new ChildPropertyTreeModel(instance, "kids");
    return _model;
    public void setListInstance(List instance) {
    _instance = instance;
    _model = null;
    public String search() {
    _key = inputText1.getValue().toString();
    return null;
    -------------------------------------SenseView.jsp
    <af:form>
    <af:inputText label="Label 1" id="inputText1"/>
    <af:commandButton text="commandButton 1" action="#{Tree_1.search}"/>
    <af:tree var="node" value="#{Tree_1.model}"
    inlineStyle="width:100%; height:100%;">
    <f:facet name="nodeStamp">
    <af:outputText value="#{node.name}" />
    </f:facet>
    <f:facet name="pathStamp"/>
    </af:tree>
    </af:form>
    Any ideas? thank's a lot

    Hi,
    what is the scope of the bean ? the command button performs a page reload after which the key is empty again
    Frank

  • Client_text_io.fopen causes java.lang.NullPointerException

    Hi all
    I have the following very simple snippet of code:
    declare
         f client_text_io.file_type;
    begin
         f := client_text_io.fopen('C:\test.txt', 'r');
    end;
    If "C:\Test.txt" does NOT exist on the client, Webutil correctly pops up and complains "Can't open file" etc. But... when the file actually exists and is ready to be opened for read, the following exception is thrown in the console, and nothing happens:
    java.lang.NullPointerException: charsetName
         at java.io.InputStreamReader.<init>(Unknown Source)
         at oracle.forms.webutil.file.FileFunctions.fopen(Unknown Source)
         at oracle.forms.webutil.file.FileFunctions.getProperty(Unknown Source)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    2006-feb-23 10:36:18.653 ERROR>WUC-15 [FileFunctions.fopen()] Uventet fejl, undtagelse: java.lang.NullPointerException: charsetName
    I have no idea, what goes wrong here.... can anyone help? I use Sun JPI 1.5 on the client.
    Thanks in advance.

    Hi all
    I have forms 9.0.4.6 and Webutil 1.0.6
    When I use client_text_io.fopen like this:
    declare
    f client_text_io.file_type;
    begin
    f := client_text_io.fopen('C:\test.txt', 'r');
    end;
    I get an error:
    ERROR>WUC-15 [FileFunctions.fopen()] Unexpected error, Exception: java.lang.NullPointerException
    java.lang.NullPointerException
         at sun.io.Converters.getConverterClass(Unknown Source)
         at sun.io.Converters.newConverter(Unknown Source)
         at sun.io.ByteToCharConverter.getConverter(Unknown Source)
         at java.io.InputStreamReader.<init>(Unknown Source)
         at oracle.forms.webutil.file.FileFunctions.fopen(FileFunctions.java:413)
         at oracle.forms.webutil.file.FileFunctions.getProperty(FileFunctions.java:188)
         at oracle.forms.handler.UICommon.onGet(Unknown Source)
         at oracle.forms.engine.Runform.onGetHandler(Unknown Source)
         at oracle.forms.engine.Runform.processMessage(Unknown Source)
         at oracle.forms.engine.Runform.processSet(Unknown Source)
         at oracle.forms.engine.Runform.onMessageReal(Unknown Source)
         at oracle.forms.engine.Runform.onMessage(Unknown Source)
         at oracle.forms.engine.Runform.processEventEnd(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.redispatchEvent(Unknown Source)
         at oracle.ewt.lwAWT.LWComponent.processEvent(Unknown Source)
         at java.awt.Component.dispatchEventImpl(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
         at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
         at java.awt.Container.dispatchEventImpl(Unknown Source)
         at java.awt.Window.dispatchEventImpl(Unknown Source)
         at java.awt.Component.dispatchEvent(Unknown Source)
         at java.awt.EventQueue.dispatchEvent(Unknown Source)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
         at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
         at java.awt.EventDispatchThread.run(Unknown Source)
    Could anybody help me? I really need to use this.

  • SAP Strategy Management 7.0 SSM Component Deployment failed with JSPM

    Dear experts,
    i have installed a SAP Netweaver CE 7.1 on Windows Server 2003 Enterprise x64 with MS SQL and i wish to install now SAP Strategy Management 7.0 with JSPM Tool.
    I have copied the CPMSTRMGMAPC00_0.SCA file on the usr\sap\trans\EPS\in\ directory and the deployment precessus failed with error before the AS JAVA has been restarted.
    How can i manage this problem? Any suggestion is welcomed.
    Thank you very much.
    Best regards,
    Pascal.

    Any ideas?
    Here is the F:\usr\sap\PI7\J71\j2ee\JSPM\log\log_2009_06_15_12_51_48\deploy_2009-06-15_14-56-58.log
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[1.5.7.1006]/>
    <!NAME[F:\usr\sap\PI7\J71\j2ee\JSPM\log\log_2009_06_15_12_51_48\deploy_2009-06-15_13-07-03.log]/>
    <!PATTERN[deploy_2009-06-15_13-07-03.log]/>
    <!FORMATTER[com.sap.tc.logging.TraceFormatter(%25d[%6s]:%m)]/>
    <!ENCODING[UTF8]/>
    <!LOGHEADER[END]/>
    Jun 15, 2009 1:07:03 PM  [Info  ]:DC API is trying to connect to 'sap-pi7:57104'
    Jun 15, 2009 1:07:03 PM  [Info  ]:DC API has Connected to 'sap-pi7:57104'
    Jun 15, 2009 1:07:03 PM  [Path  ]:+++++ Starting  V A L I D A T E action +++++[ deployerId=2 ]. timerId=7
    Jun 15, 2009 1:07:03 PM  [Path  ]:Selected archives for validation. [ deployerId=2 ]
    Jun 15, 2009 1:07:03 PM  [Path  ]:
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca
    Jun 15, 2009 1:07:03 PM  [Debug ]:Got full sdu path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca'
    Jun 15, 2009 1:07:03 PM  [Path  ]:component version handling rule is UpdateLowerVersionsOnly.[ deployerId=2 ]
    Jun 15, 2009 1:07:03 PM  [Path  ]:deployment workflow strategy is safety deploy strategy.[ deployerId=2 ]
    Jun 15, 2009 1:07:03 PM  [Path  ]:life cycle deploy strategy is disable LCM deploy strategy.[ deployerId=2 ]
    Jun 15, 2009 1:07:03 PM  [Path  ]:Error strategies[ deployerId=2 ]:
    Jun 15, 2009 1:07:03 PM  [Path  ]:error action 'DeploymentAction' is 'OnErrorStop'
    Jun 15, 2009 1:07:03 PM  [Path  ]:error action 'PrerequisitesCheckAction' is 'OnErrorSkipDepending'
    Jun 15, 2009 1:07:03 PM  [Debug ]:deployer initialized successfully:[id:#8, elapsed: 0 ms.].[ deployerId=2 ]
    Jun 15, 2009 1:07:03 PM  [Debug ]:Total time:[#8: 0.0 sec].[ deployerId=2 ]
    Jun 15, 2009 1:07:03 PM  [Info  ]:Start validating.[ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Path  ]:Validating completed. Preparing the validation result.
    Jun 15, 2009 1:07:06 PM  [Path  ]:
    Sorted Items -
         1. Client path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca --> xappscpmsm~strategymanagement.sda'
         Sdu info :name 'xappscpmsm~strategymanagement', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '2465295', software type ('J2EE', sub type ''), dependencies :[none]
              Deploy status is 'Admitted'
         2. Client path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca'
         Sdu info :name 'CPM_STR_MGM_APC', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '1000.700.0.1.0.20080221071842'
              Deploy status is 'Admitted'
    Deployment Items -
         1. Client path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca'
         Sdu info :name 'CPM_STR_MGM_APC', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '1000.700.0.1.0.20080221071842'
              Deploy status is 'Admitted'
              Time statistics:
              Contained DCs:
              1.1:name 'xappscpmsm~strategymanagement', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '2465295', software type ('J2EE', sub type ''), dependencies :[none]          
                        Deploy status is 'Admitted'
              1.2:name 'xappscpmsm~strategymanagementactions', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '2465041', software type ('J2EE', sub type ''), dependencies :[none]          
                        Deploy status is 'AlreadyDeployed'
                        Description:'1. Already deployed component has version:2465041'.
              1.3:name 'xappscpmsm~strategymanagementdoc', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '2465046', software type ('J2EE', sub type ''), dependencies :[none]          
                        Deploy status is 'AlreadyDeployed'
                        Description:'1. Already deployed component has version:2465046'.
              1.4:name 'xappscpmsm~strategymanagementdic', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '2465042', software type ('JDDSCHEMA', sub type ''), dependencies :[none]          
                        Deploy status is 'AlreadyDeployed'
                        Description:'1. Already deployed component has version:2465042'.
    Jun 15, 2009 1:07:06 PM  [Info  ]:+++ Validation finished with status 'Success' +++[ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Path  ]:+++++ End  V A L I D A T E action +++++[ deployerId=2 ]. Total time:[#7: 3.016 sec]
    Jun 15, 2009 1:07:06 PM  [Path  ]:+++++ Starting  D E P L O Y action +++++ [ deployerId=2 ] [ timerId=9]
    Jun 15, 2009 1:07:06 PM  [Path  ]:Selected archives for deployment. [ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Path  ]:
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca
    Jun 15, 2009 1:07:06 PM  [Debug ]:Got full sdu path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca'
    Jun 15, 2009 1:07:06 PM  [Path  ]:component version handling rule is UpdateLowerVersionsOnly.[ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Path  ]:deployment workflow strategy is safety deploy strategy.[ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Path  ]:life cycle deploy strategy is disable LCM deploy strategy.[ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Path  ]:Error strategies[ deployerId=2 ]:
    Jun 15, 2009 1:07:06 PM  [Path  ]:error action 'DeploymentAction' is 'OnErrorStop'
    Jun 15, 2009 1:07:06 PM  [Path  ]:error action 'PrerequisitesCheckAction' is 'OnErrorStop'
    Jun 15, 2009 1:07:06 PM  [Debug ]:deployer initialized successfully:[id:#11, elapsed: 15 ms.].[ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Debug ]:Total time:[#11: 0.015 sec].[ deployerId=2 ]
    Jun 15, 2009 1:07:06 PM  [Path  ]:Starting deployment.[ deployerId=2 ]
    Jun 15, 2009 1:07:17 PM  [Debug ]:clusterRestartTriggered for transactionId:223, clusterEventAction:cluster restart triggered
    Jun 15, 2009 1:07:17 PM  [Debug ]:Mark transaction '223' as offline phase.
    Jun 15, 2009 1:07:17 PM  [Info  ]:+++ Performing offline deployment. Server is being restarted +++.The timeout for the operation is:  86400 sec.
    Jun 15, 2009 1:07:17 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 0 ms.
    Jun 15, 2009 1:07:47 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 484 ms.
    Jun 15, 2009 1:08:19 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 30484 ms.
    Jun 15, 2009 1:08:49 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 62140 ms.
    Jun 15, 2009 1:09:19 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 92156 ms.
    Jun 15, 2009 1:09:49 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 122171 ms.
    Jun 15, 2009 1:10:19 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 152171 ms.
    Jun 15, 2009 1:10:49 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 182296 ms.
    Jun 15, 2009 1:11:20 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 212905 ms.
    Jun 15, 2009 1:12:22 PM  [Info  ]:Engine is up and running. Wait for engine deployment result.
    Jun 15, 2009 1:12:22 PM  [Debug ]:DC API will create new CM
    Jun 15, 2009 1:12:52 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 305686 ms.
    Jun 15, 2009 1:13:22 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 335685 ms.
    Jun 15, 2009 1:13:53 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 365701 ms.
    Jun 15, 2009 1:14:23 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 395701 ms.
    Jun 15, 2009 1:14:53 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 425763 ms.
    Jun 15, 2009 1:15:24 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 456856 ms.
    Jun 15, 2009 1:15:54 PM  [Path  ]:+++ Wait for server response +++. Elapsed: 487012 ms.
    Jun 15, 2009 1:15:57 PM  [Info  ]:Engine is up and running. Wait for engine deployment result.
    Jun 15, 2009 1:15:57 PM  [Info  ]:server is online, time:[id:#10, elapsed: 520059 ms.]
    Jun 15, 2009 1:15:57 PM  [Path  ]:Deployment completed. Preparing the deployment result.[ deployerId=2 ]
    Jun 15, 2009 1:15:57 PM  [Path  ]:
    Sorted Items -
         1. Client path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca --> xappscpmsm~strategymanagement.sda'
         Sdu info :name 'xappscpmsm~strategymanagement', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '2465295', software type ('J2EE', sub type ''), dependencies :[none]
              Deploy status is 'Aborted'
              Description:'1. class com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException
               -> class java.lang.NullPointerException'.
         2. Client path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca'
         Sdu info :name 'CPM_STR_MGM_APC', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '1000.700.0.1.0.20080221071842'
              Deploy status is 'Aborted'
              Description:'1. Contains Aborted deployment component:
    sdu id: sap.com_xappscpmsm~strategymanagement
    sdu file path: F:\usr\sap\PI7\J71\j2ee\cluster\server0\.\temp\tcbldeploy_controller\archives\223\CPMSTRMGMAPC00_0_sca1245064026979\DEPLOYARCHIVES\xappscpmsm~strategymanagement.sda
    version status: NEW
    deployment status: Aborted
    description: 1. class com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException
               -> class java.lang.NullPointerException'.
    Deployment Items -
         1. Client path '
    sap-pi7\sapmnt\trans\EPS\in\CPMSTRMGMAPC00_0.sca'
         Sdu info :name 'CPM_STR_MGM_APC', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '1000.700.0.1.0.20080221071842'
              Deploy status is 'Aborted'
              Description:'1. Contains Aborted deployment component:
    sdu id: sap.com_xappscpmsm~strategymanagement
    sdu file path: F:\usr\sap\PI7\J71\j2ee\cluster\server0\.\temp\tcbldeploy_controller\archives\223\CPMSTRMGMAPC00_0_sca1245064026979\DEPLOYARCHIVES\xappscpmsm~strategymanagement.sda
    version status: NEW
    deployment status: Aborted
    description: 1. class com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException
               -> class java.lang.NullPointerException'.
              Time statistics:
              Contained DCs:
              1.1:name 'xappscpmsm~strategymanagementdic', vendor 'sap.com', location 'n/a', version '1', software type ('n/a', sub type ''), dependencies :[none]          
                        Deploy status is 'AlreadyDeployed'
                        Description:'1. Already deployed component has version:2465042'.
              1.2:name 'xappscpmsm~strategymanagementdoc', vendor 'sap.com', location 'n/a', version '1', software type ('n/a', sub type ''), dependencies :[none]          
                        Deploy status is 'AlreadyDeployed'
                        Description:'1. Already deployed component has version:2465046'.
              1.3:name 'xappscpmsm~strategymanagement', vendor 'sap.com', location 'MAIN_CPMSM70V_D', version '2465295', software type ('J2EE', sub type ''), dependencies :[none]          
                        Deploy status is 'Aborted'
              Time statistics( ms ):
                   1.deployment : 34906
                        1.1.Notify:Event triggered : 157
                        1.2.Disable LCM deployment : 34656
                             1.2.1.Perform delivery : 34656
                                  1.2.1.1.Application Deployer : 34656
                        1.3.Notify Observers : 15
                             1.3.1.Persist in storage : 15
                        1.4.Notify:Event performed : 78
                   2.Persist in storage : 16
                        Description:'1. class com.sap.engine.services.webservices.espbase.wsdl.exceptions.WSDLException
               -> class java.lang.NullPointerException'.
              1.4:name 'xappscpmsm~strategymanagementactions', vendor 'sap.com', location 'n/a', version '1', software type ('n/a', sub type ''), dependencies :[none]          
                        Deploy status is 'AlreadyDeployed'
                        Description:'1. Already deployed component has version:2465041'.
    Jun 15, 2009 1:15:57 PM  [Info  ]:
    Deploy Result Description: Deployment exception occurred during deploy online data. Reason :An error occurred while deploying the deployment item 'sap.com_xappscpmsm~strategymanagement'.; nested exception is:
         com.sap.engine.services.dc.gd.DeliveryException: [ERROR CODE DPL.DC.3298] An error occurred during deployment of sap.com_xappscpmsm~strategymanagement. Cannot deploy it.
    [ deployerId=2 ]
    Jun 15, 2009 1:15:57 PM  [Info  ]:+++ Deployment finished with status 'Error' +++.[ deployerId=2 ][#10: 530.465 sec]
    Jun 15, 2009 1:15:57 PM  [Path  ]:+++++ End  D E P L O Y action +++++[ deployerId=2 ]. Total time:[#9: 530.465 sec]
    Jun 15, 2009 1:15:57 PM  [Debug ]:Incorrect client ID. The stub is not connected yet.
    Jun 15, 2009 1:15:57 PM  [Debug ]:Incorrect client ID. The stub is not connected yet.

Maybe you are looking for