Sealing Exception

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 error ad nauseum...Any way around this? I've uninstalled, re-installed, looked in the Win registry but to no avail...

I greatly appreciate your response...I cleared the classpath (after uninstalling) but let the installer change the classpath. I did unistall the JAR files but also deleted the directory, re-booted, etc. I do understand the "sealing violation" exception and now am wondering if, in fact, the sharing of JARs (by Forte) is causing the problem and/or whether my other installations are conflicting - i.e., Tomcat, Cocoon, and/or other Java SDKs (i.e., messaging, JavaCard, J2MEWTK, etc.) ??
One possible solution that might help is upgrading my J2SE SDK. I had been running 1.3 and now have updated to 1.3.1 - in essence, a 'clean' install...unfortunately, this did not work either.
Still cannot use Forte4J, though I can use PointBase - which, by the way, is great. I guess tha gripe is simply that there is no 'graceful' error handle - the startup of the Forte IDE just 'locks' - I needed to (a) look at the log file or (b) edit the runide.bat file to even figure out that it was, in fact, a sealing violation that was the problem.

Similar Messages

  • Sealing exception problems - S.O.S!!!!

    Hi,
    I am trying to solve this problem of 'sealing exception' that I have been encountering with Unix/Tomcat/JAXP platform. The way I found out is through a thread in this forum itself.
    It says to unjar the 3 jar files in the JAXP folder (crimson, jaxp and xalan) and change sealed property in the Manifest file from true to false.
    I did this accordingly, but now could anyone please help me in how do I go about again doing a jar on these files. I know it should be a simple thing but please forgive my ignorance folks.
    An earliest help in this regard would be highly appreciated.
    Thanks.

    It says to unjar the 3 jar files No. Your configuration is wrong. The JAR files are OK.
    My best guess: you installed something like Xerces for your XML parsing? Tomcat itself also ships with an XML parser -- an old one, with old versions of org.w3c.Element etc. This is the cause of your problems. By the way: a "No such method" exception may also be caused by this...
    Replace the JAR files with the original ones. Next, revise your classpath. Make sure to get your newer XML stuff in the classpath prior to the Tomcat stuff. Or replace the Tomcat provided parser.jar / xml.jar (whatever) with your choice.
    Use the -verbose option to see that some XML related things are loaded from another file than you may expect.
    See also http://forums.java.sun.com/thread.jsp?forum=60&thread=159824
    a.

  • Exception - sealing exception while starting weblogic

    i get the following exception while starting weblogic ,
    pls let me know what changes needs to be done!!
    D:\bea\user_projects\mapos>"d:\bea\jdk131_06\bin\java" -hotspot -Xms64m -Xmx256m
    -Dserver.id=01:7001 -Ddomain.home=D:\bea\user_projects\mapos -Dweblogic.securi
    ty.SSL.trustedCAKeyStore=D:\bea\weblogic700\server\lib\cacerts -Dweblogic.Name=m
    yserver -Dbea.home="d:\bea" -Dweblogic.management.username=system -Dweblogic.man
    agement.password=password -Dweblogic.ProductionModeEnabled= -Djava.security.poli
    cy="d:\bea\weblogic700\server\lib\weblogic.policy" weblogic.Server
    <Aug 27, 2003 4:08:37 AM PDT> <Critical> <WebLogicServer> <000364> <Server faile
    d during initialization. Exception:java.lang.SecurityException: sealing violatio
    n
    java.lang.SecurityException: sealing violation
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:229)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
    6)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
    at weblogic.t3.srvr.T3Srvr.checkAccess(T3Srvr.java:419)
    at weblogic.t3.srvr.T3Srvr.initialize1(T3Srvr.java:627)
    at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:594)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:282)
    at weblogic.Server.main(Server.java:32)
    >

    Your server certificate expired. You need to update your identity keystore with a new certificate.
    The expired certificate was issued by the demo BEA certificate authority (CA). These certs are not adequate for production but if you want to take this approach for your new cert you'll have to use the BEA CertGen utility. Have a look at http://edocs.bea.com/wls/docs70/secmanage/ssl.html for more details.
    Your other option is to use Java's keytool utility to create a private key. You'd then generate a certificate signing request (CSR) that you'd send to a CA such as Verisign. You might even have a CA in-house. The CA will then send you a signed certificate that you load in your keystore. Assuming you've configured WebLogic to use this keystore you should be back in business with SSL.
    Mike
    Weblogic/J2EE Security Blog: http://monduke.com

  • J2ee1.3 and Windows

    I checked Sun's J2EE SDK 1.3 download site, found there is no mention of downloading for Windows 2000 Advanced Server. It does mention Windows 2000 Professional. Does anyone assure I can go ahead download to version for Windows 2000 Profession on my 2000 Advanced Server? Thanks

    I installed in on Win2K Server and I'm having problems. The first thing I tried was to create a new J2EE App (i.e. .EAR file). First with Forte CE, and it said the .ear file was corrupted. I then tried using the J2EE deployment tool and it threw a Security/Sealing exception.
    It shouldn't have anything to do with W2K Sever, but I repeated the same install process on my laptop (W2K Pro) and it works fine. Go figure!

  • Security Exception: Sealing violation

    Hi All,
    i am getting this securtiy violation exception,
    I am using the jdk1.2.2 , jaxp.jar and xalan.jar.
    i have taken this java file from one of the examples in JSP and XML of the java.sun.com
    can you please find out what could be the problem??
    here the program trying to generate the HTML file from the given XML file.
    C:\raja\xml\examples>java xmlhtml stock.xml stock.html
    Exception in thread "main" java.lang.SecurityException: sealing violation
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:236)
    at java.net.URLClassLoader.access$1(URLClassLoader.java:216)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:191)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:290)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:275)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:124)
    at javax.xml.transform.TransformerFactory.newInstance(TransformerFactory
    .java:117)
    at xmlhtml.main(xmlhtml.java:12)

    You are probably trying to run XML parsing code from two different JAR files. The sealing violation means you are violating the seal (lock) which was put on one of the JAR files when it was created. Try rearranging your class path.

  • How Do I Sign, Seal, and Protect a .pdf from Tampering?

    Saturday, August 8, 2009
    11:46 AM  -0800
    Hello Everyone.
    I originally posted this question in the Mac OS Adobe Acrobat Pro section; the folks over there had no idea what to tell me. Neither did Acrobat telephone support. They told me to take my post over to the Windows side. "They might know the answer there."
    I'm a physician in the position of writing notes that may be introduced into evidence later.
    I know there are electronic signature signature solutions for Acrobat, analogous to PGP or VeriSign for emails which prove:
    1. I wrote it.
    2. It hasn't been tampered with since it was written.
    3. It was written on this date at that time.
    Period
    Are these signature solutions platform specific? Are they Windows-only. It seems to me that a third party makes them.
    Also, is it possible to keep a running journal and sign & seal each day's entry? Or does each day require a separate document? Will I end up with 20-30 separate signed .pdf documents at the end of this?
    Thanks to all in advance.
    -jpk

    Sunday, August 9, 2009
    3:58 PM  -0800
    MikeKazlow wrote:
    Signatures are platform agnostic. You need a digital signature. For court, I'd get a digital signature that proves that you are you. You cannot keep signing new versions of the pdf, since the signatures will invalidate the previous signatures.
    Agnostic, huh? They do their work, but aren't sure the Great Computer exists. (I'm trying to get a laugh out of my current situation.) I spent two years in pre-theology at U.C. Santa Barbara before doing a 180 into the hard sciences. Over 30 years ago.
    Who makes the signature you specify and others? How do they work? How many devaluing dollars? If you are an Adobe employee, I guess you can't answer that question on the forum. I'm new to the forum. I don't know if one can send me this answer by email unless I have my email posted for spammers to harvest.
    Can you give me some pointers? I'm not being lazy, I just don't have time to do much except work like hell, sleep and eat at the moment.
    Also, can the 20-30 individually signed documents eventually be put together by Adobe Acrobat Pro into a collection or porfoilo of some kind? Or would the individual documents need to be kept in a PGP pseudo vault for security and handed over as individual files? I'm guessing that the signature solution you propose involves a notary public somewhere in the process of activation.
    Thanks.
    -John

  • Invalid stream header Exception - AES PBE with SealedObject

    I am trying to do an PBE encryption with AES algorithm and SunJCE provider, using the SealedObject class to encrypt/decrypt the data...
    And Im still getting the "invalid stream header" exception. Ive searched this forum, readed lots of posts, examples etc...
    Here is my code for encryption (i collected it from more classes, so hopefully I didnt forget anything...):
        //assume that INPUT_STREAM is the source of plaintext
        //and OUTPUT_STREAM is the stream to save the ciphertext data to
        char[] pass; //assume initialized password
        SecureRandom r = new SecureRandom();
        byte[] salt = new byte[20];
        r.nextBytes(salt);
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");
        Cipher ciph = Cipher.getInstance("AES/CTR/NoPadding");
        ciph.init(Cipher.ENCRYPT_MODE, key);
        ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
        int ch;
        while ((ch = INPUT_STREAM.read()) >= 0) {
          byteOut.write(ch);
        SealedObject sealed = new SealedObject(byteOut.toByteArray(), ciph);
        BufferedOutputStream bufOut = new BufferedOutputStream(OUTPUTSTREAM);
        ObjectOutputStream objOut = new ObjectOutputStream(bufOut);   
        objOut.writeObject(sealed);
        objOut.close();
      }And here is my code for decrypting:
        //assume that INPUT_STREAM is the source of ciphertext
        //and OUTPUT_STREAM is the stream to save the plaintext data to
        char[] pass; //assume initialized password
        SecureRandom r = new SecureRandom();
        byte[] salt = new byte[20];
        r.nextBytes(salt);
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");
        BufferedInputStream bufIn = new BufferedInputStream(INPUT_STREAM);    //MARK #1
        ObjectInputStream objIn = new ObjectInputStream(bufIn);   
        SealedObject sealed = (SealedObject) objIn.readObject();   
        byte[] unsealed = (byte[]) sealed.getObject(key);          //MARK #2
        ByteArrayInputStream byteIn = new ByteArrayInputStream(unsealed);
        int ch;
        while ((ch = byteIn.read()) >= 0) {
          OUTPUT_STREAM.write(ch);
        OUTPUT_STREAM.close();Everytime I run it, it gives me this exception:
    Exception in thread "main" java.io.StreamCorruptedException: invalid stream header: B559ADBE
         at java.io.ObjectInputStream.readStreamHeader(ObjectInputStream.java:783)
         at java.io.ObjectInputStream.<init>(ObjectInputStream.java:280)
         at javax.crypto.SunJCE_i.<init>(DashoA13*..)
         at javax.crypto.SealedObject.unseal(DashoA13*..)
         at javax.crypto.SealedObject.getObject(DashoA13*..)
         at oopsifrovanie.engine.ItemToCrypt.decrypt(ItemToCrypt.java:91)  //MARKED AS #2
         at oopsifrovanie.Main.main(Main.java:37)    //The class with all code below MARK #1I've also found out that the hashCode of the generated "key" object in the decrypting routine is not the same as the hashCode of the "key" object in the ecrypting routine. Can this be a problem? I assume that maybe yes... but don't know what to do...
    When I delete the r.nextBytes(salt); from both routines, the hashCodes are the same, but that's not the thing I want to do...
    I think, that the source of problem can be this part of code (generating the key):
        SecretKeyFactory factory = SecretKeyFactory.getInstance("PBKDF2WithHmacSHA1");
        KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);
        SecretKey pbKey = factory.generateSecret(keySpec);
        SecretKeySpec key = new SecretKeySpec(pbKey.getEncoded(), "AES");But I derived it from posts like: [http://forums.sun.com/thread.jspa?threadID=5307763] and [http://stackoverflow.com/questions/992019/java-256bit-aes-encryption] and they claimed it's working there...
    Is there anyone that can help me?
    Btw, I don't want to use any other providers like Bouncycastle etc. and I want to use PBE with AES and also SealedObject to store the parameters of encryption...

    Yes, it really uses only one Cipher object, but it does decoding in a little nonstandard (not often used) way, by using the SealedObject class and its getObject(Key key) method. You can check these links for documentation: [http://java.sun.com/javase/6/docs/technotes/guides/security/crypto/CryptoSpec.html#SealedObject] and [http://java.sun.com/javase/6/docs/api/javax/crypto/SealedObject.html] So the question is, why it doesn't work also with the AES routines, because it should.
    Btw, according to [http://java.sun.com/javase/6/docs/technotes/guides/security/SunProviders.html#SunJCEProvider] PBEWithSHA1AndDESede/CBC/PKCS5Padding is a valid JCE algorithm for the Cipher class.
    Firstly, I was generating the key for AES enc./decryption this way and it was working:
    char[] pass; //assume initialized password
    byte[] bpass = new byte[pass.length];
        for (int i = 0; i < pass.length; i++) {
          bpass[i] = (byte) pass;
    SecretKeySpec key = new SecretKeySpec(bpass, "AES");
    But I think, that it really wasn't secure, so I wanted to build a key from the password using the PBE.
    Maybe there's also a way how to do this part of my AES PBE algorithm: *KeySpec keySpec = new PBEKeySpec(pass, salt, 1536, 128);* manually (with my own algorithm), but I dont know how to do it and I'd like it to be really secure.
    Btw, thanks for your will to help.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How do I prove that I have never once changed my screen on my iPhone 5 since I upgraded in August. I am at my wits end. I work for o2 and I can promise I have never changed the screen. I got this phone in a sealed box and been down 3 times to Apple Store

    I am furious about this. 3 visits to Aberdeen Union Square to be told the screen on my phone is not apple merchandise. How can this be when I got the phone from o2 (my work) in a sealed box. I have never once sent the phone away to be repaired or made an insurance claim?
    The problem is my screen is becoming unresponsive. Sometimes does not work.
    I have restored my phone as told by Apple Technical ( may I add this gentleman was very helpful)
    I am basically sick of being called a liar by apple. I can swear this phone has never been tampered with except at The Apple store. I always have recommended Apple phones when doing my job as a sales advisor. I am at my wits end. I will not give up on this.

    I have heard of this possibly happening after insurance claims but nothing coming from a sealed box. I'm so frustrated by this as my touch screen doesn't work sometimes and this is causing big problems trying to answer calls. I have only had the phone since August. I set the phone up myself from the sealed box and its never been away from me, never have I had to send the phone away for repair or insurance claim.
    Feel like I've got a faulty phone and no one will help me...I trully believe all my phone is all Apple and always has been. I wish I could get photo evidence of inside the phone so i could see for myself.
    Its a very expensive phone which is driving me crazy.

  • Exception has been thrown by the target of an invocation error while updating picture in user Profile

    Hi,
    I am working on updating picture of user profile in sharepoint 2013.
    I am getting error "exception has been thrown by the target of an invocation" while creating Thumbnail at the below line.
    "file = (SPFile)mi_CreateThumbnail.Invoke(null, new object[] { original, idealWidth, idealHeight, folder, fileName, null });"
    I have added SPUtility.ValidateFormDigest() before calling this method. but no luck.
    Please help me on this.
    Thanks
    Hareesh

    Hi,
    According to your post, my understanding is that you want to update picture in user Profile.
    If we are giving an option to change the Profile picture in our custom component, we need to create 3 different files and update the reference in User Profile property.
    To create Thumbnail, we can use the code as below:
    /// Get sealed function to generate new thumbernails
    public SPFile CreateThumbnail(Bitmap original, int idealWidth, int idealHeight, SPFolder folder, string fileName)
      SPFile file = null;
      Assembly userProfilesAssembly = typeof(UserProfile).Assembly;
    Type userProfilePhotosType = userProfilesAssembly.GetType("Microsoft.Office.Server.UserProfiles.UserProfilePhotos");
      MethodInfo [] mi_methods = userProfilePhotosType.GetMethods(BindingFlags.NonPublic | BindingFlags.Static);
      MethodInfo mi_CreateThumbnail = mi_methods[0];
      if (mi_CreateThumbnail != null)
        file = (SPFile)mi_CreateThumbnail.Invoke(null, new object[] { original, idealWidth, idealHeight, folder, fileName, null });
      return file;
    Then we can invoke the method as below:
    using (MemoryStream stream = new MemoryStream(buffer))
    using (Bitmap bitmap = new Bitmap(stream, true))
    CreateThumbnail(bitmap, largeThumbnailSize, largeThumbnailSize, subfolderForPictures, accountName + "_LThumb.jpg");
    CreateThumbnail(bitmap, mediumThumbnailSize, mediumThumbnailSize, subfolderForPictures, accountName + "_MThumb.jpg");
    CreateThumbnail(bitmap, smallThumbnailSize, smallThumbnailSize, subfolderForPictures, accountName + "_SThumb.jpg");
    More information:
    Update User Profile picture programmatically in SharePoint
    Upload User Profile Picture programmatically in SharePoint 2013
    Upload User Profile Pictures Programmatically – SharePoint 2013
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • I just purchased a new in factory sealed box ipod 5.5. I removed all from packaging and charged overnight. The battery won't hold a charge. How do I get a new battery under warranty for this NOS item?

    I Just purchased a NOS ipod 5.5 brand new in factory sealed packaging from an apple dealer. I charged the unit overnight but the battery will not hold a charge. I read the Apple warranty and expect Apple to honor the warranty to the original end user purchaser (me). however I do not want to give up this iPod for a newer model because I love the sound from the Wolfson board. The newer iPods sound horrible and give me headaches. Does Apple still provide batteries for the 5.5 30 gb iPod? Or am I out of luck due to obsolescence? Thanks in advance!

    I feel your angst, especially, knowing that Apple has become the most profitable company in the world, by selling us products that breaks down when the warranty run out, and crap service staff, who doesn't know anything about the iPod Classic, except offer to sell us refurbished iPod classic.
    You can get the Battery replaced at 3rd Party store for less.
    BTW, (most contributors might not agree with me) if  you recharged your iPod everyday, it will be dead just 2 months after the warranty expires. My logic, the iPod battery will last for about 400 recharge cycles according to Apple Specs listed below
    Charge Cycles
    A properly maintained iPod battery is designed to retain up to 80% of its original capacity at 400 full charge and discharge cycles
    So if your lifestyle is plugin in to car Audio dock, while driving, and plug in to home stereo while home, then it is 2-3 charge cycles per day.
    But then you cant do anything about it, just switch to another media player.

  • SO Exception in Oracle 8.1.6

    Hi,
    I'm trying to create Connection Pool for my Entity Bean..
    I'm using OracleDriver in weblogic.jar ..
    DBURL - jdbc:oracle:thin:@localhost:1521:ORCL
    Driver - oracle.jdbc.driver.OracleDriver
    properties - user=system
    server=localhost
    when it targeted, i'm got an Exception following :
    java.sql.SQLException: SO Exception was generated
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    thanks, everyone ...

    Hi. download and try Oracle's latest driver. We shipped the latest
    available when we sealed the packaging, but the newest one is better.
    (This is an Oracle driver problem)
    duke wrote:
    >
    Hi,
    I'm trying to create Connection Pool for my Entity Bean..
    I'm using OracleDriver in weblogic.jar ..
    DBURL - jdbc:oracle:thin:@localhost:1521:ORCL
    Driver - oracle.jdbc.driver.OracleDriver
    properties - user=system
    server=localhost
    when it targeted, i'm got an Exception following :
    java.sql.SQLException: SO Exception was generated
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:168)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:210)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:323)
    at oracle.jdbc.driver.OracleConnection.<init>(OracleConnection.java:260)
    at oracle.jdbc.driver.OracleDriver.getConnectionInstance(OracleDriver.java:365)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:260)
    thanks, everyone ...

  • SSL Certificate Exception everytime a connection is established

    Hello guys!
    I am trying to authenticate a website running SharePoint 2010. But everytime a connection is established, an SSL/TLS exception is thrown. The following is the code I am using. Any idea??
    The exception is: "The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
    using System;
    using System.Collections.Generic;
    using System.IO;
    using System.Linq;
    using System.Runtime.InteropServices.WindowsRuntime;
    using Windows.Foundation;
    using Windows.Foundation.Collections;
    using Windows.UI.Xaml;
    using Windows.UI.Xaml.Controls;
    using Windows.UI.Xaml.Controls.Primitives;
    using Windows.UI.Xaml.Data;
    using Windows.UI.Xaml.Input;
    using Windows.UI.Xaml.Media;
    using Windows.UI.Xaml.Navigation;
    using System.Net;
    using System.Net.NetworkInformation;
    using Windows.Networking.Connectivity;
    using System.Net.Http;
    using System.Xml.Linq;
    using System.Text;
    using Windows.Web.Http.Filters;
    using Windows.Security.Cryptography.Certificates;
    // The Blank Page item template is documented at http://go.microsoft.com/fwlink/?LinkId=234238
    namespace TestApp
        /// <summary>
        /// An empty page that can be used on its own or navigated to within a Frame.
        /// </summary>
        public sealed partial class MainPage : Page
            public MainPage()
                this.InitializeComponent();
            private static HttpWebRequest CreateWebRequest(string url, NetworkCredential credentials)
                //Initialize new instance of HttpBaseProtocolFilter, which implements IHttpFilter.  
                string action = "http://schemas.microsoft.com/sharepoint/soap/GetWebCollection";
                HttpWebRequest req = (HttpWebRequest)WebRequest.Create(url);
                req.Credentials = credentials;
                req.Headers["SOAPAction"] = action;
                req.ContentType = "text/xml;charset=\"utf-8\"";
                req.Accept = "text/xml";
                req.Method = "POST";
                return req;
            static string soapEnvelope = @"<soap:Envelope xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema' xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'><soap:Body></soap:Body></soap:Envelope>";
            //static string soapEnvelope =
              //         @"<?xml version=""1.0"" encoding=""utf-8""?> <soap:Envelope xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xmlns:xsd=""http://www.w3.org/2001/XMLSchema""
    xmlns:soap=""http://schemas.xmlsoap.org/soap/envelope/""> <soap:Body> <Login xmlns=""http://schemas.microsoft.com/sharepoint/soap/""> <username>{0}</username> <password>{1}</password>
    </Login> </soap:Body> </soap:Envelope>";
            private static XDocument CreateSoapEnvelope(string content)
                StringBuilder sb = new StringBuilder(soapEnvelope);
                sb.Insert(sb.ToString().IndexOf("</soap:Body>"), content);
                XDocument soapEnvelopeXml = XDocument.Parse(sb.ToString());
                return soapEnvelopeXml;
            private static void InsertSoapEnvelopeIntoWebRequest(XDocument soapEnvelopeXml, HttpWebRequest webRequest)
            webRequest.BeginGetRequestStream((IAsyncResult asynchronousResult) =>
                    HttpWebRequest request = (HttpWebRequest)asynchronousResult.AsyncState;
                    Stream postStream = request.EndGetRequestStream(asynchronousResult);
                    soapEnvelopeXml.Save(postStream);
                    //postStream.Close();
                    request.BeginGetResponse(new AsyncCallback(GetResponseCallback), request);
                    }, webRequest);
            private static void GetResponseCallback(IAsyncResult asynchronousResult)
                HttpWebRequest request = (HttpWebRequest)asynchronousResult.AsyncState;
                HttpWebResponse response = (HttpWebResponse)request.EndGetResponse(asynchronousResult);
                Stream streamResponse = response.GetResponseStream();
                StreamReader streamRead = new StreamReader(streamResponse);
                string responseString = streamRead.ReadToEnd();
                //do whatever with the response 
                //streamResponse.Close();
                //streamRead.Close();
                //response.Close();
            private void Button_Click(object sender, RoutedEventArgs e)
                NetworkCredential credentials = new NetworkCredential("<user>", "<password>", "<domain>");
                HttpWebRequest request = CreateWebRequest("https://the_website_I_am_trying_to_connect_to", credentials);
                XDocument soapEnvelope = CreateSoapEnvelope("<GetWebCollection xmlns=\"http://schemas.microsoft.com/sharepoint/soap/\" />");
                InsertSoapEnvelopeIntoWebRequest(soapEnvelope, request);
                    

    Hi,
    According to your description, my understanding is that when you access a https web service, it occurs the “The underlying connection was closed. Could not establish trust relationship for the SSL/TLS secure channe” error.
    To overcome this error, you need to install the certificate that is used by the web service provider in the server that will be calling the web service.
    Open Microsoft Management Console (Start --> Run      --> mmc.exe);
    Choose File --> Add/Remove Snap-in;
    In the Standalone tab, choose Add;
    Choose the Certificates snap-in, and click Add;
    In the wizard, choose the Computer Account, and then      choose Local Computer. Press Finish to end the wizard;
    Close the Add/Remove Snap-in dialog;
    Navigate to Certificates (Local Computer)
    Choose a store to import:
    If you have the Root CA       certificate for the company that issued the certificate, choose Trusted       Root Certification Authorities;
    If you have the       certificate for the server itself, choose Other People
    Right-click the store and choose All Tasks -->      Import
    Follow the wizard and provide the certificate file you      have;
    Here are some detailed articles for your reference:
    http://www.c-sharpcorner.com/uploadfile/anavijai/could-not-establish-trust-relationship-for-the-ssltls-secure-channel/
    http://stackoverflow.com/questions/703272/could-not-establish-trust-relationship-for-ssl-tls-secure-channel-soap
    Thanks
    Best Regards
    Jerry Guo
    TechNet Community Support
    Hello Jerry,
    Thank you very much for your reply.
    But what about Windows Phone? I am running the same code on´WP 8.1 as a store app, and returns an exception at the same place: the GetResponseCallBack.
    Any workaround? Can I run a code from the app that uses the certificate or at least installs it?
    Thanks a lot. 

  • IPad 2 unresponsive except DFU mode, iTunes won't restore

    Let me preface: the steps to resolve the issue I have provided on the Apple website did not work, please do not suggest them.
    Yesterday I received my replacement iPad 2 in a brand new sealed box after about a month of waiting and shipment issues.  Out of the box, it worked.  Plugged into itunes, restored from backup, registered, and then... dead.  Screen does not display anything for any reason and the device will not respond to anything except entering DFU mode while connected to iTunes. 
    What I have tried:
    uninstall/reinstall iTunes 10.3.1
    switched USB cords and ports
    revert to iTunes 10.2.2
    leave plugged into wall charger overnight
    switched wall charger with known good charger and known good iphone charger
    downloaded differnet .ipsw files
    used two different computers
    I am using an iPad 2 64gb 3GATT and MacBook Pro, all running latest software
    After multiple attempts at all of the above, I have had no success getting the iPad to function.  The closest I get is to enter DFU and tell iTunes to restore.  After about 5 minutes, it says iPad cannot be restored (error 1601)[yes I've read the support articles, all of them, and tried everything].  The only other message I get is when trying to use an older .ipsw, to which iTunes says iPad is not eligible for this software, or something to the same effect. 
    If anyone has any suggestions as to what the problem might be, or knows a way to force a restore, preferably with a third party application, please let me know.  I am taking it to the Apple store to see the glorified support article readers this evening, but I really don't want to undergo another replacement process that will take another three weeks. 
    Thanks

    Dear jaredfromsewanee,
    I received my iPad 2 days ago, and I just went to try and restore my iPad 2. Same problem with me, its stuck on a black screen with no Apple logo. I also get error message 1601 trying to restore to 4.3.3 from 4.3.3. I'm worried my iPad may be 'bricked' and I don't have a receipt because I won this iPad from a competition..
    Also I'm running a windows machine, with iTunes up to date and I'm stressing so bad and I hope I can still salvage this thing!! Goodluck mate!!

  • GetWarnings on Connection throws exception if rollback = true

    I am trying to use hibernate within WLS 7SP4 and I get an exception everytime it
    tries to close an exception.
    inside
    weblogic.jdbc.jts.Connection.getWarnings()
    the first thing it does is call the method
    checkIfRoleBack(). This essentially throws an exception if the Transaction is
    currently in a roleback state
    If you look at the java API for get warnings it says it should only throw an exception
    if a database access error occurs. However a transaction being in a roleback state
    is not exactly a database error it is a perfectly valid state.
    THe problem I have is that when Hibernate tries to close a connection it also
    tries to log all the warnings on the connection. This means that closing a rolledback
    connection always throws an exception.
    Is this a bug in the weblogic implementation of Connection or is this expected
    beahviour.

    In that case we will be fine and the change is not that important
    Thanks
    Carl
    Joe Weinstein <[email protected]> wrote:
    >
    >
    Carl wrote:
    If the tx times out will I still be able to use sessionContext.getRollBackOnly()
    or will this only work if manually set.That should certainly still work. It is only JDBC that is prevented after
    the
    tx is done.
    Joe
    Thanks
    Carl
    Joe Weinstein <[email protected]> wrote:
    Carl Marais wrote:
    Thanks Joe for the response.
    My current solution is just to log and consume the exceptions if doinga close
    when the SessionContext of the EJB is set to Rollback. Judging fromwhat you are
    saying this should not have any impact on overall processing and theoriginal
    business exception can still flow through to the clientCorrect. The exception from getWarnings() has no effect on any processing
    and
    can be ignored if it's meaning is understood. We will currently allow
    no jdbc
    to be done, as soon as the tx is done for any reason. This could occur
    at any
    time, if for instance the tx reached it's timeout limit in-flight.
    Let me know how important the change I suggested is, or whether
    you're
    OK
    as-is for now with the above explained.
    thanks,
    Joe
    Joe Weinstein <[email protected]> wrote:
    Carl Marais wrote:
    I am trying to use hibernate within WLS 7SP4 and I get an exceptioneverytime it
    tries to close an exception.
    inside
    weblogic.jdbc.jts.Connection.getWarnings()
    the first thing it does is call the method
    checkIfRoleBack(). This essentially throws an exception if the Transactionis
    currently in a roleback state
    If you look at the java API for get warnings it says it should onlythrow an exception
    if a database access error occurs. However a transaction being in
    a
    roleback state
    is not exactly a database error it is a perfectly valid state.
    THe problem I have is that when Hibernate tries to close a connectionit also
    tries to log all the warnings on the connection. This means that
    closing
    a rolledback
    connection always throws an exception.
    Is this a bug in the weblogic implementation of Connection or is
    this
    expected
    beahviour.Hi. I can see it's being unexpected, but we must do all we can toensure
    that
    application code does no JDBC (which for the most part is intendedto
    contribute
    to the transaction) when the transaction is not in an accepting state.
    For maximum
    concurrency we actually reclaim the underlying pooled connection
    as
    soon
    as the
    fate of the transaction is sealed. This means that the warnings itmay
    have accrued
    are no longer accessible to the client. This is because we turn offthe
    wrapper
    object that the client has (generating that exception), and for pool
    cleanliness
    we always clear any warnings the connection may have collected during

  • Missing the sign in seal (assuring validity) for Yahoo email sign in page

    The sign in seal is an option you build for sign in id and password for yahoo emails. it assures authenticity. It shows up, except on firefox. I would appreciate your comments please.
    Thanks in advance..

    Specifically, it appears the information is stored in the '''YL''' cookie from the ''login.yahoo.com'' domain. Either of the following add-ons can delete all but certain cookies, for those who regularly clear out cookies but need to keep a few.
    * https://addons.mozilla.org/firefox/addon/biscuit-220876/
    * https://addons.mozilla.org/firefox/addon/selectivecookiedelete/

Maybe you are looking for

  • Insert an image from a Database

    Hi - I am trying to insert an image from a database into a webpage.  Basically when clients register on the site they upload their logo which i want to come up when they look at their account details and when they post a job.  When I test the file up

  • Recent CS4 updates disabling pdf creation & Acrobat 9 Pro functioning

    I own Adobe CS4 Suite (Photoshop, Illustrator, InDesign, Acrobat, and shared components).  My computer (Windows Vista) recently installed the latest updates to the software, and ever since, I have not been able to convert any documents to pdf using W

  • My 100MB NIC is running at 10MB.

    My via-rhine NIC seems to be running at 10mbit/sec instead of 100mbit/sec.    I'm copying gigabytes of data from a windows box to my Arch box using pscp.exe (a windows scp clone).  With other distros, pscp copies at 11,000 kB/s, but right now the lin

  • Surprising results with unibody MBP

    I picked up a unibody MBP last weekend and am thrilled with it (more here). Last night, with the machine set to "Higher performance" for the 9600M GT chipset, I exported 50 raw images with varying amounts of correction and timed the process. Several

  • Illustrator CC isn't compatible with my 2011 imac

    I tried downloading illustrator CC tonight, only to find out it's not compatible with my imac. I'm wondering if I have to purchase a new computer. Here are my specs: 21.5-inch, Mid 2011 Processor  2.5 GHz Intel Core i5 Memory  4 GB 1333 MHz DDR3 Grap