Jump to content
xisto Community
Sign in to follow this  
sonesay

Java Applets And Derby connectivity outside netbeans is not working.

Recommended Posts

Hello everyone, I have this very annoying issue that I have still been unable to resolve. I have an applet with a login screen that queries a Derby database and logs in if the user has supplied the correct username and password. My problem is this is needs to be run as an applet through the browser. It seems to work find when I run the applet inside netbeans but when I try and run it through the browser the applet loads but does not seem to query the db. I dont know if there are any security setting that I may be missing but if there is anything I'm missing about java applets let me know thanks.I will keep at it but it doesn't seem like I'm getting anywhere. I am considering dropping derby and going with mysql.

Share this post


Link to post
Share on other sites

It appears there may be a number of causes of errors when working with applets that are being run through web browsers. One of my team mates has identified that the cause of one error was the fact that somehow applets did not support grouplayouts. This is used by default when creating GUI's in netbeans visual JPanel builder. He was able to identify this through the use of the java console. I am suspected that the applet is also not able to connect to the database due to it not being able to access the derbyclient.jar but I am yet unable to confirm this untill I get on a computer running windows that has javaconsole enabled. I my self am on a mac and I have tired to intalled the Java Console 6.0.02 for firefox addon but it does not seem to work.Are there any other ways to debug applets running through a browser?

Share this post


Link to post
Share on other sites

Hi!When reading through the thread, I mistook your second post for a solution to your first post. I guess that's why the board has a policy against double-posting. Anyway, would it be possible for you to post your code online so we could set it up on our own development environments? That'll help us see the error you are getting.Have you ruled out a security issue? Using a signed applet will usually help.Regards

Share this post


Link to post
Share on other sites

I'm not sure about the rules on double posting. I've seen users post a reply on their own thread just to just so that their post gets updated as a recent post. This method is obviously discouraged but it seems to be acceptable when used on a thread that has been dead for some time. If you just restrict users to doing edits then how would one know something has been updated without physically going to that thread and viewing it?If how ever on the other hand a user just posted a thread and then immediately goes and reply's to it then it is a double post. Maybe some moderators can clear this up?Back on topic about my problem. I have been able ot fix it because I was able to view the error using java console. Luckily enough we have this option when running applets live through the browser. The problem was a reference problem to the library. Something netbeans does not generate for you. when you build your project.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.