Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2003
    Posts
    1

    Unanswered: OLAP API getDefaultMetadataProvider Error!!!!

    Hi,
    I've written a small piece of code using the OLAP API. FOllowing is the code:

    ************************************************** ****
    ExpressTransactionProvider tp = new ExpressTransactionProvider();
    ExpressDataProvider dp = new ExpressDataProvider(conn, tp);

    MdmMetadataProvider mp = null;
    try {
    System.out.println ("*** ***");
    mp = (MdmMetadataProvider) dp.getDefaultMetadataProvider();

    MdmSchema root = null;
    root = mp.getRootSchema();
    System.out.println ("*** Root schema= ***" + root.getName());

    MdmDimension dim = root.getMeasureDimension();

    } catch (oracle.express.mdm.UnsupportedDatabaseException ue) {
    System.out.println ("Unsupported exception is : "+ ue.getMessage());
    }

    ************************************************** ****


    Following is the error msg I get when I run this (compilation goes through ) :

    ************************************************** ****
    java.lang.NullPointerException
    at oracle.express.mdm.MdmMetadataProvider.<init>(MdmM etadataProvider.java:158)
    at oracle.express.mdm.MdmMetadataProvider.<init>(MdmM etadataProvider.java:145)
    at oracle.express.olapi.data.full.ExpressDataProvider .getDefaultMetadataProvider(ExpressDataProvider.ja va:523)
    at testolap.main(testolap.java:33)
    Exception in thread "main"

    ************************************************** ****

    Please help!

    Thanks
    Jyo Rao

  2. #2
    Join Date
    Sep 2003
    Posts
    1

    Re: OLAP API getDefaultMetadataProvider Error!!!!

    Originally posted by jrao
    mp = (MdmMetadataProvider) dp.getDefaultMetadataProvider();

    Following is the error msg I get when I run this (compilation goes through ) :

    ************************************************** ****
    java.lang.NullPointerException
    at oracle.express.mdm.MdmMetadataProvider.<init>(MdmM etadataProvider.java:158)
    at oracle.express.mdm.MdmMetadataProvider.<init>(MdmM etadataProvider.java:145)
    at oracle.express.olapi.data.full.ExpressDataProvider .getDefaultMetadataProvider(ExpressDataProvider.ja va:523)
    at testolap.main(testolap.java:33)
    Exception in thread "main"

    ************************************************** ****
    I've the same problem here.
    My system is RedHat Linux 8, kernel 2.4.21 and Oracle 9.2.0.1

    Any hint?

    Thanks
    __
    Roberto

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •