JRE 1.5 VS. JRE 1.6 - Could not convert socket to TLS

I have an applet that is trying to send an email through an SMTP server. It works just fine 1.6 but on 1.5 it blows up and I'm kind of at the end of my rope. Any help here would be great.
I've had to set up the DummySSLSocketFactory as described in the JavaMail readme but still no luck on 1.5.
Here is the error:
DEBUG: setDebug: JavaMail version 1.4ea
DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc.]
DEBUG SMTP: useEhlo true, useAuth true
DEBUG SMTP: trying to connect to host "mail.bluebottle.com", port 25, isSSL false
220 fe0.bluebottle.com ESMTP Sendmail 8.13.1/8.13.1; Thu, 28 Jun 2007 08:25:34 -0700
DEBUG SMTP: connected to host "mail.bluebottle.com", port: 25
EHLO CC-FRED
250-fe0.bluebottle.com Hello 207-174-73-129.officepartners.us [207.174.73.129] (may be forged), pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-AUTH LOGIN PLAIN
250-STARTTLS
250-DELIVERBY
250 HELP
DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
DEBUG SMTP: Found extension "PIPELINING", arg ""
DEBUG SMTP: Found extension "8BITMIME", arg ""
DEBUG SMTP: Found extension "SIZE", arg ""
DEBUG SMTP: Found extension "DSN", arg ""
DEBUG SMTP: Found extension "AUTH", arg "LOGIN PLAIN"
DEBUG SMTP: Found extension "STARTTLS", arg ""
DEBUG SMTP: Found extension "DELIVERBY", arg ""
DEBUG SMTP: Found extension "HELP", arg ""
STARTTLS
220 2.0.0 Ready to start TLS
javax.mail.MessagingException: Could not convert socket to TLS;
  nested exception is:
                java.net.SocketException: com.cc.util.controller.email.DummySSLSocketFactory
                at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1230)
                at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:378)
                at javax.mail.Service.connect(Service.java:275)
                at javax.mail.Service.connect(Service.java:156)
                at javax.mail.Service.connect(Service.java:176)
                at com.cc.util.discovery.DiscoveryService.sendViaSMTP(DiscoveryService.java:422)
                at com.cc.util.discovery.DiscoveryService.discoverSMTPService(DiscoveryService.java:378)
                at com.cc.util.discovery.DiscoveryService.discoverPOP3Service(DiscoveryService.java:330)
                at com.cc.util.discovery.DiscoveryService.checkEmailService(DiscoveryService.java:126)
                at com.cc.applet.CCNonBlockingThread$1.run(CCNonBlockingThread.java:180)
                at java.security.AccessController.doPrivileged(Native Method)
                at com.cc.applet.CCNonBlockingThread.processEventData(CCNonBlockingThread.java:178)
                at com.cc.applet.CCNonBlockingThread.run(CCNonBlockingThread.java:139)
Caused by: java.net.SocketException: com.cc.util.controller.email.DummySSLSocketFactory
                at javax.net.ssl.DefaultSSLSocketFactory.createSocket(Unknown Source)
                at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:249)
                at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1226)
                ... 12 moreHere is the code:
               Properties props = new Properties();
               props.put("mail.smtp.auth", "true");
               props.put("mail.smtp.host", smtpServer);
               props.put("mail.smtp.starttls.enable","true");
               // the line below is for java 1.5
               java.security.Security.setProperty("ssl.SocketFactory.provider","com.cc.util.controller.email.DummySSLSocketFactory");
               // these are for java 1.4
              props.setProperty("mail.smtps.socketFactory.class","com.cc.util.controller.email.DummySSLSocketFactory");
              props.setProperty("mail.smtps.socketFactory.fallback", "false");
               Session session = Session.getInstance(props, null);
               session.setDebug(true);
               // -- Create a new message --
               Message msg = new MimeMessage(session);
               // -- Set the FROM and TO fields --
               msg.setFrom(new InternetAddress(from));
               msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to, false));
               // -- Set the subject and body text --
               msg.setSubject(subject);
               msg.setText(body);
               // -- Set some other header information --
               msg.setHeader("X-Mailer", "FuserDiscoveryProcess");
               msg.setSentDate(new Date());
               // -- Send the message --
               Transport tr = session.getTransport("smtp");
               tr.connect(username, password);
               tr.sendMessage(msg,msg.getAllRecipients());
               tr.close();
               CCLogger.getLogger().log(Level.INFO, "Message sent OK.");

new info it works on 1.5.0_10 but not 1.5.0_06 any ideas?

