My cloudscape is wrong?

system:win2000 jre:1.4 j2sdkee 1.3.1
when i build a new database or open an exist database ,i receive:
Database access resulted in SQL exception:
No SQLState, Error code 0, Message:
Connection refused to host: localhost; nested exception is:
     java.net.ConnectException: Connection refused: connect
--------------------------------------------what can i do?? Thanks

Start your cloudscape server.
If started check your connection parameters.

Similar Messages

  • What's wrong with MyEJB? please!!

    What's wrong with my client code for lookup CMP EJB?
    i deployed a simple CMP EJB2.0 on j2ee server.
    JNDI Names
    Application
    component Type Component JNDI Name
    EJB StudentEJB myEJB
    files.Application.test.Ejb1
    General
    JAR File Name:ejb-jar-ic.jar JAR Display Name:Ejb1
    JNDI Names
    EJBs
    Component JNDI Name
    StudentEJB myEJB
    References
    Ref.Type Referenced By Reference Name JNDI Name
    Resource Ejb1[CMP] jdbc/Cloudscape
    javax.naming.NameNotFoundException: No object bound for java:comp/env
    at com.sun.enterprise.naming.java.javaURLContext.lookup(javaURLContext.java:116)
    at javax.naming.InitialContext.lookup(InitialContext.java:347)
    at client.testejb.main(testejb.java:14)
    testejb.java:
    try {
    Context ic = new InitialContext();
    Context myEnv = (Context)ic.lookup("java:comp/env");
    Object objref = myEnv.lookup("MyEJB");
    StudentHome home = (StudentHome)PortableRemoteObject.narrow(objref,com.test.StudentHome.class);
    Student stu = home.create("123400001111","Satori","Asfar");
    Student stu = home.findByPrimaryKey("12340001111");
    System.out.println(stu.getFirstName());
    } catch (Exception ex) {
    ex.printStackTrace();
    Could you tell me something about myEJB?
    Thanks in advance.

    Looks like your JNDI names do not match, you have myEJB
    in the description and MyEJB in the lookup. Is this just a typo for the example?

  • Error: Wrong number of arguments in method

    Hi all,
              I keep getting the above mentioned error when compiling simple JSPs with
              only a few lines of codes. Here are the log dump.
              Mon Aug 07 20:02:30 GMT+08:00 2000:<I> <ServletContext-General> file: init
              Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
              resource 'language.html' in document root 'C:\weblogic\myserver\public_html'
              Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
              resource 'top.html' in document root 'C:\weblogic\myserver\public_html'
              Mon Aug 07 20:02:30 GMT+08:00 2000:<E> <ServletContext-General> Cannot find
              resource 'language.html' in document root 'C:\weblogic\myserver\public_html'
              Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: init
              Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
              verbose initialized to: true
              Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
              packagePrefix initialized to: jsp
              Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
              compileCommand initialized to: C:/jdk1.2.2/bin/javac.exe
              Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
              srcCompiler initialized to weblogic.jspc
              Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
              superclass initialized to null
              Mon Aug 07 20:02:54 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
              workingDir initialized to: C:\weblogic\myserver\classfiles
              Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> *.jsp: param
              pageCheckSeconds initialized to: 1
              Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> *.jsp:
              initialization complete
              Mon Aug 07 20:02:55 GMT+08:00 2000:<I> <ServletContext-General> Generated
              java file: C:\weblogic\myserver\classfiles\jsp\helloworld.java
              Mon Aug 07 20:02:59 GMT+08:00 2000:<E> <ServletContext-General> Compilation
              of C:\weblogic\myserver\classfiles\jsp\helloworld.java failed:
              C:\weblogic\myserver\classfiles\jsp\helloworld.java:54: Wrong number of
              arguments in method.
              if (sci.isResourceStale("/helloworld.jsp", 933320916000L, "5.1.0
              Service Pack 4 06/29/2000 18:18:23 #74560")) return true;
              ^
              C:\weblogic\myserver\classfiles\jsp\helloworld.java:55: Wrong number of
              arguments in method.
              if (sci.isResourceStale("/dukebanner.html", 933321078000L, "5.1.0
              Service Pack 4 06/29/2000 18:18:23 #74560")) return true;
              ^
              2 errors
              java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[C:/jdk1.2.2/bin/javac.exe, -classpath,
              c:\weblogic\lib\weblogic510sp4boot.jar;c:\weblogic\myserver\User.jar;c:\webl
              ogic\myserver\Person.jar;c:\weblogic\myserver\TradingAccount.jar;c:\weblogic
              \myserver\uniquesequence.jar;c:\weblogic\myserver\stockbroker.jar;;C:\jdk1.2
              .2\jre\lib\rt.jar;C:\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\w
              eblogic\eval\cloudscape\lib\cloudscape.jar;c:\weblogic\lib\weblogic510sp4.ja
              r;c:\weblogic\license;c:\weblogic\classes;c:\weblogic\myserver\serverclasses
              ;c:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\tmp_deployments\ejbjar
              -10126.jar;C:\weblogic\lib\persistence\WebLogic_RDBMS.jar;C:\weblogic\myserv
              er\tmp_deployments\ejbjar-10125.jar;C:\weblogic\myserver\tmp_deployments\ejb
              jar-10124.jar;C:\weblogic\myserver\tmp_deployments\ejbjar-10123.jar;C:\weblo
              gic\myserver\tmp_deployments\ejbjar-10122.jar;C:\weblogic\myserver\tmp_deplo
              yments\ejbjar-10121.jar;C:\weblogic\myserver\servletclasses;C:\weblogic\myse
              rver\classfiles, -d, C:\weblogic\myserver\classfiles,
              C:\weblogic\myserver\classfiles\jsp\helloworld.java])
              at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
              a, Compiled Code)
              at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
              7)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :118)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :142)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:744)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:692)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:251)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              Mon Aug 07 20:02:59 GMT+08:00 2000:<E> <ServletContext-General> Servlet
              failed with Exception
              java.io.IOException: Compiler failed
              executable.exec([Ljava.lang.String;[C:/jdk1.2.2/bin/javac.exe, -classpath,
              c:\weblogic\lib\weblogic510sp4boot.jar;c:\weblogic\myserver\User.jar;c:\webl
              ogic\myserver\Person.jar;c:\weblogic\myserver\TradingAccount.jar;c:\weblogic
              \myserver\uniquesequence.jar;c:\weblogic\myserver\stockbroker.jar;;C:\jdk1.2
              .2\jre\lib\rt.jar;C:\jdk1.2.2\jre\lib\i18n.jar;C:\weblogic\classes\boot;C:\w
              eblogic\eval\cloudscape\lib\cloudscape.jar;c:\weblogic\lib\weblogic510sp4.ja
              r;c:\weblogic\license;c:\weblogic\classes;c:\weblogic\myserver\serverclasses
              ;c:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\tmp_deployments\ejbjar
              -10126.jar;C:\weblogic\lib\persistence\WebLogic_RDBMS.jar;C:\weblogic\myserv
              er\tmp_deployments\ejbjar-10125.jar;C:\weblogic\myserver\tmp_deployments\ejb
              jar-10124.jar;C:\weblogic\myserver\tmp_deployments\ejbjar-10123.jar;C:\weblo
              gic\myserver\tmp_deployments\ejbjar-10122.jar;C:\weblogic\myserver\tmp_deplo
              yments\ejbjar-10121.jar;C:\weblogic\myserver\servletclasses;C:\weblogic\myse
              rver\classfiles, -d, C:\weblogic\myserver\classfiles,
              C:\weblogic\myserver\classfiles\jsp\helloworld.java])
              at
              weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
              a, Compiled Code)
              at
              weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:200)
              at weblogic.servlet.jsp.JspStub.compilePage(JspStub.java, Compiled Code)
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:173)
              at
              weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:18
              7)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :118)
              at
              weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
              :142)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:744)
              at
              weblogic.servlet.internal.ServletContextImpl.invokeServlet(ServletContextImp
              l.java:692)
              at
              weblogic.servlet.internal.ServletContextManager.invokeServlet(ServletContext
              Manager.java:251)
              at
              weblogic.socket.MuxableSocketHTTP.invokeServlet(MuxableSocketHTTP.java:363)
              at weblogic.socket.MuxableSocketHTTP.execute(MuxableSocketHTTP.java:263)
              at weblogic.kernel.ExecuteThread.run(ExecuteThread.java, Compiled Code)
              I believe that it has got something to do with the configuration of the
              server and not the code in the JSPs. Have anyone encountered this error
              before? Pls advice thanx!
              Cheers,
              kianhui
              

    double d[] = new double[300];
    getMax(d);Pass the array, not an element in the array.

  • Cloudscape - JSP - Unable to create database CloudscapeDB

    I created a Cloudscape database in a Java program:
    try { 
    Class.forName(COM.cloudscape.core.JDBCDriver).newInstance();
         connection = DriverManager.getConnection(jdbc:cloudscape:CloudscapeDB;create=true);
    A CloudscapeDB directory is automatically created in the same directory as my
    Java program. I then ran cloudview -start from the DOS prompt, opened my database, created my tables and added data.
    In another Java program, I display the list of customers:
    public void displayCustomers(){
    try { 
    Class.forName("COM.cloudscape.core.JDBCDriver").newInstance();
    connection = DriverManager.getConnection(jdbc:cloudscape:CloudscapeDB;create=true);
         Statement s = connection.createStatement();
         ResultSet rs = s.executeQuery("SELECT * FROM customer");
    This Java program works fine, displays the data from the customer table.
    I then take this same code and put in into a JSP to display the list of customers to a web page and deploy my application using the Deployment tool:
    <%
    try {     
    Class.forName(COM.cloudscape.core.JDBCDriver);
         connection = DriverManager.getConnection(jdbc:cloudscape:CloudscapeDB;create=true);
    My getConnection() method throws the following SQL Error:
    SqlException Error Thrown Failed to create database 'CloudscapeDB'
    I am able to access the CloudscapeDB using the same driver and URL in the Database Tool but I don't know what I am doing wrong in my JSP.
    In the Deployment Tool, I have configured the Driver Class as COM.cloudscape.core.JDBCDriver and the JNDI Name as jdbc/CloudscapeDB and the JDBC URL as jdbc:cloudscape:CloudscapeDB;create=true. I am not sure I even needed to do this.
    Any idea why my JSP cannot create the CloudscapeDB? I believe the CLASSPATH is configured correctly because I am able to get access to the Cloudscape database in my Java program.
    Any help would be greatly appreciated.

    Hi, I saw your message in sun's forum. I am wondering how you g ot this issue resloved because I have a similar problem using Tomcat4.0 and cludscape 3.6. Would you please drop me a few lines and let me know your solution? I think it may be Tomcat configuration issue but just don't know how to fix it.
    Thanks in advance
    please reply to [email protected]
    I created a Cloudscape database in a Java program:
    try { 
    Class.forName(COM.cloudscape.core.JDBCDriver).newInsta
    ce();
    connection =
    =
    DriverManager.getConnection(jdbc:cloudscape:Cloudscape
    B;create=true);
    A CloudscapeDB directory is automatically created in
    the same directory as my
    Java program. I then ran cloudview -start from the
    DOS prompt, opened my database, created my tables and
    added data.
    In another Java program, I display the list of
    customers:
    public void displayCustomers(){
    try { 
    Class.forName("COM.cloudscape.core.JDBCDriver").newIns
    ance();
    connection =
    DriverManager.getConnection(jdbc:cloudscape:CloudscapeD
    ;create=true);
         Statement s = connection.createStatement();
    ResultSet rs = s.executeQuery("SELECT * FROM
    OM customer");
    This Java program works fine, displays the data from
    the customer table.
    I then take this same code and put in into a JSP to
    display the list of customers to a web page and deploy
    my application using the Deployment tool:
    <%
    try {     
    Class.forName(COM.cloudscape.core.JDBCDriver);
    connection =
    n =
    DriverManager.getConnection(jdbc:cloudscape:CloudscapeD
    ;create=true);
    My getConnection() method throws the following SQL
    Error:
    SqlException Error Thrown Failed to create database
    'CloudscapeDB'
    I am able to access the CloudscapeDB using the same
    driver and URL in the Database Tool but I don't know
    what I am doing wrong in my JSP.
    In the Deployment Tool, I have configured the Driver
    Class as COM.cloudscape.core.JDBCDriver and the JNDI
    Name as jdbc/CloudscapeDB and the JDBC URL as
    jdbc:cloudscape:CloudscapeDB;create=true. I am not
    sure I even needed to do this.
    Any idea why my JSP cannot create the CloudscapeDB? I
    believe the CLASSPATH is configured correctly because
    I am able to get access to the Cloudscape database in
    my Java program.
    Any help would be greatly appreciated.

  • UTF8, UTF-16 & Cloudscape

    Hi everyone,
    I have a problem when I'm trying to store and retrieve Big5 chars into Cloudscape
    (which claims to support Unicode just the Java does). The following is the steps:
    1. Prepare my Big5 chars
    2. Run native2ascii -encoding UTF-16 (UTF8 gives MalformedInputException)
    3. Running native2ascii -reverse perfectly reverses everything and I could see the Big5 chars.
    So I guess this should right.
    4. Inserted into Cloudscape by SQL: insert into theuser values('\uXXXX', 'elite02'); just to try out.
    SQL select shows ? though.
    5. I retrieve the String with normal rs.getString();
    6. I output the string to a file to check if it is correct by doing:
    new OutputStreamWriter() with UTF-16 (I got some other character), UTF8 (gives a ?) and even Big5 and I got crap.
    Correct me if I'm wrong but my rationale is:
    Java stores String as Unicode UTF-16 and since Cloudscape claims that I can just get
    the Unicode String without any manual conversion, logically my String should contain
    the right thing. Now when I output the String to file, wouldn't using the UTF-16 solve my
    problem? I mean since String is UTF-16 and my output is also UTF-16, right?
    Or do I still need to convert the String from Cloudscape to UTF8 (bear in mind this actually
    gives exception with native2ascii tool) or UTF-16 before I can output it to UTF-16 file?
    Or am I totally goofed up with these encoding stuff?
    thank you guys in advance!

    Hi,
    the -encoding paramter of native2ascii is the encoding of your sourcefile. (the targetfile is ASCII-encoded).
    So step 2 should be native2ascii -encoding Big5.Running native2ascii -reverse with the same encoding as in step 2 should always lead back to your original input, regardless of the -encoding parameter used (as long as it is the same).
    I dont know Cloudscape, but I guess inserting your Strings from Step 2 by a java-program should work.
    But you cant insert the values direct via SQL (because \uxxxx has only meaning in java).
    Regards
    Jan

  • Setting up connection pool for cloudscape 10 embedded database

    I got problem with setting connection pool via admin console for cloudscape 10 embedded in j2ee 1.4 (Application server 8.1), what im doing is:
    -in resources/jdbc/ConnectionPools i add a new pool
    - datasource classname i set up as: "org.apache.derby.jdbc.EmbeddedXADataSource"
    -resource type: "javax.sql.XADataSource"
    -DatabaseName: "jdbc:derby:D:\\Programowanie\J2EE\domains\domain1\config\notesData"
    -set no password and user, becouse i havet set this in database
    and when i ping to that datebase i got error:"Operation 'pingConnectionPool' failed in 'resources' Config Mbean."
    when i change Datasource Classname to: "org.apache.derby.jdbc.EmbeddedDataSource", this error occur:
    Operation 'pingConnectionPool' failed in 'resources' Config Mbean. Target exception message: Connection object cannot be null
    what im doing wrong? i look everywhere and i cant find solution to my problem...hope you can help me.
    Thanks,
    Krystian

    Amit wrote:
    >
    "whats are the settings (URL, driver, properties) required to set up a connection pool for DB2 on OS/390 ?I'm using "COM.ibm.db2.jdbc.app.DB2Driver" as DB2 driverHi. If you can successfully use that driver with one of it's simple
    JDBC example programs, then show me that example, at least the
    part that makes the connection, and I'll show you how to define a pool.
    Joe
    PS: Folks: BEA WebLogic is expanding rapidly, with both entry and advanced positions
    for people who want to work with Java, XML, SOAP and E-Commerce infrastructure products.
    We have jobs at Nashua NH, Liberty Corner NJ, San Francisco and San Jose CA.
    Send resumes to [email protected]

  • Cloudscape server!!

    Hi!!
    I'm trying to start a cloudscape server, but all the I get the following message:
    Exception in thread "main" java.lang.NoClassDefFoundError: COM/cloudscape/tools/sysinfo .
    I've checked the classpath and to me it seems correct.
    Does anyone know what I do wrong??

    Can you show us your CLASSPATH?

  • Cloudscape-Weblogic XA mismatch

    Hello,
    First, yes I know Cloudscape may not be the best database for production and
    XA, but anyway, I have to use it, and it supports XA.
    Now my question :
    I'm using WLS 6.1 SP1.
    I defined a Cloudscape XA pool which seems to initialize well (the server
    logs shows initial connections creations for the XA pool successfully). For
    this pool, the driver classname I use is COM.cloudscape.core.XADataSource.
    Over this pool I defined a Tx Data Source which some JNDI name, let's say
    "MyXADataSource".
    This works well and I can get and use connections from this "MyXADataSource"
    datasource while I use it as a javax.sql.DataSource (from a BMP for
    example).
    However this DataSource is not XA. I mean that it does not implement
    javax.sql.XADataSource (the concrete class is actually
    weblogic.jdbc.common.internal.RmiDataSource). This is a problem for example
    when a connector (let's say the BlackBoxXA sample connector) tries to use
    this datasource as an XA datasource, leading to a ClassCastException.
    So why the concrete weblogic.jdbc.common.internal.RmiDataSource class is not
    an XA class ? Did I configure something wrong or forget something ?
    Thanks for your help.
    Jérôme.

    Hello Slava,
    Thank for your reply.
    However as I said, this remains a problem when the BlackBoxXA connector
    tries to use this datasource as an XA datasource, because its implementation
    does an explicit cast to XADataSource (leading to a ClassCastException).
    Jérôme.
    "Slava Imeshev" <[email protected]> a écrit dans le message de news:
    3c412a2c$[email protected]..
    Hi,
    When you lookup for a datasource, you get an object
    implementing DataSource interface, not XADataSource.
    You don't have to cast it to XADataSource. If you need
    XA behavior, all you need is setting up a TXDataSource
    with a driver implementing XADataSource. weblogic will
    take care about the rest.
    Regards,
    Slava Imeshev
    "Jérôme Beau" <[email protected]> wrote in message
    news:3c3ec603$[email protected]..
    Hello,
    First, yes I know Cloudscape may not be the best database for productionand
    XA, but anyway, I have to use it, and it supports XA.
    Now my question :
    I'm using WLS 6.1 SP1.
    I defined a Cloudscape XA pool which seems to initialize well (the
    server
    logs shows initial connections creations for the XA pool successfully).For
    this pool, the driver classname I use is
    COM.cloudscape.core.XADataSource.
    >>
    Over this pool I defined a Tx Data Source which some JNDI name, let'ssay
    "MyXADataSource".
    This works well and I can get and use connections from this"MyXADataSource"
    datasource while I use it as a javax.sql.DataSource (from a BMP for
    example).
    However this DataSource is not XA. I mean that it does not implement
    javax.sql.XADataSource (the concrete class is actually
    weblogic.jdbc.common.internal.RmiDataSource). This is a problem forexample
    when a connector (let's say the BlackBoxXA sample connector) tries to
    use
    this datasource as an XA datasource, leading to a ClassCastException.
    So why the concrete weblogic.jdbc.common.internal.RmiDataSource class isnot
    an XA class ? Did I configure something wrong or forget something ?
    Thanks for your help.
    Jérôme.

  • Cloudscape making me suicidal

    I've been trying the whole week to get Cloudscape running. I'm about to through my computer out the window. I'm not one for giving up and really like finding the solutions to problems but this is ridiculous. I download Cloudscape from the IBM website and installed it. Now the hassles started. I realised I needed to setup the paths but I'm got so utterly confused between derby and cloudscape that it took me two days just to get that sorted out. I finally got the SimpleApp to work from the command prompt so I thought my problems were solved. WRONG!!!! I tried to now run the exact same program from JDev and it now gives me this error:
    SimpleApp starting in embedded mode.
    exception thrown:
    java.lang.ClassNotFoundException: org.apache.derby.jdbc.EmbeddedDriverI would probably have stopped trying but all the documentation on SDN has to do with cloudscape and so does the textbook I'm using. Please can some one just point me in the right direction.

    Do I need to do this in the command prompt window or can I program this into the code. I'm running the program from JDev. The driver that you mention, can you please elaborate a bit more. I'm really at a hairs end because following the tutorial just doesn't seem to help, it seems like you need to toy around with stuff behind the scene's before the program gets up and running.

  • Using Creator with Cloudscape.

    Anyone managed to use the CLoudscape database with Creator on Linux yet?
    I have followed the advice in Lance Andersens blog
    http://weblogs.java.net/blog/lancea/archive/2004/11/using_apache_de.html
    and put derby.jar,derbynet.jar,db2jcc.jar,db2jcc_license_c.jar in /Creator/SunAppServer8/domains/creator/lib/ext
    and created a .tpersistence.properties file in /Creator/SunAppServer8/domains/creator/config
    I created a datasource as in the tutorial Creating Database Server Types and Data Sources. Testing the connection sometimes works and sometimes fails. Every attempt to use the Cloudscape database with a program created using Creator with the embedded driver gives the following error
    SQLException: java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: Failed to start database '/home/johlan/CSSystemHome/testDB'.
    Trying to create a datasource for a network connection seems impossible as testing the connection gives the message
    wrong driver:com.ibm.db2.jcc.DB2Driver but this is the correct driver.
    Thanks in advance for any suggestions on how to get Creator to use the Cloudscape database.

    Thanks for the reply. I had looked at that thread while trying to get a connection before.
    What I have found is that using the normal Creator procedure of dragging a table onto the jsp page to produce a datasource and rowsets does not produce a working connection to Cloudscape as it does with Pointbase. I also wanted to use CachedRowSets, which does not seem easy in Creator.
    I have found I can connect to databases using the Cloudscape network server with connections made using DriverManager. Even so while I can read from the database using ResultSet and CachedRowSet these fail when trying to write to the database. Writing to the database from Creator produced web pages can only be done using Statements.
    As Cloudscape is written in Java I would have thought it worthwhile for the Creator team to make it easier for developers to use it with Creator.
    A quick working example is listed below. Any improvements welcomed. Don't forget to start the network server.
    John.
    package nodsattainnet;
    import javax.faces.*;
    import com.sun.jsfcl.app.*;
    import com.sun.rowset.CachedRowSetImpl;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.util.GregorianCalendar;
    import javax.faces.component.html.*;
    import javax.sql.rowset.CachedRowSet;
    public class Page1 extends AbstractPageBean {
        // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Definition">
        private int __placeholder;
        private HtmlForm form1 = new HtmlForm();
        public HtmlForm getForm1() {
            return form1;
        public void setForm1(HtmlForm hf) {
            this.form1 = hf;
        private HtmlOutputText outputText1 = new HtmlOutputText();
        public HtmlOutputText getOutputText1() {
            return outputText1;
        public void setOutputText1(HtmlOutputText hot) {
            this.outputText1 = hot;
        private HtmlCommandButton button1 = new HtmlCommandButton();
        public HtmlCommandButton getButton1() {
            return button1;
        public void setButton1(HtmlCommandButton hcb) {
            this.button1 = hcb;
        private HtmlOutputText outputText2 = new HtmlOutputText();
        public HtmlOutputText getOutputText2() {
            return outputText2;
        public void setOutputText2(HtmlOutputText hot) {
            this.outputText2 = hot;
        private HtmlCommandButton button2 = new HtmlCommandButton();
        public HtmlCommandButton getButton2() {
            return button2;
        public void setButton2(HtmlCommandButton hcb) {
            this.button2 = hcb;
        private HtmlMessages messageList1 = new HtmlMessages();
        public HtmlMessages getMessageList1() {
            return messageList1;
        public void setMessageList1(HtmlMessages hm) {
            this.messageList1 = hm;
        // </editor-fold>
        //database is located in /home/johlan/CSSystemHome
        private static String DBNAME = "mydb";
        //Cloudscape network server port
        private static int SERVER_PORT = 1527;
        //DB2 JDBC Universal Driver
        private static final String UNIVERSAL_DRIVER = "com.ibm.db2.jcc.DB2Driver";
        //URL to connect to Cloudscape network server using the DriverManager.
        private static final String CS_NS_DBURL = "jdbc:derby:net://localhost:"+SERVER_PORT+"/"
        +DBNAME+";retrieveMessagesFromServerOnGetMessage=true;deferPrepares=true;";
        //the username
        private static final String username = "myusername";
        //the password
        private static final String password = "mypassword";
        // </editor-fold>
        public Page1() {
            // <editor-fold defaultstate="collapsed" desc="Creator-managed Component Initialization">
            try {
            } catch (Exception e) {
                log("Page1 Initialization Failure", e);
                throw e instanceof javax.faces.FacesException ? (FacesException) e: new FacesException(e);
            // </editor-fold>
            // Additional user provided initialization code
        protected nodsattainnet.SessionBean1 getSessionBean1() {
            return (nodsattainnet.SessionBean1)getBean("SessionBean1");
        protected nodsattainnet.ApplicationBean1 getApplicationBean1() {
            return (nodsattainnet.ApplicationBean1)getBean("ApplicationBean1");
         * Bean cleanup.
        protected void afterRenderResponse() {
        public String button1_action() {
            // TODO Replace with your code
            Statement stmt = null;
            Connection conn = null;
            ResultSet rs = null;
            CachedRowSet crs;
            try {
                Class.forName(UNIVERSAL_DRIVER).newInstance();
                conn = java.sql.DriverManager.getConnection(CS_NS_DBURL,username, password);
                crs = new CachedRowSetImpl();
                try {
                    stmt = conn.createStatement();
                    String command = "SELECT lastname from users WHERE user_id = 1";
                    rs = stmt.executeQuery(command);
                    crs.populate(rs);
                finally {
                    rs.close();
                    conn.close();
                crs.first();
                outputText2.setValue(crs.getString("lastname"));
            catch (SQLException se) {
                // log error
                error("SQLException: " + se);
                log("Get Lastname SQLException: " + se);
            catch (ClassNotFoundException cnfe) {
                error("cnfe: " + cnfe);
                cnfe.printStackTrace();
            catch (InstantiationException ie) {
                error("ie: " + ie);
                ie.printStackTrace();
            catch (IllegalAccessException iae) {
                // log error
                error("IllegalAccessException: " + iae);
                log("Get Lastname IAException: " + iae);
            return null;
        public String button2_action() {
            // TODO Replace with your code
            Statement stmt = null;
            Connection conn = null;
            try {
                Class.forName(UNIVERSAL_DRIVER).newInstance();
                conn = java.sql.DriverManager.getConnection(CS_NS_DBURL,username, password);
                try {
                    PreparedStatement ps = conn.prepareStatement("INSERT INTO answers VALUES(?,?,?,?,?)");
                    ps.setInt(1, 2);
                    ps.setInt(2, 3);
                    ps.setInt(3, 4);
                    ps.setString(4, "MYAN");
                    ps.setDate(5, new java.sql.Date((new java.util.GregorianCalendar()).getTimeInMillis()));
                    ps.executeUpdate();
                finally {
                    conn.close();
            catch (SQLException se) {
                // log error
                error("SQLException: " + se);
                log("Answer Insert SQLException: " + se);
            catch (ClassNotFoundException cnfe) {
                error("cnfe: " + cnfe);
                cnfe.printStackTrace();
            catch (InstantiationException ie) {
                error("ie: " + ie);
                ie.printStackTrace();
            catch (IllegalAccessException iae) {
                // log error
                error("IllegalAccessException: " + iae);
                log("Get Lastname IAException: " + iae);
            return null;
    }

  • Macbook4,1 10.6.8 and firmware update - what went wrong?

    Macbook 4,1 2008 2.4Ghz (not unibody). I recently reformatted my hard drive and reinstalled 10.6 from the Retail DVD and all seemed to go well. The MB was working fine up to that point. I then set up the MB (network, date and time, etc.) and repaired permissions.
    I then checked Software Update and downloaded and installed the recommended updates to 10.6.8.
    Again, all seemed to go fine. System booted and I repaired Permissions again. I went to the Apple web site, a couple of other web sites, and Software Update found another update to install: Firmware. Though I don't remember what version.
    I clicked OK and it installed.
    Upon reboot, it seemed to install okay.
    But then I left the Macbook and it went into Sleep.
    I didn't come back to it again until the next day.
    When I pressed a key to wake it, I got what I now know is the screen that appears after you wake it from SAFE SLEEP. As per this Apple KB article: http://support.apple.com/kb/HT1757.
    And this is where the problems started.
    After the MB woke to the Safe Sleep screen, which shows the desktop a little "out of focus", the progress bars started filling in from left to right, BUT before they completed, the screen went BLACK.
    And it has had a problem with black screen ever since. I can boot the MB from internal or external HD or from DVD, and it seems to boot fine. Boot chime, Apple logo, spinning wheel, then at the point where it pauses, blue screen, then goes to desktop, instead the screen goes black.
    It finishes booting, but seems to go into Sleep.
    I can wake it by pressing a key, but the screen either comes on and goes black again after 10 seconds, or I get the Safe Sleep wake screen, and then it goes black after 10 seconds.
    And at boot or when waking the MB, the front LED flashes 5 times. There are no error beeps.
    I've tried changing RAM, but problems remain.
    So what's all this? Any ideas?
    The display doesn't seem dead, as it works to boot and wake. The MB works fine with external monitor.
    It's weird, but I can't think of anything apart from the Firmware update. The problems started right after installing it.
    Unfortunately, this model of Macbook doesn't have a Firmware Restoration image to download and burn to CD. It is the ONLY Mac at this point that doesn't have this!
    I called Apple support and even bought the 49 Euro Pay Per Incident service, which proved to be the same as throwing 49 Euro out the window. The only "technical" support they provided was to Reset the SMC, which you can find out about FOR FREE at the Apple website. And which I'd done anyway. I'd also reinstalled the MacOS. Don't want to beef too much, but sheesh, you've already got a Macbook that might need costly repairs, and they make you pay 49 Euro BEFORE they even ask you about the problem and what you've done to try to solve it. I'm tempted to say "ripoff". I mean, if all they can offer you is the advice to reset the SMC - which Apple offers for free at their website - then that's pretty poor service for 49 Euro, to say the least.
    Apart from the wasted 49 Euro, I'm pretty peeved about the Firmware update (or so it seems) wrecking a perfectly working 2008 Macbook. I don't know how to convince Apple of this, but I'm certainly going to try.

    Thanks for the reply.
    Re. the Displays setting, the Macbook display isn't recognized and mirroring isn't an available option.
    I've scoured the net and the idea of replacing the PRAM battery may be something to try. I read a post by a guy with a Macbook logic board screwed up by a Firmware update, which he solved by replacing the PRAM battery, as when you disconnect it you reset the logic board.
    Which capacitor?
    No luck so far with talking to Apple. I will try to get hold of someone a little more tech savvy and/or in a position of authority, as it seems that the Firmware is the culprit. Obviously a million other things could go wrong with a Macbook, but given the timing here it looks like the Firmware. Firmware updates can and occasionally do screw up a computer, as most manufacturers will warn you before you apply the update: PC makers, printer makers, etc. And they probably warn you that it's all your responsibility if anything goes wrong. But re. the Apple Firmware update:
    1) it came thru Software Update
    2) there was no warning
    3) to make things worse, there's no Firmware Restoration image that I can burn to a CD to reflash the logic board: this is the only Apple computer that doesn't have a Firmware Restoration option
    I'll try to get thru to a manager and convince him/her that the firmware may have been the cause.
    Do you think an authorized Apple tech might have access to some way to do a firmware restoration? Something not avaiable to mere mortals? Because if not, the only solution looks like a new logic board.

  • OEPE causes Eclipse Kepler to start with wrong workspace, overrides Eclipse's workspace configuration

    I'm a new OEPE user, and found that after installing it, Eclipse (Kepler) now starts up with the wrong workspace every time. I have to explicitly do File > Switch Workspace... to get Eclipse to restart with the correct workspace. Also, the workspace I want to use is the only one listed in the Workspaces preferences panel (Window > Preferences > General > Startup and Shutdown > Workspaces). So I can't figure out why Eclipse is using the wrong workspace, and why it's even finding this wrong one.
    I found that many other users of OEPE with Kepler are having this same problem:
    Eclipse Community Forums: Eclipse Platform &amp;raquo; Kepler: On start up, I no longer get prompted for workspace locat…
    And this sounds curiously like this old problem reported right here on the OTN Community site:
    https://forums.oracle.com/thread/2191740
    Any suggestions for how to get around this? I assume this is a bug, but don't know the correct process for reporting OEPE bugs.

    77e559c0-cd28-48cd-916f-3f755e9683b5 wrote:
    Hi.
    I suspect that some action by the OEPE code somehow modifies the OSGi Cache so that it no longer asks you what workspace you'd like to use (and forces usage of the workspace in top user directory.)  I found that if you put in "-clean" in your eclipse.ini, then you get asked what workspace you'd like to use.  This flag clears out the OSGi cache (hence my theory that it is this cache that is messed up)
    That said, there are arguments for not doing this all the time.  See this discussion: java - How to run eclipse in clean mode? and what happens if we do so? - Stack Overflow
    Finally, I suspect you have another workspace on your system now.  Presuming you are on a PC, go to your user dir - I'd wager there is a "workspace" dir there now.  That is where OEPE wants to work.
    Good Luck!
    OEPE should be able to work with any workspace; it has in the past!  If a specific workspace is required with this release, that is a step backward in my opinion.  That said, if that is the direction of the product, so be it.  I find it hard to believe that is the direction of the product, however!

  • Flash 12.0.0.77 plugin installs to wrong folder

    In Vista x64, using either Firefox 28 or Firefox 24.4 ESR, the plugin installer (one downloaded from Adobe distribution) installs the 32 bit .dll file to \system32\macromedia\flash\ folder;
    installs the 64 bit .dll to:  \sysWOW64\macromedia\flash\  folder.  So, they're exacly reversed.
    I uninstalled it completely - went well.  Then removed 1 remaining file in one of the above paths, then reinstalled.  Did the same thing.
    Before I did all this - I was *very sporadically* seeing the FlashPlayerPlugin_12_0_0_77.exe file, running (kinda "sitting") in background, in task manager.  It never came to foreground w/ a UI, asking for anything.  Couldn't figure out what it was, until started looking in the installation folders.
    That's what lead to discovery the files were in wrong folders.
    Anyone heard of this?
    BTW, "Nayana" of Adobe Support chat, is a few bricks shy of a load.  Or I am.  I couldn't create an acct for forums.  She kept saying, you don't need an acct - "just post your question.  Other people will answer it."

    EDIT:  Seems there's no error in Flash installing to wrong folders, only error in my brain.  Why didn't someone stop me from embarrassing myself?
    System32 (in a 64 bit OS / architecture) is for 64 bit drivers, files; SysWOW64 is for 32 bit apps running in 64 bit OS.
    https://en.wikipedia.org/wiki/WoW64
    WoW64 (Windows 32-bit on Windows 64-bit) is a subsystem of the Windows operating system capable of running 32-bit applications and is included on all 64-bit versions of Windows
    Also, http://www.samlogic.net/articles/32-64-bit-windows-folder-x86-syswow64.htm (section on SysWoW64)
    End Edit.
    Thanks for info on attaching images.  A bit different than most forums.  There's no "preview post" before submitting?
    Screenshots of the 2 flash folder contents.
    NOTE:  I attached full FlashInstall.log earlier.  I opened the 1.25 MB (text) file in an editor - copied contents to clipboard > paste to forum reply screen.  Immediately locked up Firefox like a big dog.  Couldn't perform any functions in Fx - not even reload or close browser.  At same time, Fx memory use was continually climbing; to nearly 2 GB when I killed it.  Won't make that mistake again.
    Been many yrs since Fx locked up, doing anything.  That aside, Adobe is definitely "different" than most forums.  Almost like a person w/ no $ to use one of the many forum softwares available.
    Most recent Flash installation logs.
    C:\Windows\SysWOW64\Macromed\Flash\FlashInstall.log:
    =O====== M/12.0.0.77 2014-03-27+18-59-59.282 ========
    0000 [I] 00000010 "C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_12_0_0_77_Plugin.exe" -maintain plugin
    0001 [W] 00001015 C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_12_0_0_77_Plugin.exe 5
    0002 [W] 00001015 C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_12_0_0_77_Plugin.exe 5
    0003 [W] 00001037 Software\Microsoft\Windows\CurrentVersion\RunOnce/FlashPlayerUpdate 2
    0004 [W] 00001037 Software\Macromedia\FlashPlayerPlugin/ 2
    0005 [W] 00001037 Software\Macromedia\FlashPlayer/SwfInstall 2
    0006 [W] 00001021
    0007 [W] 00001036 Software\Macromedia\FlashPlayerActiveX/PlayerPath 2
    0008 [W] 00001036 Software\Macromedia\FlashPlayerPlugin/PlayerPath 2
    0009 [W] 00001036 Software\Macromedia\FlashPlayerActiveX/PlayerPath 2
    0010 [W] 00001036 Software\Macromedia\FlashPlayerPlugin/PlayerPath 2
    0011 [W] 00001037 Software\Microsoft\Windows\CurrentVersion\Control Panel\Extended Properties\System.ControlPanel.Category/C:\Windows\SysWOW64\FlashPlayerCPLApp.cpl 2
    0012 [W] 00001036 Software\Macromedia\FlashPlayerActiveX/PlayerPath 2
    0013 [W] 00001036 Software\Macromedia\FlashPlayerPlugin/PlayerPath 2
    0014 [W] 00001036 Software\Mozilla\Firefox\extensions/Plugins 2
    0015 [W] 00001036 Software\Mozilla\Mozilla Firefox\extensions/Plugins 2
    0016 [W] 00001036 Software\Mozilla\Mozilla Thunderbird\extensions/Plugins 2
    0017 [W] 00001036 Software\Mozilla\Thunderbird\extensions/Plugins 2
    0018 [W] 00001036 Software\Opera Software/Last CommandLine 2
    0019 [W] 00001036 Software\Opera Software/Last CommandLine 2
    0020 [W] 00001036 Software\Opera Software/Plugin Path 2
    0021 [W] 00001036 Software\Opera Software/Plugin Path 2
    0022 [W] 00001015 C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_12_0_0_77_Plugin.exe 5
    0023 [W] 00001015 C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_12_0_0_77_Plugin.exe 5
    0024 [I] 00000011 1
    0025 [I] 00000012
    =X====== M/12.0.0.77 2014-03-27+19-00-34.066 ========
    =O====== M/12.0.0.77 2014-03-27+19-15-43.835 ========
    0000 [I] 00000010 "E:\DOWNLOADS\Software\Multi Media\Browser PLUGINS\Flash Player\Flash Player Fx\install_flash_player_12.0.0.77_plugin002.exe"
    0001 [W] 00001036 Software\Macromedia\FlashPlayerPlugin/Version 2
    0002 [W] 00001036 Software\Macromedia\FlashPlayerPlugin/PlayerPath 2
    0003 [W] 00001036 Software\Macromedia\FlashPlayerPlugin/Version 2
    0004 [W] 00001036 Software\Macromedia\FlashPlayerPlugin/PlayerPath 2
    0005 [I] 00000011 1
    0006 [I] 00000020 C:\Windows\SysWOW64\FlashPlayerCPLApp.cpl
    0007 [W] 00001037 SOFTWARE\MozillaPlugins\@adobe.com/FlashPlayer/ 2
    0008 [W] 00001037 SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Flash Player Plugin/ 2
    0009 [W] 00001036 Software\Mozilla\Firefox\extensions/Plugins 2
    0010 [W] 00001036 Software\Mozilla\Mozilla Firefox\extensions/Plugins 2
    0011 [W] 00001036 Software\Mozilla\Mozilla Thunderbird\extensions/Plugins 2
    0012 [W] 00001036 Software\Mozilla\Thunderbird\extensions/Plugins 2
    0013 [W] 00001036 Software\Opera Software/Last CommandLine 2
    0014 [W] 00001036 Software\Opera Software/Last CommandLine 2
    0015 [W] 00001036 Software\Opera Software/Plugin Path 2
    0016 [W] 00001036 Software\Opera Software/Plugin Path 2
    0017 [I] 00000014 C:\Windows\SysWOW64\Macromed\Flash\NPSWF32_12_0_0_77.dll
    0018 [I] 00000015 C:\Windows\SysWOW64\Macromed\Flash\FlashUtil32_12_0_0_77_Plugin.exe
    0019 [I] 00000024 C:\Windows\SysWOW64\Macromed\Flash\plugin.vch
    0020 [I] 00000017 C:\Windows\SysWOW64\Macromed\Flash
    0021 [I] 00000022 C:\Windows\SysWOW64\Macromed\Flash\FlashPlayerPlugin_12_0_0_77.exe
    0022 [I] 00000019 C:\Windows\SysWOW64\FlashPlayerCPLApp.cpl
    0023 [I] 00000021 C:\Windows\SysWOW64\Macromed\Flash\FlashPlayerUpdateService.exe
    =X====== M/12.0.0.77 2014-03-27+19-16-11.879 ========

  • Importing to AE files - goes to wrong folder

    I looked in the AE FAQ, didn't see the answer to my question, so here goes.
    I am using AE with editing video, meaning I only use AE for some basic things. This is one of those times where my lack of knowledge is driving me mad.
    When I went to import a clip, AE directs me to a folder from an old project. This happened once before, and I fixed it, but can't remember what I did. Any help would be appreciated, as I hate navigating around to a new folder all the time. I am obviously doing something wrong with the preference, workflow, or both.
    Cheers,
    Douglas

    You're doing nothing wrong. AE will remember your new folder after you have quit and re-launched it. Ages old design flaw in the way it handles this...
    Mylenium

  • IPhone Deletes Exchange Emails To Wrong Folder

    Hello all!
    I have a Microsoft Exchange mail account setup on my iPhone 4 (iOS 6.1) which works wonderfully, short of one aspect:  Emails deleted from my phone do not go to the accounts standard 'Trash' folder, but to a different 'Deleted' folder.  I can see no way to change this setting.  Any ideas?

    Thanks Templeton.  This is the only definitive answer I've found anywhere.  Turns out my iPhone was correct and my other email clients are sending to the wrong folder!

Maybe you are looking for