java.net.ConnectException: Connection refused: connectI do not know why I get this because I have done something very similer before.... I have made a connection with sockets to a machine other then localhost but this time it seems not to want to let me. Maybe I do not have the correct security ...
Correct me if I'm wrong (and give an explanation of why), but it seems to me the the SecureRandom class that can be used for cryptography is, by it's design, insecure. The problem lies is the seed. Now being able to seed your random number generator is great, and very useful. However, it only ...
416 byte By
Fusaci at 2007-9-26 2:16:37
I'm working on one Intranet portal, I 'd like to have on the main page something like a Application Launch panel where all applications accessible to user will appear. So my problem is how to launch for example MS Word as a normal application (same as if I run it from start menu) from running ...
6403 byte By
pjlionel at 2007-9-26 2:17:21
Any help to get this problem resolved would be of help. I get the error as below:D:\test\nt>java ClientServerClient exception: Error marshaling transport header; nested exception is:javax.net.ssl.SSLException: untrusted server cert chainjava.rmi.MarshalException: Error marshaling transport ...
191 byte By
MaramM at 2007-9-26 2:18:59
HiI am trying to connect to an https server but am getting the following error - "java.lang.RuntimeException Export restriction: SunJSSE only". Ideas?
446 byte By
netiac at 2007-9-26 2:19:44
HI.I work to connect between JSSE client and OpenSSL server with self-signed certificate.But I met the SSLSocketException during handshaking.Many Solutions registered in this page.But their are all using keytool.My application connect many site support the self-signed certificate.So, I want to ...
I have some problems with java3d. Could you please help me with it?I am designing a user interface and so would like to allow the user tointeractively move the objects in the 3d world, using the mouse. Butpresently I can allow them to move it only in the xy plane. How can I move them in any ...
Does anyone know how to achieve the use of lighweight renderer when playing flash animations with Java Media Player?I have tried with:Manager.setHint(Manager.LIGHTWEIGHT_RENDERER, new Boolean(true));but it doesn't help with flash animations, although it works with .avi or .mov files.Is there ...
1502 byte By
spraguep at 2007-9-26 2:21:21
I have an applet which does JNDI lookups to use EJBs. This applet was working fine under Weblogic 5.1 SP9 and I'm trying to move it to Orion. Under Weblogic the applet was not signed and there was no java.policy file either. Somehow it all worked.Under Orion I'm getting exceptions because I ...
I want to authenicate a user within an intranet, using servletsso the user adds his/her username and password and these will be checked with the System usernames/passwords to retrieve the users privilagesHow do I do this ?Can I use HTTPS: ?thanksSimon ...
523 byte By
alyabar at 2007-9-26 2:22:26
Hi,I would like to Know how I can transform a String Password to a DESede valid key. I have a password like "testingword", one salt and the encrypted message in DESede/CFB.When I try to make :DESedeKeySpec spec = new DESedeKeySpec("testingword".getBytes());SecretKeyFactory DESedeFactory = ...
Hey folks!I'm trying to encrypt a password to be put into a SQL database and then be decrypted when I pull it out to log a user in. Currently I can encrypt and store the password fine, but it's the grabbing and decrypting that is giving me troubles.Sometimes I do get the correct string back ...
497 byte By
namekal at 2007-9-26 2:26:04
can anyone enlightening on this problem?I view this JMF applet with IE5.5. and it works FINE. ( http://java.sun.com/products/java-media/jmf/2.1.1/samples/samples/TVDarkCity.html)but when i download its source and COMPILE it with J2E, it no longer works with my browser.... what i see it is ...
hello friends,i'm new to java 3d nd have to work on a code written by somebody else.can somebody tell me if there is any difference in consumption of memory if we use the 04 primitives defined by java3d or if we define our own primitives to create the images.thanks sangeeta ...
Hi,Atul here, i am developing one Audio Chat application, my programme is ready, when i am compiling that programme ,compile fine. when i run that .class file it gives error like :Cannot open audio device for input:java.lang.IllegalStateException: Here i am capturing the sound using microphone ...
2281 byte By
Abhi325 at 2007-9-26 2:27:46
My jsp files are invoked when I open them in the browser. But the links or Submit buttons of all the files don't work, displaying an error -Error during JSP page processingjava.lang.NoSuchMethodError: java.lang.System: method setProperty(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ...
hello friends,can somebody tell me when can we use simpleuniverse.removeAllLocales and how to use this method.?thankssangeeta
545 byte By
dewrongh at 2007-9-26 2:29:12
I would like to use my MPEGator card (mpeg real time encoder) w/ JMF, but it is not known in the JMFregistry.I have "directsound" and "javasound" capture devices only.So I can't have a mediaLocator for my device.I thought it was a problem w/ windows NT because on the captur'eDevices JMF ...
I need to include the sun jh.jar (javahelp.jar) with the applet archives so that JavaHelp can work with the plugin. Did that, but signing it or not, it does not work. When I sign it, it says "jarsigner: unable to sign jar: java.util.zip.ZipException: invalid entry compressed size (expected ...
I have the same problem as followingHiDoes anybody know, how to export a private key from a keystore in a PEM-Encoded format, i.e. that is what openSSL for Apache is looking for.What I got until now from the Keystore (and that's very easy) is an instance of the Key-class of the Private Key. ...
976 byte By
miziop at 2007-9-26 2:30:26
Hi all.A little question: I know that an applet can't read and writefiles on pc but an applet can read a file on a server?I have this statements:( fileNameParam = //WEBGNI/pc_Pignotti/psj.rtf )JTextPane1.setContentType("text/rtf");try {java.net.URL url = ...
I hear NS6 won't allow an japplet to use javascript to talk to the opening html window. What about using a dom function? Anybody know a workaround that would allow my html window to know when the japplet is finished with it's task? I'm trying to submit a file and form to the web server but ...
Hi, in my project, I need to renew Canvas3D on a JPanel, whenever I click on button, I'll call "remove then add(new XXX)", where XXX is a class extends JPanel, and add a new canvas3D on it. The problem is, I can't always see canvas3d being renewed, sometimes it simple become blank. And, the ...
Help!My application contains one main JPanel, called DrawingPanel. DrawingPanel contains many different Graphics2D objects that it periodically repaints and redraws. When a user clicks on one of these objects, the listener pops up a different JPanel (a list of these new Panels is a member ...
638 byte By
mjossan at 2007-9-26 2:33:47
Iam trying to call a servlet from applet and everything works fine as long as Iam not going thru any proxy servers, but if I use proxy server which requires userid and password I get java.net.SecurityAccessException. Can anyone of u please tell me how can I provide userid and password while ...
Is it possible to have an object, like a colorcube, created at the mouse pointer location when you click a mouse button? I've read through most of the tutorials and have no idea how to do this.
865 byte By
6tr6tr at 2007-9-26 2:35:19
I know how to get the permissions from a Policy: MyPolicy.getPermissions()How do i get the Principals and Permissions?If I have:grant MyPrincipalClass "Jeff" { permission MyPerm "doIt"}how do I then (in my code) get both the permission and the Principal?I am currently doing ...
581 byte By
nilesh99 at 2007-9-26 2:35:47
AVReceive2.java and VideoTransmit.java are samples for RTP transmission and receiving provided on the jmf samples page.I compiled and executed tem on windows 2000 machines and they worked well. But when I compiled AVReceive2.java and ran it on R.H. linux 6.2. I got the runtime exception Cannot ...
251 byte By
Dnw at 2007-9-26 2:36:33
i really want to learn java3di tried to learn from the tutorials in www.j3d.org and the tutorials that came with the java3d apiand i understood nothing from themso somone can plz give me a site with a good tutorials?
412 byte By
LizD at 2007-9-26 2:38:59
I need to be able to generate a public/private key pair to use for encryption and decryption. I also need to be able to store these keys in files.I have tried using Cryptix JCE to generate RSA keys, but I can't figure out how to retrieve the private key in a file. Can anyone help me out?If ...
I got image1, and image2 and I want to blend them with each other. I could do that with MemoryImageSources if only image1 and image2 were MemoryImageSources, but they are standard images getted from getImage method, or PixelGrabber what ever their type is...
382 byte By
glicious at 2007-9-26 2:39:44
Is there a way to load a gif or jpeg into a buffered image without using jai or imageIO, both of which are new to java since 1.4, or just painting a regular image on top of it, which seems highly inefficient? basically i need to make a image with some transparencies, and im thinking buffered ...
92 byte By
glicious at 2007-9-26 2:39:45
If anyone has code to do just that i am willing to give you ten Duke Dollars.
how I can write a files from browser.
I need to add my own code before each frame is rendered (so that the lighting in my 'toon shader works properly), and i thought that over-riding the preRender method in canvas3D would be perfect for this. However, i'm miffed as to how to do this.I've tried a quick test:public class ...
129 byte By
Seltzer at 2007-9-26 2:40:51
I'd like to save images created in jave as jpeg or gif files.Any help would be appreciated.Thank you
We have some content that we would like to protect that is accessible directly from a Web Server without going through an App Server.The App Server handles authentication using forms for most of the site, but we also have assets, hosted by the Web Server, that we would like only authenticated ...
The following code compiles but I get a runtime error as follows.NoClassDefFoundError for javax.crypto.KeyGeneratorSpiI did a jar tf on the sunjce_provider.jar file andthis class is not contained?It is in the jce1_2_1.jar file and is abstract. When at runtime the factory tries to create an ...
HiDoes anyone know how to read and display TIFF image?My program gets TIFF image as byte array from ther server. How can I reconstruct the TIFF image and display it on the client side? Any input will be appreciated.Thanks in advancemichiko
554 byte By
axelleA at 2007-9-26 2:44:57
Hello all,I'm trying to write a generated RSAPublicKey and RSAPrivateKey to a file, and then, later retrieve them.I thought I could use ObjectInput/OutputStream to do that, but when I do so I get the exception java.io.NotSerializableException: java.io.ObjectOutputStream(I'm surprised, because ...
How to encrypt using RSA Public/Private key ? Is there any examples ?Thanks.Regards,Lim Boon Sun
1869 byte By
waldoor at 2007-9-26 2:45:53
Hello,I am quite a newbe at Java and using the trail and error development method (or copy and paste method) Now I am facing the following problem:I made a program with an image that is draw out of received data. After that I want to draw a huge cursor crosshair (two lines at image size) over ...
7824 byte By
pdgrim at 2007-9-26 2:46:14
I recently posted a message for the first time. Perhaps i need to provide more information plus the code to make myself clearer. I am using code from the wrox professional java security book, modified a little towards my application: a simple check in a database for employee_id E001 and ...
Hallo ALL,I try to create Signed applet in java plugins,but It does not work.I create an applet to read HTML source code from specified URL.I follow the step for SUN from http://www.josef-willenborg.de/java/security/When I'm not use plugin, my applet working, but Only for IE.can any body tell ...
683 byte By
Mazz at 2007-9-26 2:47:09
HelloI'm doing a project at University to create a virtual tour of a village. I am creating the buildings in MAYA using polygon planes and cubes and then exporting to VRML.I plan to embed each individual model into a separate web page. Then when the user clicks on a location in a 2D map they ...
533 byte By
yaron-r at 2007-9-26 2:47:28
Hi.I keep getting 'javax.net.ssl.SSLException: No available certificate corresponds to the SSL cipher suites which are enabled.'.I was wondering:Is it possible to do an SSL server socket, without any certificate store?Why does it look for a certificate?!(I checked out the handshake protocol, ...
2188 byte By
kennabec at 2007-9-26 2:48:56
This is a smaple program i downloaded, i have others that give me the same error. The following is the source code and and the error output. Any input is much appriciated.kennabec import java.security.*;import java.net.*;import java.io.*;public class Main {public static void main(String[] args) ...
Hi!I am trying to run a swing applet that needs to be able to connect to outside servers using socket connections. I got this working using the plug-in, but would much rather get it working without the plug-in.I successfully jarred up the swing files that I need, and I think I am ok in that ...
903 byte By
adamsmt at 2007-9-26 2:49:40
I'm having an issue on AIX with IBM's JVM 1.3.0; the same code and configuration has worked on other OSs and JVMs, including the IBM JVM on Linux and Win2K. The JVM is barfing with a ClassCastException before even the first line of my code is being executed. The rather cryptic (no pun ...
1290 byte By
Dnw at 2007-9-26 2:50:41
when try to compile my code--import com.sun.j3d.utils.geometry.*;import com.sun.j3d.utils.universe.*;import javax.media.j3d.*;import javax.vecmath.*;import java.awt.*;public class Main {public Main(){Transform3D tf=new Transform3D();TransformGroup trans=new TransformGroup();Vector3f vec=new ...