NullPointerException at com.sun.jndi.ldap.Connection.run(Connection.java:52
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.
Similar Messages
-
When I try to request a simple reuest (getversion) from the drm wsdl I receive an error in the XML repsonse (see below).
I read somewhere in the forum that I have to change the external direcortory provider in HSS from "MSAD" to LDAP/OID. But this can not be configured in HSS since I can not change the ID attribute (its greyed out).
Does anyone knows how I can sole it: I think its related to: "message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl"
Perhaps wrong or missing jar files in the connection configuration?
Any help is welcome.
Detlev
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header/>
<env:Body>
<env:Fault>
<faultcode>env:Server</faultcode>
<faultstring>Cannot getVersion.
[Tue Feb 14 16:03:06 CET 2012] - Oracle EPM Foundation Agent
Error in request: begin session (message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl)</faultstring>
<detail>
<DrmServiceException xmlns="http://drm.webservices.epm.oracle">
<Message xmlns:ns2="http://drm.webservices.epm.oracle" xmlns="">Cannot getVersion.
[Tue Feb 14 16:03:06 CET 2012] - Oracle EPM Foundation Agent
Error in request: begin session (message: Cannot begin session. com/sun/jndi/ldap/ctl/PagedResultsControl)</Message>
<Code xmlns:ns2="http://drm.webservices.epm.oracle" xmlns="">0</Code>
</DrmServiceException>
</detail>
</env:Fault>
</env:Body>
</env:Envelope>Thanks for the repsonse.
Its exactly how you explain it.
Last thing I am dealing with (as var as I can see now) is getting a (generic/other) ldap connection in HSS to our MSAD.
HSS userinterface comes up with an error just before showing the user list. (on the serverside I traced traffic (wireshark) and see that userinformation is indeed retrieved).
But the frontend is juist not showing/ loading the information.
the error"a communication error occured when loading the view pane" Than the screen keeps on loading for ever
Oracle support tries to find out whats going wrong here.
Detlev -
Need javadoc for com.sun.jndi.ldap.ctl.*?
Hi,
has anybody the javadoc for the above named package?
I need at first com.sun.jndi.ldap.ctl.SortKey.
It is needed to get a sorted search result from a LDAP server.
Thank you for your help.
FrediDownload the LDAP provider at
http://java.sun.com/products/jndi/#download
See the README-LDAP.txt in the bundle.
It says that the javadocs for the controls are
at doc/ldapcontrols. -
Com.sun.jndi.ldap
Hi,
Is anyone familiar with JNDI LDAP automatic discovery codes
env.put(Context.PROVIDER_URL,
ldap:///o=JNDITutorial,dc=example,dc=com);
It seems that by using DNS that associate with multiple domain controllers, it would lock out user account if they enter wrong pw because LDAP provider will send the request to each of the associated DC at the same time. I wonder if anyone run through this issue and if it is a JDK bug and if someone does, how to you work around it?
Thanks,
JenniferHi,
did you also try the following timeout variables?
env.put("com.sun.jndi.dns.timeout.initial", "2000");
env.put("com.sun.jndi.dns.timeout.retries", "3");...
Besides you specific problem you will find a probably interesting article about handling network timeouts her:
http://www.javacoffeebreak.com/articles/network_timeouts/
Regards
Klaus -
Com.sun.jndi.ldap.ctl.PagedResultsControl
Hi,
I was wondering if iPlanet Server Directory 5.0 SP1 supports the Page Result
Control?
I am developing a Java Client that will read more than 2 000 entries from
iPlanet.
I have an OperationNotSupportedException with iPlanet 5.0.
Thanks in advance.
Stephane Chauvin.Hello Stephane,
No, it is not. You can list the supported controls by executing an ldapsearch on the root DSE.<br>
<i>ldapsearch -h <serverhost> -p <serverport> -s base -b "" \<br>"objectclass=*" supportedcontrol</i><br>
Instead of the Page Result Control, you may want to consider using the Virtual List View control (see http://search.ietf.org/internet-drafts/draft-ietf-ldapext-ldapv3-vlv-04.txt)
Regards,
Bertold -
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 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 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. -
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE 10.2.0.1.0 Production
TNS for Linux: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
In java store procedure we have to contact an iiop enabled application
If I specify
env.put("java.naming.factory.initial","com.sun.jndi.cosnaming.CNCtxFactory");
In the java stored procedure
the SQL call will end with the error :
ORA-03113: end-of-file on communication channel
with a huge core dump in cdump
any idea?
The class exists in the loaded JVM
it is valid and resolved
Nothing can explain that.
Thanks in advance
Message was edited by:
Réda BOULOSYes, CORBA as well as the entire J2EE stack has been desupported in 9i R2.
I ran the sample using 10g database which is Java SE 4.0 compatible and therefore susceptible of acting as RMI/IIOP client. Here are the jars file i have loaded in my example
loadjava -u scott/tiger@localhost:port:instance_name -r -v
$J2EE_HOME/ejb/helloworld/dist/stub_helloworld.jar
$J2EE_HOME/lib/ejb.jar
$J2EE_HOME/ejb/helloworld/dist/helloworld-ejb.jar
$J2EE_HOME/ejb/helloworld/dist/helloworld-client.jar
[code/]
In addition, you need to:
- grant ejbclient to the schema in question
- grant java.util.PropertyPermission, java.lang.RuntimePermission, java.util.logging.LoggingPermission, and java.util.PropertyPermission
Frankly you need to read the section of my book to get everything right;
for example i tweak a bit the JNDI lookup in the client code.
Fwiw, SAP JCO callout using RMI is also covered in chapter 4 of my book.
Kuassi -
Hello,
I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
What is the problem? Where should I put my jndi.jar? Thanks.
Regards
CY SeahHello,
I have a servlet which allow users to authenticate to IPlanet LDAP server. I have no problem to access it when it runs under a standalone Tomcate server but I have an internal error when it runs under Oracle8i server.
The following error message was found in mod_serv.log file in \%OracleHome%\Apache\Jserv\logs folder:
ajp12: Servlet Error: java.lang.NoSuchMethodError: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found: com.sun.jndi.toolkit.url.UrlUtil: method decode(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; not found.
What is the problem? Where should I put my jndi.jar? Thanks.
Regards
CY Seah -
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
-
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 -
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. -
Random classcast exception - com.sun.jndi.cosnaming.CNCtxFactory
Hi,
I am trying to use a remote ejb (weblogic 8.1.5/ jdk 14) from a j2se 1.5 rmi-iiop client.
If I use com.sun.jndi.cosnaming.CNCtxFactory to look up the remote home & then use the remote interface, I get the following error RANDOMly (i.e only some calls succeed).
java.lang.ClassCastException
at xxx.equals(xxxjava:129)
at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
at xxx.yyy_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:492)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:108)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:435)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:430)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
I had a look at IndirectionValueHashtable class. It looks like the classcast is happening because the "handle-to-object" map has non String values.
Could this be a corba compatabilty issue?
The problem doesn't occur if I use weblogic initial context factory & t3 protocol.
What is the best way to overcome this problem? I dont want to distribute weblogic.jar [from 8.1.5 server]. wlclient is okay.
thanksTony Zimmer <> writes:
Certainly looks like a bug, in which case you need to go through
support to get it fixed. Do however check that your objects are in
fact serializable (including all their fields).
andy
Tried a few more combinations. No luck so far.
classcast exception for some objects at some times
server: WebLogic Server 10.0 / Sun 1.5.0_06/ WinNT 6
client: Sun jdk 1.5.0_11/1.4.2_14
java.lang.ClassCastException: java.lang.String
at xxxpack.client.PaymentReceipt.equals(PaymentReceipt.java:881)
at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1836)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
at weblogic.utils.io.ObjectStreamClass.writeFields(ObjectStreamClass.java:413)
at weblogic.corba.utils.ValueHandlerImpl.writeValueData(ValueHandlerImpl.java:235)
at weblogic.corba.utils.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:182)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1957)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1992)
at weblogic.iiop.IIOPOutputStream.writeObject(IIOPOutputStream.java:2253)
at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:224)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:479)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:475)
at weblogic.rmi.internal.BasicServerRef.access$300(BasicServerRef.java:59)
at weblogic.rmi.internal.BasicServerRef$BasicExecuteRequest.run(BasicServerRef.java:1016)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
server: WebLogic Server 8.1 SP6 / Sun 1.4.2_11 / WinNT 6
client jdk 1.4.2_14/1.5.0_11:
java.lang.ClassCastException
at xxxpack.client.PurchaseAmount.equals(PurchaseAmount.java:148)
at weblogic.corba.utils.IndirectionValueHashtable.get(IndirectionValueHashtable.java:119)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1471)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
at com.sun.corba.se.internal.io.IIOPOutputStream.writeObjectField(IIOPOutputStream.java:685)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputClassFields(IIOPOutputStream.java:745)
at com.sun.corba.se.internal.io.IIOPOutputStream.defaultWriteObjectDelegate(IIOPOutputStream.java:167)
at com.sun.corba.se.internal.io.IIOPOutputStream.outputObject(IIOPOutputStream.java:526)
at com.sun.corba.se.internal.io.IIOPOutputStream.simpleWriteObject(IIOPOutputStream.java:123)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValueInternal(ValueHandlerImpl.java:136)
at com.sun.corba.se.internal.io.ValueHandlerImpl.writeValue(ValueHandlerImpl.java:116)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1593)
at weblogic.iiop.IIOPOutputStream.write_value(IIOPOutputStream.java:1624)
at weblogic.iiop.RMIMsgOutput.writeObject(RMIMsgOutput.java:117)
at xxxpack.server.ProcessPayment_ehqjge_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:491)
at weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java:120)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:434)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:429)
at weblogic.rmi.internal.BasicExecuteRequest.execute(BasicExecuteRequest.java:35)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Do you have a list/ martix of client-server versions used for the bug fixes?
Thanks -
Is the Sun JNDI LDAP provider thread safe?
Hi,
The JNDI documentation states that the Context implementation is not required to be thread safe although some providers provide thread safety. My question is whether the Sun JNDI LDAP provider is thread safe or do we have to synchronize on the Context instance?
ThanksRead this: http://java.sun.com/j2se/1.3/docs/api/javax/naming/Context.html
The answer, I think is no you need to synchronize accesses yourself. If you're using it from a servlet container, this should be OK, since each request is on a separate thread.
Maybe you are looking for
-
How to create multiple function for each value
Hi, I'm new to LabVIEW. I need some help. Attached is my LabVIEW file. I want to change the Formula VI for the 'Air Velocity vs Time' waveform to another formula (or multiple formula (can I use MathNode Script for this?)) to let it handle multiple va
-
Slow loading of reports and forms
hi, i have created forms and reports- but they take atleat a minute to load when i goto the customize form of any report- the report running itself does not take time.. i have created the WWA_MODULE_BINDINGS_IDX1 and WWA_MODULE_LOV_BINDINGS_IDX1 inde
-
IPhoto has detected inconsistencies in your library.
I hope someone can help I'm out of ideas now. Everytime I open iPhoto im faced with a dialog box saying "iPhoto has detected inconsistencies in your library" "Click repair to avoid problems." This has no effect all my pictures seem to be there and al
-
Hi, i'm unable to change the tab color of panelTabbed item, i've tried the following in a css sheet: af|panelTabbed::tab:selected { font-style:italic; background-image: url("../Images/section_label_body.jpg"); border-bottom-color: red; border-color:
-
No sound with ALSA, using an intel sound card
Hello ! I have got a problem about sound on my computer. Indeed, my soundcard doesn't seems to be recognize by ALSA. It's weird, I'll show you. Well, my soundcard is : lspci | grep Audio 00:14.2 Audio device: ATI Technologies Inc SBx00 Azalia (Intel