Error in compilation - Bug in the Oracle Java Compiler ? (10.1.3)

I've the following situation :
I've a class wich extends ViewObjectImpl,named ClViewObjectImpl, and another class, named RbViewObjectImpl wich extends ClViewObjectImpl.
My classes have only a constructor with no parameters .
Compiling with standard Oracle complier I get the following error
Error: method $init$() in class oracle.jbo.server.RbViewObjectImpl cannot override method $init$() in class oracle.jbo.server.ClViewObjectImpl with weaker access privileges, was
Compiling with javacc it compiles.
Is it an bug ?
Is there any workaround ?
Tks
Tullio

Repost

Similar Messages

  • The frustrating 'bug' of the oracle java page if you want 64 bit support.

    gosh, i wish there were a way to simply contact the oracle webmaster/webdev team. there isn't, as far as i can find. here's what i just emailed to [email protected] figured i'd share it here, on the outside chance someone at oracle might know how to escalate this:
    hi, this has frustrated me a number of times in the last year or two.
    go to the main java download page:
    http://www.java.com/en/download/manual.jsp
    i want the 64 bit java plugin. hey, there's a link "information about the 64-bit java plug-in", yay! click it, it goes to
    http://www.java.com/en/download/faq/java_win64bit.xml
    <read a bit through it> ah, there towards the bottom of the page, "java for 64-bit browsers, with the following text and link:
    "for downloading 64-bit java click 64-bit manual download". cool! click the link -
    http://www.java.com/en/download/manual.jsp
    it takes me right back to the main download page! it's an infinite loop!
    i eventually just google, and type in 'jre-7u5-win' and it autocompletes to 'jre-7u5-widows-x64.exe download, and the first result returned is to the actual page needed:
    http://www.oracle.com/technetwork/java/javase/downloads/jre7-downloads-1637588.html
    is there any chance y'all could fix this? i'm sure i'm not the only person frustrated by the circular results the main download page provides.
    thanks,
    paul

    Interesting... I have now tested on various Windows versions with various browsers, including FF, IE, and Safari. I even tested on my iPhone. It appears that the page attempts to identify your platform and browser and displays differences in the page based on that result. So, for example, on my iPhone (in Safari) and Linux (with FF) where I know I can't use java or at least one for Windows, the page resembles what you described. However, on all my Windows machines (regardless of browser) the page displays properly.
    So the questions to you is, are you doing this on a Windows machine or something else? If not Windows, this is why you are having the issue. If you want to download a Windows release while running a Linux, Mac, or other platform, you should use the method I described in my previous post of using java.sun.com then choosing Java SE under Top Downloads.
    If you are on a Windows platform, but are seeing this issue, be sure your browser version is current and ensure that you do not have a security setting or security software which may be preventing this page from properly detecting your platforms.
    Edited by: Michael Ferrante (Oracle) on Aug 1, 2012 9:58 AM

  • Oracle Java Compiler 11g - JVM ERROR

    Hi Jdev Team,
    I have an issue to report,
    Sometimes when run a project and navigate through the pages, i get the following error message:
    Oracle Java Compiler 11g
    Unable to create an instance of the Java Virtual Machine
    Located at path:
    H:\jdevstudio1111\jdk\jre\bin\client\jvm.dll
    The only way to solve this is delete the settings of the Jdev and the Jdev from the PC, and install again, with the associated waste of time as consecuence. Please you can give a light to resolve this issue? Thanks
    Well i correct what i just said.
    The problem doesn´t fix, with the erase of the jdev program folder or settings folder in windows user docs and settings. What else i can do!?, out of ideas in here.
    Regards,
    Leo
    Message was edited by:
    LCJ

    Solution (workaround):
    Re: ADF table and filtering
    Pedja

  • Oracle java compiler

    Hi everyone,
    I just wanted to create a new Project Build-Script as I stumbled upon this Checkbox (for auto-generating my Script):
    "use oracle java compiler for javac task"
    Can anybody tell me where I find a list of features this compiler provides in comparison to my normal compiler. (I tried JDev, Google and here...)
    Are there any profits with using ADF / Business Components?
    Hay.

    Hay,
    If you are using JDev 10g - you need to use OCJ to get some of the profiling aspects; less of a reason to use OJC in 11g.
    John

  • Unable to create connection to the Oracle Java Cloud server

    Hi All,
    I am trying to deploy simple ADF application to Oracle Cloud.
    I am successfully transfered HR schema to my database cloud service and now am trying to create a connection to the oracle java cloud service instance
    but it is failing to create a connection to the cloud server and throwing the error message
    Testing Cloud-Admin                    ... failed.
    listApplications failed.
    Check username, password, domain, instance.
    Check cloud sdk location & version: Tools->Preferences->Oracle Cloud
    0 of 1 tests successful.
    MyService details are as follows
    JDEV : Build JDEVADF_11.1.1.6.0CLOUD_GENERIC_121118.1600.6229
    Cloud version: 13.2.2.0.0
    I am pretty sure , i am using proper credentials since am able to java cloud service console with same credentials.
    Please help me out on this.
    Thanks

    Hi Thanks for the reply
    I check check-box of proxy settings and restarted the jdeveloper and tried again but still it throws the same error? one doubt here...what all we need to include / exclude in our proxy settings...
    and the I tried providing service name as both java and javatrial8477 but no luck i followed the same steps which are mentioned in the below document
    Part 2: Deploying ADF Applications to Oracle Java Cloud
    Do i need to do any other configuration? Or i can directly deploy my ear file to java service console rt instead of creating connection tot the server from IDE.
    Regards,
    Kotresh

  • Bug in Oracle Java Compiler???

    Hello!
    I think I found a bug in OJC. Take a look in these files:
    ------ File MyInterface1.java -------
    public interface MyInterface1
    public void aMethod1();
    public void aMethod2();
    ------ File MyInterface2.java -------
    public interface MyInterface2 extends MyInterface1
    public void aMethod1(String s1);
    public void aMethod2(String s2);
    ------ File MyAbstractClass.java -------
    abstract public class MyAbstractClass implements MyInterface2
    public void aMethod1()
    ------ File MyImplClass.java -------
    public class MyImplClass extends MyAbstractClass
    public void aMethod2()
    public void aMethod1(String s)
    When compiling these files, the following error should be found:
    "javac MyImplClass.java
    MyImplClass.java:1: MyImplClass should be declared abstract; it does not define
    aMethod2(java.lang.String) in MyAbstractClass
    public class MyImplClass extends MyAbstractClass
    ^
    1 error"
    This is the error found by javac (J2SE 1.3), as expected.
    But when I compile using OJC 9.0.2.579 (JDeveloper 9.0.2.829) no error is found, and the compiler generates MyImplClass.class. This should not happen!!!
    Even if I implement aMethod2(String s) in MyImplClass, how can I trust that OJC is generating the bytecode, so that the method invocation is occuring correctly during runtime?
    I have a component library based on class hierarchy like the one in the example, and I would not like to modify it because of this possible bug in OJC.
    Thanks
    Gleber/Daniel/Augusto

    Gleber,
    As per current plans the 903 release is expected to be on OTN in the next 5-7 weeks. Feel free to ping me at [email protected] if this bug is preventing you from moving forward. I'll try to resolve your issue with a workaround.
    Regards,
    Arun

  • BUG: Oracle Java Compiler bug with anonymous inner classes in constructor

    The following code compiles and runs just fine using 1.4.2_07, 1.5.0_07 and 1.6.0_beta2 when compiling and running from the command-line.
    It does not run when compiling from JDeveloper 10.1.3.36.73 (which uses the ojc.jar).
    When compiled from JDeveloper, the JRE (both the embedded one or the external 1.5.0_07 one) reports the following error:
    java.lang.VerifyError: (class: com/ids/arithmeticexpr/Scanner, method: <init> signature: (Ljava/io/Reader;)V) Expecting to find object/array on
    stack
    Here's the code:
    /** lexical analyzer for arithmetic expressions.
    Fixes the lookahead problem for TT_EOL.
    public class Scanner extends StreamTokenizer
    /** kludge: pushes an anonymous Reader which inserts
    a space after each newline.
    public Scanner( Reader r )
    super( new FilterReader( new BufferedReader( r ) )
    protected boolean addSpace; // kludge to add space after \n
    public int read() throws IOException
    int ch = addSpace ? ' ' : in.read();
    addSpace = ch == '\n';
    return ch;
    public static void main( String[] args )
    Scanner scanner = new Scanner( new StringReader("1+2") ); // !!!
    Removing the (implicit) reference to 'this' in the call to super() by passing an instance of a static inner class 'Kludge' instead of the anonymous subclass of FilterReader fixes the error. The code will then run even when compiled with ojc. There seems to be a bug in ojc concerning references to the partially constructed object (a bug which which is not present in the reference compilers.)
    -- Sebastian

    Thanks Sebastian, I filed a bug for OJC, and I'll look at the Javac bug. Either way, OJC should either give an error or create correct code.
    Keimpe Bronkhorst
    JDev Team

  • Internal NT error when attempting to use the Oracle Management Server

    Our platform is:
    HP NetServer LC 2000
    1 GB Ram.
    CPU: x86 Family 6 Model 8 Stepping 8
    Windows NT 4.0
    Oracle 8.1.6
    Currently the database is working fine except the problems with
    the Oracle Management Server which will allow us to do a backup.
    The Management Server NT Service is giving an error
    called: "Error 2140 . An Internal NT Error Occurred" There is a
    Listener service running but I don't know if the settings are
    correct??

    Hello,
    I too am an Ashford University student, and I have received the same error. However, I have found a couple workarounds that allow me to do pretty much everything except view my degree progress (for that I use Chrome on my iMac).
    ****CAUTION: THE FOLLOWING PROCEDURE COULD RESULT IN LOSS OF DATA****
    First, back up your iPad in iTunes (if you do not know how to do this, then do not proceed until you do). Second, quit Safari (double-tap the home button so that the multi-task bar appears at the bottom of the screen, then swipe until you see Safari, then press and hold the Safari icon until the 'X' appears, finally press the 'X' to quit the App) Third, make sure Safari is configured as follows:
    Settings > Safari >
    Java Script "ENABLED"
    Block Popups "OFF"
    Accept Cookies "ALWAYS"
    Reset Safari:
    Settings > Safari >
    Clear History
    Clear Cookies
    Clear Cache
    Restart your iPad by holding the Home and Sleep buttons until the Apple Logo appears (immediately let go of both buttons or else you will put your iPad into recovery mode). Accessing the Ashford Student portal should now work.

  • Photoshop CS5.1 error - you need to install the legacy Java SE 6 runtime.

    I have PS 5.1 on my Mac. After I installed Yosemite, it will not work. I get an error saying "To open “Adobe Photoshop CS5.1.app” you need to install the legacy Java SE 6 runtime." According to Java, I have the latest Java. I contacted Apple and they said to uninstall PS 5.1. I reinstalled with no change. Any ideas? FYI - PS 5.1 work on my Macbook with no errors.
    This is frustrating as I cannot use the software. Any help is appreciated.

    Install this:
    Java for OS X 2014-001
    Reinstall CS5.1
    Reference:
    Photoshop CS5.1 not working with OS X Yosemite
    Gene

  • Extending the oracle java classes for PJCs - Help!

    In developer6 (forms) - I am trying to create my own version of
    certain forms components, without much look.
    I have created an item in forms, ie. Checkbox, in the
    'Implementation Class' field I called my java class.
    My code 'extends VCheckbox' and I have created my own paint()
    mthoed.
    Whilst it does call and run my code there are several problems.
    Mainly being that I cannot change the size the component - I have
    seen the demo source code - and the examples of what I am trying
    to do are less than simple (read: less than useless).
    I dont not want a java bean. The forms help says I should be able
    to extend the above class okay - but doesnt say what limitations
    there are or what functionality there is in the oracle.forms.ui
    classes.
    Has anyone else actually achieved anything other than JavaBean
    components?
    null

    : Have you seen the RolloverButton example ?
    : It is under Forms documentation in TechNet
    : and is quite advanced.
    No, have search Dev6 manuals, can not find this by searching
    Technet either - can you specify (provide URL)?
    I am trying to re-implement the VCheckbox using Smoking/No
    Smoking images. I can create the images, but the toggling action
    does not work when the component size is greater than the
    original subclassed component.
    None of the examples show creating components of sizes that
    differ from the subclass.
    Surely I only need to override paint() method?
    Code fragment:
    import ....
    public class ImageToggler extends VCheckbox {
    // ... does initialisation of images ....
    // ... Images are 32x32 ...
    public void paint( Graphics g ) {
    if ( getState() == true ) {
    g.drawImage( ysSmoke.getImage(), 0, 0,
    ysSmoke.getIconWidth(),
    ysSmoke.getIconHeight(), this );
    } else {
    g.drawImage( noSmoke.getImage(), 0, 0,
    noSmoke.getIconWidth(),
    noSmoke.getIconHeight(), this );
    null

  • HT1338 Can we login to eTax from the HKG government using an Apple iPad which uses the OracLe Java Base?

    I am having trouble logging into the HKG government eTax page which uses Oracle Java as a basis. I am using the Apple iPad.

    post in the iPad forum.  This is the 10.6 OSX forum for mac computers.

  • [ANN] Don't miss the next edition of the Oracle Java Newsletter

    Register now to get the next edition of the monthly Oracle Java Newsletter with technical articles and a summary of Java related news.
    Sign up now at:
    http://www.oracle.com/go/?&Src=1952635&Act=34

    Maran Viswarayar wrote:
    Stuck with work man.....Pretty busy nowadays after long time.. :)Come on! Its in September :-) . Put a leave application right now and am surely it would be approved by then ;-) . I am also totally occupied in travels, sessions , not sure what would happen for me too!
    Aman....

  • The best Java compile platform

    Anybody can provide the best Java platform specification?
    I am thinking an IBM compatible PC which can compile big java file in the very fast speed. This compile platform must be able to save much time of programming. But what kind of CPU, RAM, OS can make this ture? If you are experienced this, please provide your excellent ideas, thanks a lot~!
    CPU
    RAM
    OS
    Compile Software
    Let's speed up~!

    Big Java files aren't as common as you would think. Any file which gets too big should be split into smaller ones. :-)
    But anyway .. the machine I use at work is a P3-450 with 256Mb RAM, running Windows 2000. My IDE is IntelliJ IDEA, set up with IBM's Jikes compiler.
    At home, I use a P2-300 with 64Mb RAM, running Linux, also with Jikes .. which runs slower than the first setup (no surprises there.) I also have a Celeron 600@900 with 384Mb RAM, running a beta of Windows XP, set up like the work system with IDEA and Jikes .. which is the fastest of the lot ..
    .. but even though the third system is the fastest, I'd say you only need about a P3-450 to run Java compilation fast enough to use .. especially when you have Jikes as the compiler, which can speed up compilation of things like JSP 10-fold. The RAM is important for running, though, as the JVMs can be a memory hog (particularly when you use a fat, memory-intensive IDE like IDEA.)

  • The java error which i meet in the oracle 11g when i using jdm

    I have finish a java data mining program,it can work in oracle 10g.But now ,i  have to apply this program in oracle 11g.
    What should i do to make it still work in oracle 11g?
    The jar have been replaced with 11g's jar.But when i debug the program,the BuildTask's m_ programName is still "dmsys.build_program" and it should be "sys.build_program".
    Then when run to the executeTask,the Error occurred.
    **************the  error**********************************
    19:19:55,734 DEBUG AprioriExecuteUtil:248 - ---------------------------------------------------
    19:19:55,734 DEBUG AprioriExecuteUtil:249 - --- Build Model                                 ---
    19:19:55,734 DEBUG AprioriExecuteUtil:250 - ---------------------------------------------------
    19:21:52,328 ERROR AprioriExecuteUtil:114 - executeError:
    java.lang.ArrayIndexOutOfBoundsException: 0
      at oracle.dmt.jdm.task.OraBuildTask.mapJobArgs(OraBuildTask.java:410)
      at oracle.dmt.jdm.base.OraTask.retrieveObjectFromDatabase(OraTask.java:535)
      at oracle.dmt.jdm.base.OraTask.removeTaskContents(OraTask.java:229)
      at oracle.dmt.jdm.base.OraTask.removeObjectFromDatabase(OraTask.java:214)
      at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.removeObject(OraPersistanceManagerImpl.java:297)
      at oracle.dmt.jdm.resource.OraConnection.removeObject(OraConnection.java:389)
      at oracle.dmt.jdm.OraMiningObject.saveObjectInDatabase(OraMiningObject.java:150)
      at oracle.dmt.jdm.resource.OraPersistanceManagerImpl.saveObject(OraPersistanceManagerImpl.java:245)
      at oracle.dmt.jdm.resource.OraConnection.saveObject(OraConnection.java:383)
      at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.executeTask(AprioriExecuteUtil.java:324)
      at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.buildModel(AprioriExecuteUtil.java:303)
      at com.hollycrm.hollysp.datanalysis.datamining.util.AprioriExecuteUtil.execute(AprioriExecuteUtil.java:108)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    So,if there someone know the reason,please tell me how to solve this error.Thank you!!!!

    Thanks for your response!
    The JDK version is 1.6.0_02.
    DB version is 11.2.0.1.0.
    This is the code.
    public class AprioriExecuteUtil {
      private static Logger logger=Logger.getLogger(AprioriExecuteUtil.class);
      * 连接数据库对象
      private static Connection m_dmeConn;
      private static ConnectionFactory m_dmeConnFactory;
      * 在进程中使用的工厂对象
      private static PhysicalDataSetFactory m_pdsFactory;
      private static PhysicalAttributeFactory m_paFactory;
      private static AssociationSettingsFactory m_assoFactory;
      private static RulesFilterFactory m_filterFactory;
      private static BuildTaskFactory m_buildFactory;
      * 全局常量
      private static DecimalFormat m_df = new DecimalFormat("##.####");
      * modelId:数据挖掘模型Id
      private String modelId = "";
      *<p>Title: execute</p>
      *<p>Description:执行数据挖掘,响应页面上的执行按钮</p>
      * @param @return 设定文件
      * @return  String 返回类型
      * @throws
      public String execute(){
      try{
      dataminingManager().updateModelById(modelId, "schedule", "10");
      dataminingManager().updateModelById(modelId, "startTime", DateUtil.getNow());
      dataminingManager().updateModelById(modelId, "endTime", "");
      dataminingManager().deleteModelRules(modelId,"TblSpModelRulesAr");
      m_dmeConnFactory = new OraConnectionFactory();
      ConnectionSpec connSpec = m_dmeConnFactory.getConnectionSpec();
      connSpec.setURI("jdbc:oracle:thin:@"+SystemParamUtil.getSystemParameValue("数据挖掘.数据库.地址"));
      connSpec.setName(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名"));
      connSpec.setPassword(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.密码"));
      m_dmeConn = m_dmeConnFactory.getConnection(connSpec);
      clean();
      initFactories();
      prepareData();
      dataminingManager().updateModelById(modelId, "schedule","20");
      buildModel();
      dataminingManager().updateModelById(modelId, "schedule","100");
             dataminingManager().updateModelById(modelId, "endTime", DateUtil.getNow());
             clean();
      return null;
      }catch(Exception e) {
      logger.error("executeError:",e);
      return "error";
      finally {
      try {
      m_dmeConn.close();
      } catch(Exception e) {
      logger.error("closeConnectError:",e);
      return "error";
      *<p>Title: clean</p>
      *<p>Description:清理所有之前构造的临时表</p>
      * @param  设定文件
      * @return  void 返回类型
      * @throws
      public void clean(){
      java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
         Statement stmt = null;
         try{
          stmt = dbConn.createStatement();
          StringBuffer sql = new StringBuffer("select object_name from dba_objects where object_type in('TABLE','VIEW') and object_name like '%DM$%' ");
          sql.append("and owner = '").append(SystemParamUtil.getSystemParameValue("数据挖掘.数据库.用户名")).append("'");
          logger.info(sql.toString());
          ResultSet rs = stmt.executeQuery(sql.toString());
          while(rs.next()){
          try{
          stmt.executeUpdate("DROP VIEW "+rs.getString("object_name"));
          }catch(SQLException e){}
         try{
          stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_V");
         } catch(SQLException e) {}
         try{
          stmt.executeUpdate("DROP VIEW SALES_TRANS_CUST_AR_V");
         } catch(SQLException e) {}
         try {
          m_dmeConn.removeObject("arModel_jdm", NamedObject.model );
         }catch(JDMException e) {}
         try {
          m_dmeConn.removeObject("arSettings_jdm", NamedObject.buildSettings );
         }catch(JDMException e) {}
         try {
          m_dmeConn.removeObject("arBuildData_jdm", NamedObject.physicalDataSet );
         }catch(JDMException e) {}
         try {
          m_dmeConn.removeObject("arBuildTask_jdm", NamedObject.task );
         }catch(JDMException e) {}
         }catch(SQLException e) {
          logger.error("cleanViewError:",e);
         }finally{
          try {
          stmt.close();
          }catch(Exception e){
          logger.error("closeConnectError:",e);
      *<p>Title: initFactories</p>
      *<p>Description:初始化挖掘使用的工厂</p>
      * @param @throws JDMException 设定文件
      * @return  void 返回类型
      * @throws
      public void initFactories() throws JDMException{
         m_pdsFactory = (PhysicalDataSetFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalDataSet");
         m_paFactory = (PhysicalAttributeFactory)m_dmeConn.getFactory("javax.datamining.data.PhysicalAttribute");
         m_assoFactory = (AssociationSettingsFactory)m_dmeConn.getFactory("javax.datamining.association.AssociationSettings");
         m_buildFactory = (BuildTaskFactory)m_dmeConn.getFactory("javax.datamining.task.BuildTask");
         m_filterFactory = (RulesFilterFactory)m_dmeConn.getFactory("javax.datamining.association.RulesFilter");
      *<p>Title: prepareData</p>
      *<p>Description:准备数据</p>
      * @param @throws Exception 设定文件
      * @return  void 返回类型
      * @throws
      public void prepareData() throws Exception{
      logger.debug("---------------------------------------------------");
      logger.debug("--- Prepare Data                                ---");
      logger.debug("---------------------------------------------------");
      this.createBuildData();
      this.executeColumnFormatTransformation();
      *<p>Title: createBuildData</p>
      *<p>Description:用之前选择的产品构造视图</p>
      * @param @throws Exception 设定文件
      * @return  void 返回类型
      * @throws
      public void createBuildData() throws Exception{
      logger.debug("Create build data view...");
      java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
      PreparedStatement pStmt = null;
      String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
      TblSpDataMiningModel dataMiningmodel = dataminingManager().getDataMiningModel(modelId);
      StringBuffer createView = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_V AS SELECT cp.user_no as USER_NO, cp.product_id as PRODUCT_ID, 1 has_it ");
      createView.append(" from ").append(custProductTableName).append(" cp ");
      createView.append(" where cp.area_code = '").append(dataMiningmodel.getArea()).append("' GROUP BY USER_NO, PRODUCT_ID");
      logger.debug(createView.toString());
      pStmt = dbConn.prepareStatement(createView.toString());
      pStmt.execute();
      public void executeColumnFormatTransformation() throws Exception{
      logger.debug("Execute column format transformation...");
      StringBuffer createNestedColumn = new StringBuffer("CREATE VIEW SALES_TRANS_CUST_AR_V as ");
      createNestedColumn.append(" SELECT D.USER_NO,CAST(MULTISET(SELECT DM_Nested_Numerical(C.PRODUCT_ID, has_it) FROM SALES_TRANS_CUST_V C ");
      createNestedColumn.append(" WHERE C.USER_NO = D.USER_NO) AS DM_Nested_Numericals) CUSTPRODS FROM SALES_TRANS_CUST_V D group by D.USER_NO");
      java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
      PreparedStatement pStmt = null;
      logger.debug(createNestedColumn.toString());
      pStmt = dbConn.prepareStatement(createNestedColumn.toString());
      pStmt.execute();
      *<p>Title: buildModel</p>
      *<p>Description:建立模型</p>
      * @param @throws JDMException 设定文件
      * @return  void 返回类型
      * @throws
      public void buildModel() throws Exception{
      logger.debug("---------------------------------------------------");
      logger.debug("--- Build Model                                 ---");
      logger.debug("---------------------------------------------------");
      PhysicalDataSet buildData = m_pdsFactory.create( "SALES_TRANS_CUST_AR_V", false );
      PhysicalAttribute pa = m_paFactory.create("USER_NO", AttributeDataType.integerType, PhysicalAttributeRole.caseId );
      buildData.addAttribute(pa);
      m_dmeConn.saveObject("arBuildData_jdm", buildData, false );
      AssociationSettings buildSettings = m_assoFactory.create();
      //计算支持度和可信度以及最多分析多少个产品
      /*java.sql.Connection dbConn = ((OraConnection)m_dmeConn).getDatabaseConnection();
      PreparedStatement pStmt = null;
      String custProductTableName= SystemParamUtil.getSystemParameValue("数据挖掘.订购关系表.表名");
      TblSpDataMiningModel dataMiningModel = dataminingManager().getDataMiningModel(modelId);
      StringBuffer sql = new StringBuffer("select (trunc((count(*) /(count(distinct user_no) * count(distinct product_id))) * 50,2.2)) as destiny ");
      sql.append(" from ").append(custProductTableName).append(" cp ");
      sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("'");
      logger.debug(sql.toString());
      pStmt = dbConn.prepareStatement(sql.toString());
      ResultSet res = pStmt.executeQuery();
      Float density = 0F;
      while(res.next()){
      density = res.getFloat("destiny");
      if(density!=0){
      buildSettings.setMinSupport(density);
      buildSettings.setMinConfidence(density);
      logger.debug("density = "+density);
      }else{
      buildSettings.setMinSupport(10f);
      buildSettings.setMinConfidence(10f);
      sql = new StringBuffer("select round(avg(COUNT(product_id))) as maxLength ");
      sql.append(" from ").append(custProductTableName).append(" cp ");
      sql.append(" where cp.area_desc = '").append(dataMiningModel.getArea()).append("' group by user_no ");
      logger.debug(sql.toString());
      pStmt = dbConn.prepareStatement(sql.toString());
      res = pStmt.executeQuery();
      int maxProductLength = 0;
      while(res.next()){
      maxProductLength = res.getInt("maxLength");
      if(maxProductLength != 0 && maxProductLength >= 2){
      buildSettings.setMaxRuleLength(maxProductLength);
      logger.debug("maxProductLength = "+maxProductLength);
      }else{
      buildSettings.setMaxRuleLength(3);
      logger.debug("maxProductLength = "+maxProductLength+" change to 3");
      buildSettings.setMinSupport(1);
      buildSettings.setMinConfidence(10);
      buildSettings.setMaxRuleLength(3);
      m_dmeConn.saveObject("arSettings_jdm", buildSettings, true );
      BuildTask buildTask = m_buildFactory.create("arBuildData_jdm","arSettings_jdm","arModel_jdm");
      buildTask.setDescription("arBuildTask_jdm" );
      executeTask(buildTask,"arBuildTask_jdm");
      AssociationModel model = (AssociationModel)m_dmeConn.retrieveObject("arModel_jdm", NamedObject.model);
      if(buildSettings == null){
      throw new Exception("Failure to restore build settings.");
      }else{
      displayAssociationRules( model );
      *<p>Title: executeTask</p>
      *<p>Description:执行任务</p>
      * @param @param taskObj
      * @param @param taskName
      * @param @return
      * @param @throws JDMException 设定文件
      * @return  boolean 返回类型
      * @throws
      public boolean executeTask(Task taskObj, String taskName) throws JDMException {
      boolean isTaskSuccess = false;
      m_dmeConn.saveObject(taskName, taskObj, true);
      ExecutionHandle execHandle = m_dmeConn.execute(taskName);
      logger.debug(taskName + " is started, please wait. ");
      ExecutionStatus status = execHandle.waitForCompletion(Integer.MAX_VALUE);   
      isTaskSuccess = status.getState().equals(ExecutionState.success);
      if( isTaskSuccess ) {
      logger.debug(taskName + " is successful.");
      } else {
      logger.debug(taskName + " is failed.\nFailure Description: " +
      status.getDescription() );
      return isTaskSuccess;
    247*******************the buildTask's m_programName is “dmsys.build_program” but it should be "sys.build_program" when i contact the 11g.I have tried many ways to compile the program,but it still can't be changed.
    270*******************m_dmeConn.saveObject(taskName, taskObj, true);
                                 the error:java.lang.ArrayIndexOutOfBoundsException: 0                                  
    If you  need the data table
    These are the sql :
    -- Create table
    create table TBL_MINING_CUST_HB
      mobile_tele_no        VARCHAR2(40),
      area                  VARCHAR2(4),
      user_dinner           VARCHAR2(200),
      re_flag               VARCHAR2(2),
      re_type               VARCHAR2(40),
      is_3gzd               VARCHAR2(2),
      arpu                  NUMBER,
      net_on_duration       NUMBER,
      if_ring               VARCHAR2(2),
      if_gprs               VARCHAR2(2),
      gprs_fee              NUMBER,
      if_gprs_free          VARCHAR2(2),
      if_gprs_pkg           VARCHAR2(2),
      sms_fee               NUMBER,
      if_sms_free           VARCHAR2(2),
      if_sms_pkg            VARCHAR2(2),
      mms_fee               NUMBER,
      if_mms_pkg            VARCHAR2(2),
      if_mms_free           VARCHAR2(2),
      sen_fee               NUMBER,
      sen_in_fee            NUMBER,
      sen_out_fee           NUMBER,
      sen_free              NUMBER,
      sen_fact              NUMBER,
      one_cnt_10010         NUMBER,
      three_cnt_10010       NUMBER,
      one_cancel_business   VARCHAR2(4000),
      three_cancel_business VARCHAR2(4000),
      sp                    VARCHAR2(4000)
    tablespace CSS_APP
      pctfree 10
      initrans 1
      maxtrans 255
      storage
        initial 64
        next 1
        minextents 1
        maxextents unlimited
    -- Add comments to the columns
    comment on column TBL_MINING_CUST_HB.mobile_tele_no
      is '电话号码';
    comment on column TBL_MINING_CUST_HB.area
      is '地市';
    comment on column TBL_MINING_CUST_HB.user_dinner
      is '用户套餐';
    comment on column TBL_MINING_CUST_HB.re_flag
      is '是否融合业务;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.re_type
      is '套餐类别;2G后付费、2GOCS、3G后付费、3GOCS';
    comment on column TBL_MINING_CUST_HB.is_3gzd
      is '是否为3G终端(1-是,0非)';
    comment on column TBL_MINING_CUST_HB.arpu
      is 'ARPU;单位:元';
    comment on column TBL_MINING_CUST_HB.net_on_duration
      is '在网时长;单位:月';
    comment on column TBL_MINING_CUST_HB.if_ring
      is '是否开通炫铃功能,1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_gprs
      is '是否开通GPRS功能,1-是;0-否';
    comment on column TBL_MINING_CUST_HB.gprs_fee
      is 'GPRS流量使用情况;单位: M';
    comment on column TBL_MINING_CUST_HB.if_gprs_free
      is '套餐内是否自带优惠或赠送流量;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_gprs_pkg
      is '是否定制优惠流量包;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.sms_fee
      is '短信使用情况;单位:条';
    comment on column TBL_MINING_CUST_HB.if_sms_free
      is '套餐内是否自带优惠或赠送短信;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_sms_pkg
      is '是否定制优惠短信包;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.mms_fee
      is '彩信使用情况;单位:条';
    comment on column TBL_MINING_CUST_HB.if_mms_pkg
      is '是否定制优惠彩信包;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.if_mms_free
      is '套餐内是否自带优惠或赠送彩信;1-是;0-否';
    comment on column TBL_MINING_CUST_HB.sen_fee
      is '本地长途合计分钟数;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_in_fee
      is '本地长途省内长途;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_out_fee
      is '本地长途省际长途;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_free
      is '本地通话时长本地优惠分钟数;单位:分钟';
    comment on column TBL_MINING_CUST_HB.sen_fact
      is '本地通话时长实际使用分钟数:单位:分钟';
    comment on column TBL_MINING_CUST_HB.one_cnt_10010
      is '1月内拨打10010次数';
    comment on column TBL_MINING_CUST_HB.three_cnt_10010
      is '3月内拨打10010次数';
    comment on column TBL_MINING_CUST_HB.one_cancel_business
      is '1月内取消的增值业务';
    comment on column TBL_MINING_CUST_HB.three_cancel_business
      is '3月内取消的增值业务名称';
    comment on column TBL_MINING_CUST_HB.sp
      is '已开通的增值业务名称';
    -- Create table
    create table TBL_MINING_CUST_PRODUCT_HB
      product_name VARCHAR2(1000),
      product_id   VARCHAR2(40),
      user_no      NUMBER,
      area_code    VARCHAR2(8)
    tablespace CSS_APP
      pctfree 10
      initrans 1
      maxtrans 255
      storage
        initial 16
        next 1
        minextents 1
        maxextents unlimited
    -- Create/Recreate indexes
    create bitmap index IDX_PRODUCT_ID on TBL_MINING_CUST_PRODUCT_HB (PRODUCT_ID)
      tablespace CSS_APP
      pctfree 10
      initrans 2
      maxtrans 255
      storage
        initial 64K
        next 1M
        minextents 1
        maxextents unlimited
    create bitmap index IDX_USER_NO on TBL_MINING_CUST_PRODUCT_HB (USER_NO)
      tablespace CSS_APP
      pctfree 10
      initrans 2
      maxtrans 255
      storage
        initial 64K
        next 1M
        minextents 1
        maxextents unlimited
    -- Create table
    create table TBL_MINING_PRODUCT_HB
      product_name  VARCHAR2(1000),
      product_id    VARCHAR2(30) not null,
      coverage_rate NUMBER
    tablespace CSS_APP
      pctfree 10
      initrans 1
      maxtrans 255
      storage
        initial 16
        next 1
        minextents 1
        maxextents unlimited
    -- Add comments to the columns
    comment on column TBL_MINING_PRODUCT_HB.product_name
      is '产品名称';
    comment on column TBL_MINING_PRODUCT_HB.product_id
      is '产品ID';
    comment on column TBL_MINING_PRODUCT_HB.coverage_rate
      is '产品覆盖率=某一个产品的购买总数/所有产品的购买总数';
    -- Create/Recreate primary, unique and foreign key constraints
    alter table TBL_MINING_PRODUCT_HB
      add constraint PK_PRODUCT_ID primary key (PRODUCT_ID)
      using index
      tablespace CSS_APP
      pctfree 10
      initrans 2
      maxtrans 255
      storage
        initial 64K
        next 1M
        minextents 1
        maxextents unlimited
    Thanks!

  • ECC 5.0 installation Error... before installing the Oracle

    Hi,
    I am installing ECC 5.0. with java version 1.4.2_15. I successfully installed Central Instance. while installing Database Instance in the 16 phase I try to load oracle with ora<SID>. I am getting the error like......
    <b>/oracle/stage/920_32/Disk1/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.15339: Done
    sys12:orasid 11> Initializing Java Virtual Machine from ../../stage/Components/o racle.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux/bin/java. Please wait...
    Error occurred during initialization of VM
    Unable to load native library: /oracle/stage/920_32/Disk1/stage/Components/oracl e.swd.jre/1.3.1.0.0/1/DataFiles/Expanded/jre/linux/lib/i386/libjava.so: symbol _ libcwait, version GLIBC_2.0 not defined in file libc.so.6 with link time refer ence
    </b>
    can anyone help me..
    Thanks
    Shabeer

    Hello Shabeer ,
    Please update GLIBC_2.0  of the Operating System .
    Are you strictly stick with the prerequisite check ?
    Regards ,
    Santosh Karadkar

Maybe you are looking for