Similar Messages

  • MailAPI SMTP sending error: 'Could not convert socket to TLS'

    I'm stucked with smtp authentication in a project.
    The process works on port 25 with no STARTTLS, but unfortunately our company server uses port 587 and STARTTLS.
    It seems that only the half of the authentication process could be successful, as the server accepts EHLO, but when it switches to secure the program fails with the exception:
    'Could not convert socket to TLS'
    The simplified code (from a sample app) is:
    public void SendMail() throws Exception{
            Properties props = new Properties();
            props.setProperty("mail.transport.protocol", "smtp");
            props.setProperty("mail.smtp.host", "smtpserver");
            props.setProperty("mail.smtp.port", "587");
            props.setProperty("mail.smtp.auth", "true");
            props.setProperty("mail.smtp.auth.ntlm.domain", "codomain");
            props.setProperty("mail.smtp.starttls.required", "true");
            props.setProperty("mail.smtp.auth.mechanisms", "LOGIN NTLM");
            Session mailSession = Session.getDefaultInstance(props, null);
            mailSession.setDebug(true);
            Transport transport = mailSession.getTransport();
            MimeMessage message = new MimeMessage(mailSession);
            message.setSubject("My subject");
            message.setFrom(new InternetAddress("[email protected]"));
            message.setContent("<h1>Hello world</h1>", "text/html");
            message.addRecipient(Message.RecipientType.TO,
                                new InternetAddress("[email protected]"));
            transport.connect("smtpserver", 587, "CODOMAIN\\myaccount", "mypass");
            transport.sendMessage(message,
            message.getRecipients(Message.RecipientType.TO));
            transport.close();
       }

    I'll copy the full message below:
    +2010.06.29. 12:03:10 mailapi_2.Main main+
    SEVERE: null
    javax.mail.MessagingException: Could not convert socket to TLS;+
    nested exception is:
    javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1652)
    at com.sun.mail.smtp.SMTPTransport.protocolConnect(SMTPTransport.java:534)
    at javax.mail.Service.connect(Service.java:291)
    at mailapi_2.SimpleMail.SendMail1(SimpleMail.java:59)
    at mailapi_2.Main.main(Main.java:23)
    Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1591)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:187)
    at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:181)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1035)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:124)
    at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
    at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1123)
    at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1107)
    at com.sun.mail.util.SocketFetcher.configureSSLSocket(SocketFetcher.java:503)
    at com.sun.mail.util.SocketFetcher.startTLS(SocketFetcher.java:443)
    at com.sun.mail.smtp.SMTPTransport.startTLS(SMTPTransport.java:1647)
    +... 4 more+
    Caused by: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:285)
    at sun.security.validator.PKIXValidator.engineValidate(PKIXValidator.java:191)
    at sun.security.validator.Validator.validate(Validator.java:218)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(X509TrustManagerImpl.java:126)
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:209)
    Could not convert socket to TLS
    at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:249)
    at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1014)
    +... 14 more+
    Caused by: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
    at sun.security.provider.certpath.SunCertPathBuilder.engineBuild(SunCertPathBuilder.java:174)
    at java.security.cert.CertPathBuilder.build(CertPathBuilder.java:238)
    at sun.security.validator.PKIXValidator.doBuild(PKIXValidator.java:280)
    +... 20 more+
    And the output panel before the exception:
    Sending mail...
    DEBUG: setDebug: JavaMail version 1.4.3
    +DEBUG: getProvider() returning javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]+
    DEBUG SMTP: useEhlo true, useAuth true
    DEBUG SMTP: trying to connect to host "smtpserver", port 587, isSSL false
    +220 exch.plt.local Microsoft ESMTP MAIL Service ready at Tue, 29 Jun 2010 12:03:08 +0200+
    DEBUG SMTP: connected to host "smtpserver", port: 587
    EHLO machine.codomain.local
    +250-smtpserver.codomain.local Hello [xxx.xxx.xxx.xxx]+
    +250-SIZE 15728640+
    +250-PIPELINING+
    +250-DSN+
    +250-ENHANCEDSTATUSCODES+
    +250-STARTTLS+
    +250-AUTH GSSAPI NTLM+
    +250-8BITMIME+
    +250-BINARYMIME+
    +250 CHUNKING+
    DEBUG SMTP: Found extension "SIZE", arg "15728640"
    DEBUG SMTP: Found extension "PIPELINING", arg ""
    DEBUG SMTP: Found extension "DSN", arg ""
    DEBUG SMTP: Found extension "ENHANCEDSTATUSCODES", arg ""
    DEBUG SMTP: Found extension "STARTTLS", arg ""
    DEBUG SMTP: Found extension "AUTH", arg "GSSAPI NTLM"
    DEBUG SMTP: Found extension "8BITMIME", arg ""
    DEBUG SMTP: Found extension "BINARYMIME", arg ""
    DEBUG SMTP: Found extension "CHUNKING", arg ""
    STARTTLS
    +220 2.0.0 SMTP server ready+

  • ApEx BIP report using webservice: could not convert null to bean field

    Seems like a pretty straightforward problem but I don't manage to find a solution.
    I have a BI Suite implementation on one server.
    And a database with ApEx on another server.
    I want to call a BIP report from within my ApEx application using the webservices (runReport) available in BIP 11g.
    I used soapUI to test my webservice. Result : OK
    When called from within ApEx, ApEx gives me a succes message but the report isn't generated. Instead the console on the BIP server shows the following error:
    <Sep 12, 2012 10:28:37 PM BST> <Error> <org.apache.axis.encoding.ser.BeanPropert
    yTarget> <BEA-000000> <Could not convert null to bean field 'sizeOfDataChunkDown
    load', type int>
    'sizeOfDataChunkDownload' is a field of the webservice that is left empty.
    That indeed is the only difference between my soapUI test and the ApEx situation.
    In soapUI I removed all empty fields. In ApEx this does not seem possible...
    Some extra information:
    - the webservice is created on this WSDL : /xmlpserver/services/v2/ReportService?wsdl
    - it's defined as a SOAP v2
    - no basic authentication
    - the reports are defined in the BIP environment; not in ApEx
    Edited by: kcaluwae on 13-sep-2012 3:19

    I overlooked a not nillable field...

  • IMP-00069: Could not convert to environment national character set's handle

    While importing database objects from dmp we are getting the following Error
    C:\>imp chem/chem@chemdb full=y file='E:\eiproject\expdat.dmp' log=y;
    Import: Release 8.1.5.0.0 - Production on Thu Sep 13 10:28:54 2001
    (c) Copyright 1999 Oracle Corporation. All rights reserved.
    Connected to: Oracle8i Enterprise Edition Release 8.1.5.0.0 - Production
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    Export file created by EXPORT:V08.01.07 via conventional path
    import done in WE8ISO8859P1 character set and WE8ISO8859P1 NCHAR character set
    IMP-00069: Could not convert to environment national character set's handle
    IMP-00000: Import terminated unsuccessfully
    null

    Hi James,
    IMP-69 can occur if you try to use an EARLIER version of IMPORT against an export (.dmp) file produced by a LATER version of EXPORT.
    How about trying this:
    Use the 8.1.5 EXPORT utility from Win2K to connect to your Solaris 8.1.7 database; then use the 8.1.5 IMPORT utility to import the file into the 8.1.5 W2K database.
    Nat

  • How do I open RAW images from DSC_RX100M3?  I downloaded Adobe DNG converter 8.4, but could not convert the images?

    How do I open RAW images from DSC_RX100M3?  I downloaded Adobe DNG converter 8.4, but could not convert the images?

    Small correction to what SSprengel wrote...
    The RX100M3 is supported only by version 8.5.  It sounds like you need a newer version.
    Photoshop Help | Digital Negative (DNG)
    -Noel

  • MP-00038: Could not convert to environment character set's handle

    I wan't import an Oracle 10g database dump into Oracle Express:
    source DB runs on Linux
    NLS_LANG=AMERICAN_AMERICA.WE8DEC
    destination
    Windows:
    NLS_LANG=AMERICAN_AMERICA.WE8MSWIN1252
    X:\>imp system/manager file=edb.dmp full=y
    Import: Release 10.2.0.1.0 - Production on Wed Nov 14 09:25:40 2007
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    Connected to: Oracle Database 10g Express Edition Release 10.2.0.1.0 - Productio
    n
    IMP-00038: Could not convert to environment character set's handle
    IMP-00000: Import terminated unsuccessfully
    What can I do ???

    Hi sivaram,
    how exactly did you export from 11g, and how did you try to import? (Commands with parameters would be great, probably also the first lines of each log file)
    And which exact database release did you export from? Which character set does it use?
    -Udo

  • After Effects error: could not convert Unicode characters. (23 :: 46)

    Hello,
    I'm getting the following error message:
    After Effects error: could not convert Unicode characters. (23 :: 46)
    I have yet to find an answer that works to resolve this problem. I'm using CS6 on an HP Z220 on Windows 7.
    Thanks in advance.

    So I solved the problem. A little history for this situation: I created a new AE project and while attempting to import a file received the error message:  After Effects error: could not convert Unicode characters. (23 :: 46)
    I then tried to import a Vanishing Point which broken the spell on the error message and allowed the menu to select a vanishing point to appear. I closed out of that and was then able to import files.

  • AutoVue20.2 - 2DPro - Initialization failed. Could not initialize socket

    Hi,
    We are running a standard install of AutoVue 20.2 2DPro. We have the situation of the JVueAX.ocx activeX being coded in VB.Net.
    When we run the custom application as an admin user there is no issue, however when there is a restriction placed on the users (ie non-admin restricted to read & write on most things) we get the following issue in a popup messagebox.
    Error
    Initialization failed. Could not initialize socket on localhost:5099
    nested exception is:
    java.net.ConnectException: Connection refused: connect
    at java.net.PlainSocketlmpl.socketconnect(Native Method)
    at java,net.PlainSocketlmpl,doConnect(Unknown Source)
    at java.net.PlainSocketlmpl.connectToAddress(Unknown Source)
    at java.net.PlainSocketlmpl,connect(Unknown Source)
    at java,net.SocksSocketlmpl,connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.<init> (Unknown Source)
    at java.net.Socket.<init>(Unknown Source)
    at com.cimmetiy.vueconnection.g.a(Unknown Source)
    at com.cimmetiy.vueconnection.g.<init> (Unknown Source)
    at com.cimmetry.vueconnection.ServerControl.a(Unknown Source)
    at com.cimmetry.vueconnection.ServerControl.connect(Unknown Source)
    at com,cimmetry.vueframe,VueFrame.h(Unknown Source)
    at com,cimmetry.vueframe.VueFrame.<init>(Unknown Source)
    at com.cimmetry.jvue.JVue.b(Unknown Source)
    at com.cimmetiy.jvue.JVue.a(Unknown Source)
    at com.cimmetry.jvue.JVue$a.run(Unknown Source)
    at java,awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.Event.Queue.dispatchEventImpl(Unknown Source)
    at java.awt.Event.Queue.access$000(Unknown Source)
    at java.awt.Event.Queue$l.run(Unknown Source)
    at java.awt.Event.Queue$l.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$l.dolntersectionPrivilege(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)
    An error occurred while connecting to the server.
    Restart the applet?
    So it appears to be a permissions issue.
    We have changed the security settings on the Autovue folder but that doesn't alter the outcome.
    We have looked for more debug and altered the Log4j.xml to be all DEBUG but that didn't increase the output.
    The install log is 3007 of successful and no warnings or failed components.
    So we now ask for your input. What port needs opening or what file/folder needs the modify or full control assigned? Or is there a manual we may have misread?
    Any pointers would be appreciated.
    I have reviewed the AutoVue Desktop Deployment post.
    Cheers,

    The fix for this is to copy a file called Config.properties into the %userprofile%\AutoVue\Offline_Files
    for each user.
    In the text file Config.properties are these lines.
    #Offline Files Configuration
    [WORK OFFLINE]
    INSTALLDIR=C:\Oracle\AutoVue Desktop Deployment
    ISOFFLINE=1
    INSTALLVER=20.2.0.0
    Edited on 24-Oct-2012 14:51

  • XML: LPX-00200: could not convert from encoding UTF-8 to UCS2

    Hi,
    Greetings!
    I have special character(s) in a column and that character is chr(189) and because of that when i use the xml functions in my query it returns below error.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    I am using sys_xmlagg and getting above error when i encounter the data as below:
    "Dixon¿s Chicago".
    Note: When ever It encounters the bold character string it fails ... Any help !!!
    And one more thing when i create another record with same data by copy and pasting it works fine and when i did a dump on that column data its different. see the below result of dump.
    Naveen.
    SQL> desc temp_xml;
    Name Null? Type
    TNO NUMBER(4)
    NAME VARCHAR2(255)
    SQL> select name,length(name),dump(replace(name,chr(189),'')) data_dmp from temp_xml;
    NAME LENGTH(NAME) DATA_DMP
    ¿s Chicago 10 Typ=1 Len=12: 239,191,189,115,32,67,104,105,99,97,103,111
    ¿s Chicago 10 Typ=1 Len=11: 194,191,115,32,67,104,105,99,97,103,111
    SQL>
    if you observe the above 2 rows the fist row shows length as 12 and second shows as 11. actually 2nd rows works fine but first gives error. I am not able to see where that hidden character is and not able to remove that character.
    Message was edited by:
    naveenhks

    Hi,
    I have a similar problem:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to ISO-8859-1I'm executing the following Select when encountering this error:
    SELECT /*+ INDEX(resource_view XDBHI_IDX) */
               extract(resource_view.res, '/Resource/Contents/*').getClobVal()           AS Dokument
      FROM  resource_view
    WHERE resource_view.any_path LIKE '%PATH_TO_FILE%';I have 5 XML-documents and this error occurs at two ('A' and 'B') of them. When I transfer the same 5 documents from another PC the error occurs at document 'C' and not at 'A' and 'B'.
    Any clue or hint which could explain this behaviour? What NLS parameters can I check in order to help you understand the situation?
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE 11.2.0.1.0 Production
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production

  • LPX-00200: could not convert from encoding UTF-8 to UCS2 during

    When doing an query with SQL/XML on a database with the following characterics
    NLS_LANGUAGE -- AMERICAN
    NLS_CHARACTERSET - UTF8
    NLS_NCHAR_CHARACTERSET - AL16UTF16
    Database version is 9.2.0.5.0
    I get the following error on a text with special characters
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2
    I used the tip from another developer to use the convert function :
    XMLForest(convert(train.programma, 'UTF8', 'WE8ISO8859P1') AS "programma"
    Now at least I don't get the error but in the resulting all special characters (and there are a lot of them!) are garbled
    So for example (hope this comes across during the post)
    original : coördinatoren
    in xml : coördinatoren
    Any suggestions here? I'm not really allowed to change any database-parameters or doing an upgrade
    Maybe using something else in the convert function?

    Here's the complete query (with the convertfunction in it). Hope this helps
    select XMLElement("lmsImport", XMLAttributes('LmsImportSchema.xsd' as "xsi:noNamespaceSchemaLocation",
    'http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi"),
    XMLElement("trainingen",(
    Select XMLAGG(XMLElement("training",
    XMLElement("id", train.id),
    XMLElement("code", train.code),
    XMLElement("leverancier",
    XMLElement("leverancier",
    XMLATTRIBUTES(NVL(train.leverancier, 'vendr000000000001021') as "leverancierId"))),
    XMLElement("status", (CASE when TRUNC(NVL(train.disc_from, sysdate)) >= TRUNC(sysdate) then
    'Actief'
    else
    'Inactief'
    END )),
    XMLElement("naam", train.naam),
    XMLForest(
    XMLForest(Decode(train.afronding, 'Bewijs van Deelname', 'Instituutsdiploma', train.afronding) AS "afronding") as "afrondingen"),
    XMLForest(
    XMLForest(train.lesmethode AS "lesmethode") as "lesmethodes"),
    XMLForest(
    XMLForest(convert(train.programma, 'UTF8', 'WE8ISO8859P1') AS "programma") as "memos"),
    XMLForest(train.lesduur AS "lesduur")).extract('/*'))
    FROM (select cours.id id, cours.course_no code, cours.custom2 leverancier, cours.disc_from disc_from, cours.title naam, 'Training' lesmethode,
    cours.desc1||cours.desc2||cours.desc3||cours.desc4 programma, ROUND(cours.num_days) lesduur, ddcus.str_value afronding
    from tpt_courses cours
    inner join fgt_domain domin
    on cours.split = domin.id
    left join (fgt_dd_custom ddcus
    inner join fgt_dd_domain_to_attr ddoat
    on ddoat.id = ddcus.attr_id
    on ddcus.owner_id = cours.id
    where (domin.name = 'Content' or domin.name like 'CT%')
    and ddoat.attr_id = 'ddatr900000000000009'
    union
    select prdct.id id, prdct.part_no code, prdct.vendor_id, prdct.disc_from disc_from, prdct.name naam,
    decode(prdct.equip_cat_id, 'eqcat000000000000005', 'WBT', 'eqcat000000000001006', 'Book', 'eqcat000000000001019', 'Training', 'eqcat000000000001037', 'Training') lesmethode,
    prdct.desc1||prdct.desc2||prdct.desc3||prdct.desc4, null, custom7
    from tpt_product_catalog prdct, fgt_domain domin
    where prdct.split = domin.id
    and (domin.name = 'Content' or domin.name like 'CT%')) train )).extract('/*')).extract('/*') from dual;

  • Mediator To Spring Error-Could not convert from java interface to interface

    Hi,
    I have a requirement to using a Spring component and my composite application would be File Read -> Mediator -> Spring Component -> File Write.
    I have to read a file and using mediator map the same to the Spring input and write the Spring component output to a file.
    I have created a Java interface ( Package Name - transformtospring , Interface Name - TransformInterface) and also created a Java Class ( TransformImpl ) which implements the Interface in this package. Saved all these artifacts in SCA-INF/src folder of the application.
    My Spring Bean configuration file is as follows ( saved the file in the same folder as composite.xml )
    <?xml version="1.0" encoding="windows-1252" ?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:util="http://www.springframework.org/schema/util"
    xmlns:jee="http://www.springframework.org/schema/jee"
    xmlns:lang="http://www.springframework.org/schema/lang"
    xmlns:aop="http://www.springframework.org/schema/aop"
    xmlns:tx="http://www.springframework.org/schema/tx"
    xmlns:sca="http://xmlns.oracle.com/weblogic/weblogic-sca"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util-2.5.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd http://www.springframework.org/schema/jee http://www.springframework.org/schema/jee/spring-jee-2.5.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang-2.5.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd http://www.springframework.org/schema/tool http://www.springframework.org/schema/tool/spring-tool-2.5.xsd http://xmlns.oracle.com/weblogic/weblogic-sca META-INF/weblogic-sca.xsd">
    <!--Spring Bean definitions go here-->
    <bean class="transformtospring.TransformImpl" name="TransformBean"/>
    <sca:service name="TransformService" target="TransformBean"
    type="transformtospring.TransformImpl"/>
    </beans>
    I have created a Spring Context which uses the above Spring Configuration. When i tried to map the mediator output to Spring , i'm getting an error shown below.
    " Could not convert from java interface to interface type wsdl . Exception=java.lang.ClassNotFoundException transformtospring.TransformImpl "
    Please do let me know where exactly i'm doing wrong.
    Regards,
    Sri.

    Hi All,
    I could able to work this one out now !!!
    But i'm having an issue mapping the input to this service. The method signature for the service is as follows:
    public byte[] processData(byte[] input) throws Throwable{
    So the input for this Service is a byte array. Now i'm mapping the data from a File Input ( Read File - opaqueElement ) to this service directly ( using mediator ).
    Now when i have looked into the message in the Enterprise Manager, following is the message structure from Read File input to the service.
    <message>
    <properties>
    <property name="tracking.compositeInstanceId" value="10009"/>
    <property name="tracking.ecid" value="bcd04297e25136e7:4869a9c:13316255efc:-8000-0000000000001f79"/>
    <property name="tracking.conversationId" value="TJ9PCcbtu3S0DA0GuxsGx13RYUb1NxHNndfk2PC8ukk."/>
    </properties>
    <parts>
    <part name="parameters">
    <ns0:processCollaboration>
    <arg0>PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48bnMwOkFkZDJJbnB1dCAgeG1s bnM6eHNpPSdodHRwOi8vd3d3LnczLm9yZy8yMDAxL1hNTFNjaGVtYS1pbnN0YW5jZScgeG1sbnM6 bnMwPSd1ay5jby5qZHdpbGxpYW1zLkFkZDJJbnB1dCcgeHNpOnNjaGVtYUxvY2F0aW9uPSd1ay5j by5qZHdpbGxpYW1zLkFkZDJJbnB1dCByZXF1ZXN0LnhzZCcPG5zMDpudW0xPjEwPC9uczA6bnVt MT48bnMwOm51bTI+MTY8L25zMDpudW0yPjwvbnMwOkFkZDJJbnB1dD4=+</arg0>
    </ns0:processCollaboration>
    </part>
    </parts>
    </message>
    and the corresponding response message ( No output ) back from the service is:
    <message>
    <properties>
    <property name="tracking.compositeInstanceId" value="10009"/>
    <property name="tracking.ecid" value="bcd04297e25136e7:4869a9c:13316255efc:-8000-0000000000001f79"/>
    <property name="componentName" value="ProcessCollab"/>
    <property name="tracking.conversationId" value="TJ9PCcbtu3S0DA0GuxsGx13RYUb1NxHNndfk2PC8ukk."/>
    <property name="compositeDN" value="default/CollaborationToSpring!1.0*soa_a8da1da7-f98f-4935-8d20-da9e7bc003cc"/>
    </properties>
    <parts>
    <part name="parameters">
    <processCollaborationResponse>
    <return/>
    </processCollaborationResponse>
    </part>
    </parts>
    </message>
    I have included System.out statements in my Java class , but its not printing anything in the logs.
    I'm under the impression that the underlying infrastructure ( mediator ) transparently encodes and decodes data from base64Binary to java byte array. So could anyone help me on this !!!
    Regards,
    Sri.

  • Could not convert from java interface to interface type wsdl ??

    i have a problem wheni have a problem when i develop bpel using mediator and wire to ejb service. When the mediator wire to ejb service, i found the error : Could not convert from java interface to interface type wsdl.... How to solve the problem?

    I followed the case closely (with the same name of classes, methods, etc), but still get the error: “Could not convert from java interface to interface type wsdl.Exception=nl.amis.calculator.Calculator”. I created a Java class to test the lookup and function correctly. However, when I try to wire a Mediator to this Reference, I run into an Interface Conversion Error. I’ve included the line javaInterface = “nl.amis.calculator.Calculator” in file composite.xml, but still get error. Could you help me?

  • "could not open socket" error

    Hello:
    I am following the book "Adobe Dreamweaver CS5 with PHP" by David Powers (an excellent book I might add) and am currently going over chapter 8. (Zending email). I have completed the section concerning processing of a simple user feedback script, and I beleive I have my connector script, and code correct. My testing server is running and correctly defined in DW. When I attempt to submit the form in a browser window, I get the message "could not open socket" at the top of the  browser document window. I assume this involves adjusting a configuration file but I can not figure out where it is. Any help out there?
    My setup:
    Windows 7
    Apache2.2.17
    PHP5.3.4
    ZendFramework-1.11.4-minimal

    Boy, this one sure has me stumped.
    Despite using the amendment to the catch block that you so graciously suggested, and turning off my firewall, and antivirus software, all I get is the error message "could not open socket" at the top of the browser (various) document window (and a resetting of all fields and textarea):
    Here are my files. (I understand I will be changing my passwords, and getting a new recaptcha key, but I am desperate to fix this):
    I also amended the mail_connector.php script using the (Outgoing Mail Server: (SSL) server306.webhostingpad.com (server requires authentication) port 465) choice below with the same result.
    My hosting company provided this to me for manual setting of email:
    Manual Settings
    Mail Server Username: test1+housecalls4pets.com
    Incoming Mail Server: mail.housecalls4pets.com
    Incoming Mail Server: (SSL) server306.webhostingpad.com
    Outgoing Mail Server: mail.housecalls4pets.com (server requires authentication) port 2626
    Outgoing Mail Server: (SSL) server306.webhostingpad.com (server requires authentication) port 465
    Supported Incoming Mail Protocols: POP3, POP3S (SSL/TLS), IMAP, IMAPS (SSL/TLS)
    Supported Outgoing Mail Protocols: SMTP, SMTPS (SSL/TLS)
    library.php:
    <?php
    // Adjust the path to match the location of the library folder on your system
    $library = 'C:/php_library/ZendFramework-1.11.4-minimal/library';
    set_include_path(get_include_path() . PATH_SEPARATOR . $library);
    require_once('Zend/Loader/Autoloader.php');
    try {
      Zend_Loader_Autoloader::getInstance();
      $write = array('host'     => 'localhost',
         'username' => 'cs5write',
         'password' => 'Bow!e#CS5',
         'dbname'   => 'phpcs5');
      $read  = array('host'     => 'localhost',
         'username' => 'cs5read',
         'password' => '5T@rmaN',
         'dbname'   => 'phpcs5');
      // Comment out the next two lines if using mysqli
      // and remove the comments from the last two lines
      $dbWrite = new Zend_Db_Adapter_Pdo_Mysql($write);
      $dbRead = new Zend_Db_Adapter_Pdo_Mysql($read);
      //$dbWrite = new Zend_Db_Adapter_Mysqli($write);
      //$dbRead = new Zend_Db_Adapter_Mysqli($read);
    catch (Exception $e) {
        echo 'Class: ' . get_class($e) . ' says: ' . $e->getMessage();
    mail_connector.php:
    <?php
    $mailhost = 'smtp.mail.housecalls4pets.com';
    $mailconfig = array('auth' => 'login',
          'username' =>'[email protected]',
         'password' => 'Buffy1481',
         'port'    => '2626');
    $transport = new Zend_Mail_Transport_Smtp($mailhost, $mailconfig);
    Zend_Mail::setDefaultTransport($transport);
    process_comments.php
    <?php
    require_once('library.php');
    $errors = array();
    try {
      $public_key = '6LekzsUSAAAAAP99fQ32-j-qlp2wUWqeUc3_HvkX';
      $private_key = '6LekzsUSAAAAAHxKj135LEE9zoAxQng1A3azJYgE';
      $recaptcha = new Zend_Service_ReCaptcha($public_key, $private_key);
      if (isset($_POST['send'])) {
    // validate the user input
    if (empty($_POST['recaptcha_response_field'])) {
       $errors['recaptcha'] = 'reCAPTCHA field is required';
    } else {
       $result = $recaptcha->verify($_POST['recaptcha_challenge_field'], $_POST['recaptcha_response_field']);
       if (!$result->isValid()) {
      $errors['recaptcha'] = 'Try again';
    $val = new Zend_Validate_Alnum(TRUE);
    if (!$val->isValid($_POST['name'])) {
       $errors['name'] = 'Name is required';
    $val = new Zend_Validate_EmailAddress();
    if (!$val->isValid($_POST['email'])) {
       $errors['email'] = 'Email address is required';
    $val = new Zend_Validate_StringLength(10);
    if (!$val->isValid($_POST['comments'])) {
       $errors['comments'] = 'Required';
    if (!$errors) {
      // create and send the email
        require_once('mail_connector.php');
        $mail = new Zend_Mail('UTF-8');
        $mail->addTo('[email protected]', 'A N Other');
        $mail->setFrom('[email protected]', 'Zend Mail Test');
        $mail->setSubject('Comments from feedback form');
        $mail->setReplyTo($_POST['email'], $_POST['name']);
        $text = "Name: {$_POST['name']}\r\n\r\n";
        $text .= "Email: {$_POST['email']}\r\n\r\n";
        $text .= "Comments: {$_POST['comments']}";
        $html = "<p><strong>Name: </strong><a href='mailto:{$_POST['email']}'>{$_POST['name']}</a></p>";
        $html .= '<p><strong>Comments: </strong>' . nl2br($_POST['comments']) . '</p>';
        $mail->setBodyText($text, 'UTF-8');
        $mail->setBodyHtml($html, 'UTF-8');
        $success = $mail->send();
        if (!$success) {
          $errors = TRUE;
    } catch (Exception $e) {
      echo $e->getMessage();
    ?>
    comments.php:
    <?php
    require_once('scripts/process_comments.php');
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Contact Us</title>
    <link href="../../styles/users_wider.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h1>Get In Touch</h1>
    <form id="form1" name="form1" method="post" action="">
      <?php if (isset($success) && !$errors) { ?>
      <p>Thank you. Your comments have been sent.</p>
      <?php } elseif (isset($success) && $errors) { ?>
      <p>Sorry, there was a problem. Please try later.</p>
      <?php } ?>
      <p>All fields are required</p>
      <p>
        <label for="name">Your name:</label>
        <input value="<?php if ($_POST && $errors) {
      echo htmlentities($_POST['name'], ENT_COMPAT, 'UTF-8');
    }?>" type="text" name="name" id="name" />
        <span>
        <?php if ($_POST && isset($errors['name'])) {
        echo $errors['name'];
    } ?>
        </span></p>
      <p>
        <label for="email">Email address:</label>
        <input value="<?php if ($_POST && $errors) {
      echo htmlentities($_POST['email'], ENT_COMPAT, 'UTF-8');
    }?>" type="text" name="email" id="email" />
      <span>
      <?php if ($_POST && isset($errors['email'])) {
        echo $errors['email'];
    } ?>
      </span></p>
      <p>
        <label for="comments">Comments:</label>
        <textarea name="comments" id="comments" cols="45" rows="5"><?php if ($_POST && $errors) {echo htmlentities($_POST['comments'],ENT_COMPAT, 'UTF-8'); }?></textarea>
      <span>
      <?php if ($_POST && isset($errors['comments'])) {
        echo $errors['comments'];
    } ?>
      </span></p>
      <?php if (isset($errors['recaptcha'])) {
        echo "<p><span>{$errors['recaptcha']}</span></p>";
      echo $recaptcha->getHtml(); ?>
      <p>
        <input type="submit" name="send" id="send" value="Send Comments" />
      </p>
    </form>
    </body>
    </html>

  • AE error: Could not convert Unicode Characters

    Hey guys,
    I purchased the Video Copliot Action essentials 2 (720p). Whenever I try to import or drag and drop the pre-keyed clips (quicktime .mov format) into AE, I get the After Effects error: could not convert Unicode Characters (23 ::46) . I found an article online that said to make changes to the text in whatever Im importing, but umm it's a video, not text.
    I am using AE cs5.
    I can import the clips just fine into Premier Pro and export them oddly enough in Quicktime format just fine, however I lose the transperency "pre-keyed" , that's somehow embedded into the original video, therefore I now have a video of smoke, but with a non removable black background.
    Please help! thanks!

    Hey man i made an account just to reply to this, i had the same error come up while i was importing video files so i had a look around and found that it had something to do with the language/coding not being recognised, so i looked closer into the footage and tried different method of importing the file and later realised that after effects didnt recognise some of the characters in the file path way, the original folder was created using a macbook, windows recognises the language but after effects didnt, so i moved the file to my desktop and tried to import it again and presto it worked fine, you may not have the same problem but i thought just incase you do, you should try moving the file,
    if not heres a thread for the error:
    http://helpx.adobe.com/after-effects/kb/error-could-convert-unicode-characters.html
    hope that could be of some help.
    Zai

  • " could not convert Unicode characters (23::46) "

    I am suddently received an error message: " could not convert Unicode characters (23::46) " on my OS X version 10.9, when I trying to open a template. I have no problem to open the file on my friend's pc tho..  Any suggestion how to fix it greatly appreciated.
    Thanks,
    Andy,

    There is some character in the file name or the path name for the file that After Effects doesn't recognize. What is the full path and file name of this project?

Maybe you are looking for

  • Set up DNS with No-IP DynDNS

    Hello, I would like to set up services for LAN (SMB, websites,...) and WAN (VPN, websites,...) users on our Mac OS X Leopard server. For cost saving reasons (non-profit associations), I do not have a static IP adress from my ISP, so I use free no-ip.

  • Sync problems with T5

    I have a T5 and am using Vista.  Recently, I discovered that the handheld and my PC are not exhanging data in the calendar and contact sections.  The hotsync mgr. states that the sync was successful.  I checked it with DbFixIt and it did not detect p

  • Anyone using an Ipod in a VW with their "ipod adapter"  help!!

    This is the worst interface I think I've ever seen for an IPOD and I'm wondering if anyone knows if VW has a work-around to improve their interface. Currently, the car stereo treats the Ipod as an external cd changer and will only play the first five

  • Deleted Library

    My computer had to be fixed, and now that it works my iTunes library is gone... the whole thing. There are absolutely no songs in my library. What do I do? Please help a "damsel in distress." Thank you.:)

  • Is anyone developing for Android Tablet?  (w/different resolution?)

    The default Android smartphone resolution is 480x800.  But the biggest screensize so far for an Android Tablet is the Samsung Galaxy tab at 800x1280. Was wondering if anyone is developing a flash app at the 800x1280 resolution?  or is this not an opt