Printing an image

362 byte By fakkundo at 2007-9-26 4:06:48
Does anybody know how can I print an image?I have read the documentation but I can't understand how can I put the image the in PrintJob.I'm working with JAI, and what I need to print is a BufferedImage or perhaps a RenderedOp.I am able to print a blank page, my problem is how to pass the ...

Transfering keystore from one machine to another

400 byte By jaewooyou at 2007-9-26 4:06:59
Hi.I've purchased a java signing digital ID from Verisign,installed a keystore on one machine, imported thecertificate and I'm able to sign jar files. Now, I want tobe able to sign jar files on another machine instead ofmoving jar files back and forth. Is there a way to transfer keystore from ...

"java.lang.OutOfMemoryError" Help me, please!

501 byte By ureyurey at 2007-9-26 4:09:18
Hi, All: When I create one big image of my component in my program , catch the belowing Exception:java.lang.OutOfMemoryError<<no stack trace available>>Could you please, tell me why? and how can I to do it?Thanks yours Urey//********** My code ****************Image imag = ...

Getting number of bytes sent/received with SSLSocket

138 byte By _brocoli at 2007-9-26 4:12:49
Is there any way I can get the number of bytes sent/received with an SSLSocket, but after the handshake/encryption process ?

Handshake and HTTPS

