NullPointerException at synchronizeSceneNodes, why?

I run my program, in some cases, there will be the following error. I was unable to locate my program error, seems to be the background FX process error, how is this trigger?
java.lang.NullPointerException
at javafx.scene.Scene$ScenePulseListener.synchronizeSceneNodes(Scene.java:2108)
at javafx.scene.Scene$ScenePulseListener.pulse(Scene.java:2210)
at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:363)
at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
at java.lang.Thread.run(Thread.java:722)

Is all of your code run on the JavaFX application thread?

Similar Messages

  • Xrpcc tool error: NullPointerException

    im trying Hello class example.
    //interface claas defination is
    import java.rmi.Remote;
    import java.rmi.RemoteException;
    import javax.xml.rpc.server.ServiceLifecycle;
    public class HelloClass implements HelloInterface, ServerLifecycle{
    public String mystring = "i am server";
    public void init(Object context){
    public String CallMe(String StringPassed){
         return(mystring+StringPassed);
    // interface class defination is
    public interface HelloInterface extends Remote{
    public String CallMe(String PassedString) throws RemoteException;
    //config.xml file as
    <configuration xmlns="http://java.sun.com/xml/ns/jax-rpc/ri/config">
    <service targetNamespace="http://sunreg.org/wsdl"
              typeNamespace="http://sunreg.org/wsdl"
                        name="HelloService"
              packageName="Hello">
    <interface name="HelloInterface"
    servantName="HelloClass"/>
    </service>
    </configuration>
    on running xrpcc tool it is giving error
    error:NullpointerException
    any idea why it error is giving

    To get more info, try using the -verbose and -Xprintstacktrace options
    on xrpcc. Also, xrpcc is being deprecated, you should start using wscompile which if functionally equivalent to xrpcc.

  • NullPointerException while trying to add "WebLogic System Lib." in a classp

    I'm having an error while trying to add WL System Libs in a classpath of an Hibernate configuration.
    // yes, required is Hibernate Tools Eclipse plugin, v3.2.0 GA
    /// available through http://www.hibernate.org/255.html - click on any "download" link
    I first thought it would certainly be an Hibernate Tools bug, but according to the Stack Trace, it might be BEA WLS Tools which is faulty (=> NullPointerException)
    That's why I preferred posting here first, before even issuing a bug report on http://bugzilla.bea.com/
    Steps to reproduce:
    1. Open the "Hibernate" perspective
    2. Create or edit an Hibernate configuration (through the "+" icon or by right-click then "Edit Configuration" on an existing
    3. Go to the "Classpath" tab.
    4. Click "Advanced..." button, then check "Add Library" radio button; select "WebLogic System Libraries" entry and then "Next >".
    5. Error happens in the Eclipse "Error Log" tab and the WebLogic library is not added.
    Details
    Message: "Unhandled event loop exception"
    Exception Stack Trace:
    java.lang.NullPointerException
         at com.bea.workshop.wls.ui.internal.SystemLibrariesContainerPage.initialize(SystemLibrariesContainerPage.java:93)
         at org.eclipse.jdt.internal.ui.wizards.buildpaths.ClasspathContainerWizard.getContainerPage(ClasspathContainerWizard.java:155)
         at org.eclipse.jdt.internal.ui.wizards.buildpaths.ClasspathContainerWizard.getNextPage(ClasspathContainerWizard.java:170)
         at org.eclipse.jface.wizard.WizardPage.getNextPage(WizardPage.java:172)
         at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.jdt.internal.ui.wizards.buildpaths.ClasspathContainerWizard.openWizard(ClasspathContainerWizard.java:226)
         at org.eclipse.jdt.ui.wizards.BuildPathDialogAccess.chooseContainerEntries(BuildPathDialogAccess.java:272)
         at org.eclipse.jdt.internal.debug.ui.actions.AddLibraryAction.run(AddLibraryAction.java:39)
         at org.eclipse.jdt.internal.debug.ui.launcher.RuntimeClasspathAdvancedDialog.okPressed(RuntimeClasspathAdvancedDialog.java:156)
         at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:464)
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.jdt.internal.debug.ui.actions.AddAdvancedAction.run(AddAdvancedAction.java:39)
         at org.eclipse.jdt.internal.debug.ui.actions.RuntimeClasspathAction$1.widgetSelected(RuntimeClasspathAction.java:137)
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1133)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationPropertiesDialog.open(LaunchConfigurationPropertiesDialog.java:230)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationPropertiesDialog(DebugUITools.java:429)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationPropertiesDialog(DebugUITools.java:408)
         at org.hibernate.eclipse.console.actions.EditConsoleConfiguration.edit(EditConsoleConfiguration.java:104)
         at org.hibernate.eclipse.console.actions.EditConsoleConfiguration.doRun(EditConsoleConfiguration.java:71)
         at org.hibernate.eclipse.console.actions.ConsoleConfigurationBasedAction.run(ConsoleConfigurationBasedAction.java:63)
         at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    Session data: (empty)
    (copied from another unrelated error - provided for info)
    eclipse.buildId=M20071023-1652
    java.version=1.5.0_14
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en
    Command-line arguments: -os win32 -ws win32 -arch x86

    Looks like a case that wasn't encountered before. Please go ahead and
    open a bug at http://bugzilla.bea.com?
    Thanks,
    - Konstantin

  • Exception in XML Parser (format problem?)

    Hi Experts,
    I am working on IDOC -> AS2 Configuration and the AS2 Configuration has the below structure
    <RecordSet>
         <Row1>
                       <row1 - field1>
                       <row1 - field2>
                       <row1 - field3>
         </Row1>
         <Row2>
                       <row2 - field1>
                       <row2 - field2>
                       <row2 - field3>
         </Row2>
         <Records>
              <Record1>
                        <Record1-Field1>
                        <Record1-Field1>
                        <Record1-Field1> 
              </Record1>
              <Record2>
                        <Record2-Field1>
                        <Record2-Field1>
                        <Record2-Field1> 
              </Record2>
         </Records>
    </RecordSet>
    We are getting the expected Structure when we AS2 Receiver has the xml format. But while doing module development with the strctxml2Plain, we are getting the below error  in RWB CC Monitoring.
    Message processing failed. Cause: com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    Any ideas, why this error we are getting.....
    Thanks in advance,
    Regards,
    Vasu

    Hi Vasu,
    Not in the Mapping of IR.
    In BIC Mapping Designer you have to test with the standard Mappings by providing the sample file whether the Conversion is happening correctly or not.
    You have to take the same input file that what ever you are having now.
    So that it will say clearly what is the problem in converting the XMLto the required EDI Format...
    Check whether you have any Date Format Values are comming from the input file.
    Regards
    Seshagiri

  • JAG errors by Default Application

    Hello,
    I'm traying to create the Default Application:
    Create Application Workspace (JSF, ADFBC) in JDev
    Create default business components for all HR tables (except for JOB_HISTORY) in Model project.
    Edit the Application Module, add nested view object usages to get 5-level deep nesting of region-country-location-department-employee.
    Go to ViewControlller project, right-mouse-click and choose “Enable JHeadstart in this project”.
    Create default Application Definition (right-mouse-click on ViewController project).
    Create lookups as LOV checkbox does not work yet.
    Save all
    Go to Project Properties -> Project Content -> Resources and check the checkbox “Include Content From Subfolders” for the “Templates” and “Properties” resource paths. The Application Definition file, and all Generator Templates should now appear under the Resources node.
    Right-mouse-click ViewController project, choose Edit Application Definition, and see how app module structure has been carried forward: 5 level-deep nesting of regions etc.
    Run the JAG, by right-mouse-clicking on the file itself, or by pressing the generate button in the editor
    Runing the JAG a got these Errors:
    [RegionsTable.jspx, default/misc/menu/pageMenu.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Regions.jspx, default/misc/menu/pageMenu.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Regions.jspx, default/button/newButton.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Regions.jspx, default/button/deleteButton.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Countries2Table.jspx, default/misc/menu/pageMenu.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [LocationsTable.jspx, default/misc/menu/pageMenu.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Locations.jspx, default/misc/menu/pageMenu.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Locations.jspx, default/button/newButton.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Locations.jspx, default/button/deleteButton.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [Departments2Table.jspx, default/misc/menu/pageMenu.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    [EmployeesTable.jspx, default/misc/menu/pageMenu.vm] Velocity log [error] ASTMethod.execute() : exception from introspection : java.lang.NullPointerException
    etc.
    Why?! Can anybody tell me?
    Regards
    Boris

    Steven,
    because my JDeveloper with JHeadstart was obvious not O.K.
    Loading JHeadstart Addins
    Addin | Version | Status
    JHeadstart Shared Components | 10.1.3.0.65| Loaded
    JHeadstart Development Environment | 10.1.3.0.65| Loaded
    JHeadstart Application Generator | 10.1.3.0.65| Loaded
    Missing property ajc.nonStandardOptions
    Missing property ajc.nonStandardOptions
    Cannot find script : nulljava.lang.UnsatisfiedLinkError: no kernelinterface in j
    ava.library.path
    at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
    at java.lang.Runtime.loadLibrary0(Runtime.java:822)
    at java.lang.System.loadLibrary(System.java:992)
    at edu.stanford.suif.keepresident.KernelInterface.<clinit>(KernelInterface.java:24)
    at uk.org.damselfly.jdev.keepResident.KeepResidentAddin$KernelClass.initialize(KeepResidentAddin.java:203)
    at uk.org.damselfly.jdev.keepResident.KeepResidentAddin.mainWindowOpened(KeepResidentAddin.java:166)
    at oracle.ide.IdeCore.fireIdeEvent(IdeCore.java:725)
    at oracle.ide.IdeCore.mav$fireIdeEvent(IdeCore.java)
    at oracle.ide.IdeCore$5.run(IdeCore.java:689)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    I am trying now with a "New" JDeveloper &JHeadstart and I'm getting these errors:
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    500 Internal Server Error
    javax.servlet.jsp.JspException: setActionListener must be inside of a UIComponent tag.     at oracle.adfinternal.view.faces.taglib.RegionDefTag.doStartTag(RegionDefTag.java:44)     at common.regions._menuGlobal_jspx._jspService(_menuGlobal_jspx.java:48)     [common/regions/menuGlobal.jspx]     at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.0.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:60)     at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:416)     at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:478)     at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:401)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)     at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:332)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)     at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)     at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:87)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:627)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:218)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:119)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)     at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)     at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:230)     at oracle.oc4j.network.ServerSocketAcceptHandler.access$800(ServerSocketAcceptHandler.java:33)     at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:831)     at com.evermind[Oracle Containers for J2EE 10g (10.1.3.0.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)     at java.lang.Thread.run(Thread.java:595)
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    Regards
    Boris

  • Get groups AD with getResourceObjects

    Hello,
    I'm trying to get AD accounts using the following rule:
    <Rule name="get accounts ad">
    <RuleArgument name="session"/>
          <invoke name="getResourceObjects"class="com.waveset.ui.FormUtil">
         <ref>session</ref>
         < s>person</s>
         < s>AD</s>
         <map>
                < s>searchAttrsToGet</s>
             <List>
              <String>dn</String>
              <String>groups</String>
              </List>
              < s>searchContext</s>
             < s>OU=Users,OU=HR,dc=brussels,dc=airport</s>              < s>searchScope</s>
             < s>oneLevel</s>
         </map>
         <!-- clear the server cache -->
         < s>false</s>
         < s>0</s>
         < s>true</s>
         </invoke>
    </Rule>But I can't seem to retrieve the dn's of the groups of which a user is a member of. When I use the attribute "memberOf" instead of groups, the method returns only the dn of the first group in the list. Is there a way to get the whole list of groups in the generic object using this method?
    Kind regards,
    Robin

    Assuming this is the exact code used, you have a typo in the
    <um:getGroupNamesForUser> tag. It should be:
    <um:getGroupNamesForUser username="<%=currentUser%>" id="userGroups"/>
    If that was just a typo, then I don't know.
    Greg
    Dom wrote:
    Hi!
    I'm trying to get the groups for a logged in user in a jsp page using the getGroupNamesForUser
    tag like this:
    <% String currentUser = request.getRemoteUser(); %>
    <netui:content value="<%=currentUser%>"/>
    <um:getGroupNamesForUser username="currentUser" id="userGroups"/>
    Unfortunately, i'm getting the following NullPointer error:
    Error opening /portlets/SAE/PortalAdmin/PortalAdmin.jsp.
    The source of this error is javax.servlet.ServletException: EJB Exception: ; nested
    exception is: java.lang.NullPointerException
    Any idea why this doesn't work?!?
    I'm using Weblogic 8.1.2!
    Thx!
    Dom

  • Get groups with getGroupNamesForUser tag

    Hi!
    I'm trying to get the groups for a logged in user in a jsp page using the getGroupNamesForUser
    tag like this:
    <% String currentUser = request.getRemoteUser(); %>
    <netui:content value="<%=currentUser%>"/>
    <um:getGroupNamesForUser username="currentUser" id="userGroups"/>
    Unfortunately, i'm getting the following NullPointer error:
    Error opening /portlets/SAE/PortalAdmin/PortalAdmin.jsp.
    The source of this error is javax.servlet.ServletException: EJB Exception: ; nested
    exception is: java.lang.NullPointerException
    Any idea why this doesn't work?!?
    I'm using Weblogic 8.1.2!
    Thx!
    Dom

    Assuming this is the exact code used, you have a typo in the
    <um:getGroupNamesForUser> tag. It should be:
    <um:getGroupNamesForUser username="<%=currentUser%>" id="userGroups"/>
    If that was just a typo, then I don't know.
    Greg
    Dom wrote:
    Hi!
    I'm trying to get the groups for a logged in user in a jsp page using the getGroupNamesForUser
    tag like this:
    <% String currentUser = request.getRemoteUser(); %>
    <netui:content value="<%=currentUser%>"/>
    <um:getGroupNamesForUser username="currentUser" id="userGroups"/>
    Unfortunately, i'm getting the following NullPointer error:
    Error opening /portlets/SAE/PortalAdmin/PortalAdmin.jsp.
    The source of this error is javax.servlet.ServletException: EJB Exception: ; nested
    exception is: java.lang.NullPointerException
    Any idea why this doesn't work?!?
    I'm using Weblogic 8.1.2!
    Thx!
    Dom

  • When null!=null :(

    hello all,
    having a small issue today... i can't test for null correctly. here's some code...
    <%
    String thisString = null;
    String thisString_sent = request.getParameter("thisString");
    if (thisString_sent!=null) {
    out.println(thisString);
    %>
    <form method="post" action="#">
    <input type="button" onclick="form.submit();">
    <input type="hidden" name="thisString" id="thisString" value="<%=thisString_sent%>">
    </form>
    when the form is submitted and thisString is null, the if statement doesn't consider the string to be null and prints "null". weird. I've also tried:
    if (!thisString_sent.equals(null)) but i get a nullpointerexception... why is this happening?
    signed,
    newb

    Well, because thisString_sent is never assigned a value.
    This is what happens:
    (1) you load the page and thisString_sent becomes null because request.getParameter("thisString") returns null.
    (2) you post your form sending the hidden input 'thisString' with the value of thisString_sent, which is null
    (3) the page is loaded and once again thisString_sent becomes null because request.getParameter("thisString") returns null.
    (4) and so on and so on
    Try making the input a textfield, remove the value="<%= thisString_sent %>" and input some string and post it.

  • Open browser using japplet

    I am trying to open an url in a new browser in a japplet.
    Itried the following code:
    getAppletContext().showDocument(new URL("http://somewhere/somefile", "_blank);but a NullPointerException is caught
    Why?

    This is my code:
    try
    {System.out.println("1");
         getAppletContext().showDocument(new java.net.URL("http://somewhere/index.html"), "_blank");
         System.out.println("2");
    catch (java.net.MalformedURLException ue)
         System.out.println("Error"+ue);
    }The "1" was printed but the "2" wasn't.
    This is the stack trace
    1
    Exception occurred during event dispatching:
    java.lang.NullPointerException
         at java.applet.Applet.getAppletContext(Unknown Source)
         at Main.runReport(Main.java:74)
         at CAT_SYS_SEARCH.actionPerformed(CAT_SYS_SEARCH.java:177)
         at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
         at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
         at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
         at java.awt.Component.processMouseEvent(Unknown Source)
         at java.awt.Component.processEvent(Unknown Source)
         at java.awt.Container.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.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)
    Seems that this wasn't caught in the catch block where it would have printed "Error" before these
    Thanx for helping

  • Why I get javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerExcept

    I used NetBeans IDE 5.5 to create a Web Services (JAX-WS).I test many simple services(like add(i,j)),and then create a simple main class to test it,it works find
    but if I code
    try {
    JAXBContext jc=JAXBContext.newInstance("sample.schema");
    } catch (JAXBException ex) {
    ex.printStackTrace();
    }into the web service
    the client recieved:
    javax.xml.ws.soap.SOAPFaultException: java.lang.NullPointerException
    ,I try many ways it just can't work.I can't find what the wrong is...
    ps:client is created by right-clicking in main.java, choose Web Service Client Resources > Call Web Service Operation

    try {
    JAXBContext
    jc=JAXBContext.newInstance("sample.schema");
    } catch (JAXBException ex) {
    ex.printStackTrace();
    }Why would NetBeans IDE 5.5 be giving you code like that if you said you followed the instructions you said on how to create a client?

  • Why rmic command in Linux gives NullPointerException

    Hiii
    I have a problem in RMI on Linux
    I whenever i am trying to create Stubs on Linux using rmic it's giving NULLPOINTEREXCEPTION..
    so please can anybody tell me why it's happeneing..
    my command was
    rmic ChatterImpl

    Markus Waldorf wrote:
    Test 1: mv renamed the file to * *.txt*. Does this mean wildcard operations are not possible anymore? Never renamed while moving - feels "+unsafe+". Like talking on a mobile while driving. :-)
    Test 2: Instead of overwriting the test directory, it moved test_test directory inside the existing test. Is this correct?Think so. You need to qualify using "scope" to move the contents of a directory as oppose to the directory itself. So instead of moving "<i>dirname</i>" itself, specify it as "<i>dirname/*</i>" instead.
    E.g.
    /home/billy> mkdir test
    /home/billy> touch test/file1
    /home/billy> ll test
    total 0
    -rw-r--r-- 1 billy billy 0 2010-09-21 11:51 file1
    /home/billy>
    /home/billy> mkdir test2
    /home/billy>
    /home/billy> mv test/* test2
    /home/billy> ll test2
    total 0
    -rw-r--r-- 1 billy billy 0 2010-09-21 11:51 file1
    /home/billy>

  • Why this NullPointerException??

    In this simple code i try to appear some buttons
    but give me nullpointerexception why ??
    import java.awt.BorderLayout;
    import java.awt.Dimension;
    import java.awt.FlowLayout;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public class Test extends JFrame {
        private final static String[] buttonNames = {"beshoy", "atef", "william"};
        private JButton[] buttons;
        private JPanel panel = new JPanel(new FlowLayout());
        public Test() {
            createButtons(buttonNames);
            panel.add(createButtons(buttonNames));
            getContentPane().add(panel, BorderLayout.CENTER);
        public static void main(String[] args) {
            Test test = new Test();
            test.setDefaultCloseOperation(Test.EXIT_ON_CLOSE);
            test.setSize(new Dimension(600, 300));
            test.setLocationRelativeTo(null);
            test.setVisible(true);
        private JButton createButtons(String[] buttonNames) {
            int i;
            buttons = new JButton[buttonNames.length];
            for (i = 0; i < buttonNames.length - 1; ++i) {
                buttons[i] = new JButton(buttonNames);
    return buttons[i];
    thanks in advance
    Beshoy Atef                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    when I do this :
        private JButton createButtons(String[] buttonNames) {
            int i;
            buttons = new JButton[buttonNames.length];
            for (i = 0; i < buttonNames.length ; ++i) {
                buttons[i] = new JButton(buttonNames);
    return buttons[i];
    }it give me :  java.lang.ArrayIndexOutOfBoundsException: 3
    why??
    when :
    button[0]>> it will has buttonNames[0]>> beshoy
    button[1]>> it will has buttonNames[1]>>atef
    button[2]>> it will has buttonNames[2]>> william
    please illustrate answer with code
    thanks                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Java.lang.NullPointerException (can't figure out why...)

    500 Internal Server Error
    java.lang.NullPointerException
         at oracle.adfinternal.controller.application.AdfcViewScopeProvider.getViewScope(AdfcViewScopeProvider.java:39)
         at oracle.adf.view.rich.context.AdfFacesContext.getViewScope(AdfFacesContext.java:267)
         at oracle.adfinternal.view.faces.context.RichPhaseListener.afterPhase(RichPhaseListener.java:339)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:354)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.rich.SharedLibraryFilter.doFilter(SharedLibraryFilter.java:135)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:76)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
         at oracle.adfinternal.view.faces.activedata.ADSFilter.doFilter(ADSFilter.java:86)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:602)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:351)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doDispatchRequest(HttpRequestHandler.java:977)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:878)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:676)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:644)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:436)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:185)
         at com.evermind[Oracle Containers for J2EE 11g (11.1.1.0.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:153)
         at oracle.oc4j.network.ServerSocketReadHandler$ClientRunnable.run(ServerSocketReadHandler.java:276)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:223)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$900(ServerSocketAcceptHandler.java:39)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:841)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
         at java.lang.Thread.run(Thread.java:619)
    thanks in advance...

    Hi user_change_your_handle,
    Can you tell us something more...
    for example: it happens after this operation...
    I'm using managed(backing) bean...
    etc....
    Regards,
    s o v i e t

  • Why Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException?

    Hello,
    In my netbeans generated swing code I get the following stacktrace:
    Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
         at javax.swing.text.PlainView.updateMetrics(PlainView.java:188)
         at javax.swing.text.PlainView.lineToRect(PlainView.java:589)
         at javax.swing.text.PlainView.modelToView(PlainView.java:327)
         at javax.swing.text.FieldView.modelToView(FieldView.java:248)
         at javax.swing.plaf.basic.BasicTextUI$RootView.modelToView(BasicTextUI.java:1498)
         at javax.swing.plaf.basic.BasicTextUI.modelToView(BasicTextUI.java:1036)
         at javax.swing.text.DefaultCaret.repaintNewCaret(DefaultCaret.java:1291)
         at javax.swing.text.DefaultCaret$1.run(DefaultCaret.java:1270)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:633)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)The code is @ http://code.google.com/p/memorizeasy/source/browse/trunk/MemorizEasy/src/com/mysimpatico/memorizeasy/engine/executables/Input.java

    So the problem is given by these two lines, of the Swing-X library:
    AutoCompleteDecorator.decorate(expField, exps, false);
    AutoCompleteDecorator.decorate(defField, exps, false);
    However, the functionality intended from them is given. The problem now seems to do with expField.setText() and expField.selectAll(). I've inline initialized expField, and now it works.
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    * Input1.java
    * Created on Feb 21, 2010, 11:56:00 AM
    import java.util.ArrayList;
    import javax.swing.*;
    import org.jdesktop.swingx.autocomplete.AutoCompleteDecorator;
    public class Input1 extends javax.swing.JFrame {
         private static final long serialVersionUID = 2819528413930929081L;
         private static final ArrayList<String> exps = new ArrayList<String>();//Database.getAllExps();
         private static final Input1 instance  = new Input1();
         /* private void defFieldFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_defFieldFocusGained
                 defField.selectAll();
         }//GEN-LAST:event_defFieldFocusGained
             private void expFieldActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_expFieldActionPerformed
                final String exp = expField.getText();
               /* if (defField.isVisible() && exp != null && exps.contains(exp)){
                    status.setText("to change the spelling select Spelling from the Edit Menu.");
                else if (!defField.isVisible()){ //in spelling mode
                    Database.editExpression(exSpell, exp);
                    status.setText("spelling for " + exSpell + " changed to " + exp);
                    defField.setVisible(true);
                    spellingMenuItem.setEnabled(false);
             }//GEN-LAST:event_expFieldActionPerformed
         private void initComponents() {
              contentPanel = new javax.swing.JPanel();
              expField = new javax.swing.JTextField();
               expField.setText("expression");
                    /*  expField.addActionListener(new java.awt.event.ActionListener() {
                          public void actionPerformed(java.awt.event.ActionEvent evt) {
                              expFieldActionPerformed(evt);
                      expField.addFocusListener(new java.awt.event.FocusAdapter() {
                          public void focusGained(java.awt.event.FocusEvent evt) {
                              expFieldFocusGained(evt);
                      defField.setText("definition");
                      defField.addActionListener(new java.awt.event.ActionListener() {
                          public void actionPerformed(java.awt.event.ActionEvent evt) {
                              defFieldActionPerformed(evt);
                      defField.addFocusListener(new java.awt.event.FocusAdapter() {
                          public void focusGained(java.awt.event.FocusEvent evt) {
                              defFieldFocusGained(evt);
              setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
              contentPanel.add(expField);
              expField.setVisible(true);
              this.setContentPane(contentPanel);
              pack();
         }// </editor-fold>
         /** Creates new form Input1 */
         private Input1() {
              initComponents();
              AutoCompleteDecorator.decorate(expField, exps, false);
         private void expFieldFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_expFieldFocusGained
                 expField.selectAll();
          * @param args the command line arguments
         public static void main(String args[]) {
              java.awt.EventQueue.invokeLater(new Runnable() {
                   public void run() {
                        instance.setVisible(true);
         // Variables declaration - do not modify
         private javax.swing.JPanel contentPanel;
         private javax.swing.JTextField expField;
         // End of variables declaration
    }Edited by: simpatico_gabriele on Mar 11, 2010 8:09 PM

  • Why am i getting this NullpointerException?

    i have an applet in which there are panels.
    i have a subclass panel which extends a superclass panel.
    in the superclass, there is an instance of a different panel.
    when i try to call the getX() method of the different panel in the subclass, it gives me a nullpointerexception.
    code:
    import java.net.URL;
    class Slime extends Enemy
         Slime(URL cb,Chara ch)
              super(cb,ch,"slimeup1.png","slimeup2.png","slimedown1.png","slimedown2.png","slimeleft1.png","slimeleft2.png","slimeright1.png","slimeright2.png");
              setSize(30,35);
              setOpaque(false);
              damage=10;
              display(DownPicture1);
         public void run(){
              int cntr=0;
              while(!stopThread)
                   if(cntr>=200)
                   cntr=0;
                   else
                   if(cntr<=100){
                   setLocation(getX()+1,getY());
                   animate(RightPicture1,RightPicture2);
                   dir=3;
                   cntr++;
                   else
                   if(cntr>=100){
                   setLocation(getX()-1,getY());
                   animate(LeftPicture1,LeftPicture2);
                   dir=4;
                   cntr++;}
                   System.out.println(Integer.toString(c.getX()));
    System.out.println(Integer.toString(getCharaX() ));
              //problem is using the getCharaX() and getCharaY() from the Enemy class (the super class)
                   try{Thread.sleep(20);}catch(Exception e){}
    }

    It's not clear from your description where you're really having that exception. But if you'd look at the stack trace that prints, it would tell you. And the reason would simply be that you have an object reference which equals null at the time that the code is trying to invoke a method on it. Such as,
    String x = null;
    int len = x.length(); <-- NullPointerException, because x == null

Maybe you are looking for