Hi all,
I am using jasper reports in java.
I want to get HTML from jasper report and set HTML in JEditorPane.
How can i do that?
One way can be
Export report in HTML file then read that HTML file as a String and set it in JEditorPane.
Is there another solution?
Thanks for reply.
I have tried this code on 10 different PC's on same environment but it creates problem on only 2,3 PC's and hangs.
If it is my swing code issu then why it is running on some PC's.
I have also tried to make connection in differenct thread but same problem.
Hi
I am using oracle 11g and jdk 1.6 and ojdbc6 driver.
I have created GUI in netbeans GUI builder with DND.
I want to make a db connection from JButton actionPerformed method but it hangs on DriverManager.getConnection().
what is wrong with the following code.I have called this method from actionPerformed DataBase.createConnection1().
Hi Rnchers
I am consuming a web service in java with Axis2 with ADB data binding.Now i am getting the result as OMElement.
Please tell me how to get data from response.
Which is the best way to get data from xml.
Thanks for your reply.
I already read this FAQ link.
Now i can build Web Service in java on eclipse and also i can consume those web services.
Now i am getting the following exception while trying to access external WSDL file from Web Service Explorer of eclipse.
I have installed the SSL certificate in my web browser provided by owner of web services.And i can view this file in browser but unable to access in eclipse web service explorer.
IWAB0379E Unable to open https://trade.ncel.pk/ncel.webservices/wstradedata.asmx?WSDL.
IWAB0135E An unexpected error has occurred.
WSDLException
WSDLException: faultCode=OTHER_ERROR: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
and sometimes i get this exception
Unable to tunnel through the proxy.
I want to consume a web service (written in .Net) using java.
I have given the uri of web service i.e. https://myProject/WebServices/WSClientsInfo.asmx and method DS_ClientsInfo GetClientsInformation(string[] paramIds, DateTime date).
This method is returning a XML file.
My problem is that.
Can i use this web service with given information?if No what information is needed to use it.
Please give me sample code to use this web service and how to pass parameters to web service.
Or give me some useful related links.
Thanks in advance.
Thanks for replying....
As you can see in the stack trace i am using SSL Sockets to create connection.
It is a simple java program.I am running server and client on the same machine.
Please give me some hints,how can i debug it ?
I am connecting and disconnecting client continuosly.After 5 or 6 time this exception is occured.
Hi rancher.
I am getting an exception on client side during login.Most of the time i connect successfully but some time this exception is occured.
Please tell me what should i do?
javax.net.ssl.SSLException: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Connection closed by remote host
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkEOF(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.setBlockDataMode(Unknown Source)
at java.io.ObjectOutputStream.writeNonProxyDesc(Unknown Source)
at java.io.ObjectOutputStream.writeClassDesc(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
at java.io.ObjectOutputStream.writeFatalException(Unknown Source)
at java.io.ObjectOutputStream.writeObject(Unknown Source)
at project.io.MessageOutputStream.writeObject(MessageOutputStream.java:74)
at project.network.TCPLink.writeData(TCPLink.java:204)
at project.MainFrame.sendRefDataRequest(MainFrame.java:1968)
at project.MainFrame.initialize(MainFrame.java:522)
at project.MainFrame.<init>(MainFrame.java:274)
at project.ApplicationMain.<init>(ApplicationMain.java:79)
at project.ApplicationMain.main(ApplicationMain.java:140)
Caused by: javax.net.ssl.SSLException: java.net.SocketException: Connection closed by remote host
at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.handleException(Unknown Source)
at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.drain(Unknown Source)
at java.io.ObjectOutputStream$BlockDataOutputStream.write(Unknown Source)
at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
at java.io.ObjectOutputStream.writeObject0(Unknown Source)
... 8 more
Caused by: java.net.SocketException: Connection closed by remote host
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.checkWrite(Unknown Source)
... 15 more
Hi Ranchers..
I want to export my eclipse product for windows from Linux. How i can do that?
I have another problem.
There are two views(Security , News).When i start application my Security view is focused.
Tool bar items of News View are shown on Security view left side.
When i click on News view ,tool bar items disappear.
why they are shown first time?
I am using (java -server -classpath "lib/ts.jar:lib/ojdbc14.jar:lib/mail.jar:lib/activation.jar") this line in a file(Server.sh).
These jar files are in my lib folder and Server.sh and lib folder in same folder.
By executing Server.sh from terminal I am getting this exception.
Exception in thread "main" java.lang.UnsatisfiedLinkError: no ocijdbc10 in java.library.path
Now what i have to do?