898 byte By aalim1 at 2007-9-26 4:13:03
I have created my own SSLTunnelSocketFactory( Java World Tip 111) to take care of the proxy tunnelingproblem. I set this socketFactory in the HttpsURLConnection.setSSLSocketFatcory() after i create the url and open the connection. I am able to connect to certain sites (e.g. ...

Displaying search results in a JTable..

2050 byte By xanatos387 at 2007-9-26 4:13:26
Hello,I've got a stupid problem. I'm trying to have a search dialog box that returns it's results into a JTable. Seems like it should be pretty straightforward. My immediate problem is that with the following code (based on an example I found in the forums):Vector vColumnNames = new ...

Applet in Internet Explorer slows over SSL

413 byte By thenays at 2007-9-26 4:14:14
I have an applet running on an iPlanet server with a Verisign SSL cert. connecting to an Oracle Db. Without the cert everything runs great in both IE and Netscape. But when I turn on the SSL, IE slows down to a crawl. While Netscape still runs great with no visiable slow down. I do not get any ...

IMPORTANT : Sending a cert from the client

488 byte By glow007 at 2007-9-26 4:14:47
Hi,I have a solaris client which needs to communicate to NT machine. Both have Apache web servers with Jserv and JDk1.2.2 & JSSE 1.0.2There is a SolarisServlet and a NTServlet on respective m/c's..While I am connecting to NTServlet from the SolarisServlet, I need to give the client ...

Error compiling signed applet

1048 byte By eglinsky at 2007-9-26 4:15:11
I used to compiled my applet with NO problem... but it seems like I messed it up deleting a file on my Hard disk...Now I get:E:\Eze\Facu\Tesis\Java\Graflog\v03>javac graflog.javagraflog.java:18: cannot resolve symbolsymbol : class PrivilegeManagerlocation: package securityimport ...

Certificates

300 byte By georgefungkp at 2007-9-26 4:16:18
Q.1 The default truststore is stored in jre/lib/security/cacertsWe can set the path by System.setProperty ("javax.net.ssl.trustStore", "c:\\cacerts");How can i get the default path of truststore?Q. 2 How can i get trusted certificate from the system? ...

Check if https website is up

1723 byte By naca at 2007-9-26 4:16:44
I have been able to check if a http web site is up using the follwing code:try {HttpURLConnection.setFollowRedirects(true);HttpURLConnection con =(HttpURLConnection) new URL(URLName).openConnection();con.setRequestMethod("HEAD");if (con.getResponseCode() == HttpURLConnection.HTTP_OK)return ...

Use JCE Provider for JSSE

588 byte By MichaelSchlueter at 2007-9-26 4:17:40
As far as I know, it is not possible to use a jce provider for the cryptographic operations of the jsse reference implementation. The sun implementation uses the algorithms implemented in the jsse provider.There was a statement from sun, that this may change with the integration of jsse in the ...

drawing a rectangle over an image

387 byte By sangeeta_bg at 2007-9-26 4:18:19
hi all,i'm trying to draw a rectangle over an image to zoom the selected part.my problem is when i try it in a sample applet it draws properly.but when i use the same code in my application it doesn;'t show the rectangle properly.or to be more clear doesn't show the drawing of rectangle with ...

Example of RDBMS Realm

734 byte By seastallon at 2007-9-26 4:18:47
Hi,I have just started out with EJB & weblogic security. I want to make a RDBMS realm in weblogic that connects to oracle dBase. Since I am new to security, I was wondering if anyone out there knew what fields would be added to a table that manages user?. Also how does a table manage ACLs? ...

how to use CVS to fetch the repository

319 byte By zhousaihu at 2007-9-26 4:18:50
hello.I want to use cvs to fetch some codes from j3d.org.When I do "cvs -d CVSROOT=:pserver:anonymous@cvs.j3d.org:/home/cvs/j3d/cvsroot checkout code " incvs directory, I get error message "connection refused".what's wrong ? could some one help me? ...

Applet trying to connect to Oracle DB

3285 byte By saad_tawwab at 2007-9-26 4:19:20
Hello! I am trying to access an Oracle 8i database from an Applet. The problem is that the following exception is reported in IE 5.5 and the Applet is not run. exception: com.ms.security.SecurityEceptionEx[oracle/net/nt/TcpNTAdpater.connect]:cannot access "pc38" (where my database is being ...

animated gif layered above background image

651 byte By simywime at 2007-9-26 4:19:38
I have a static background image which is displayed in a JPanel. I need to display animated gifs at certain positions on the base image. For every new frame of the animation, the paint method is called whcih attempts to load the entire base image + all the new animated images which is extremely ...

Password Encryption for JDK 1.1x

212 byte By seldura at 2007-9-26 4:19:44
Are there libraries for password encryption in JDK 1.1x. I was able to do it with JCE but the application I'm currently supporting is in JDK 1.1x, not Java2. Any help is greatly appreciated.

Why not Microsoft MPEG4 Files?

1049 byte By larrytosh at 2007-9-26 4:20:14
I'm trying to use JMF to write an applet that will play .wmv file created with Windows 7 encoder. This is Microsoft's MPEG4 format (which, in case anyone at Sun hasn't noticed, is fast becoming the only video format worth supporting). JMStudio 2.1.1a will play these files okay, but my applet ...

Can anyone tell me about this error message?

6432 byte By tapodaca at 2007-9-26 4:21:25
An unexpected exception has been detected in native code outside the VM.Unexpected Signal : unknown exception code occurred at PC=0x77f1d642Function name=RaiseExceptionLibrary=C:\WINNT\system32\KERNEL32.dllCurrent Java thread:at sun.plugin.javascript.ocx.JSObject.invoke(Native Method)at ...

One way encryption? How is possible?

453 byte By dnoyeB at 2007-9-26 4:21:31
My question is simple.Is it true that I can encrypt something with a key and then be unable to decrypt it with that same key? This sounds impossible for a computer to not be able to back track its actions? How is this possible if it is?Im thinking about when everyone has my public key, then ...

JSSE in JDK 1.4 and java.nio.channels

233 byte By eduardoF at 2007-9-26 4:21:42
Anyone know if there is a way to use the non-blocking I/O in JDK1.4 with SSL sockets. I've looked and no way seems immediatly clear, but perhaps its done differently than for regular non-blocking sockets.Thanks.

Using JSSE

528 byte By karnataka at 2007-9-26 4:22:37
Hi,I need to write a Java client which needs to get HTML form data as input,convert it into XML, encrypt it and send it to a SSL aware Webserver,and decrypt the message after getting back the response.I am using TOMCAT as my webserver.I tried using Apache with mod-ssl,opensslbut couldn't ...

HELP ON Ciphered Base64 encoded text over a socket , it doesn't runs.

1181 byte By viento2 at 2007-9-26 4:23:06
Hello:I'm trying to send over a serversocket (a socket, printwriter) a string. The string is the result of base64encoding. This conversion is done to translate UTF8 string into something that every computer can understand (sic). Well, actually, I'm encoding the results of a cipher ...

how do u sing an applet

85 byte By abhay_77 at 2007-9-26 4:23:15
hi folks,could u please tell me how do u sing an applet ?

Applets and accessing files confusion

425 byte By n.bailie at 2007-9-26 4:23:43
HiI am confused about applets and their abilty to access files.I know that applets cannot access files on a users hard drive until given pemission but if i design an applet that needs access to files on the server where it is running will it be able to read and write those files in the same ...

implement TLS (or SSL) communication

571 byte By matanS at 2007-9-26 4:23:56
Hi all,I wish to make a very Keep It Simple and Stupid client server application that will conduct secured communication between the client and the server.The natural approach would be to use TLS (which supercedes SSL, but is a little new yet) or SSL.I would like to get some reliable and simple ...

Sealing Exception

427 byte By pkriebel at 2007-9-26 4:24:20
A while back I installed Forte4J 2.0 on Win2000/Pro using JDK1.3...after 'updating' a Forte4J JAR file (or two), I went to launch the IDE and received a SEALING VIOLATION error. My bad. Now, when I go to re-install Forte (or install 3.0), no matter what I do, I receive the Sealing Violation ...

Books - JMF!!!!

243 byte By adco at 2007-9-26 4:24:59
hi ; I am searching for books , and the only thing I found was the "Essential JMF" by Robert Gordon - did anyone use it - is it recomended ?Are there other books available ? (new ones?)thanks , Adaya.

Problem in importing a cert and a pvt key

291 byte By glow007 at 2007-9-26 4:26:18
Hi,I have a certificate issued by a CA. And I have the certs private key.How should I import it into the keystore using keytool.I am able to import a certificate. But I do not know how to import the cert as well as the pvt key...Thanks in advance...

IOException: Broken pipe when contacting server using https

4455 byte By npatha at 2007-9-26 4:26:25
This program connects to server. Server requires client certificate. So, I am trying to send the certificate to the server.public class Test {public static void main(String a[]){ try {// Dynamically register the sun jsse providerjava.security.Security.addProvider(new ...

convolveop + bias (emboss image)

244 byte By vdbjoris at 2007-9-26 4:26:36
Hi,I'm trying to implement an emboss filter [ -1 -1 000 101 1 ]it seems that there's a bias of 128 to be added to the result. how do you specify this with ConvolveOp?Thanks

Newbie to JSSE && HttpsURLConnection

2463 byte By viiviiviivii at 2007-9-26 4:27:34
The included code throws this exception:com.dstc.security.util.ConfigException: property file ssl.properties not foundat com.dstc.security.util.Config.getProperties(Config.java:84)at com.dstc.security.ssl.SSLSocketFactory.initializeKeys(SSLSocketFactory.java:104)at ...

Single Signon

374 byte By carrots at 2007-9-26 4:28:14
HiWhen we access the weblogic's console (eg. http://localhost:7001/console) , a "pop-up" alert asking for username/password will be shown. Is it possible to implement the same security control for my .war file ? ... so that when the user access my index.jsp, i can ask for the username and ...

A general JAAS Question

514 byte By saira812 at 2007-9-26 4:28:15
Hi,How can i use JAAS in my web applications or for a website? All I need is how can i facilitate the JAAS technology to improve my website access control like for example Web-based admin module can b accessed by various type of users with different access rights.. How can i incorporate ...

I am New to JSSE Plz Help

1044 byte By manojmony at 2007-9-26 4:28:57
Hi All, My task is to establish a secure connection for customers to communicate with ldap for Login.I really lack the idea how to implement ssl for a Form based SSL authentication.Kindly give some suggesssion. To test using jsse i have downloaded and installed the jar files in javahome ...

JSSE installation issues

669 byte By shankeyp at 2007-9-26 4:29:06
In http://java.sun.com/products/jsse/install.html it says or infers the var java-home as opposed to JAVA_HOME. My guess is this is just a small doc issue. Do you need to setup a java-home or just use JAVA_HOME?I am using Java 2 SDK, Standard Edition Version 1.3.1 which has no $JAVA_HOME/lib/ext ...

How do I do reflections with a transformation

298 byte By markee1 at 2007-9-26 4:30:04
The AffineTransformation allows me to rotation, scaling and sheering but not reflection (ie turn the axis into a 'mirror'). Does anyonehave any suggestions if this is possible?Alternatively, is it possible to move the origin and the orientation of the page?MArk

JSSE Gurus : Problem with SSLSocketClientWithClientAuth

4839 byte By npatha at 2007-9-26 4:30:26
Hi I am trying to run SSLSocketClientWithClientAuth.java which is present in samples directory.I am running asSSLSocketClientWithClientAuth myserver 443 login.jsp public class SSLSocketClientWithClientAuth {public static void main(String[] args) throws Exception {String host = null;int port = ...

Tomcat and SSL

1592 byte By micksta at 2007-9-26 4:30:31
Hi I'm getting an error when I try to run SSL with tomcat. Does anybody know how to solve this. THanks for your help in advance Starting tomcat. Check logs/tomcat.log for error messages2001-08-20 03:47:44 - ContextManager: Adding context Ctx( )2001-08-20 03:47:44 - ContextManager: Adding ...

using jsse ssl with jdk 1.3

148 byte By matanS at 2007-9-26 4:31:03
any sample code for jdk 1.3 ?jsse sample code is for jdk 1.2 and uses deprecated stuff so can't be used easily against jdk 1.3

playing a flash movie (.swf) file in java applet

175 byte By zeeshanarif at 2007-9-26 4:31:06
I want to play a flash movie file (.swf) in an applet if certain event occurs. any body having idea about this please reply.Thank youZeeshan

Applet not allowed to contact its host

2467 byte By eeverman at 2007-9-26 4:33:56
I have written an applet that attemps to contact a cgion its server. While an applet *should* be allowed tocontact its own server, mine throws some sort of securityexception.Does anyone have any ideas of what could be causing this?I've tried this on Netscape 6, IE 5, and HotJava 3- allgive ...

why is SecurityManager null?

306 byte By 6tr6tr at 2007-9-26 4:34:38
I use -Djava.security.Manager when running the test app and then call:java.lang.SecurityManager sm = System.getSecurityManager();System.out.println(sm == null); It always prints true! Why? How do I make the SecurityManager not null? ...

why is SecurityManager null?

306 byte By 6tr6tr at 2007-9-26 4:34:39
I use -Djava.security.Manager when running the test app and then call:java.lang.SecurityManager sm = System.getSecurityManager();System.out.println(sm == null); It always prints true! Why? How do I make the SecurityManager not null? ...

How to change "the skin" of a window

329 byte By Javanico at 2007-9-26 4:35:16
I use a desktop: JDesktopPaneAnd with java.swing I use internal frames.I want to know how to customize apparence of the internalframe?Make boders of the interal window change color (I don't like purple ;))Or how to make it disapear without make disapear the content ?Thanks a lot ...

do anyone know where have blind digital signature implementation in java?

35 byte By raymondtkl at 2007-9-26 4:36:13
as subject!thx

hardware support?

206 byte By ban_pt at 2007-9-26 4:36:56
I have just started my research in 3D and since I am a java programmer do I want to know if java supports hardware like graphics cards. Especially if it uses open GL, or similar things.

reference rasterizer enumeration? help please

1438 byte By A Frayed Knot at 2007-9-26 4:39:02
Im just getting going on using java3d for a game im developing. Ive been having a strange error when i run anything with java3d though.<p>When i start up an app that needs to render something, the System.err stream outputs: [Java 3D] For best performance using software emulation mode, ...

Des trial

481 byte By gcaiado at 2007-9-26 4:39:04
Hello!I have just tried the Code Examples section, from JCE API Specification & Reference, Using Encription topic, where I developed a class Des, following the same steps from the example and I dont succeded in having the decryption. The prompt shows me something different than the clear ...