Java ME SDK 3.0 server certificates problem

Hi, I'm having a problem using HTTPS connection with the Java ME 3.0 emulator. We have a server certificate from Thawte, but I get
javax.microedition.pki.CertificateException: Certificate was issued by an unrecognized entitywhen I try connecting to our server with the MIDlet. I have tried importing the server certificate as well as the Thawte root certificates into the keystore in c:\Documents And Settings\<username>\javame-sdk\3.0\work\<id>\appdb\_main.ks and I see the certificates in the Certificate Manager in the emulator, but I still get the exception.
What am I supposed to do to get the emulator to accept the server certificate?

Answering myself, I got it working after I exported the Thawte server certificates from Control Panel -> Internet Options -> Content -> Certificates -> Trusted Root Certificate Authorities and then imported them to the MEkeystores.

Similar Messages

  • Can't usebean in JSP in Java 2 sdk ee1.3 server

    I have created a jsp page which used a bean but everytime I accessed the bean from the J2ee server ..it will always displayed the error that the bean class is not found..
    I have try to deploy the jsp as a web component using the deploytool but got the same error ...
    I am using jdk1.3 and java 2 sdk ee 1.3 in windows 98se
    Where do I have to put the class file?
    Is there something wrong with my classpath
    Do I need the change some of the properties file? if not what other solution is there....
    I am completely lost...I have double check the jsp code and the bean code..they are fine...Just couldn't figure out the solution..
    Pls help me come up with a solution

    Maybe it would be easier if I include the error message that I got and also the files.
    I use J2EE server 1.3 so there is only a public_html folder, I can't find any webapp folder...public_html folder contain the context of the application...where do I put the class file there or the package
    Here is the error that I got while executing the jsp page
    org.apache.jasper.JasperException: Unable to compile class for JSPc:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:61: Class org.apache.jsp.BankAccount not found.
    BankAccount BA = null;
    ^
    c:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:64: Class org.apache.jsp.BankAccount not found.
    BA= (BankAccount)
    ^
    c:\j2sdkee1.3\repository\default\web\_0002fusebean_jsp.java:69: Class org.apache.jsp.BankAccount not found.
    BA = (BankAccount) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "BankAccount");
    ^
    3 errors
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:175)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:187)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:254)
         at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:198)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:177)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:255)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:225)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2227)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:229)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:162)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:882)
         at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:875)
         at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:952)
         at java.lang.Thread.run(Thread.java:484)
    here is the bean code:
    import java.io.*;
    import java.sql.*;
    public class BankAccount
         private String sAccountID=" ";
         private String sPin=" ";
         Connection connect=null;
         Statement state=null;
         ResultSet result=null;
         public void setSAccountID(String sAccountID)
              this.sAccountID=sAccountID;
         public String getSAccountID()
              return sAccountID;
         public void setSPin(String sPin)
              this.sPin=sPin;
         public String getSPin()
              return sPin;
         public BankAccount() throws ClassNotFoundException
              Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
         public boolean AccountValidate()
              boolean validate=false;
              String sPinno="";
              try
                   sAccountID=getSAccountID();
                   sPin=getSPin();
                   connect=DriverManager.getConnection("jdbc:odbc:Bank","","");
                   String strquery="select cPin_no from Login where cAccount_id='"+sAccountID+"'";
                   state=connect.createStatement();
                   result=state.executeQuery(strquery);
                   while (result.next())
                        sPinno=result.getString(1);
                   sPinno=sPinno.trim();
                   sPin=sPin.trim();
                   if (sPinno.equals(sPin))
                        validate=true;
              catch(Exception e){}
              return validate;
    here is the jsp :
    <%@ page language="java" %>
    <jsp:useBean id="BA" scope="application" class="BankAccount" >
    <jsp:setProperty name="BA" property="sAccountID" param="accid"/>
    <jsp:setProperty name="BA" property="sPin" param="pin"/>
    </jsp:useBean>
    <html>
    <head><title>result page</title></head>
    <body>
    <%
         String accid=request.getParameter("i1");
         String pin=request.getParameter("i2");
         out.println("welcome "+accid);
         boolean validate=BA.AccountValidate();
         if (validate==true)
              out.println("the user is validated");
         else
              out.println("the user is not valid");
    %>
    </body>
    </html>
    here is the simple html file
    <html>
    <head><title>user validation</title></head>
    <body>
    <form method="post" action="usebean.jsp">
    <table border="0" cellspacing="1" cellpadding="5">
    <tr>
         <td width="100"> </td>
         <td align="right"><h1><font color="red">Welcome to Bank</font></h1></td>
    </tr>
    <tr>
         <td width="100"><b><font color="blue">Account ID:</font></b></td>
         <td align="left"><input type="text" name="sAccountID" size="30"></td>
    </tr>
    <tr>
         <td width=100 align=right><b><font color=blue>Pin Number:</font></b></td>
         <td align=left><input type="password" name="sPin" size="30"></td>
    </tr>
    <tr>
         <td width=100> </td>
         <td align=left><input type=submit value=submit></td>
    </tr>
    </table>
    </form>
    </body>
    </html>
    what changes do you suggest?
    I try testing and creating a simple package just to ensure I can create package and it is accessible but I can't access the package
    Here is what I did...
    I created a file displayclass.java which contains the package declaration as follows
    package mypackage;
    public class displayclass
         public String displaytext()
              return "displaying text";
    I compile it using javac -d . displayclass.java
    I check and the package named mypackage is created under the current directory which is c:\java\jsp
    then I created the usepackage.java which use the mypackage package
    here it is
    import jsp.*;
    public class usepackage
         public static void main(String args[])
              displayclass dc=new displayclass();
              String string=dc.displaytext();
              System.out.println(string);
    Then I set the classpath as "set classpath=%classpath%;c:\java\jsp\mypackage" without the quotation marks ofcourse
    I found to my dismay that when I compile usepackage.java.. the compiler generated the following error message
    usepackage.java:7 cannot displayclass
    bad class file: c:\java\jsp\mypackage\displayclass.class
    class file contain wrong class: jsp.displayclass
    Please remove and make sure it appears in the correctsubdirectory of the classpath
    My brains are already over the limit...the level of frustration at not be being able to make a simple package thing work after facing hurdles after hurdles in JSP...
    What solutions do you suggest for the above 2 problems --the one with the jsp and the one with the package..
    I use jdk1.3 and j2sdkee1.3, windows 98se
    they are all working fine
    I really can't comprehend that the people at sun if they admit that j2sdkee1.3 can work in windows 98 with minor tweakings and instead of leading us to a forum with suggested solutions..why can't they simply support the damn thing in windows98 if it can work on windows98...so much for platform independence..or do they prefer us to upgrade to windows NT or windows 2000 :-)
    I feel that it would be way too simple for them to make the batch file to work properly...I am indeed surprised as it wouldn't take much of a time for them. Don't you all think so?
    As regards the stuff not working without package...it just is too much...I am close to boiling point...why can't they spare a thought for that? I have seen many of my classmates simply throwing up their hands in desperation :-) it is making life a living hell for us---as we are not genius..it depends upon the genius, if at all they are, to make something more userfriendly
    anyway pls help me!....I have to finish my assignments on my home computer...

  • Validate Server Certificate Problem

    Hi all.
    We have this problem with EAP-TLS with WPA and certificate authentication.
    With a third part client (odissey) all work well, with integrated microsoft client all work if we deselect "Validate Server Certificate" into configuration.
    In trusted server list there is our CA server.
    But when we select this option (or if we try to connect to wifi network for the first time), authentication fail.
    It's an annoying problem, because Windows XP default this option, so for an end user it's difficult to connect (he need to enter in network configuration.... we want a simple connection...).
    Thank a lot
    Daniele

    Try this link
    http://cisco.com/en/US/products/sw/secursw/ps2086/products_configuration_example09186a0080545a29

  • Connection error -2147217387 with Java RAS SDK and Crystal Server 2011

    Due to a change in operating system, we are required to upgrade our Crystal Reports server from BusinessObjects Crystal Reports Server 11.5 to SAP Crystal Server 2011. We use the Java RAS SDK (RASCore 9.2.2.446 / RASApp 9.0) more or less as described in Java RAS2008-unmanaged exportreport. We use the Crystal Server to export reports stored on disk as PDF files.
    In SAP Crystal Server 2011, the CrystalReports2011ReportApplicationServer is configured with Request Port 1566 and Host Identifier 172.16.4.154 (the local machine). The Crystal Server, report-definition files, and Java VM are all on the same machine.
    The error is
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: XML serialization failed.---- Error code:-2147217387 Error code name:connectServer
         at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.v.request(Unknown Source)
         at com.crystaldecisions.proxy.remoteagent.ab.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.a(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.do(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.for(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.for(Unknown Source)
         at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
         at ourpackage.OurClass.openReport(OurClass.java:95)
         ... 6 more
    Caused by: java.net.SocketException: Connection reset
         at java.net.SocketInputStream.read(SocketInputStream.java:189)
         at java.net.SocketInputStream.read(SocketInputStream.java:121)
         at java.net.SocketInputStream.read(SocketInputStream.java:203)
         at java.io.DataInputStream.readInt(DataInputStream.java:388)
    The code is as follows.
    ReportClientDocument clientDocument = new ReportClientDocument();
    clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
    // Error occurs on ReportClientDocument.open method
    clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.refreshRepositoryObjects.value());
    DatabaseController dbController = clientDocument.getDatabaseController();
    dbController.logon("dbuser", "dbpassword");
    ParameterFieldController pfController = clientDocument.getDataDefController().getParameterFieldController();
    Fields fields = clientDocument.getDataDefinition().getParameterFields();
    ParameterField oldParameter = (ParameterField) field.get(0);
    ParameterField newParameter = new ParameterField();
    oldParameter.copyTo(newParameter, false);
    newParameter.getCurrentValues().clear();
    ParameterFieldDiscreteValue newDiscreteValue = new ParameterFieldDiscreteValue();
    newDiscreteValue.setValue("paramValue");
    newParameter.getCurrentValues().add(0, newDiscreteValue);
    pfController.modify(oldParameter, newParameter);
    clientDocument.refreshReportDocument();
    PrintOutputController po = clientDocument.getPrintOutputController();
    InputStream is = po.export(reportFormat);
    Could anyone advise me how to proceed with resolving this error?

    Thanks for the link. I copied the CrystalReportsSDK.jar and logging.jar from the Crystal Server java\lib directory into my project and revised the code accordingly. Now, a slightly different error occurs at the same place:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: Unable to connect to the server: {0}. --- Connection reset by peer: socket write error---- Error code:-2147217387 [CRSDK00000039] Error code name:connectServer
      at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(ReportSDKServerException.java:115)
      at com.crystaldecisions.proxy.remoteagent.TCPIPCommunicationAdapter.request(TCPIPCommunicationAdapter.java:659)
      at com.crystaldecisions.proxy.remoteagent.AdapterCommunicationChannel.send(AdapterCommunicationChannel.java:88)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.request(ReportAppSession.java:382)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.logon(ReportAppSession.java:342)
      at com.crystaldecisions.sdk.occa.report.application.ReportAppSession.initialize(ReportAppSession.java:330)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnectionAdapter(ClientDocument.java:627)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.initializeServerConnection(ClientDocument.java:658)
      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.initializeServerConnection(ReportClientDocument.java:1420)
      at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(ClientDocument.java:982)
      at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.open(ReportClientDocument.java:226)
      at ourPackage.OurClass.openReport(OurClass.java:97)
    The revised code is
    ReportClientDocument clientDocument = new ReportClientDocument();
    clientDocument.setReportAppServer("172.16.4.154:1566"); // localhost
    // Error occurs here
    clientDocument.open("D:\\path\\to\\report.rpt", com.crystaldecisions.sdk.occa.report.application.OpenReportOptions.openAsReadOnly.value());

  • Wired 802.1x EAP-TLS Server Certificate Problem

    I have setup wired 802.1x authentication using EAP-TLS with ACS 3.3 and backend link to Active Directory. Root CA certificates are installed on the ACS and Client PC. Machine certificates and user certificates are also installed on Client PC. A Server certificate is installed on the ACS. All has been configured as detailed on the Cisco Web Site (numerous documents).
    If I set the client to authenticate the Servers certificate I get a failure. The clients log (Cisco Secure Services Client) states:
    11:48:53.088 Validating the server.
    11:48:53.088 Server list is empty, trusted server can not be validated.
    11:48:53.088 Server list is empty, trusted server can not be validated.
    11:48:53.088 The server certificate is invalid, the common name ACS-One.rotherham.gov.uk does not match.
    11:48:54.776 Port state transition to AC_PORT_STATE_UNAUTHENTICATED(AC_PORT_STATUS_ERR_SERVER_TLS_CERTIFICATE_REJECTED)
    11:48:54.776 The authentication process has failed.
    If I look at the Auth log on ACS (set to full logging) it states:
    AUTH 08/27/2008 14:09:04 I 0701 1492 AuthenProcessResponse: process response for 'paul.kyte@domain' against Windows NT/2000
    AUTH 08/27/2008 14:09:04 E 0350 1492 EAP: TLS: ProcessResponse: SSL handshake failed, status = 3 (SSL alert fatal:bad certificate)
    If I configure the client to not check the servers certificate it all works ok.
    Can anyone tell me why my server certificate is getting rejected?
    Thanks,
    Paul

    If Cisco Secure ACS runs on a member server and any user is to be authenticated using EAP-TLS, you must complete additional configuration in Active Directory of the domain containing Cisco Secure ACS. The username that you configured to run all Cisco Secure ACS services must also have permission to read user properties in Active Directory, else EAP-TLS authentication fails.

  • Error upgrading to 2012 R2 - SQL Server Certificate problems

    We are experiencing some strange errors during the installation of Config Mgr 2012 R2. The installer does not provide any errors, it just exits during the final steps. The c:\configmgrsetup.log file shows:
    INFO: Testing SQL Server [SQL01.ad.edu] connection ...  $$<Configuration Manager Setup><11-21-2013 13:47:25.427+360><thread=1984 (0x7C0)>
    INFO: SQL Connection succeeded. Connection: SQL01.AD.EDU MASTER, Type: Unsecure  $$<Configuration Manager Setup><11-21-2013 13:47:25.433+360><thread=1984 (0x7C0)>
    INFO: Tested SQL Server [SQL01.ad.edu] connection successfully.  Any preceding SQL connection errors may be safely ignored.  $$<Configuration Manager Setup><11-21-2013 13:47:25.438+360><thread=1984 (0x7C0)>
    INFO: Certificate: 3082022B38D<!Removed characters for readability!>C1D9C921A058D19F  $$<Configuration Manager Setup><11-21-2013 13:47:25.443+360><thread=1984 (0x7C0)>
      ERROR: Failed to open certificate store (HRESULT=0x5)  $$<Configuration Manager Setup><11-21-2013 13:47:25.451+360><thread=1984 (0x7C0)>
    Failed to write sql server certificate to store (TrustedPeople) on site server (SCCM.ad.edu).  $$<Configuration Manager Setup><11-21-2013 13:47:25.457+360><thread=1984 (0x7C0)>
    ERROR: Failed to configure SQL Server Certificate.  $$<Configuration Manager Setup><11-21-2013 13:47:25.462+360><thread=1984 (0x7C0)>
    Failed to create SQL Server Certificate, ConfigMgr installation cannot be completed.  $$<Configuration Manager Setup><11-21-2013 13:47:25.468+360><thread=1984 (0x7C0)>
    <11-21-2013 13:47:25> Failed to create process of SetupWpf.exe.
    We are running SQL on our enterprise 2008R2 SQL server and SCCM runs on a dedicated 2012 Server. Certificates are generally signed by our CA but the SQL certificate for ConfigMgr is self signed and appears to be trusted by the SCCM server (it appears in
    the TrustedPeople store). We have been running properly using HTTPS and the only errors prior to attempting the upgrade were with a secondary distribution point that had been removed prior to install. A new SQL certificate has been generated and tested but
    yields the same error messages. All suggestions are appreciated. Thanks,
    -Brandon

    Hi,
    I found a similar article for your reference.
    Fail to create SQL Server Certificate" during installation
    http://henkhoogendoorn.blogspot.nl/2013/01/fail-to-create-sql-server-certificate.html
    Note: Microsoft provides third-party contact information to help you find technical support. This contact information may change without notice. Microsoft does not guarantee the accuracy of this third-party contact information.
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Untrusted Server Certificate Chain error

    I am trying to use a certificate (digital signature) on the client, when accessing a Webservice. This fails with the following error :
    javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Untrusted Server Certificate Chain
    My code is :
    KeyStore ks = null;
    String strURL = "https://myserver.com/myurl/lookup.asmx";
    SSLSocketFactory sslSocketFactory = null;
    System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");
    Security.addProvider(new com.sun.net.ssl.internal.ssl.Provider());
    // Load certificate dynamically
    SSLContext sslContext = SSLContext.getInstance("SSLv3");
    TrustManagerFactory trustMgtFactory = TrustManagerFactory.getInstance("SunX509");
    CertificateFactory cert = CertificateFactory.getInstance("X.509");
    FileInputStream lo_fileinputstream = null;
    lo_fileinputstream = new FileInputStream("c:\\temp\\digital.cer");
    X509Certificate servercacert = (X509Certificate)cert.generateCertificate(lo_fileinputstream);
    lo_fileinputstream.close();
    String s1 = servercacert.getSerialNumber().toString();
    if(ks == null)
    ks = KeyStore.getInstance("JKS");
    ks.load(null, null);
    ks.setCertificateEntry(s1, servercacert);
    trustMgtFactory.init(ks);
    sslContext.init(null, trustMgtFactory.getTrustManagers(), null);
    sslSocketFactory = sslContext.getSocketFactory();
    HttpsURLConnection.setDefaultSSLSocketFactory(sslSocketFactory);
    // Call webservice
    URL cascadeURL = new URL(strURL);
    HttpsURLConnection conn = (HttpsURLConnection) cascadeURL.openConnection();
    String inputline=null;
    if (conn instanceof HttpsURLConnection) {
    conn.connect();
    BufferedReader in = new BufferedReader(
    new InputStreamReader(
    conn.getInputStream()));
    while ((inputline = in.readLine()) != null) {
    System.out.println(inputline);
    in.close();
    Please help - I am on a very tight deadline (as usual).

    Found the problem. I simply needed to add another certificate.

  • Error: Untrusted Server Certificate

    When i click on Query Interfaces (IPS Manager: Configuration > Settings > Interfaces) i get the following error:
    An error occurred trying to get the interface information. An error occurred while trying to determine the sensor version. Detail = Error occurred while communicating with 172.17.xx.xx: java.security.cert.CertificateException: Untrusted Server Certificate Chain
    Any suggestion?
    Thank you,

        That is a pretty strange message. Have you had a chance to reach out to Windows Live?
    TamaraH_VZW
    Follow us on Twitter @VZWSupport

  • Java ME SDK 8.0 EA Netbeans plugin installation problem

    We have been getting reports that some developer had trouble installing the Java ME SDK 8 EA plugins into NetBeans. We are working on fixing the issue, in the meantime please try the workaround posted in the Java ME SDK forum:
    Java ME SDK 8.0 EA Netbeans plugin installation problem
    Also be sure to check the latest ME SDK 8 EA Release Notes for late-braking information:
    http://docs.oracle.com/javame/dev-tools/jme-sdk-8/release-notes/html/Release_Notes/Release_Notes.html
    Sorry for the inconvenience.
    Best,
    -- Terrence

    Hi,
    For the Raspberry Pi, tooling over serial port is not supported. The simplest solution is to use standard IP networking over Ethernet. This can be a direct connection between the PC and the Raspberry Pi, as long as the cable is twisted and the IP addressing is correct (e.g. manual IP addressing or DHCP server on the PC).
    Regarding "Connecting to a UART Device": This is meant for attaching and controlling serial devices from the Raspberry Pi, not for tooling connections between the Raspberry Pi and the PC.
    Hope this helps,
    -- Terrence

  • Problems with server certificate

    Hi,
    i am using Adobe Drive 5.0.2.16 in order to connect to AEM 6 through an SSL connection. According to the Adobe Drive Admin Manual (http://help.adobe.com/en_US/AdobeDrive/5.0/Adobe_Drive_Admin_Guide.pdf), I added the non-trusted certificate hierarchy to the cacerts file in C:\ProgramData\Adobe\CS5\jre\lib\security. Unfortunalty I still get an exception (see below) when connecting to the server.
    Strangely enough, if i write a small java application that connects to the server using the same JRE mentioned above, the connection can be established! Having a closer look to the content of my harddisk, I saw a second JRE that is obviously also related somehow to Adobe Drive: C:\Program Files (x86)\Common Files\Adobe\Adobe Drive 5\jre
    So, my questions are:
    - which JRE is used by Adobe Drive 5?
    - what could be the reason for the exception although the server certificates are added to (all existing) cacert files?
    Thank you in advance
    Holger
    Exception:
    com.adobe.drive.connector.api.exception.RemoteServerUntrustedCertificateException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target

    I'm glad I'm not the only one with this problem.  I posted a message here regarding this earlier today.  I'm now getting a -1004 error when I try.  I'm assuming it's something on Apple's side at this point.

  • Win2k3 AD problem with autoenrolled Server Certificate

    Hi there
    I was running into some problems using an SSL connection to our company active directory server on the win2k3 plattform. During the SSL Handshake, the AD sends his CertificateChain in which the Server Certificate has marked the alternateSubjectName as critical (inside it is actually the FQDN). Because the RFC says, that all extended fields marked as critical should be known and java 1.5 ssl implementation doesn't, the SSL connection will hang up before the handshake has been made.
    Because the AD's certificate was enrolled automatically and my administrator isn't willing to change the certificate, i hung on this problem now for several days.
    How can I avoid that this field is unknown an will generate an exception? Do I really have to implement my own PKIXCertPathChecker to do a workaround? Any suggestion is welcome.
    Ah and if someone is interested what I am doing: I am using Spring LDAP to do a usermanagement software which has the focus on creating, locking and deleting users. In advance it must be possible to set any password within an administrator account. Spring LDAP is built up on (as far as I know) JNDI.
    The field marked as critical is:
    [5]: ObjectId: 2.5.29.17 Criticality=true
    SubjectAlternativeName [
    [DNSName: server.domain.com]]and the exception (from the ssl debug log):
    http-10001-1, SEND TLSv1 ALERT:  fatal, description = certificate_unknown
    http-10001-1, WRITE: TLSv1 Alert, length = 2
    [Raw write]: length = 7
    0000: 15 03 01 00 02 02 2E                               .......
    http-10001-1, called closeSocket()
    http-10001-1, handling exception: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate contains unsupported critical extensions: [2.5.29.17]
    user.SaveAction:persistIfValid() - Unknown error while perstisting object:Unable to communicate with LDAP server; nested exception is javax.naming.CommunicationException: simple bind failed: server.domain.com:
    636 [Root exception is javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate contains unsupported critical extensions: [2.5.29.17]]

    hi adler_steven
    thanks for your advice. I already read those threads some days ago but nothing helped me. I still got the error because of this subjectAlternativeName field. I tried to write an own implementation of PKIXCertPathChecker which can handle the 2.5.29.17 extension. But I cannot hang in the code where i need it (only possible if I overwrite some JNDI classes which I try to avoid because of future updates!). My last hope is now to implement my own SSLSocketFactory.
    Or does someone of you know how to make an SSLContext static? ;-)
    [edit]
    Chronology of my SSL handshake:
    -- Client Hello
    -- Server Hello, Certificate, Certificate Request, Server Hello Done
    -- Client tries to read the Certificate chain from the server, fails because of unknown extension and sends back an Alert (Certificate Unknown) <-- which is a little bit confusing, because in my official exception is written as javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateException: Certificate contains unsupported critical extensions: [2.5.29.17]
    [edit]
    Edited by: AnAnAsbAnAnAshAkAr on Oct 11, 2007 8:55 AM

  • Java ME SDK 3.0 Problems

    I need to develop J2me (Midlet for graduation project)...I installed Java ME SDK 3.0 after installing JDK 6.0
    I was running Java ME SDK 3.0 and I faced some errors:
    An error: A java.io.IOException exception has occurred
    java.net.ConnectException:connection refused
    This error keeps poping up 100 times+ while the Java ME SDK is launching...
    After that when it launches the sample application don't run because of the following:
    Reference Problem:"CLDC Sun Java(TM) MicroEdition SDK 3.0EA" platform couldn't be found
    As a result I try to solve reference problem a pop up window appears saying:
    "Use java docs to register the API documentation for your JDK in the IDE
    Click Add Platform to register other Java SE and Java ME platform versions"
    I posted before at Nokia forums and got no useful answer so if any one want to know more ifo Please refer to:
    http://discussion.forum.nokia.com/fo...962#post731962

    Don't double post. I've removed the thread you started in the Java Programming forum with the identically same question.
    db

  • INSTALLING JAVA 2 SDK 1.4 PROBLEMS

    Hi !!!
    I am new to java and followed the installation notes Java 2 SDK standard edition to install this application. Well i have tried 10 times restalling this application I always get the same problem that is, when the application is uploaded I open it and a message prompts saying the files can not be extracted there is a corruption. I have even deleted the files from control panel and tried many time again keep getting same problem I have also downloaded the application from different sites.
    What do I do??? My start to java is hell!!
    Please some one help me!

    Make sure you are logged in as admin or equivalent (assuming you have NT/Win2k/XP) and see if that clears up the problem. If you keep getting this error even after downloading from multiple sites, it hints at a deeper problem...perhaps bad internet connection, or a virus. THOUSANDS of copies of this have been downloaded over time and if there was some major problem with it, more users would complain.

  • Java Server Threading Problems

    Cross-posted at: http://www.java-forums.org/networking/41574-server-threading-confusion.html with no answers as of this edit.
    I'm very new to networking in java, and it's been a few months since I last did any major programming. I decided to try out networking, and I'm beginning to get a feel for it, but I've jumped in to trying to make a server for a multiplayer game, and I've gotten a bit stuck about how to do it, specifically on how to use threads to take care of my clients, and still be able to keep track of the threads so I can have the server send out info to them about where characters are, when the threads should close because someone wants to log out, etc.
    If anyone could help me out that would be awesome :D
    Here's some code:
    import java.net.*;
    import java.io.*;
    public class GameThread extends Thread // this is the actual thread class I made
      public Socket socket;
      public DataInputStream in;
      public DataOutputStream out; // a socket and two I/O streams for sending ints
      public GameThread(Socket socket) // typical constructor for getting socket
        try
          this.socket = socket;
          in = new DataInputStream(socket.getInputStream());
          out = new DataOutputStream(socket.getOutputStream());
        catch(Exception e)
          e.printStackTrace();
      public Socket getSocket() // I don't believe this is ever used. Ignore it.
        return socket;
      public void print() // Used to make sure the thread is active/knows about the socket
        System.out.println("GameThread says: " + socket);
      public void run()
        while(true)
    }Here's the class I use to manage the threads, or, at least, where I attempt to do so.
    import java.io.*;
    import java.util.ArrayList;
    import java.net.*;
    public class Threader
      public ArrayList clients;
      public ArrayList<GameThread> threads; // GameThread is the thread class above
      public Threader()
        threads = new ArrayList<GameThread>(); //constructor for this arraylist
      public void updateClientCount(ArrayList<Socket> clients) // this method works
        this.clients = clients; // it's not the problem.
      public void openThreads() //Here's probably where problems begin
        if(clients.size() > threads.size()) // this is to make the threads arraylist
          int f = clients.size()-threads.size();//equal length compared to clients arraylist
          while(f > 1)
         threads.add(null);
         f--;
        if(clients.size() < threads.size()) //same as above, just if threads is bigger
          threads.subList(clients.size(),(threads.size()-1)).clear();
        for(int h=0;h<clients.size();h++) //Here: for each client spot
          if(threads.get(h) == null) //Threads is tested in that spot to see if there's
          {              // A thread there
         GameThread gt = new GameThread((Socket)clients.get(h));
         threads.add(gt); //and if there isn't then it makes one
         gt.start(); // and starts it, but I guess this isn't happening as I want
          } // it to because in the method below none of the GameThreads print socket info
      public void print() //used to make sure the Threader/GameThread(s) is getting the info
        for(int y = 0;y<clients.size();y++)
          System.out.println("Threader says: " + clients.get(y));
        for(int x = 0;x<threads.size();x++)
          threads.get(x).print();
    }If anyone could help me find what is going on, or maybe (probably) I'm going about making a server wrong (I have another class with a serversocket and all, but I don't believe there are any bugs in it so it isn't included in here), so if I could get help that would be awesome.
    Thanks guys!
    Edited by: 848780 on Mar 30, 2011 8:55 PM
    Edited by: 848780 on Mar 30, 2011 11:55 PM

    Your thread management is back to front. All you need is a new thread per client, started every time you accept a new Socket. When you do that, if you want to manage them, enter the new thread into a collection, and when it exits remove it. But you normally don't need to keep track of client threads. You may want to keep track of client Sockets, in which case you should maintain a collection of Sockets on the same basis.

  • Java ME SDK 3.4 problem running IMP-NG Midlets

    Hello!
    I downloaded and installed the Java ME SDK 3.4 and I'm having trouble running a IMP-NG JAD. I don't know if it's a environment problem or a SDK bug...
    If I make a JAD IMP-NG, I get a IllegalArgumentException when launching, even if we run using the Device Selector window, right-click on IMPNGDevice1. If I make it a IMP-1.0, it runs on simulator, but doesn't show in right-click on IMPNGDevice1... It seems to be checking the version (IMP-NG is 2.0, and simulator is 1.0?) but I don't see what's wrong.
    Thanks for any help!
    Stacktrace:
    Installing suite from: file:///C:/devel/ecl_ng2/workspace/Hello1/.mtj.tmp/emulation/Hello1.jad
    TRACE: <at java.lang.IllegalArgumentException>,
    java.lang.IllegalArgumentException
    - com.sun.midp.installer.Version.initFromComponents(), bci=149
    - com.sun.midp.installer.Version.<init>(), bci=22
    - com.sun.midp.installer.Version.createFromString(), bci=33
    - com.sun.midp.installer.Version.compare(), bci=6
    - com.sun.midp.installer.Installer.matchVersion(), bci=81
    - com.sun.midp.installer.Installer.isSupportedProfile(), bci=23
    - com.sun.midp.installer.Installer.matchProfile(), bci=212
    - com.sun.midp.installer.Installer.installStep10(), bci=19
    - com.sun.midp.installer.Installer.performInstall(), bci=188
    - com.sun.midp.installer.Installer.resumeInstallation(), bci=7
    - com.sun.midp.installer.MidpInstaller$StartAction.run(), bci=10
    - com.sun.j2me.security.AccessController.doPrivileged(), bci=12
    - com.sun.midp.installer.MidpInstaller$InstallThread.run(), bci=9
    - java.lang.Thread.run(), bci=5
    JAD
    MIDlet-Version: 1.0.0
    MIDlet-Vendor: MIDlet Suite Vendor
    MIDlet-Jar-URL: Hello1.jar
    MicroEdition-Configuration: CLDC-1.1
    MIDlet-1: Hello1,,mobi.v2com.zion.test.Hello1
    MicroEdition-Profile: IMP-NG-2.0
    MIDlet-Name: Hello MIDlet Suite
    Midlet
    package mobi.v2com.zion.test;
    import javax.microedition.midlet.MIDlet;
    import javax.microedition.midlet.MIDletStateChangeException;
    import com.oracle.util.logging.Level;
    import com.oracle.util.logging.Logger;
    public class Hello1 extends MIDlet {
      private Logger logger = Logger.getLogger(getClass().getName());
      public Hello1() {
      // TODO Auto-generated constructor stub
      protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
      // TODO Auto-generated method stub
      protected void pauseApp() {
      // TODO Auto-generated method stub
      protected void startApp() throws MIDletStateChangeException {
      logger.log(Level.INFO, "Hello1");
      System.out.println("Hello!");

    I had the same problem and I got it to work by removing the "-2.0" in MicroEdition-Profile line in JAD file "by hand":
    MicroEdition-Profile: IMP-NG
    But it's not possible to achieve this using the combo box to select the Microedition Profile. Only changing the file in text mode.

Maybe you are looking for