Capture-schema issues!!!

I am trying to capture the schema details from pointbase db that come bundled with J2ee 1.4
I am running into :-
D:\>D:\appserver\Sun\bin\capture-schema -dburl jdbc:pointbase:server://localhost
:9092/vinman -schemaname vinman -username apps -password apps -driver com.pointb
ase.jdbc.jdbcUniversalDriver -table CustomerBean -out CustomerBean.dbschema
using dburl: jdbc:pointbase:server://localhost:9092/vinman
using username: apps
using password: apps
using driver: com.pointbase.jdbc.jdbcUniversalDriver
using schemaname: vinman
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)
at java.sql.DriverManager.getConnection(DriverManager.java:171)
at com.sun.forte4j.modules.dbmodel.jdbcimpl.ConnectionProvider.<init>(Co
nnectionProvider.java:46)
at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSch
ema.java:120)
Exception in thread "main" java.lang.NullPointerException
at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSch
ema.java:177)
Can someone please tell what I am doing wrong?
Thanks
Vineeth

Looks like a database/SQL driver issue
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(DriverManager.java:532)

Similar Messages

  • Java.lang.NullPointerException when capture schema

    When I try to capture schema from MySQL (WIN) to Oracle 10G R2 (unix), I have a exeption error: java.lang.NullPointerException
    The tables are captured in the repository but columns and others objects don't.
    The last line in the java log is:
    unnable.run(AbstractMigrationProgressRunnable.java:159)
    at oracle.dbtools.migration.workbench.core.ui.MigrationProgressBar.run(M
    igrationProgressBar.java:532)
    Message was edited by:
    user567049

    I have also encountered same issue. Please let me know the solution in case you find it.
    In fact after configuiring Oracle files as per the document provided at Oracle OTN site 'Collaboration handbook', I am unable to connect OID. As per log it says
    2003/04/01:20:37:58[Oidmon]: Unable to connect to database, will retry after 20 sec
    2003/04/01:21:20:21Starting Monitor Process, PID=2920
    2003/04/01:21:20:21ORACLE_SID not set, setting to iasdb
    2003/04/01:21:41:22Failed to fetch Process Table. ORA-12571: TNS:packet writer failure
    I checked Listener, which was found ok, then I checked TNSPING, which executed ok.
    I have dowloaded documents troubleshooting OID, but no success. The document itself says that architecture of OID is fairly complex and the log does not suggest much insight.
    Any solution?
    Regards,
    Vipul

  • CMP with Oracle 9i, Sun Java Sys App Serv 8.2 and J2EE1.4 (capture-schema)

    while building Entity bean with Container managed persistence
    we will create a database schema file, which will allow us to map fields
    from the enterprise beans to columns in the database tables created.
    For creating database schema file using Sun java System Application Server 8.2 and oracle9i database for j2ee1.4, i issued the following command at the command prompt.
    F:\j2eetutorial14\examples\ejb\cmproster>capture-schema -dburl jdbc:oracle:thin:@127.0.0.1:1521:oraglo -username scott -password tiger -table LEAGUE -table PLAYER -table TEAM -table TEAM_PLAYER -schemaname scott -driver oracle.jdbc.driver.OracleDriver -out build/cmproster.dbschema
    The above command gives the following error message. How do i debug this error. Thanks in advance
    using dburl:jdbc:oracle:thin:@127.0.0.1:1521:oraglo
    using username:scott
    using password:tiger
    using driver:oracle.jdbc.driver.OracleDriver
    using schemaname:scott
    using output file:build/cmproster.dbschema
    Capturing schema:scott
    JDO71101: Cannot access table LEAGUE.
    JDO71101: Cannot access table PLAYER.
    JDO71101: Cannot access table TEAM.
    JDO71101: Cannot access table TEAM_PLAYER.
    JDO71102: No valid tables requested. No schema file created

    how to provide the JNDI name in Sun Java Application Server
    Please do the favour
    Please reply to [email protected]

  • Capture-schema and Oracle

    I am trying to run capture-schema on command line with Oracle and am getting the following error:
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java 532)
    I have set the CLASSPATH to /u01/app/oracle/8.1.7/jdbc/lib/classes12.zip
    Running utility as:
    ./capture-schema -dburl jdbc:oracle:thin:@boxname:1521:sid -username myname -password mypassword -driver oracle.jdbc.driver.OracleDriver -schemaname SchemaName -table MyTable -out /usr/tmp/File.dbschema
    I know it is picking up the Oracle in classpath since if I remove the classes12.zip It complains that it can't find the oracle.jdbc.driver.OracleDriver.
    Anyone know what I'm missing here?

    Hi, I have captured the schema file and stored it at mytest.dbschema in the src directory for my classes. I can see that the file is a part of the ejb.jar file and the sun-cmp-mappings.xml file the schema is defined as "mytest".
    When I try to deploy the jar file, I get an error stating the following:[05/Oct/2004:15:45:52] SEVERE ( 412): JDOCodeGenerator: Caught a RuntimeException :
    java.lang.RuntimeException: Could not find schema file mytest on classpath EJB CL:
    [com.iplanet.ias.loader.EJBClassLoader$URLEntry@1d626a4, com.iplanet.ias.loader.EJBClassLoader$URLEntry@82f392]
    Does anyone have any idea where I am supposed to put that file and also to which classpath is the compiler is refering? I assumed that since it is a part of the ejb.jar file, I would not have to specify a path to the file.
    Thanks,
    WPM

  • Capture-schema with sybase

    I tried to do the following to create a database schema
    F:\Sun\AppServer7\bin>capture-schema -dburl jdbc:sybase:Tds:3.70.201.88:20000 -username sa -password "" -driver com
    .sybase.jdbc2.jdbc.SybDriver -schemaname ims -table users -out userSchema.dbschema
    using driver: com.sybase.jdbc2.jdbc.SybDriver
    using dburl: jdbc:sybase:Tds:3.70.201.88:20000
    using username: sa
    using password:
    using schemaname: ims
    Capturing schema: ims
    java.sql.SQLException: JZ0SJ: Metadata accessor information was not found on this database. Please install the requ
    ired tables as mentioned in the jConnect documentation.
    at com.sybase.jdbc2.jdbc.ErrorMessage.raiseError(ErrorMessage.java:436)
    at com.sybase.jdbc2.jdbc.MdaManager.getMetaDataAccessor(MdaManager.java:292)
    at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getMetaDataAccessor(SybDatabaseMetaData.java:2231)
    at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getMetaDataAccessor(SybDatabaseMetaData.java:2216)
    at com.sybase.jdbc2.jdbc.SybDatabaseMetaData.getUserName(SybDatabaseMetaData.java:214)
    at com.sun.forte4j.modules.dbmodel.jdbcimpl.SchemaElementImpl.<init>(SchemaElementImpl.java:71)
    at com.iplanet.ias.tools.forte.ejb.cmp.schema.CaptureSchema.main(CaptureSchema.java:108)
    Schema captured
    Saving schema ...
    A schema does get created, but does not contain information about the table.
    Is this file absolutely necessary to deploy a CMP bean? Also is sun-cmp-mappings.xml file necessary? Can this
    information not be given in sun-ejb-jar.xml file.

    Short answers:
    1. The dot-dbschema file is critical to deployment and execution.
    2. The sun-cmp-mappings.xml file is critical to deployment and execution.
    3. Yes, it could be given in the sun-ejb-jar.xml file AND
    No, it is not possible to give this information in the sun-ejb-jar.xml file as the file is currently specified and the implementation is currently architected.

  • Problems with capture-schema

    I'm working on setting up a CMP managed entity bean using the pointbase server included with the j2ee download. I'm having problems getting the "capture-schema" utility to work. Each time I run it, I get the following:
    java.sql.SQLException: No suitable driver
    at java.sql.DriverManager.getConnection(DriverManager.java:532)
    at java.sql.DriverManager.getConnection(DriverManager.java:171)
    at com.sun.forte4j.modules.dbmodel.jdbcimpl.ConnectionProvider.<init>(ConnectionProvider.java:46)
    at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSchema.java:120)
    Exception in thread "main" java.lang.NullPointerException
    at com.sun.jdo.api.persistence.mapping.ejb.CaptureSchema.main(CaptureSchema.java:177)
    I'm using "com.pointbase.jdbc.jdbcUniversalDriver" as the driver name.
    I have written a test class of my own which successfully loads the driver and connects to the database, but for some reason capture-schema doesn't seem to find the driver. Any thoughts or solutions would be appreciated!
    ~Howard

    Fixed it. My classpath was wrong. Works great now!

  • Capture-schema with ASE 12.0

    I get the following error if I try to run capture-schema
    java.sql.SQLException: JZ0SJ: Metadata accessor information was not found on this database
    Can anyone tell how to go about solving this?

    Hi,
    The message indicates that you do not have access to the DatabaseMetadata information which jConnect requires.
    This can happen for 3 reasons:
    - The scripts where not installed on the server. You can find these in $JDBC_HOME/sp. There is specific scripts for each version of ASE or ASA.
    - You have installed the scripts previously but they are out of date for the version of jConnect you are using.
    - You installed the scripts as a user other than dbo (usually sa for ASE or DBA for ASA) and the login you are using does not have access. You should also install these scripts as dbo.
    The scripts and be installed via isql for ASE or dbisql for ASA.
    Regards,
    Lance

  • Capture-schema.bat

    Hi,
    I am writing a entity bean and trying to get the database schema using to capture-schema.bat. I am passing all parameters including -schemaname to capture-schema.bat.
    In the output file, there is no information regarding any tables at all. Is that right? When I try to deploy the bean using the deploy tool, In the Primary Table for bean, there are no database tables displayed and I am unable to do the mappings.
    Can anyone tell me where I am going wrong. The capture-schema result is as follows -
    <?xml version="1.0" encoding="UTF-8" ?>
    <OBJECT CLASS="com.sun.forte4j.modules.dbmodel.SchemaElement" ID="com.sun.forte4j.modules.dbmodel.SchemaElement-751695075">
    <impl>
    <OBJECT CLASS="com.sun.forte4j.modules.dbmodel.jdbcimpl.SchemaElementImpl" ID="com.sun.forte4j.modules.dbmodel.jdbcimpl.SchemaElementImpl9532399">
    <tables>
    <OBJECT CLASS="com.sun.forte4j.modules.dbmodel.jdbcimpl.DBElementsCollection" ID="com.sun.forte4j.modules.dbmodel.jdbcimpl.DBElementsCollection32794782">
    <owner>
    <OBJECT REFERENCE="com.sun.forte4j.modules.dbmodel.jdbcimpl.SchemaElementImpl9532399"/>
    </owner>
    <_elms>
    <OBJECT/>
    </_elms>
    <_template>
    <ARRAY SIZE="0" CLASS="PRIMITIVE" ROWCLASS="com.sun.forte4j.modules.dbmodel.TableElement">
    </ARRAY>
    </_template>
    </OBJECT>
    </tables>
    <_name>
    <OBJECT CLASS="com.sun.forte4j.modules.dbmodel.DBIdentifier" ID="com.sun.forte4j.modules.dbmodel.DBIdentifier22201561">
    <name>ajax</name>
    </OBJECT>
    </_name>
    <_driverVersion>9.2.0.1.0</_driverVersion>
    <_catalog>
    <OBJECT CLASS="com.sun.forte4j.modules.dbmodel.DBIdentifier" ID="com.sun.forte4j.modules.dbmodel.DBIdentifier16359413">
    <name></name>
    </OBJECT>
    </_catalog>
    <element>
    <OBJECT REFERENCE="com.sun.forte4j.modules.dbmodel.SchemaElement-751695075"/>
    </element>
    <_databaseProductVersion>Oracle9i Release 9.2.0.1.0 - Production
    JServer Release 9.2.0.1.0 - Production</_databaseProductVersion>
    <_driver>oracle.jdbc.OracleDriver</_driver>
    <_databaseProductName>Oracle</_databaseProductName>
    <_schema>
    <OBJECT CLASS="com.sun.forte4j.modules.dbmodel.DBIdentifier" ID="com.sun.forte4j.modules.dbmodel.DBIdentifier7652266">
    <name>ajax</name>
    </OBJECT>
    </_schema>
    <_url>jdbc:oracle:thin:@90.90.90.200:1521:mmp</_url>
    <_driverName>Oracle JDBC driver</_driverName>
    <_username>AJAX</_username>
    </OBJECT>
    </impl>
    <versionNo>2</versionNo>
    </OBJECT>
    Thanks in advance.
    Regards.

    Hi,
    I have all necessary tables in the database already.
    The exact command i give is below -
    capture-schema -username ajax -password ajax -url jdbc:oracle:thin:@90.90.90.200:1521@mmp -driver oracle.jdbc.OracleDriver -schemaname ajax -tablecustomers -out c:\dbshcema\customers
    If i give a space b/w -table and customers like "-table customer" the command will not recognize the table name and gives an error. So i have to give it as -tablecustomers. 90.90.90.200 is where my oracle database is residing and the user ajax has all privileges, dba rights, etc. capture-schema also requires me to give the schemaname for oracle databases.
    I tried again few times, but no luck. The output still does not contain any table information/schema at all.
    Thanks a lot,
    Regards.

  • CMP and capture-schema problems

    I am trying to deploy a CMP on Sun App Server 8, and I'm having a few problems. I am quite new to both CMP and Sun App Server 8.
    I've created a simple table Room in mySQL DB, containing only id (varchar) and description (varchar). I'm running this command to capture the table schema
    capture-schema -username username -password pwd -dburl jdbc:mysql://localhost/test -driver com.mysql.jdbc.Driver -out test.dbschema
    Do I need to enter the -schemaname and -table parameters as well? I'm assuming that since the url is pointing directly to the test schema in mySQL and it only contains the room table, I don't need these 2 parameters.
    test.dbschema gets generated, but when I use the deployment tool and create the database mappings to the entity bean using this schema file, no mappings are created.
    Any help?

    Hello,
    I have similar problem and I'm really confused about it.
    Working with:
    Java System Application Server Platform Edition 8.1 2005Q1 UR1
    mysql DataSource and Container Managed Persistence
    mysql-connector-java-3.0.8-stable-bin.jar
    I have problem with deploy:
    Fatal Error from EJB Compiler -- JDO74025: JDOCodeGenerator: Caught an Exception validating CMP bean 'Sets' in application 'isvl' module 'isvl-EJBModule': JDO72335: If the table sets for the bean corresponding to the generated class isvl.model.set.SetBean470758938_JDOState is mapped as the primary table, it must have a primary key.Choose a different primary table or verify that the contents of the schema file are correct.
    Choose a different primary table or verify that the contents of the schema file are correct. at com.sun.ejb.codegen.CmpCompiler.compile(CmpCompiler.java:274) at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:615) at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:563) at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployApp(EJBCompiler.java :340) at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:209) at com.sun.enterprise.deployment.backend.AppDeployer.runEJBC(AppDeployer.java:284) at com.sun.enterprise.deployment.backend.AppDeployer.deploy(AppDeployer.java:176) at com.sun.enterprise.deployment.backend.AppDeployer.doRequestFinish(AppDeployer.j ava:107) at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:146) at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPh ase.java:71) at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeplo ymentService.java:633) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentSe rvice.java:188) at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentSe rvice.java:520) at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:143) at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:172)
    Have you seen this problem?
    Thanks.

  • Capture-schema does not work properly

    The command line tool "capture-schema" produces invalid schema files (with Oracle), as obscure exceptions are thrown at runtime. The wizard integrated in Forte does a better job. Can any changes be made to the setup, so that capture-schema uses the classes underlying Forte?
    Platform: Sun ONE AppServer 7 beta 2, Win 2000, Oracle 9.0.1.

    I have what seems to be exactly the same problem, using an Informix database with their JDBC driver. When I examinded the schema file produced, I found that column references in at least one table was pointing into columns defined in other, completely unrelated tables. By changing the order of the tables listed with the -table option, the problem moved to another table.
    I am currently evaluating Sun ONE as an alternative to Borland Enterprise Server, and can't get any further without some fix. Our database consist of about 800 tables. I only capture the schema for the entity beans that are used in one EAR module, which is usually around 20, but the format of the schema file does not make it easy to examine it and fix it by hand.
    BTW, capturing from Forte is not an option. We have a very complex build system based on Ant, which requires the capturing to be done by some command line utility.
    Please help! Where can I get a working capture-schema?!

  • FCP Capturing Aliasing Issues

    I am having issues capturing footage of my PV-GS500. I recently moved from Adobe Premiere Pro to FCS, and I did not have this problem whatsoever capturing clean footage from this same camera.
    I am on a Macbook Pro 2gb DDR2, 2.33ghz Core2Duo. My capture scratch is a 120gb external drive running on firewire 9pin.
    Sequence settings: 720x480 ntsc dv 3:2
    square pixel aspect anamorphic
    no field dominance
    29.97 editing time base
    dv/dvcpro ntsc compressor
    Capture Preset: 720x480 ntsc dv 3:2 anamorphic 16x9
    compressor dv/dvcpro ntsc 29.97
    device control on firewire NTSC default
    Please help, if you could help trouble shoot this if you havent seen this problem or need more details just ask

    firstly, we are looking at a screen shot from a computer monitor. are you watching your video on a calibrated tv? if not you need to to know what your video will truly look like. i checked out the camcorder and it looks like its straight miniDV and not HDV. you need to make sure you are using the correct easy setup for FCP. search easy setup in the manula for clear directions on this. mainly, this could be a sequence settings proble. captured in a bad compression or it's not matching the the compression in the timeline.

  • Authorization scheme issues

    Hi I'm using custom authenitication scheme sso with ntlm_page_sentry function.
    I've an authorization scheme 'Admin control" like this :
    declare
    v_role varchar2(55);
    begin
    select role into v_role from user_roles where lower(userid) = lower(:APP_USER);
    if v_role = 'ADMIN' then
    return true;
    else
    return false;
    end if;
    exception
    when NO_DATA_FOUND then return false;
    end;
    In a login page(page:101) :I've a process like this with process point as onload before header:
    declare
    v_role varchar2(55);
    v_nextpage number;
    begin
    select upper(role) into v_role from sales_inq.user_roles where lower(userid) = lower(:APP_USER);
    case v_role
    when 'ADMIN' then v_nextpage := 9;
    when 'EDIT' then v_nextpage := 1;
    when 'VIEW' then v_nextpage := 2;
    end case;
    owa_util.redirect_url('f?p=' || :APP_ID || ':' || v_nextpage);
    exception
    when NO_DATA_FOUND then
    owa_util.redirect_url('f?p=' || :APP_ID || ':101');
    end;
    I've assigned "admin control" authorization scheme to page9 and changed authentication to "page requires authentication"
    After loginto my system through networkid which is assigned to ADMIN role when I run login page(101) I'm unable to access page 9.Can't I test this in standalone mode in dev instance?For ex:my userid is in user_role table with a role of admin why I can't see that page?
    Thanks,
    Mahender.
    Edited by: user518071 on Oct 8, 2009 12:44 PM

    Hi Scott,
    How does the login page get invoked?
    I'm trying to implement this authorization scheme for the first time for this UI.
    Previous scenario:User needs to login so login page will be displayed automatically
    Current scenario:User comes to login screen which is a dummy page without any items or regions and I've created process (on load before header process code mentioned above)which will check the network user's role and branch to corresponding page
    Why is there a login page if you have an sso facility?
    There is no login page as such but it's common intermediary page for all users which is not displayed but automatically directed to their corresponding page based on the process (on load before header process code mentioned above)
    Is there a login page designated as the Session Not Valid Page in the authentication scheme?
    No
    or let me know how we can do this ?
    I've three roles for users :admin,edit,view and it's stored in user_roles table,user with role view can access only his page and user with edit can access all view pages as well as his pages,admin can access all pages.Then next issue is how to test this without using active directory in dev instance by adding security to corresponding pages(ex:admin control,page requires authentication)
    Thanks,
    Mahender.

  • Idoc Schema issue

    Hi,
    We added a new field in Idoc schema, and now we can see the new field at we02/we05 idoc list, however, we don't receive it in XI.
    I already imported the Idoc schema in XI again, updated the mappings, and it still with the same issue.
    Do you guys know where is the problem?
    Thanks,
    Luí

    Hi,
    I was facing the same problem from other point (I saw the error on the trfc queue in the sender system).
    After reading your posts I have tried with IDX2 and same problem than you, so I began to debug in XI (newbie in XI, olddie in ABAP ).
    I have seen that the message is raised when trying to do the  RFC call <i>IDX_META_SYNTAX_READ</i>. I tried with se37 in r/3 and it worked so only the user could be.
    I have changed the user in the RFC destination in XI to my dialogue R/3 user and now XI has received the first idoc from R/3. The previous user was a service user with sapall/sapnew profiles  so it doesn't makes sense but... <b>it works for me! </b>
    hope it helps you,
    David R.

  • Cost capturing when issue spares from Maintenance Store

    Hi Guru's,
    I have a scenario which is typical and applicable to most of the factories.
    Maintenance planner raise the PR and once the material has come to store . Immediately they will take it from store through maintenance order. So that they dont want to show in INVENTORY VALUE. Issued material will keep in the Engg store ehich is located in Maintenance dept .Whenever any breakdown or any other requirement has come they will use the material from Engg store and replace in the particular machine.
    Client requirement : 1) They want the cost to be capture at equipment wise.
                                  2) They dont want the inventory to be raised.
    Proposed solution not accepted by client:
                                 1) Creating of additional store and transfer the material ? .
                                  2) Transfering of cost from main order to sub-order?
    Kindly provide if any other method is there to resolve this issue.
    Regards
    DPS
    Edited by: DP  SINGH on Oct 9, 2008 5:07 AM

    Dear DPS
    you can easily capture this scenario, raise the PR from maint. order for non stock item and there is no need to worry about cost center during creation of maintenance order, you can also change cost center when you will settle your order whatever you want. & this is not standard practice that you issue the material when it just come to main store, whenever maint. person need some material only then he should issue material from store.
    only when they will settle maint. order against their cost center then cost will reflect to mainteanance cost center.
    regards
    VS

  • Cross Schema Issues for certain commands

    Within Raptor, there are some commands that don't legitimately work when you are manipulating tables outside of your own schema. The menu items for these should be greyed out. An example is if I want to move a table, the SQL for this command is:
    alter table "XXX" move.
    Since this SQL command doesn't allow for a schema, it fails with a misleading error message. ORA-00942 Table or view does not exist. For many DBA's it may be readily apparent as to why this error occurs, but for most future Raptor users they'll be confused.

    As root:
    /bin:/usr/bin:/sbin:/usr/sbin:/opt/mozilla/bin:/usr/bin/perlbin/site:/usr/bin/perlbin/vendor:/usr/bin/perlbin/core
    As normal user:
    ./:/bin:/usr/bin:/usr/local/bin:/usr/bin
    You got it in one Morra, a path issue. any reason why they are not the same by default? Solved the issue by copying the root PATH into my .bashrc, but it would be nice to know why they aren't the same.

Maybe you are looking for