HTTPS error in JDK.1.4. Advice needed please.

Hello,
I am using JDK 1.4. with JSSE 1.2.
I have created a test server certificate and would like to transfer data over HTTPS using Tomcat 3.2.4
However,when compiling the 'HttpsHandler' class with jdk1.4 I am getting an error which I was not getting with jdk 1.2.2.
The Error while compiling is in jdk 1.4 :
HttpsHandler.java:250: reference to X509TrustManager is ambiguous, both class com.sun.net .ssl.X509TrustManager in com.sun.net.ssl and class javax.net.ssl.X509TrustManager in javax.net.ssl match
static class RelaxedX509TrustManager implements X509TrustManager
^
HttpsHandler.java:103: reference to HttpsURLConnection is ambiguous, both class com.sun.net.ssl.HttpsURLConnection in com.sun.net.ssl and class javax.net.ssl.HttpsURLConnection in javax.net.ssl match
HttpsURLConnection hpCon=null;
^
HttpsHandler.java:139: reference to KeyManager is ambiguous, both class com.sun.net.ssl.KeyManager in com.sun.net.ssl and class javax.net.ssl.KeyManager in javax.net.ssl match
KeyManager[] km = null;
^
In my HTTPSHandler Class, I have added the code to trick the server
into accepting the server certificate which works fine with jdk1.2
and JSSE 1.02.
My HttpsHandler code is as follows:
public class HttpsHandler
public static String ec(String sMess)
String response=null;
try {
Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol");
URL url;
String uri = "https://" + sURL + ":8443/AHTTPS_USERPWD/servlet/Recieve_Https_Data";
url = new URL(uri);
HttpsURLConnection hpCon=null;
try {
KeyManager[] km = null;
TrustManager[] tm = {new RelaxedX509TrustManager()};
SSLContext sslContext = SSLContext.getInstance("SSL");
sslContext.init(null, tm, new java.security.SecureRandom());
SSLSocketFactory sslSF = sslContext.getSocketFactory();
hpCon = (HttpsURLConnection)url.openConnection();
hpCon.setSSLSocketFactory(sslSF);
}catch(Exception e){}
static class RelaxedX509TrustManager implements X509TrustManager
public boolean checkClientTrusted(java.security.cert.X509Certificate[] chain)
return true;
public boolean isServerTrusted(java.security.cert.X509Certificate[] chain){
return true;
public boolean isClientTrusted(java.security.cert.X509Certificate[] chain){
return true;
public java.security.cert.X509Certificate[] getAcceptedIssuers() {
return null;
public void checkClientTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
public void checkServerTrusted(java.security.cert.X509Certificate[] chain, String authType) {}
Please can any one advice or tell me why isnt the code compiling with
jdk1.4
A response is much appreciated...
[email protected]

I think your problem is with the fact that the JSSE is now part of the JDK 1.4. It sounds like you still have the JSSE jars in your classpath.
When the JSSE was integrated with 1.4, the package names changed from com.sun.whatever to javax.whatever.
At this point you want to get rid of any old JSSE jar files and replace the references in your code that refer to com.sun.whatever to javax.whatever.
Cheers
Brian

Similar Messages

  • I am using InDesign CS5. I have a body of text which is ranged left with tabbed indents. My client now wants the copy to be justifed, keeping the tabbed indents. Help and advice needed please!

    I am using InDesign CS5. I have a body of text which is ranged left with tabbed indents. My client now wants the copy to be justifed, keeping the tabbed indents. Help and advice needed please!

    Hi
    That screen grab helps a lot. There’s a much easier way of doing what you’re doing.
    Remove all your tabs and set the text in justified paragraphs.
    I’ve typed in dummy text in the example I made below, but after “19.1” put in a space and put your blinking cursor after the space and before the ’N’ of ‘Notices'.
    Then hold down the Command key and hit Backspace (on Mac at least - it’s the key between the Inverted commas/ apostrophe key and the return key).
    The text will jump into place the way you want it to.
    Hope that helps
    Paul
    PS You can set a tab, instead of using a space, in the description I gave above. So, after 19.1 or 19.2 or 19.185 etc etc insert a tab, then hit the Command Backspace after every paragraph number and they'll all line up exactly together. You'll find that editing text within the paragraphs
    after you've set it will be LOADS easier this way.
    You can put the tab anywhere you want it to be using 'Command-ShiftT' and putting a 'left align' tab just after the number. Just type the Command Backspace after the paragraph number and it'll work

  • HTTP error 0 testing not serving php pages please help

    Hello everyone,
    I am using DWCS3, the free version of MAMP on my MacBook Pro Leopard 10.5.6.
    I have built a customer registration form with a Transitional <!DOCTYPE>. I have been following the instructions from The Essential Guide to Dreamweaver CS3, using a wizard to build a registration form, in chapter 15.
    When I try to preview the form in the web browser, I get a white screen.
    When I click the live data button I get an; HTTP error 0 message occured while attempting to request the file http://localhost:8888/mywebsite/page_S9INUKZB.php from the testing server.
    possible reasons:
    1. Files in MacHD/Applications/MAMP/htdocs/mywebsite with .php extension are not being executed by the testing server.
    2. The MacHD/Applications/MAMP/htdocs/mywebsite does not map to http://localhost:8888/mywebsite URL on the testing server.
    I've gone over the site definitions several times and have configured MAMP differently twice, using ports 80 and 3306 and also 8888 and 8889. The same problem has happened in both instances here is my site definition info:
    Local info:
    Site name: mywebsite
    Local root folder: MacHD:Users:myname:Desktop:mywebsite
    links relative to document: http://localhost/
    Remote info:
    Access: Local/Network
    Remote folder: MacHD:Applications:MAMP:htdocs:mywebsite
    Testing server:
    Server model: PHP/MySQL
    Access: Local/Network
    Testing server folder: MacHD:Applications:MAMP:htdocs
    URL prefix: http://localhost:8888/mywebsite/
    Web sharing is turned off.
    Dreamweaver/Preferences/Preview in browser/preview using temporary files is turned off, yet in my HTTP error 0 message there is a string of characters after the page name, suggesting that dreamweaver is using temporary files.
    I have attached a compressed copy of the customer registration form maybe the problem is the page. I have gone round and round in circles with this and I can't seem to sort it out can somebody please help me.
    Thankyou.

    Hello David,
    Thanks for getting back to me, sorry for the late reply, I've been away for a few days.
    I have done what you suggested, and altered the links relative to document: http://localhost:8888/mywebsite/
    I have also restarted dreamweaver and mamp.
    Nothing has changed when I try to view the page through the browser I get a white screen and the HTTP error 0 is still displaying, With the same message as before.
    I have since created a new form, connected it to my user table, and populated the table with info, and that worked.
    I then added the php validating code as suggested in chapter 15, pages 481 through to 485. I've also checked the code against your example page register_user_03.php.
    However when I put the page on the testing server and try to view it, all I get is a white screen, and an HTTP error 0 the testing server is not executing pages with a .php extension. Or the URL prefix isn't mapped properly.
    I have also checked all my settings in MAMP and left a question on the forum but they haven't answered.
    Is there a setting or connection that I need to enable in Apache? I'm stumped.
    I'm hoping you might have some tricks up your sleeve.
    Thanks

  • Hard drive advice needed please

    Hi Guys
    I'll shortly be taking the plunge on a shiny new MacBook Pro, after reading various threads I'm still unsure about HD size and RPM.
    Ideally I'd like the 200GB drive, but in use just how much slower would it be? I need to access tiff, video and music files, and up to now use an external drive which occasionally chokes on video and music on my trusty 800MHz PowerBook
    I use photoshop and various other graphics applications, as well as video editing........So will I find the HD rpm an issue? is it better to settle for the 160GB?
    Your advice would be appreciated
    ED
    G4 Quicksilver + G4 PowerBook + AirPort Extreme   Mac OS X (10.4.4)   60GB iPod video and several pet LaCie hard drives

    The 200GB 4,200RPM drive is faster than most if not all 4,200RPM drives as it has a greater number of platters than most 4,200RPM drives.
    Click the link below to see how it faired in some tests. It was near the bottom in terms of perfomance compared to faster RPM drives but against other 4,200RPM drives it did well.
    http://tomshardware.co.uk/2006/10/12/fujitsusmhv2200btuk/page3.html

  • Connection Advice Needed Please

    Hi All
    I moved house over a week ago and asked to transfer my BT Services over (but thats a whole other shambolic issue).  At my previous house, my HH5 was connected to the Master Phone Socket and I had Infinity 2 Unlimited.  However, the new house already has FTTP installed - with an ONT box and back up battery box on the wall.
    I've not been able to get any advice from BT, but can someone tell me if I just plug my devices straight into the wall mounted box or do I plug my old HH5 into the ONT box and use my old wireless SSID as usual?  Or do I still just plug my HH5 into the main phone socket?
    I did not ask for the FTTP super fast service, so they should be activating my old 76MBps Infinity 2 service.
    Many thanks
    Liz

    Hi EWINMK17
    If you have FTTP and already have the ONT (Openreach optical network box) and backup battery installed, then all you need to do is connect your Home Hub 5 via the WAN port (may be coloured red) on the back of the Home Hub 5 to the LAN1/Port1 port on the ONT with an ethernet cable.
    Are there any lights light up on the ONT?
    Here's some information about the lights on the ONT box: http://bt.custhelp.com/app/answers/detail/a_id/36945/~/fibre-home-phone-service%3A-lights-on-the-ope...
    Have a look at page 11 on the user manual on how to connect your HH5 to the ONT here http://btsupport.custhelp.com/ci/fattach/get/3309418/1381227399/redirect/1
    jac_95 | BT.com Help Site | BT Service Status
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Try a Search
    See if someone in the community had the same problem and how they got it resolved.

  • Advice needed please

    Hello there,
    New to the forum and cannot find help anywhere else.
    I have lost the calculator software and cannot reinstall/retrieve it.
    Also, any software I try to install doesn't work - HotSync stops and says the application wasn't responding to HotSync.
    Any advice would be much appreciated - thank you
    Post relates to: Palm Z22

    1. It's as good, if not better.
    2. According to Apple, the same material was used on the 5th Gen iPods as the Nano. You can draw your own conclusions on scratching issues.
    3. Yes.
    4. Yes.
    5. No, you need to upgrade to iTunes 6 in order to get video functionality. You won't need to reinstall playlists (as you put it). Playlists will remain intact after the upgrade from iTunes 4 to iTunes 6.

  • Installing a second hard drive in a G4 - advice needed please

    Hi......
    I have a G4 Quicksilver (2002) model and I also have a G4 Digital Audio model as well which is currently surplus to requirements.....
    I would like to take out the 20Gb hard drive from the older G4 and put it into the Quicksilver as a second internal hard drive (for extra storage capacity....)
    I have seen the instructions regarding installing a second hard drive and it doesn't seem to complicated....
    I just want to check because the 20Gb hard drive has the operating system on it for the older G4.....
    Do I have to fire up the machine and erase the hard drive and then take it out and put it into the Quicksilver...?
    Or am I able to simply take it out, put it in the Quicksilver and erase it when I restart the machine....?
    I don't have the original installation discs for the OSX...
    I talked to a Mac technician at work and he said I can just take out the 20Gb hard drive and put it in as a 'slave' drive and I have to 'bend some pins' (I think he said) when I install it.........and I can then erase the second hard drive and use it as storage.....
    any advice would be greatly appreciated.....
    Thanks

    Hi, craigkelleigh -
    Ony many drives the label showing jumper pins configurations will be on the end of the drive, just above the block of pins; on other drives it may be on the top, rarely on the bottom.
    The block of jumper pins is at the same end of the drive where the data cable (wide, flat ribbon cable) and the power connector plug in.
    It is best to move the jumpers before installing the hard drive - they're quite small and hard to manipulate in a confined space. Important - do not move jumper pins if the drive is powered up (running).
    As far as removing and installing the drive, you can view/download a how-to PDF or movieclip from these pages -
    G4 (Digital Audio) - http://docs.info.apple.com/article.html?artnum=75313
    G4 Quicksilver - http://docs.info.apple.com/article.html?artnum=75314
    In addition, with regard to specific jumper positions, that depends on the make (and sometimes the model) of the drive. There are some resources available on-line, such as jumper diagrams for specific drives. If you would give us the specific make (manufacturer) and model number of your hard drive (that info should be shown on labels affixed to the drive), we may be able to direct you to a specific website page with that info.

  • Error in database reading ! help needed please.

    My project involves monitoring of ovens.
    The temperature from the oven are obtained using advantech ADAM module.
    Each material enters the oven and an alert is given to take it out after the desired time inside the oven.
    When i execute this program. an error pops up exactly 1 our after the start of the program.
    Kindly help me.
    I have attached the source code including the DB files and the error screen shot.
    username: 123456
    pass: 123456
    Thank you ina advance.
    Please help figure out the error.
    Regards
    Grugh Mike
    Success is Everything !!
    Solved!
    Go to Solution.
    Attachments:
    New Microsoft Word Document (2).doc ‏151 KB
    source.zip ‏4529 KB

    The biggest problem in your code is architectural. You need to learn about a few things like event-driven programming. As but one example you have an administrative operations VI that would be much smaller and much more efficient if it were built around an event structure and not multiple case statements. Your main application uses sequence structures - which are never necessary. As I recall, the last sequence structure I used in deliverable code was in the spring of '88.
    You also are not handling any of errors - which I suspect might be the source of your problem. It's possible that due to an error (which is going unreported) that a connection is being left open when you think it is being closed. But at this point that is just a guess.
    Fix the structural problems and you'll then be able to troubleshoot your DB problem. Shoot, in the process of fixing the structural issues, you may fix the DB!
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • Russian and Chinese Flash movies - general advice needed please

    Hi all -
    This is a plea for some general 'jumping off' advice. I am an experienced Flash developer but now have a request to convert an existing xml-fed movie into both Russian and Chinese. I speak neither of these languages so we have had the content of the movie translated by a professional translation service.
    The movie contains both png/jpgs with embedded text - created in Fireworks and also (for the bulk of the content) external xml files. I still need to be able to develop in an English environment - so purchasing a full version of Flash/Fireworks in Russian/Chinese would be folly. How should I go about this? If it is a matter of fonts - where should I get them from? And are there any considerations to be met with regards the xml files? Basically, I would really appreciate some general advice on this subject as it is completely new ground for me.
    Much obliged,
    Hugh

    Thank you. Having the airports all in proximity was the key and, of course, I eventually found the same advice in an apple help file. I set the new AExtreme up as WDS main with an ethernet disk for backups and music. An old AExtreme as WDS remote serves the Cube by ethernet and a usb printer. An AExpress as WDS remote serves one stereo. The other AExpress is WDS relay serving another stereo and helping the network reach the office where the last old AExtreme is WDS remote with another USB printer. The 3 mac laptops are happy. I have yet to try any PCs.

  • Oracle "guru"'s advice needed please :-)

    I think I need an Oracle "guru" for this situation. 2 issues:
    1) Installed Oracle on a Standalone desktop with Win 2K Professional. Database Config. Assistant created Database - 9i Version of Oracle Standard Version. I get 2 errors: Ora 12541 and ora 12154 - all relating to TNS No Listener or failed to resolve service name. Now, I'm quite the newbie but I can't understand why I would need to configure this stuff on a standalone machine. It also asks me for ID and password and when I put the correct one in, that's when I get the No Listener error, however, I did indeed configure one. My Tsnnames.ora and listener.ora do have the database in them and everything in those files seems correct. The DB name is SteveTe and the PC (or host I guess is "Tower"). How can I configure or fix this?
    2) I used Migration Workbench to "import" an Access DB into Oracle which was successful BUT I also expected to see the database in Enterprise Manager and want to use SQL + to do queries with it. How can I do this? Currently I cannot do it and the DB doesn't show in Enterprise manager. Furthermore, if I attach it manually, it still asks me for a ID and Password and it doesn't have one so how do I get around this?
    If someone can help, please send me some detailed instructions to get me out of the Oracle "quicksand" that I'm in. Thanks,
    Steve

    I would suggest using XSL to define your presentation layer. This will be much faster than accessing tables. It also allows you to change your presentation on-the-fly with different XSL files.
    Storing the XML in the database is a good idea. Especially in 9i which will have native XML support with the use of a new datatype called XMLType. It uses CLOB's under the covers, but will give you native access to your XML data.

  • Photoshop Elements 8 advice needed please

    Hello!
    I received PSE8 for Christmas and have Never used one of these programs before!  I noticed it does not come with a manual of any sort and did find a few books on amazon and was wondering if any of you "experienced" users could recommend one to me!
    Was looking at either the "Dummies" book for PSE8 or the "Missing Manual" series.
    Any advice is appreciated!  I learn quick but need good clean explanations!
    Thanks!
    Carrie

    I used PE The Missing Manual by Barbara Brundage when I started out with an earlier version of the program. The chapters are well written and illustrated. It is a quality product and should serve you well. Barbara moderates this board and is generous with her advice. I have no commercial connection with the author or with the publisher.

  • Advice needed please regarding a new phone line

    Hi all,
    I would appriciate any advice please. I will start from the beginning i placed my order with BT on 26 july calls and broadband they said they had to send an enginner out and the earliest date was 16th August which has been i waited in betwwen 12 and 5 and no enginner arrived i then rang bt i was so angry. After lots of phonecalls from them yestarday they are coming tommorrow.
    I need advice on the socket i have one in my flat but what i dont have is a wire that goes accross the wall i am not sure if that lead is in the socket i have not touched the socket since i moved in 2 years ago i do not want to touch it as me and leads do not get on lol!! would the enginner put the cable in if there isnt one???
    Thanks in advance

    'I need advice on the socket i have one in my flat but what i dont have is a wire that goes accross the wall i am not sure if that lead is in the socket i have not touched the socket since i moved in 2 years ago i do not want to touch it as me and leads do not get on lol!! would the enginner put the cable in if there isnt one???'
    Have you ever had a working land line in the flat, is the flat a new(ish) build? It is possible the lead in, that is the wire that connects the socket to the outside Block Terminal or Distripution Point is behind the wall.
    Most new builds will have Openreach or the developer put the wiring in before they put the wall in to hide it so there isn't un-sightly wires everywhere. My house is a new build, a mid town house and the master socket is at the back of the house in the living room but the connection point outside is on the front of the house, there is no visible wire so I assume it goes up the wall, across the hall ceiling into the living room then down the wall again to where it is. I know it won't go under the floor because I visted the house a few times during the build process and the floor was put in before the phone socket was.
    I suppose its nice you can't see the wire but I am unsure what they will do if it ever needs replacing as I don't know if its feeds through duct type pipeing where they can pull it through?
    Anyway to answer your question if it needs a cable then yes the engineer will put one on.

  • K9A2 plat hardware, CPU monitoring-advice needed please

    Hi,
    It seems that the MSI's "dualcore center" does not accurately displays CPU temp, normally it shows CPU temp. at lower than room temp.
    Also sometimes dual-core-center freeze/hangup other programs as well.
    With that being said,  I am looking for advice/recommendation as to what program to use to monitor CPU temps; something that would show in the task bar, show current temp., and does not hog up lot of resources. 
    thanks

    Oh yes... got to pay more attention to the spell checker. 
    Ironic.... I come here for technical advice and I get a lesson in spelling.    thanks Frankenputer. Furthermore ironic the fact is that I claim that I am not obsessed, yet I keep coming back here too read /learn more. May be it is not an obsession but an addiction. I am just a newbie here, some of you have post count  above 1K. Hee-heeee..
    Fredric, you mention bios is the most accurate, but you can't access it during a game play or application use.
    The only time I see bios info is when I boot. (yes boot  no need to correct.... boot=  as in pressing the power "ON" button to begin PC operation) it would not be a good monitoring tool.
    Hans
    There is room , I am just not satisfied the way it is mounted. A huge, heavy heatsink hanging out to the side which is supported by the MOBO, now you hang another object(fan) on the heatsink; just like hanging weight on the end of a lever. Then you spin up the  fan and let it vibrate, these cheap fans not balanced as they should be.  An air tunnel or duct system would be a much better way to bring airflow to a heat sink, better than hanging a fan on it.
    Normal way  of mounting works of course. I am just testing to see if there is a better way. I am using a fan, just mounting it elsewhere.
    Products engineered certain way because size, cost, or compatibility issues. Not necessarily to be most efficient. 
    My corsair TX750 PSU a good example.  A fan is mounted inside; size and compability issue.
    So the engineers put a 140 mm fan on the bottom(inside),  blocked half of its airflow with a plastic shield so air is moved to the back, though and out.
    I removed the fan and the airflow blocking plastic piece, mounted fan on outside of  PSU. Airflow has nearly doubled. I am sure it runs cooler too.  A slight mod to the case was necessary. Now I sleep better at night  (kiddding)
    This PSU (unmodified) in an Antec P182 case barely moved any air through it. I ended up selling the the antec 182.
     

  • Some general advice needed please

    Until today my network was DSL, AE802.11g with ethernet external drive and usb printer, a cube and printer on a remote AE802.11g and an express for the stereo. I had 3 laptops connecting except from one room that I want to move a printer to and use as an office. So I bought some more kit to extend the network.
    A new AE802.11n and another express arrived today. Because the house is big with thick walls I think I need at least one airport set up as a relay rather than remote. After reading the discussions I managed to get the new AE set up and connected to the DSL. but, I seldom get more than 1 or 2 AE or expresses show up in airport utility making it hard to set them to join the network which seems to keep disappearing. The most remote AE is near one of the expresses but does not see the network.
    Any suggestions for the optimal settings for each device? And what order should I set them up in?

    Thank you. Having the airports all in proximity was the key and, of course, I eventually found the same advice in an apple help file. I set the new AExtreme up as WDS main with an ethernet disk for backups and music. An old AExtreme as WDS remote serves the Cube by ethernet and a usb printer. An AExpress as WDS remote serves one stereo. The other AExpress is WDS relay serving another stereo and helping the network reach the office where the last old AExtreme is WDS remote with another USB printer. The 3 mac laptops are happy. I have yet to try any PCs.

  • Advice needed please - mac os x v10.5.8

    just bought an iphone 5 for my husband and have found that my software does not support the version required to back up his old phone and then sync his new one. Have tried to buy and upgrade from the store but cannot seem to get it to work? when I check for updates it tells me there are not any available. my desktop is about 6yrs old but seems in pretty good condition - could it just be too old? it is a 2.4ghx intel core 2 duo processor. happy to purchase any software upgrades needed but not sure next approach...really hoping I don't need a new mac to support the iphone 5...!

    Your Intel iMac can be upgraded to at least Snow Leopard. Check the link below for requirements and ordering info.
    http://store.apple.com/us/product/MC573/mac-os-x-106-snow-leopard

Maybe you are looking for

  • IMac G5 and eject CD

    Hi I can't eject the dvd. I have open the firmware but in repy to eject cd : the answer was "can't open the eject device". How to do ? Thanks

  • Guys, why my macbook doesn't detect my display?

    my macbook air does not detect my acer display with

  • Display all line items.

    Dear Friends, I develop to new screen in this screen having table control.  Table control fields I taken a table fields of ZMDISP_ITEM table fields. but I call to this table control I want to directly display ZMSAMP_ITEM fields in our table control t

  • Infosource not found !!

    Hi everyone... i did an export datasource for the ODS....in the source system the datasource is present. but it is assigned to an infosource starting with 8..ofcourse this is content generated ODS.I have also assigned this infosource as update for th

  • Webcenter 10.3 - classic asp portlets

    Hi, I have few portlets which were developed in classic asp with plumtree version 5.0.3. Can anybody tell me what i have to do to run my asp portlets in webcenter 10.3. Is there any equivalent "Plumtree ASP Gadget Development Kit (GDK) 3.5" for webce