NullPointerException at com.sun.scenario.effect
Hi to all
I meet this exception in my app. At the screen it seems like lost links to my graphics(no rendering some nodes)
Are there some one to meet that exception too?
java.lang.NullPointerException
at com.sun.scenario.effect.impl.prism.ps.PPSDrawable.create(Unknown Sour
ce)
at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.createCompatibleIma
ge(Unknown Source)
at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.createCompatibleIma
ge(Unknown Source)
at com.sun.scenario.effect.impl.ImagePool.checkOut(Unknown Source)
at com.sun.scenario.effect.impl.Renderer.getCompatibleImage(Unknown Sour
ce)
at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.getCompatibleImage(
Unknown Source)
at com.sun.scenario.effect.impl.prism.ps.PPSRenderer.getCompatibleImage(
Unknown Source)
at com.sun.scenario.effect.Effect.getCompatibleImage(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.renderOpacity(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.BaseNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.BaseNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.BaseNode.render(Unknown Source)
at com.sun.javafx.sg.prism.NGGroup.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGRegion.renderContent(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.prism.NGNode.doRender(Unknown Source)
at com.sun.javafx.sg.BaseNode.render(Unknown Source)
at com.sun.javafx.tk.quantum.ViewPainter.doPaint(Unknown Source)
at com.sun.javafx.tk.quantum.AbstractPainter.paintImpl(Unknown Source)
at com.sun.javafx.tk.quantum.PresentingPainter.run(Unknown Source)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at com.sun.prism.render.RenderJob.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at com.sun.javafx.tk.quantum.QuantumRenderer$PipelineRunnable.run(Unknow
n Source)
at java.lang.Thread.run(Unknown Source)
I think there are bugs in the underlying texture handling that are scheduled to be fixed for JavaFX 3.0 which might cause this issue. If that is in fact your issue, I'm not sure what the correct workaround is (perhaps forcing a software pipeline - which I don't know how to do - or simplifying your graphics processing).
I think the jira issue to track this is:
http://javafx-jira.kenai.com/browse/RT-15516
"image data associated with cached nodes that are removed from a scene are not aggressively released"
Essentially I think the issue is that texture memory on the video card is used up because the unused cached nodes are not aggressively garbage collected.
I'd advise trying to create a simple test case to reproduce it (I know that might be difficult...) and post your test case (or your app if you can't create one) with reproduction instructions to http://javafx-jira.kenai.com. Although maybe even just posting the stack trace to jira will be enough for the developers to verify that the issue is a duplicate of RT-15516.
I created a couple of seemingly unrelated jiras which ended up being classed as duplicates of the above jira.
In both cases I was animating large graphics at high speeds.
Similar Messages
-
I am getting this error when I try to download a message using IMAP from exchange server
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:99)
at com.sun.mail.iap.Response.<init>(Response.java:68)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
at com.sun.mail.iap.Protocol.command(Protocol.java:215)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
This error occurs intermittantly. I placed one large mail (around 600 MB) and few normal size mails on exchange server. In few testing runs, this error occured while downloading the large mail as well as one normal mail. In one test run, all mails got downloaded successfully.
Could anyone please suggest the cause and resolution?
Thanks.I turned on the session debugging. I am running my application on Linux, so the debugging info was moved to a log file. This log file is very large (around 1GB) and I am unable to open it.
One more thing: I am trying Message.writeTo() method to download the message. If an OutOfMemoryError occurs, I catch it and try to download the message using GetInputStream. NullPointerException is occuring in both the cases.
Exception stack trace with writeTo():
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:99)
at com.sun.mail.iap.Response.<init>(Response.java:68)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
at com.sun.mail.iap.Protocol.command(Protocol.java:215)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:656)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:645)
at com.sun.mail.imap.IMAPMessage.writeTo(IMAPMessage.java:536)
Exception stack trace with getInputStream():
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:99)
at com.sun.mail.iap.Response.<init>(Response.java:68)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
at com.sun.mail.iap.Protocol.command(Protocol.java:215)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:653)
at com.sun.mail.imap.protocol.IMAPProtocol.peekBody(IMAPProtocol.java:637)
at com.sun.mail.imap.IMAPMessage.loadHeaders(IMAPMessage.java:1055)
at com.sun.mail.imap.IMAPMessage.getAllHeaders(IMAPMessage.java:642)
First I try to download the headers in case of an OutOfMemoryError. The above trace shows that.
Could anyone point out the problem and help resolving it? -
Hi,
I am getting null pointer exception , i dont whether it is due to jar mismatch or what ???
I have a stand alone application which created java classes from one schema file and , i construct xml file by
inputting some values. It works fine in my machine. But when i deploy it our product which has tomcat6 it
gives the following exception.
ava.lang.NullPointerException
at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:287)
at com.sun.xml.bind.v2.model.impl.PropertyInfoImpl.calcXmlName(PropertyInfoImpl.java:260)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl.getTypes(ElementPropertyInfoImpl.java:100)
at com.sun.xml.bind.v2.model.impl.RuntimeElementPropertyInfoImpl.getTypes(RuntimeElementPropertyInfoImpl.java:50)
at com.sun.xml.bind.v2.model.impl.ElementPropertyInfoImpl$1.size(ElementPropertyInfoImpl.java:42)
at java.util.AbstractList$Itr.hasNext(AbstractList.java:341)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getClassInfo(ModelBuilder.java:139)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:49)
at com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder.getClassInfo(RuntimeModelBuilder.java:41)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:189)
at com.sun.xml.bind.v2.model.impl.ModelBuilder.getTypeInfo(ModelBuilder.java:204)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$1.run(JAXBContextImpl.java:343)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl$1.run(JAXBContextImpl.java:340)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:340)
at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:204)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:76)
at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.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:589)
at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:210)
at javax.xml.bind.ContextFinder.find(ContextFinder.java:381)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:522)
at com.facetime.rtgsm.extractor.GenerateXml.GenerateXmlForSkypeManagementOnly(Unknown Source)
at com.facetime.rtgsm.extractor.JDBCToXML.getXmlStringForModalities(Unknown Source)
at com.facetime.rtgsm.publisher.MessagePublisherClient.sendMessage(Unknown Source)
at com.facetime.rtgsm.publisher.MessagePublisherJob.execute(Unknown Source)
at org.quartz.core.JobRunShell.run(JobRunShell.java:191)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:516)
Any help would be be grately appreciated :)Check whether jaxb-ri.jar is there in your class path
-
Hi All,
i got this Exception in the log of the application on the application server with big rate
java.lang.NullPointerException at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
any idea???Hi guys,
I'm pretty sure I found the problem.
If there is a wrong url for a link in your JSF page it will throw this error in the log.
in my case i was referring a javascript file in the page which doesn't exist at the path.
So check all of your links on the page to make sure they are right. that should fix the problem.
atleast it did in my case.
Thanks
Praveen
Message was edited by:
bpraveen -
NullPointerException at com.sun.t2k.T2KFontFactory.resolveFontFil
Hellow everyone
I face an exception when I start FXML-LoginDemo.jar
the following
My OS is Microsoft Windows XP [Version 5.1.2600] SP3 Japanese edition
C:\D\JavaFX\JavaFX 2.1.0 SDK\javafx-samples-2.1.0-beta>java -version
java version "1.7.0_04-ea"
Java(TM) SE Runtime Environment (build 1.7.0_04-ea-b06)
Java HotSpot(TM) Client VM (build 23.0-b06, mixed mode)
C:\D\JavaFX\JavaFX 2.1.0 SDK\javafx-samples-2.1.0-beta>java -jar FXML-LoginDemo.jar
java.lang.NullPointerException
at com.sun.t2k.T2KFontFactory.resolveFontFiles(T2KFontFactory.java:828)
at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(T2KFontFactory.java:786)
at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(T2KFontFactory.java:1351)
at com.sun.t2k.T2KFontFactory.getFontResource(T2KFontFactory.java:212)
at com.sun.t2k.LogicalFont.getSlot0Resource(LogicalFont.java:174)
at com.sun.t2k.LogicalFont.getDefaultAAMode(LogicalFont.java:300)
at com.sun.t2k.LogicalFont.getStrike(LogicalFont.java:304)
at com.sun.t2k.T2KFont.getStrike(T2KFont.java:70)
at com.sun.javafx.font.PrismFontUtils.getFontMetrics(PrismFontUtils.java:14)
at com.sun.javafx.font.PrismFontLoader.getFontMetrics(PrismFontLoader.java:434)
at javafx.scene.text.Text.<init>(Text.java:105)
at com.sun.javafx.scene.control.skin.TextFieldSkin.<init>(TextFieldSkin.java:92)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at javafx.scene.control.Control.loadSkinClass(Control.java:921)
at javafx.scene.control.Control.impl_cssSet(Control.java:999)
at javafx.scene.Node.impl_cssSet(Node.java:6493)
at com.sun.javafx.css.StyleHelper.transitionToState(StyleHelper.java:755)
at javafx.scene.Node.impl_processCSS(Node.java:6345)
at javafx.scene.Parent.impl_processCSS(Parent.java:975)
at javafx.scene.control.Control.impl_processCSS(Control.java:1026)
at javafx.scene.Parent.impl_processCSS(Parent.java:982)
at javafx.scene.Parent.impl_processCSS(Parent.java:982)
at javafx.scene.Node.processCSS(Node.java:6313)
at javafx.scene.Scene.doCSSPass(Scene.java:404)
at javafx.scene.Scene.preferredSize(Scene.java:1208)
at javafx.scene.Scene.impl_preferredSize(Scene.java:1258)
at javafx.stage.Window.adjustSize(Window.java:139)
at javafx.stage.Window.access$800(Window.java:50)
at javafx.stage.Window$13.invalidated(Window.java:692)
at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:88)
at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:122)
at javafx.stage.Window.setShowing(Window.java:744)
at javafx.stage.Window.show(Window.java:759)
at javafx.stage.Stage.show(Stage.java:129)
at demo.App.start(App.java:73)
at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:299)
at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:153)
at com.sun.javafx.application.PlatformImpl$3.run(PlatformImpl.java:120)
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$2$1.run(WinApplication.java:62)
at java.lang.Thread.run(Thread.java:722)Hi guys,
I'm pretty sure I found the problem.
If there is a wrong url for a link in your JSF page it will throw this error in the log.
in my case i was referring a javascript file in the page which doesn't exist at the path.
So check all of your links on the page to make sure they are right. that should fix the problem.
atleast it did in my case.
Thanks
Praveen
Message was edited by:
bpraveen -
We are using the Sun jndi 1.2.1 files from a Java client to
access the IBM SecureWay Directory 3.2 server. Our test case is
retrieving entries using the ctx.getAttributes (String, String[])
method. Occasionally we are receiving the following error.
java.lang.NullPointerException
at com.sun.jndi.ldap.Connection.run(Connection.java:525)
at java.lang.Thread.run(Thread.java:481)
The java.lang.NullPointerException is coming from the Sun JNDI file.
Our program is not catching this exception.
Has anyone seen this problem before and have any ideas on how this can be resolved?Download and use LDAP 1.2.3 or JDK 1.3.1.
The problem should go away. -
NullPointerException in com.sun.mail.iap.Response.parse
Hey all. I am accessing an IMAP mail server from Solaris 8 using java 1.5.0-08, but I intermittently get the following exception:
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:130)
at com.sun.mail.iap.Response.<init>(Response.java:87)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
at com.sun.mail.iap.Protocol.command(Protocol.java:263)
at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)Any thoughts of what I am doing wrong?I'm just looking for more data to get
a handle on the problem.I ran my program again, and got a NPE on another email. It is also big...
A479 FETCH 856 (BODY[])
* 856 FETCH (BODY[] {26497359}
Return-Path: <[email protected]>
... some of the body ...
BTW, the ebinder subcollection is not in the select list. Do I have to configure
or create another foA480 CLOSE
DEBUG: added an Authenticated connection -- size: 1
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:130)
at com.sun.mail.iap.Response.<init>(Response.java:87)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
at com.sun.mail.iap.Protocol.command(Protocol.java:263)
at com.sun.mail.iap.Protocol.simpleCommand(Protocol.java:310)
at com.sun.mail.imap.protocol.IMAPProtocol.close(IMAPProtocol.java:926)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:1000)
at com.sun.mail.imap.IMAPFolder.close(IMAPFolder.java:935)
A481 LIST "" shared
java.lang.NullPointerException
at com.sun.mail.iap.Response.parse(Response.java:130)
at com.sun.mail.iap.Response.<init>(Response.java:87)
at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:48)
at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:122)
at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:230)
at com.sun.mail.iap.Protocol.command(Protocol.java:263)
at com.sun.mail.imap.protocol.IMAPProtocol.doList(IMAPProtocol.java:799)
at com.sun.mail.imap.protocol.IMAPProtocol.list(IMAPProtocol.java:776)
at com.sun.mail.imap.IMAPFolder$1.doCommand(IMAPFolder.java:429)
at com.sun.mail.imap.IMAPFolder.doProtocolCommand(IMAPFolder.java:2387)
at com.sun.mail.imap.IMAPFolder.doCommand(IMAPFolder.java:2332)
at com.sun.mail.imap.IMAPFolder.exists(IMAPFolder.java:427)
... lots of these ...
A490 LIST "" shared
rm or resource or something to solve this problem? please
advice.
(See attached file: private-xml.rtf)(See attached file: private-html.rtf)(See
... more body from the first email ...And this process of getting little chunks of data seems to continue on, interspersed with NPEs. It looks like some connection is not being closed. -
Hi,
I got the following during build. Any ideas?
Thanks in advance.
javac An exception has occurred in the compiler (1.5.0_12). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport) after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report. Thank you.
javac java.lang.*NullPointerException*
javac at com.sun.tools.javac.jvm.*ClassReader.fillIn(ClassReader.java:1583)*
javac at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1535)
javac at com.sun.tools.javac.code.Symbol.complete(Symbol.java:355)There is a bug in the compiler.
You would need to localize the problem to the source file, class and specific code. Once you do that you can file a bug but do not count on a fix without updating to 1.6. However locating it would allow you to modify the code to get around this problem. -
Hi all,
I'm trying to use a gSOAP server and a jax-ws client.
I did a first test with WSDLReader to ask the wsdl from the gSOAP server and read it to display all informations.
It was ok !
Now I try to call a method whit this code :
URL url = new URL("http://localhost:" + port + "/BenchOperations?wsdl");
QName qname = new QName("http://www.Bench.toto.com", "BenchOperations");
Service service = Service.create(url, qname); // EXCEPTION
BenchPortType interfaceDeService = service.getPort(BenchPortType.class);
TimeRequest timeRequest = new TimeRequest();
timeRequest.setSleepDuration(sleep);
TimeResponse timeResponse = interfaceDeService.time(timeRequest);but I have this exception on "Service.create" :
Exception in thread "main" java.lang.NullPointerException
at com.sun.xml.stream.xerces.util.SymbolTable.hash(SymbolTable.java:222)
at com.sun.xml.stream.xerces.util.SymbolTable.addSymbol(SymbolTable.java:143)
at com.sun.xml.stream.XMLReaderImpl.getNamespaceURI(XMLReaderImpl.java:1238)
at javax.xml.stream.util.StreamReaderDelegate.getNamespaceURI(StreamReaderDelegate.java:94)
at com.sun.xml.ws.wsdl.parser.ParserUtil.getQName(ParserUtil.java:66)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortTypeOperationInput(RuntimeWSDLParser.java:689)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortTypeOperation(RuntimeWSDLParser.java:662)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parsePortType(RuntimeWSDLParser.java:636)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:297)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parseWSDL(RuntimeWSDLParser.java:253)
at com.sun.xml.ws.wsdl.parser.RuntimeWSDLParser.parse(RuntimeWSDLParser.java:131)
at com.sun.xml.ws.client.WSServiceDelegate.parseWSDL(WSServiceDelegate.java:239)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:201)
at com.sun.xml.ws.client.WSServiceDelegate.<init>(WSServiceDelegate.java:172)
at com.sun.xml.ws.spi.ProviderImpl.createServiceDelegate(ProviderImpl.java:82)
at javax.xml.ws.Service.<init>(Service.java:56)
at javax.xml.ws.Service.create(Service.java:697)
at com.thalesgroup.bench.client.Client.startClient(Client.java:25)
at com.thalesgroup.bench.client.Client.<init>(Client.java:20)
at com.thalesgroup.bench.client.Client.main(Client.java:16)I don't understand why ! This excpetion show that the client is trying to parse something (that's why I did the first test) and there is a nullPointer.
Thanks a lot for your help
Ob�Hi all,
I compared the wsdl sent by the gSOAP server and the jax-ws server and there are not similar !
this can explain that I have a nullPointerExcpetion when I use a gSOAP server
How I can do ? Why the wsdl sent are not the same ?
Thanks for your help
Ob�lix -
run an application on a multiple IPs windows box. In order to initialize the ORB on the right IP, i set the com.sun.CORBA.ORBServerHost property at the app startup.
If the right IP is set, then the software works fine as expected. Btut ionce the wrong IP is set, the software won't work even if I restart it with the right parameter. It looks like the new value just does not take effect.
And until the box is rebooted, the new parameter will take effect. As per my understanding, this parameter should be set at a JVM level and will be cleared after the JVM is shutdown......
Have no idea how to fix this issue and even don't know where to start to investigate it?
Would you please provide any suggestion on it? Thx in advance.I had the same problem when I upgraded to snv_114 from snv_98
on SPARC. The important line in /var/dt/Xerrors is this one:
could not open default font 'fixed'
The problem (in my case, anyway) was that the fonts.dir files were
not updated during the install/upgrade process. This fixed it:
$ su -
# cd /usr/X11/lib/X11/fonts
# for f in *; do cd $f; mkfontdir; cd -; done -
Hi,
when I use f:subview instead of f:view the string ' com.sun.faces.saveStateFieldMarker' shows up on my page.
Is this caused by something I do wrong? Is it a bug?
Sincerely,
Joost de VriesI have a similar problem. I also figured out, that all static HTML must be enclosed by verbatim tags, but when I click a link in the following form (which is a included subview, in this case the footer.jsp page), I get a nullpointer - exception):
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<f:loadBundle basename="de.pixxi.resources" var="messages" />
<!-- NOTICE: all static HTML has to be endclosed by verbatim tags -->
<h:form>
<h:commandLink id="de" actionListener="#{methodsBean.chooseLocale}"><h:outputText value="#{messages.german}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink id="en" actionListener="#{methodsBean.chooseLocale}"><h:outputText value="#{messages.english}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="register"><h:outputText value="#{messages.register_for_free}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="about"><h:outputText value="#{messages.about}"/></h:commandLink>
<f:verbatim> | </f:verbatim>
<h:commandLink action="invite"><h:outputText value="#{messages.invite}"/></h:commandLink>
</h:form>
here the exception:
java.lang.NullPointerException
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:997)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
javax.faces.component.UIComponentBase.processRestoreState(UIComponentBase.java:1008)
com.sun.faces.application.StateManagerImpl.restoreComponentState(StateManagerImpl.java:273)
com.sun.faces.application.StateManagerImpl.restoreView(StateManagerImpl.java:186)
com.sun.faces.application.ViewHandlerImpl.restoreView(ViewHandlerImpl.java:239)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:157)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:90)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:197)
Why? Is it not allowed to have a form withina subview??
Any help is really greatly appreciated. I am already working few weeks around this problem.
thanx! -
I seem to get a NullPointerException in com.borland.jbcl.view.GridView
This has occured after I changed my jdk version from 1.1.8 to v1.4
Stack Trace :
WARNING LoadPanelThread Caught Throwable java.lang.NullPointerException
at com.borland.jbcl.view.GridView.isReadOnly(GridView.java:201)
at za.co.pnp.framework.PnpGrid.isFocusTraversable(PnpGrid.java:240)
at za.co.pnp.framework.PnpGrid.isManagingFocus(PnpGrid.java:248)
at javax.swing.JComponent.<init>(JComponent.java:377)
at javax.swing.JScrollPane.<init>(JScrollPane.java:256)
at javax.swing.JScrollPane.<init>(JScrollPane.java:313)
at com.borland.jbcl.view.GridView.<init>(GridView.java:47)
at com.borland.jbcl.control.GridControl.<init>(GridControl.java:44)
at za.co.pnp.framework.PnpGrid.<init>(PnpGrid.java:37)
at za.co.pnp.creditor.PanelCreateRemittance.<init>(PanelCreateRemittance.java:105)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at za.co.pnp.framework.PnpFrameBrowser$LoadPanelThread.run(PnpFrameBrowser.java:685)
WARNING DialogMessage Handling exception java.lang.NullPointerException
at com.borland.jbcl.view.GridView.isReadOnly(GridView.java:201)
at za.co.pnp.framework.PnpGrid.isFocusTraversable(PnpGrid.java:240)
at za.co.pnp.framework.PnpGrid.isManagingFocus(PnpGrid.java:248)
at javax.swing.JComponent.<init>(JComponent.java:377)
at javax.swing.JScrollPane.<init>(JScrollPane.java:256)
at javax.swing.JScrollPane.<init>(JScrollPane.java:313)
at com.borland.jbcl.view.GridView.<init>(GridView.java:47)
at com.borland.jbcl.control.GridControl.<init>(GridControl.java:44)
at za.co.pnp.framework.PnpGrid.<init>(PnpGrid.java:37)
at za.co.pnp.creditor.PanelCreateRemittance.<init>(PanelCreateRemittance.java:105)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:296)
at java.lang.Class.newInstance(Class.java:249)
at za.co.pnp.framework.PnpFrameBrowser$LoadPanelThread.run(PnpFrameBrowser.java:685)
My we extend the jbcl grid control in PnpGrid.
Any suggestions to this problem welcomeyou usually get NullPointerException when you create an instance and use it without creating an object. it wont give u a compile time error as the instance has been registered but when u use the instance it will look for the object and when it can find the object it will throw a run-time error which in this case is the NullPointerException.
asrar -
How can I create a background with the sun light effect like
the one found
at
http://www.caribeno.com.br/english/img/topo_cadastro.jpg
Does anyone know what it the title font used on it too?
Best regards,
Erico VasconcelosThank you very much Linda!
Nice tutorial!
Best Regards,
Erico
"Linda Rathgeber **Adobe Community Expert**"
<[email protected]> escreveu na
mensagem news:ekndk7$kkl$[email protected]..
> Erico Vasconcelos wrote:
>> How can I create a background with the sun light
effect like the one
>> found at
http://www.caribeno.com.br/english/img/topo_cadastro.jpg
>>
>> Does anyone know what it the title font used on it
too?
>
> Here's how I'd do it. Right click on the image to
download an editable PNG
> file.
>
>
http://www.playingwithfire.com/sun.png
>
> It's based on the method used in this tutorial:
>
>
http://www.playingwithfire.com/dazzle/flares.html
>
>
> --
> Linda Rathgeber [PVII] *Adobe Community
Expert-Fireworks*
>
>
http://www.projectseven.com
> Fireworks Newsgroup:
news://forums.projectseven.com/fireworks/
> CSS Newsgroup: news://forums.projectseven.com/css/
> Design Aid Kits:
http://www.webdevbiz.com/pwf/index.cfm
> -
I create a enterprise application using jsf 2.0, ejb3, primefaces 2 and I want to show data in table immediately after ejb call findAll() method. But it's always appear: "can't instantiate class". Here is my code:
index.xhtml
<h:form>
<p:dataTable id="tbl" var="p" value="#{Product.products}" >
<p:column>
<f:facet name="header">
Product Id
</f:facet>
<h:outputText value="#{p.productID}" />
</p:column>
<p:column>
<f:facet name="header">
Product Name
</f:facet>
<h:outputText value="#{p.productName}" />
</p:column>
<p:column>
<f:facet name="header">
Unit Price
</f:facet>
<h:outputText value="#{p.unitPrice}" />
</p:column>
</p:dataTable>
</h:form>
package myEntity;
@Entity
@Table(name = "Products")
@NamedQueries({
@NamedQuery(name = "Products.*findAll*", query = "SELECT p FROM Products p"),
public class Products implements Serializable {
private static final long serialVersionUID = 1L;
@Id
@Basic(optional = false)
@Column(name = "productID")
private Integer productID;
@Basic(optional = false)
@Column(name = "productName")
private String productName;
@Basic(optional = false)
@Column(name = "unitPrice")
private double unitPrice;
public Products() {
public Products(Integer productID) {
this.productID = productID;
public Products(Integer productID, String productName, double unitPrice) {
this.productID = productID;
this.productName = productName;
this.unitPrice = unitPrice;
public Integer getProductID() {
return productID;
public void setProductID(Integer productID) {
this.productID = productID;
public String getProductName() {
return productName;
public void setProductName(String productName) {
this.productName = productName;
public double getUnitPrice() {
return unitPrice;
public void setUnitPrice(double unitPrice) {
this.unitPrice = unitPrice;
package mySessionBean;
@Stateless
public class ProductsFacade implements ProductsFacadeLocal {
@PersistenceContext(unitName = "demoProduct-ejbPU")
private EntityManager em;
public List<Products> *findAll*() {
CriteriaQuery cq = em.getCriteriaBuilder().createQuery();
cq.select(cq.from(Products.class));
return em.createQuery(cq).getResultList();
package myManagedBean;
@ManagedBean(name="Product")
@RequestScoped
public class Product {
@EJB
private ProductsFacadeLocal productsFacade;
private List<Products> products;
/** Creates a new instance of Product */
public Product() {
*products = productsFacade.findAll();*
public List<Products> getProducts() {
return products;
public void setProducts(List<Products> products) {
this.products = products;
An Error Occurred:
Cant instantiate class: myManagedBean.Product.
+- Stack Trace
com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: myManagedBean.Product.
at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:193)
Caused by: java.lang.NullPointerException
at myManagedBean.Product.<init>(Product.java:36)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:188)This is just baffling. The OP 'created' an enterprise application, but doesn't know the basics of the basics that is null-references? That is like knowing how to do your taxes without knowing how to add and subtract.
-
Cannot reach com.sun.javafx.runtime.sequence package from Java
Hello!
I'm trying to create JavaFX sequence from Java code, because creating sequences with large amount of data (more than 10000 elements) seems to be quite inefficient in JavaFX (leastwise takes almost a minute(!) when using insert ... into ...).
The problem is that I get the following error message when trying to use SequenceBuilder from Java:
{color:#ff0000}+Compiling 1 source file to C:\Users\Ákos\Documents\NetBeansProjects2\PolylineProba\build\classes+
C:\Users\Ákos\Documents\NetBeansProjects2\PolylineProba\src\polylineproba\ArrayBuilder.java:11: package com.sun.javafx.runtime.sequence does not exist
import com.sun.javafx.runtime.sequence.*;
+1 error+{color}
The sample code is very simple:
{color:#333399}+package test;+
import com.sun.javafx.runtime.sequence.*;
+public class ArrayBuilder {+
+}+{color}
This is strange as the code completion sees all classes inside the mentioned package, but the compiler doesn't.
Does anyone have an idea, why? (I'm using Netbeans 6.1 with JavaFX SDK preview 1.0.)
Thanks,
AkosHello!
Normally you don't need to know the exact location of these files as you can add them to the project by adding a library. To do this in Netbeans: right click on the Libraries in the project tree and choose Add library. Then you should see JavaFXUserLib.
If not then find and add them manually to the classpath:
javafx-sdk1.0pre1/lib/Decora-D3D.jar
javafx-sdk1.0pre1/lib/Decora-HW.jar
javafx-sdk1.0pre1/lib/Decora-OGL.jar
javafx-sdk1.0pre1/lib/Scenario.jar
javafx-sdk1.0pre1/lib/gluegen-rt.jar
javafx-sdk1.0pre1/lib/javafx-swing.jar
javafx-sdk1.0pre1/lib/javafxc.jar
javafx-sdk1.0pre1/lib/javafxdoc.jar
javafx-sdk1.0pre1/lib/javafxgui.jar
javafx-sdk1.0pre1/lib/javafxrt.jar
javafx-sdk1.0pre1/lib/jmc.jar
javafx-sdk1.0pre1/lib/jogl.jar
Good luck
Maybe you are looking for
-
Creating ASInstance Failed Error while Installing OBIEE 11g 11.1.1.5.0
Hi I was trying to install OBIEE 11g 11.1.1.5.0 on a Windows Server 2003 32 Bit machine and was getting an error at 16% of Configuration Procress. Error - Creating ASInstance Failed. I went to see the logs. Please Help Log : [2011-06-09T20:17:15.609+
-
Logical operation in xml path query
Hello If I have this XML data <a> <b> <c> <d>United States</d> <f>1</f> <g>Creditcard</g> <h>Will ship only within country</h> <k>something</k> </c> <c> <d>United States</d> <f>2</f> <g>MasterCard</g> <h>i
-
Dear Experts Can you please help me in ressolving a issue/querry. How to trigger Cheque bounce/ dishonour of cheque transaction against Customer payment in SAP? I have sugested to clients like this : "A/Cs Receivable - Customers u2013 One
-
Knowledge Search - Problems and Solutions
Hi, I am creating Problems and Solutions (in IS01). But that is not visible in knowledge search in IC Webclient. I have also done compilation in SPRO -> CRM -> Enterpise Intelligence -> SAF, but not getting the result. Please Help. Regards, Ankush
-
Hi, What is the account type of excise duty billed account and when this account is nulified with which account. SAP_CIN