Compiler throws "unexpected type" error

Hi,
I am newbie to Generics, I wrote the below program as part of my learning exercise:
=================
class One<T> implements Comparable<? extends One<T>>
     T var;
     public void setVal(T val){
          var=val;
     public T getVal(){
          return this.var;
     public int compareTo(One<T> o1){
          if(this.getVal().equals(o1.getVal())){
return 0;
}else {
return 1;
class Two<T> extends One<T>
     public int compareTo(Two o1){
          // do nothing
          return 0;
class GenTest
     public static void main(String[] args)
          One<String> obj_01=new One<String>();
          obj_01.setVal("Vinayaka");
          One<String> obj_02=new One<String>();
          obj_02.setVal("Vinayaka");
=========
Compilation fails with the below error:
javac GenTest.java
GenTest.java:1: unexpected type
found : ? extends One<T>
required: class or interface without bounds
class One<T> implements Comparable<? extends One<T>>
^
1 error
Can any one please explain me what is wrong with this program ?

You are mixing syntaxes. Your definition should be:
class One<T> implements Comparable<One>(PS: please use code tags when posting code)

Similar Messages

  • Unexpected type error

    I am getting an unexpected type error in the following code:
    import java.awt.Graphics2D;
    import java.awt.geom.Ellipse2D;
    import java.awt.geom.Line2D;
    import java.awt.geom.Point2D;
    public class Line
       public Line(int aClick, Point2D.Double[] aPoint)
          clicks = aClick;
          points = aPoint;
       public void draw(Graphics2D g2)
          if (clicks == 1)
             double x = points[0].getX();
             double y = points[0].getY();
             final double RADIUS = 5;
             Ellipse2D.Double smallCircle
                = new Ellipse2D.Double(x - RADIUS, y - RADIUS,
                   2 * RADIUS, 2 * RADIUS);
             g2.draw(smallCircle);
          else if (clicks >= 2)
             g2.draw(new Line2D.Double(points[0], points[1]));
             double x1 = points[0].getX();
             double y1 = points[0].getY();
             double x2 = points[1].getX();
             double y2 = points[1].getY();
             double length = Math.sqrt((x1 - x2)(x1 - x2) + (y1 - y2)(y1 - y2));
             message = "length = " + length;
             double mx = (x1 + x2) / 2;
             double my = (y1 + y2) / 2;
             g2.drawString(message, (float)mx, (float)my);
       private int clicks;
       private Point2D.Double[] points;  
    }double length = Math.sqrt((x1 - x2)(x1 - x2) + (y1 - y2)(y1 - y2)); this is the part that the compiler complains.
    here is the second part of the program:
    import java.applet.Applet;
    import java.awt.Graphics;
    import java.awt.Graphics2D;
    import java.awt.event.MouseAdapter;
    import java.awt.event.MouseEvent;
    import java.awt.geom.Point2D;
    public class ExP10_10 extends Applet
       public ExP10_10()
          clicks = 0;
          points = new Point2D.Double[MAX_CLICKS];
          MousePressedListener listener = new MousePressedListener();
          addMouseListener(listener);
       public void paint(Graphics g)
          Graphics2D g2 = (Graphics2D)g;
          Line l = new Line(clicks, points);
          l.draw(g2);
       class MousePressedListener extends MouseAdapter
          public void mousePressed(MouseEvent event)
             if (clicks >= MAX_CLICKS) return;
             int mouseX = event.getX();
             int mouseY = event.getY();
             points[clicks] = new Point2D.Double(mouseX, mouseY);
             clicks++;
             repaint();
       private int clicks;
       private Point2D.Double[] points;
       private final int MAX_CLICKS = 2;
    }

    double length = Math.sqrt((x1 - x2)(x1 - x2) + (y1 - y2)(y1 - y2));Java doesn't automatically assume that two expressions next to each other are supposed to be multiplied. You need to be explicit:
    double length = Math.sqrt(((x1 - x2)*(x1 - x2)) + ((y1 - y2)*(y1 - y2)));The extra parentheses are not strictly necessary, as operator precedence will still put the multiplications before the addition. But, I always think it is best to be parenthesize things explicitly, so you don't have to worry about operator precedence (especially for things less obvious than multiplication before addition).
    I guess subtraction should be relatively fast, but for repeated operations, you could define:
    double xDiff = x1-x2;
    double yDiff = y1-y2;
    double length = Math.sqrt((xDiff * xDiff) + (yDiff * yDiff));

  • Recieving unexpected type error.

    This is my code for now and I am recieving an "unexpected type" message. at the line that is in bold. If anyone could lend me a hand that would be great. If i am doing it wrong and you can catch it also please let me know. thanks.
    * This class simulates a person walking through an alley with the potential
    * to take one step in either direction until they reach the end of the alley.
    * @author (Greg Esposito)
    * @version (11-17-06)
    public class AlleyWalker {
    private Die AlleyWalker;
    private int goaldistance;
    private int numSteps;
    private int position;
    public AlleyWalker() {
    this.AlleyWalker = new Die(2);
    this.goaldistance = 10;
    this.numSteps = 0;
    this.position= 0;
    public int getNumSteps() {
    return this.numSteps;
    public int getPosition() {
    return this.position;
    public void reset() {
    this.position = 0;
    public void step () {
    if (this.AlleyWalker.roll() = 1) {
    this.AlleyWalker.step(1);
    this.position = this.position + 1;
    this.numSteps = this.numSteps + 1;
    else if (this.AlleyWalker.roll() = 2) {
    this.AlleyWalker.step(-1);
    this.position = this.position - 1;
    this.numSteps = this.numSteps + 1;
    Message was edited by:
    giocatore83

    Alright that worked out thanks. One last thing. I have to make a method where the program runs through the rolls until it reached 10 or -10. I am not sure how I should do this. If anyone could lend a helping hand on that let me know. Thanks

  • BAPI_GOODSMVT_CREATE throws Valuation Type error for Production Ord and Mvt Type: 101

    Hi,
    I am trying to post a Material Document for a Production order through BAPI_GOODSMVT_CREATE. To the 'AFS_GOODSMVT_SKU' table of the BAPI, the sizes in the production order item are passed and to the 'GOODSMVT_ITEM' table, the respective line for each size is passed.
    Lets say the production order has size 1 (with valuation type: 01 in Material) and size 2 (with valuation type 02 in Material). Inside the BAPI standard code, there is a comparison between Valuation types in Material and Production order. The Production order valuation type is taken as the first found valuation type passed to the BAPI, so in this case it is '01'. In the above case, for the first line there is no comparison error, later for the second line , when comparison happens between '01' and '02' valuation types, the error: M7043 (Valuation Type 01 differs from Valuation type of batch 02) is thrown.
    However when we do the GR grom MB31, this error is not thrown.
    Can someone please throw some light on how to avoid this error when posting the GR for Production Order via the BAPI_GOODSMVT_CREATE ?
    Thanking in Advance.

    I have never seen an AFS system and do not know how this works. There are a few OSS notes on AFS and error M7043, but none to this BAPI. I can't tell you whether this is a bug in SAP or in the way you use this BAPI.
    I am moving this discussion to the Retail space as this is the desired place for AFS related discussions in SCN.

  • Flash 8 compiler throwing an JSFL error when action scrit code increased

    Hi All,
    I am facing problm when i publish FLA file in macro media flash 8. It showing an JSFL error.
    Anyonw know why it shows jsfl error and how can i solve this issue.
    Thanks in Advance
    Regards
    Subba Reddy

    Hi all
    by doing some research and development, i found macro media flash 8 throwing an error in Action Script 2.0 when it exceeds code size limt. does anyone how to solve this.
    Thanks in Advance
    Regards
    Subba Reddy

  • Crystal Report throws Unexpected Database Connector error

    Hi,<br>
    <br>
    We are using Crystal report 2008 CR4E API to implement the crystal report in our application. We use the below code to reset the report data source with our application data source. It works fine for most of the simple queries. But if the query contains any function defined in the SELECT Clause it throws Unexpected Database Connector error. As per the log and analysis we believe the root cause of the exception is it consider that function as column in the table and throws the SQL Exception that "function is Invalid Identifier". Could you please help in resolving this issue?
    <br><br>
    Code:<br><br>
         Tables tables = clientDoc.getDatabaseController().getDatabase().getTables(); <br>
                for(int i = 0;i < tables.size();i++){<br>
                    origTable = tables.getTable(i);<br>
                    if (tableName == null || origTable.getName().equals(tableName)) {<br>
                        newTable = (ITable)origTable.clone(true);<br>
                        newTable.setQualifiedName(origTable.getAlias());<br>
                        connectionInfo = newTable.getConnectionInfo();<br>
                        propertyBag = new PropertyBag();<br>
                        propertyBag.put("Trusted_Connection", params.trustedCon);<br>
                        propertyBag.put("Server Type", params.serverType);<br>
                        propertyBag.put("Use JDBC", params.useJdbc);<br><br>
                        propertyBag.put("Database DLL",params.databaseDLL);<br>
                        propertyBag.put("Connection URL", params.connectionURL);<br>
                        propertyBag.put("Database Class Name", params.dbClassName);<br>
                        connectionInfo.setAttributes(propertyBag);<br>
                        connectionInfo.setUserName(params.userName);<br>
                        connectionInfo.setPassword(params.password);<br>
                        clientDoc.getDatabaseController().setTableLocation(origTable, newTable); // Exception is thrown here<br>
              }                    <br>
         }     <br>
    <br>
    SQL Query : <br><br>
    Select empno, Fun_getEmpAddress(empno) from employee where empno = ?<br><br><br>
    Error Log:<br><br>
    2011-04-26 16:30:41.926 89022900 CrystalReportParms_jsp._jspService(368) Error while generating crystal report<br>
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Unexpected database connector error---- Error code:-2147467259 Error code name:failed<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2285)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:2305)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:737)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.a(SourceFile:167)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.a(SourceFile:529)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter$2.call(SourceFile:527)<br>
         at com.crystaldecisions.reports.common.ThreadGuard.syncExecute(SourceFile:102)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.for(SourceFile:525)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.int(SourceFile:424)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(SourceFile:352)<br>
         at com.businessobjects.sdk.erom.jrc.a.a(SourceFile:54)<br>
         at com.businessobjects.sdk.erom.jrc.a.execute(SourceFile:67)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent$a.execute(SourceFile:716)<br>
         at com.crystaldecisions.proxy.remoteagent.CommunicationChannel.a(SourceFile:125)<br>
         at com.crystaldecisions.proxy.remoteagent.RemoteAgent.a(SourceFile:537)<br>
         at com.crystaldecisions.sdk.occa.report.application.ds.a(SourceFile:186)<br>
         at com.crystaldecisions.sdk.occa.report.application.an.a(SourceFile:108)<br>
         at com.crystaldecisions.sdk.occa.report.application.b0.if(SourceFile:148)<br>
         at com.crystaldecisions.sdk.occa.report.application.b0.b(SourceFile:95)<br>
         at com.crystaldecisions.sdk.occa.report.application.bb.int(SourceFile:96)<br>
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.performDo(SourceFile:151)<br>
         at com.crystaldecisions.proxy.remoteagent.UndoUnitBase.a(SourceFile:106)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:2159)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:543)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.a(SourceFile:3898)<br>
         at com.crystaldecisions.sdk.occa.report.application.DatabaseController.setTableLocation(SourceFile:2906)<br>
         at com.mysystems.myapp.common.CRJavaHelper.changeDataSource(CRJavaHelper.java:157)<br>
         at com.mysystems.myapp.common.CrystalReport.print(CrystalReport.java:202)<br>
         at org.apache.jsp.english.CrystalReportParms_jsp._jspService(CrystalReportParms_jsp.java:368)<br>
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)<br>
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)<br>
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)<br>
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)<br>
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)<br>
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
         at com.mysystems.myapp.common.MyServletFilter.doFilter(MyServletFilter.java:107)<br>
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)<br>
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)<br>
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:857)<br>
         at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)<br>
         at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)<br>
         at java.lang.Thread.run(Thread.java:595)<br>
    Caused by: com.crystaldecisions.reports.common.QueryEngineException: Unexpected database connector error<br>
         at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2958)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.z3(SourceFile:944)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.bL(SourceFile:533)<br>
         at com.crystaldecisions.reports.queryengine.Rowset.zM(SourceFile:245)<br>
         at com.crystaldecisions.reports.queryengine.Connection.a(SourceFile:776)<br>
         at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:2234)<br>
         at com.crystaldecisions.reports.queryengine.Table.if(SourceFile:2161)<br>
         at com.crystaldecisions.reports.queryengine.Table.try(SourceFile:1525)<br>
         at com.crystaldecisions.reports.queryengine.Table.a(SourceFile:568)<br>
         at com.crystaldecisions.reports.queryengine.Table.u7(SourceFile:2405)<br>
         at com.crystaldecisions.reports.dataengine.datafoundation.AddDatabaseTableCommand.new(SourceFile:529)<br>
         at com.crystaldecisions.reports.common.CommandManager.a(SourceFile:71)<br>
         at com.crystaldecisions.reports.common.Document.a(SourceFile:203)<br>
         at com.businessobjects.reports.sdk.requesthandler.f.a(SourceFile:175)<br>
         at com.businessobjects.reports.sdk.requesthandler.DatabaseRequestHandler.byte(SourceFile:1079)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.do(SourceFile:1167)<br>
         at com.businessobjects.reports.sdk.JRCCommunicationAdapter.if(SourceFile:661)<br>
         ... 47 more<br>
    Caused by: com.businessobjects.reports.jdbinterface.common.DBException: Unexpected database connector error<br>
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.driverImpl.jdbc.JDBCQueryDefinition.Execute(Unknown Source)<br>
         at com.crystaldecisions.reports.queryengine.Connection.bf(SourceFile:2953)<br>
         ... 63 more<br>
    Caused by: java.sql.SQLException: ORA-00904: "Fun_getEmpAddress": invalid identifier<br>
    <br>
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:124)<br>
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:304)<br>
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:271)<br>
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:622)<br>
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:111)<br>
         at oracle.jdbc.driver.T4CStatement.execute_for_describe(T4CStatement.java:350)<br>
         at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:895)<br>
         at oracle.jdbc.driver.T4CStatement.execute_maybe_describe(T4CStatement.java:382)<br>
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:985)<br>
         at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:1515)<br>
         ... 66 more<br>

    i'm also getting the same error when i'm trying to call stored procedure (that will fetch the result set and populate the report) through the query in the report-viewer.jsp. The result set is fetched i.e. when i print the result set it shows on tomcat but it is not getting passed to Table object to populate the report. However when i try to give the query explicitly in the form of SELECT statements, it works fine i.e. i can view the report in the browser. But giving query in the form of SELECT is a very naive way and is ok if u have too less reports not requiring too many joins, thats why i was using stored procedure. Any help would be appreciated.

  • While local variable initialized inside try block compiler throws error???

    Check out this code where two local variables(one String and the other int type) is declared at the beginning of the method and initialized inside try block. now when i compile this app, it gives an error sayin' that Variables not been initialized. Can anyone tell me why compiler is throwin' an error message?
    Many thanks.
    import java.io.*;
    public class Test{
    public static void main(String[] args){
    String aa;
    int c;
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    System.out.println("EnterAnything:");
    try{
    aa = in.readLine();
    c = 1;
    catch(IOException e){
    System.out.println(e.getMessage());
    System.out.println(aa);
    System.out.println(c);
    }

    jfbriere,
    Thanks to u all.
    that every reference to the variable is necessarily preceded
    by execution of an assignment
    to the variable.But I've initialized the variable c and aa inside try block before referencing it as a parameter of println()?
    Can u clarify this?
    --DM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • The return of the "Unexpected Data Type" error

    I've searched the forum and only found discussions of this from over a year ago, so either I'm a loner or this is rearing its ugly head again.
    I've got a project that I've been working on between two machines, both running AE 11.0.2.11 with the same plug-ins. One is a macbook pro, one is a macpro. Both are running 10.6.8 (I believe that's snow leopard). I've been saving the project files and assets to the dropbox folder on my machines so that everything is always in sync between them. ***It's been working flawlessly for months.*** I haven't updated anything recently, other than installing Adobe Acrobat on the desktop machine a few days ago.
    This morning on my desktop machine, I couldn't get the project to open without getting the "unexpected data type" error. Holding down shift did nothing. I instinctively started a new project and imported the .aep I was trying to open. No errors! Then I tried to change work spaces and the error came up again. I hit caps lock and tried again. No go. At one point the workspace drop-down had bullets next to *two* of the workspaces, as if they were both active simultaneously.
    My workaround for the moment was to go to my dropbox on the website and revert to a previously saved version of the same project (thank *YOU* dropbox) from a few days ago. That opened fine, though it's missing a few hours' work.
    My fear is that this will recur and I will have to keep going back in time to keep working (two steps forward, one step back) and I've got a deadline to meet. I will try to stay away from custom workspaces, as one poster to this forum says they are generating that error in CS6 (no helpful replies to that thread).
    Anyone else experiencing this in 2013? Any ideas? All help is much appreciated.
    AE CS6 11.0.2.11
    Mac Pro OS v 10.6.8
    Processor:  2x 2.66ghz dual core intel xeon
    12Gb 667mhz DDR2 RAM

    I just started getting the same error today. Never would've imagined workspaces would have ANYTHING to do with this. But I just went to workspaces and clicked 'reset workspace' for whatever I was on, reloaded the project and no error. WTF Adobe??

  • EXPDP error - ORA-39126: Worker unexpected fatal error in KUPW$WORKER.UNLOA

    Greetings All,
    Oracle 11g (11.2.0.0) on Windows 2008 R2
    I am getting the error below during a schema export of just 1 particular schema. Other schema expdp’s don’t encounter this problem.
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/REF_CONSTRAINT
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA [REF_CONSTRAINT:"CM_MASTER"."PPY_PEN_FK"]
    ORA-04063: package body "XDB.DBMS_XDBUTIL_INT" has errors
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 8165
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    000000047B38A000     18990  package body SYS.KUPW$WORKER
    000000047B38A000      8192  package body SYS.KUPW$WORKER
    000000047B38A000      2823  package body SYS.KUPW$WORKER
    000000047B38A000      8847  package body SYS.KUPW$WORKER
    000000047B38A000      1649  package body SYS.KUPW$WORKER
    000000047A576CD0         2  anonymous block
    Job "CM_MASTER"."EXP_CM_MASTER" stopped due to fatal error at 17:11:30I have deleted the identified constraint, but then errors out again on another constraint.
    I have found a tentative resolution for the ORA-39126 error (delete database stats, then gather database stats) but have not done so yet.
    I have tried deleting the statistics for just the schema (cm_master), and then re-gathered stats for the same schema. Still get the error.
    I am concerned about the ORA-04063: package body “XDB.DBMS_XDBUTIL_INT” has errors.
    I have unlocked and set new password for the XDB user, but am not able to logon as XDB to re-compile the package body in question.
    We had some maintenance applied over the weekend that “revoked execute from public” on the following packages:
    dbms_datapump
    dbms_crypto
    dbms_crypto_toolkit
    dbms_java_test
    dbms_random
    dbms_sql
    utl_file
    utl_http
    utl_mail
    utl_smtp
    utl_tcpThe user performing the export with the problem (cm_master) was then granted execute back on the following packages:
    dbms_datapump
    dbms_crypto
    dbms_random
    dbms_sql
    utl_file
    utl_http
    utl_mail
    (not: dbms_crypto_toolkit, dbms_java_test,  utl_smtp, utl_tcp,)Other schemas were granted execute on the following packages and are NOT having expdp problems:
    dbms_datapump
    dbms_sql
    utl_file
    utl_http
    utl_mail
    (not: dbms_crypto, dbms_crypto_toolkit, dbms_random, utl_smtp, utl_tcp )I don't think the public revokes are causing this error because the "Other schemas" do not have this error and were not specifically granted back all of the public revokes that cm_master received back.
    I appreciate any suggestions.
    Thanks for your time,
    Bob
    Edited by: Snyds on Jun 5, 2012 10:03 AM

    rjamya,
    I checked dba_registry, all 18 rows returned are VALID.
    I attempted to compile the package body identified in the error messages:
    ORA-04063: package body "XDB.DBMS_XDBUTIL_INT" has errorswith
    alter package xdb.dbms_xdbutil_int compile body;I got thje following results
    Error starting at line 60 in command:
    alter package xdb.dbms_xdbutil_int compile body
    Error report:
    SQL Command: package XDB.DBMS_XDBUTIL_INT
    Failed: ORA-24344: success with compilation error
    24344. 00000 -  "success with compilation error"
    *Cause:    A sql/plsql compilation error occurred.
    *Action:   Return OCI_SUCCESS_WITH_INFO along with the error code
    package XDB.DBMS_XDBUTIL_INT altered.Any other suggestions regarding how to resolve errors in the XDB.DBMS_ packages?
    I also tried granting CM_MASTER execute on the packages that I revoked execute to PUBLIC on, with no effect.
    I tried “exclude=REF_CONSTRAINT” on the export, the problem seemed to move to the next section:
    Estimate in progress using BLOCKS method...
    Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
    Total estimation using BLOCKS method: 96.31 MB
    Processing object type SCHEMA_EXPORT/USER
    Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
    Processing object type SCHEMA_EXPORT/ROLE_GRANT
    Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
    Processing object type SCHEMA_EXPORT/PRE_SCHEMA/PROCACT_SCHEMA
    Processing object type SCHEMA_EXPORT/DB_LINK
    Processing object type SCHEMA_EXPORT/SEQUENCE/SEQUENCE
    Processing object type SCHEMA_EXPORT/TABLE/TABLE
    Processing object type SCHEMA_EXPORT/TABLE/GRANT/OWNER_GRANT/OBJECT_GRANT
    Processing object type SCHEMA_EXPORT/TABLE/INDEX/INDEX
    Processing object type SCHEMA_EXPORT/TABLE/CONSTRAINT/CONSTRAINT
    Processing object type SCHEMA_EXPORT/TABLE/COMMENT
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_SPEC
    Processing object type SCHEMA_EXPORT/FUNCTION/FUNCTION
    Processing object type SCHEMA_EXPORT/PACKAGE/COMPILE_PACKAGE/PACKAGE_SPEC/ALTER_PACKAGE_SPEC
    Processing object type SCHEMA_EXPORT/FUNCTION/ALTER_FUNCTION
    Processing object type SCHEMA_EXPORT/VIEW/VIEW
    Processing object type SCHEMA_EXPORT/PACKAGE/PACKAGE_BODY
    ORA-39126: Worker unexpected fatal error in KUPW$WORKER.UNLOAD_METADATA [PACKAGE_BODY:"CM_MASTER"."SR_MAINTENANCE"]
    ORA-04063: package body "XDB.DBMS_XDBUTIL_INT" has errors
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 95
    ORA-06512: at "SYS.KUPW$WORKER", line 8165
    ----- PL/SQL Call Stack -----
      object      line  object
      handle    number  name
    000000047B38A000     18990  package body SYS.KUPW$WORKER
    000000047B38A000      8192  package body SYS.KUPW$WORKER
    000000047B38A000      2823  package body SYS.KUPW$WORKER
    000000047B38A000      8847  package body SYS.KUPW$WORKER
    000000047B38A000      1649  package body SYS.KUPW$WORKER
    000000047A576CD0         2  anonymous block
    Job "CM_MASTER"."EXP_CM_MASTER" stopped due to fatal error at 19:36:23I tried the suggestion from my Google-ing, drop database statistics, then gather database statistics. No effect, same error.
    I also tried granting CM_MASTER execute on the packages that I revoked execute to PUBLIC on, with no effect.
    Again what seems odd is that I can export other schemas without errors.
    Any other suggestions, please.
    Thanks,
    Bob
    Edited by: Snyds on Jun 5, 2012 12:04 PM

  • Log warning "Link from unexpected type of object" ("Possible path leak, unable to purge elements of base")

    Hey,
    I'm getting the following warning after closing my LabVIEW application (see also LabVIEW code snippet attached).
    Can you help me figure out if this may be relevant?
    I don't experience anything unexpected, also no leaking of memory.
    Thanks,
    Peter
    #Date: Mo, 11. Nov 2013 15:14:42
    #OSName: Windows 7 Enterprise Service Pack 1
    #OSVers: 6.1
    #OSBuild: 7601
    #AppName: LabVIEW
    #Version: 12.0 32-bit
    #AppKind: FDS
    #AppModDate: 06/26/2012 19:23 GMT
    #LabVIEW Base Address: 0x00400000
    Processing 1230000708 link to [LinkIdentity "ProcessTaskWrapper.lvclass:" [ Mein Computer]
    <DEBUG_OUTPUT>
    11.11.2013 15:15:35.726
    DWarn 0xC1CF3BB8: Link from unexpected type of object {HeapClass=BDHP,UID=5401,DPId=23,o=0x0de33558} in VI [VI "ProcessPool.lvclass:configure.vi" (0x11646770)]
    e:\builds\penguin\labview\branches\2012\dev\source\linker\HeapLinker.cpp(2852) : DWarn 0xC1CF3BB8: Link from unexpected type of object {HeapClass=BDHP,UID=5401,DPId=23,o=0x0de33558} in VI [VI "ProcessPool.lvclass:configure.vi" (0x11646770)]
    minidump id: 236443a2-84d3-403e-a24a-fb72dd7ff65d
    $Id: //labview/branches/2012/dev/source/linker/HeapLinker.cpp#12 $
    </DEBUG_OUTPUT>
    0x0069DDF3 - LabVIEW <unknown> + 0
    0x10016460 - mgcore_SH_12_0 <unknown> + 0
    0x013E32A5 - LabVIEW <unknown> + 0
    0x00EBECFC - LabVIEW <unknown> + 0
    0x01060FD1 - LabVIEW <unknown> + 0
    0x0106112D - LabVIEW <unknown> + 0
    0x0106A5C9 - LabVIEW <unknown> + 0
    0x0106B6D1 - LabVIEW <unknown> + 0
    0x005C28D3 - LabVIEW <unknown> + 0
    0x005C03FC - LabVIEW <unknown> + 0
    0x005C1BCB - LabVIEW <unknown> + 0
    0x005C20AE - LabVIEW <unknown> + 0
    0x006495BC - LabVIEW <unknown> + 0
    0x009ECF0E - LabVIEW <unknown> + 0
    0x01CC57D4 - LabVIEW <unknown> + 0
    0x01CC5964 - LabVIEW <unknown> + 0
    0x006513E3 - LabVIEW <unknown> + 0
    0x00657C9D - LabVIEW <unknown> + 0
    0x00B87A67 - LabVIEW <unknown> + 0
    0x00B8C606 - LabVIEW <unknown> + 0
    0x00B8DA6D - LabVIEW <unknown> + 0
    0x014A90C2 - LabVIEW <unknown> + 0
    0x014ABA3C - LabVIEW <unknown> + 0
    0x014ADA42 - LabVIEW <unknown> + 0
    0x01B4BE87 - LabVIEW <unknown> + 0
    0x01BF99C5 - LabVIEW <unknown> + 0
    0x01B5DBFC - LabVIEW <unknown> + 0
    0x761D62FA - USER32 <unknown> + 0
    0x761D6D3A - USER32 <unknown> + 0
    0x761D77C4 - USER32 <unknown> + 0
    0x761D788A - USER32 <unknown> + 0
    0x01BF9C4D - LabVIEW <unknown> + 0
    0x01BFA0C7 - LabVIEW <unknown> + 0
    0x042F14D6 - QtManager452_2012 <unknown> + 0
    0x670E7261 - NIQtCore_2012 <unknown> + 0
    0x00000000 - <unknown> <unknown> + 0
    Possible path leak, unable to purge elements of base #0
    Attachments:
    2013-11-11_153125.jpg ‏48 KB

    Hello Peter,
    as you can imagine, it is difficult for us to interpret an error message without a certain amount of information.
    Even more, when you cannot reproduce it yourself every time.
    And, on a side note, we as Application Engineers do not know how exactly the compiler works.
    This could be something for the developers, but: to escalate an issue to the developers, there are some requirements.
    - we have to know exactly when and how the error occurs, i.e. the exact steps which have to be done, so you can force the error to show up
    - exact OS, LabVIEW version, all NI Software which is installed
    - what is the application
    - what has been done as troubleshooting actions, can the issue be avoided somehow
    - we would need your VI or project, or at least a minimal version of them, which can produce the error message
    - one of us should be able to reproduce the procedure and get the same error
    I am sorry, but at this point, it seems like I cannot do much for you in this topic.
    Have a nice day,
    Best regards
    PS: one more question:
    is this even a message from LabVIEW? For me, it seems like a Windows crash report - which we can not fully support.
    Christopher W.
    Intern Application Engineering | NI Certified LabVIEW Associate Developer (CLAD) | NI Germany

  • My ipad 4 got in black screen, Itunes still recognize but throw me an error 4005 when i want to restore.

    my ipad 4 don´t turn on, I'm very stressed.
    Yesterday i took a photo and when I wanted to see it my ipad is restarted. took too long to turn on and turn off once was.
    I've tried many ways to change the lightning cable, pc change, restoring the apple mobile device usb, but itunes still throwing me the error 4005.
    I have proven with other software like redsnow but mark me the error as it does not support ios 7.1.2.
    when i connect the ipad in Itunes, it says me that my idevice is in recovery mode.
    when this happened it was the battery to 100 percent

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    Frozen or unresponsive iPad
    Resolve these most common issues:
        •    Display remains black or blank
        •    Touch screen not responding
        •    Application unexpectedly closes or freezes
    http://www.apple.com/support/ipad/assistant/ipad/
    iPhone, iPad, iPod Touch: Troubleshooting Touchscreen Response
    http://support.apple.com/kb/ts1827
    iPad Frozen, not responding, how to fix
    http://appletoolbox.com/2012/07/ipad-frozen-not-responding-how-to-fix/
    iPad Frozen? How to Force Quit an App, Reset or Restart Your iPad
    http://ipadacademy.com/2010/11/ipad-frozen-how-to-force-quit-an-app-reset-or-res tart-your-ipad
    Black or Blank Screen on iPad or iPhone
    http://appletoolbox.com/2012/10/black-or-blank-screen-on-ipad-or-iphone/
    What to Do When Your iPad Won't Turn On
    http://ipad.about.com/od/iPad_Troubleshooting/ss/What-To-Do-When-Your-Ipad-Wo-No t-Turn-On.htm
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    iPad: Basic troubleshooting
    http://support.apple.com/kb/TS3274
    iOS: Restore errors 4005, 4013, and 4014
    http://support.apple.com/kb/TS5314
     Cheers, Tom

  • Hi, We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1. When we try to download a file(.pvw file) in that application safari throws "Download failed" error. Please suggest what needs to be done.

    Hi,
    We have an application  built using HTMl 5 and Javascript running on IPad2, iOS5.1 Safari 5.1.
    When a file url is clicked instead of asking for Save or Open or Cancel options, the file gets opened on IPad by default.
    Is this default behaviour which cannot be changed or can it be configured to ask user preference?
    When we try to download a file(.pvw file -> a model file) in the above application, safari throws "Download failed" error.
    Please suggest what needs to be done.
    Regards,
    Pramod

    Safari on an iPad in general does not allow downloading of files. That's a safety precaution in the iOS SDK to keep unauthorized content off of iOS devices. Safari will open from the web site file types that it can handle, but direct downloading isn't normal behavior, and I don't believe the behavior can be changed, though you can try asking in the developer forum, either here or the one to which you have access as a member of Apple's iOS developer program.
    Regards.

  • Throws Run time error at runtime.

    Hi freinds,
    I've downloaded special jar file and placed in "C:\j2sdk1.4.2_11\jre\lib\ext".
    I've used one of the IO class from this jar file in my Candies.java class.
    When i going to compile it from command prompt it compiles dine but at run time while running following command ,
    D:\TP>javac Candies.java
    D:\TP>java Candies
    Exception in thread "main" java.lang.NoClassDefFoundError: ncst/pgdst/IOException
    When i compile and run this code with IDE 'JCreator' it works fine.
    Why the same application throws run time error at command prompt?
    How could i resolve this issue ?
    Note:I've also set classpath to "C:\j2sdk1.4.2_11\jre\lib\ext\." .
    Regards,
    Sachin Warang.

    If i placed the jar file some where else how could
    used it in my source file?To use a class in your source code, you just import its package and make sure the jar is on the classpath, nothing else is necessary.
    I'm stick to command prompt as i want include the
    input file(which contains big input) at run time
    using the command
    D:\TP>java Candies < input
    Is it possible with any IDE to include such text file
    at run time , if so how could i do this?All IDEs let their users specify parameters for programs they start from within the IDE. See doc of your IDE. (But people here don't recommend IDEs for beginners ;)
    But why it compiles fine and giving me Error at run
    time if it is not set in the classpath?Looks like it is because that class is not used directly in your code but your code calls another class that uses that missing class.
    I've also change the classpath to
    "C:\j2sdk1.4.2_11\jre\lib\ext\pgdst.jar\." still the
    problem exist , why is it so as i'm giving the actual
    path now?You still don't specify the exact jar! E.g: C:\j2sdk1.4.2_11\jre\lib\ext\pgdst.jar\aa.jar
    Hope it helps...

  • Bug fix for JRC application throws "Unexpected database connector" ?

    Hello,
    I'd appreciate if anyone has information on this particular bug and the expected date for releasing the fix.  I face this issue with Crystal Reports for Eclipse SP4 also.
    Here is the link:
    http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap%28bd1lbizjptawmq==%29/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333433313336333833343335%7D.do
    Here are the details of the bug in case you'd rather not click the link:
    Symptom
    JRC application throws "Unexpected database connector" error when certain parameter value is selected
    The same workflow with same report works fine in Crystal Reports Designer and Infoview
    Environment
    Crystal Reports for Eclipse 2.0 SP3
    Reproducing the Issue
       1. Create a report with parameter field with several default values
       2. Refresh the report in Crystal Reports Designer and select different parameter value, the report displays well
       3. Develop a JRC application using Crystal Report for Eclipse 2.0 SP3 JAR files to display the above report
       4. JRC application throws "Unexpected database connector" error when certain parameter value is selected
    Cause
    The issue has been identified and logged under Problem Report ID ADAPT01311448
    Resolution
    This issue is scheduled to be addressed in a future Service Pack.

    Ted,
    Thank you very much for your response.  I downloaded Crystal for Eclipse very recently (about two weeks ago) using the URL
    http://downloads.businessobjects.com/akdlm/crystalreportsforeclipse/2_0/update_site/
    My understanding is that I already have the latest service pack that should have the fix for this bug.  Can you help as to why I still see this issue?
    Thank you.

  • RFC call from Delphi (Bad Variant Type error)

    Well, I'm trying to call an RFC function from Delphi via ActiveX objects..
    I have Codegear 2009 installed and it works without any problem..
    But on another system with Delphi7 installed when I ran same code it gives "Bad Variant Type" error when assigning SapLogonControl's connection object to SapFunction's connection parameter... Both computers have same SAP installation. And on both systems ActiveX objects imported correctly on Delphi.
    Here is the code:
    unit logon1;
    interface
    uses
    Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
    ExtCtrls, OleCtrls, StdCtrls, SAPFunctionsOCX_TLB,
    Grids, SAPLogonCtrl_TLB;
    type
      TForm1 = class(TForm)
      SAPFunctions1: TSAPFunctions;
      Button2: TButton;
      Grid: TStringGrid;
      Edit1: TEdit;
      Edit2: TEdit;
      Label1: TLabel;
      Label2: TLabel;
      SAPLogonControl1: TSAPLogonControl;
    procedure Button2Click(Sender: TObject);
    private
    { Private-Deklarationen }
    public
    { Public-Deklarationen }
    end;
    var
    Form1 : TForm1 ;
    Table, Funct, Connection : VARIANT ;
    implementation
    {$R *.DFM}
    procedure TForm1.Button2Click(Sender: TObject);
    begin
      Connection                  := SAPLogoncontrol1.newConnection;
      Connection.User             := 'testuser';
      Connection.System           := 'CRD';
      Connection.Client           := '300';
      Connection.ApplicationServer:= '10.1.1.10';
      Connection.SystemNumber     := '00';
      Connection.Password         := 'testpass';
      Connection.Language         := 'EN' ;
      if Connection.LogOn(0,true) = true then
      (* parameter "true" = SilentLogOn *)
      begin
        (* assign the existing connection to the *)
        (* component SAPFunctions1                *)
        SAPFunctions1.Connection := Connection; // It gives error on this line...
        Funct := SAPFunctions1.add('ZGIS_TEST_FUNC');
      end;
    end;
    end.
    As I said while Codegear 2009 runs this code without any problem, Delphi 7 crashes on that assignment.. Also I tried outside Delphi, and the file compiled with Codegear works on both systems while the file compiled with Delphi 7 again crashes on buth systems...
    Is there a problem with Delphi 7? Should I use at least Delphi 8 or something for compiling?

    Hi Hakan,
    You must use Non-Unicode RFC library for Delphi 7.0.
    ( Bende Delphi 7.0 kullaniyorum. Ayni hatayi aldim. Unicode library kullanmistim. Kaldirip Non-Unicode olani kullandim. Su an hata yok. RFC cagirabiliyorum. )
    Mustafa Yalcin

Maybe you are looking for