Error in Forms but not in sql

hello,
Machine A (win 98, dev) : Forms app(client/server) which calls a stored procedure - works fine
Machine B (win NT) : the same Forms app sends an error raised by the stored procedure (data conversion error);
in the same time, on this machine, the stored procedure works fine if called in a SQL window
Thanks for your help
regards

I recommend you this forum for your topic: Forums Home » Oracle Technology Network (OTN) » Products » Developer Suite » Forms
Joel Pérez

Similar Messages

  • Webutil - works in the form but not in the forms menu

    Hi
    Forms: 11.1.1.3
    Dbs: 11.2.0.2
    I have some code which calls webutil to do an AS to client file transfer.
    This works fine when called from a button in the form.
    If I have a menu on this form, and perform the same code to call webutil I get an error:
    oracle.forms.webutil.fileTransfer.FileTransfer bean not found WEBUTIL_FILE_TRANSFER.getMaxTransfer will not work
    So the same code will work when in the body of the form but not when in the menu.
    The forms has opened up and instantiated all of its objects at both times I try to run it. But it fails from the menu code call.
    Any thoughts on why one works and the other doesn't gratefull received.
    cheers
    Tony

    Hi Tony
    We also had the problem.
    solution:
    We have created a wrapper-form with in the webutil functionality has been implemented (with a dummy-Item).
    In the form we have created a When-Timer-Expired trigger and implemented the Filetransfer functionality. Then Exit_Form.
    This wrapper-form was then called from the menu.
    Alfred

  • SpryHiddenRegion error in IE7 but not FireFox

    Here is a copy of the code and the errors I get. Does anyone
    have any ideas why this would happen in IE only?
    <div spry:region='dsPages' class="SpryHiddenRegion"
    style="height:350px; overflow:auto;">
    <div spry:state='loading'>Loading data...</div>
    <div spry:state='error'>Failed to load
    data.</div>
    <table spry:state='ready' class="mylist">
    <tr id="top">
    <th onClick="dsPages.sort('id');">ID</th>
    <th onClick="dsPages.sort('name');">NAME</th>
    </tr>
    <tbody spry:repeatchildren='dsPages'
    spry:choose="choose">
    <tr spry:when="{id} == selectedID"
    class="SelectedLastClass" id="{ds_RowID}"
    onClick="dsPages.setCurrentRow('{ds_RowID}');pagesSelect({id});"
    spry:hover='HoverClass' spry:select='SelectedClass'>
    <td>{id}  </td>
    <td>{name}  </td>
    </tr>
    <tr spry:default="default" id="{ds_RowID}"
    onClick="dsPages.setCurrentRow('{ds_RowID}');pagesSelect({id});"
    spry:hover='HoverClass' spry:select='SelectedClass'>
    <td>{id}  </td>
    <td>{name}  </td>
    </tr>
    </tbody>
    </table>
    </div>
    ERROR:
    expected ':'
    and
    Spry.Data.updateRegion(spryregion1) caught an exception:
    [object Error]
    Thanks for your help.
    Jim

    i have reduced the code to the following:
    <script type="text/javascript">
    dsPages = new
    Spry.Data.XMLDataSet('views/pages/getdata_pages.cfm',
    '/dataset/row', {useCache: false});
    </script>
    <div spry:region='dsPages' class="SpryHiddenRegion"
    style="height:350px; overflow:auto;">
    <div spry:state='loading'>Loading data...</div>
    <div spry:state='error'>Failed to load
    data.</div>
    <table spry:state='ready' class="mylist">
    </table>
    </div>
    and i get the following error in IE but not FireFox:
    Spry.Data.updateRegion(spryregion1) caught an exception:
    [object Error]

  • Textbox Data Binding in VS 2008, Works on a Main form but not in a Dialog!

    I got a perplexing problem here with Databindings. I'm using a POCO class for XML serialization that implements the INotifyPropertyChanged. I'm using Visual Basic 2008 and unfortunately I have to keep the program that way!
    I have two projects: One is a Main WinForm, and the other one I'm working with another engineer and I'm trying to create a dialogbox for the users to enter in data (ie: user name, calibration data, etc)
    In my Main Winform, I'm doing databinding like this:
    TextBoxUserName.DataBindings.Add("Text", data, "Name", False, DataSourceUpdateMode.OnPropertyChanged)
    And it works fine, but when I do this in the dialogbox form, NOTHING is being updated. Not the textbox nor the data.name member (which is also a string)
    So what's the problem then? How come it works in the instance of the Main Winform but not in the dialogbox?

    Duplicate post with :https://social.msdn.microsoft.com/Forums/en-US/04720835-d2a9-47cb-a0d9-ca457e6bb377/textbox-data-binding-in-vs-2008-works-on-a-main-form-but-not-in-a-dialog?forum=vbgeneral

  • D2kWutil error at runtime, but not in Forms Developer

    Hi,
    I need 'Form on top as SDI' (C/S 6.0.8.) and it works on my WNT machine stabil, also at runtime:
    W-N-F-I Trigger
    OnTop.Window_On_Top('WINDOW1');
    On my WXP machine the same code
    The runtime start with usesdi=NO is OK, but not with usesdi=YES :
    there is a error: 'FRM 06503: PL/SQL Function returned without value.'
    Here is a debug-log from the error run:
    <00> SetDebug: Logging to File chk-debug-new.log
    <99> Win_API(init): Searching For DLL (D2KWUT60.DLL)
    <99> Win_API(init): Preload location not set
    <99> Win_API(init): DLL loaded from D2KWUTIL60_PATH (d:\orawork\d2kwut60\)
    <99> Win_API(init): DLL Found and Loaded
    <99> PreLoad: Args: (None)
    <99> DLLVersion: Args: <No Arguments>
    <99> Register_Function_Call: Ftn="d2kwutil_Version", DLL Count=1, Initial Reg
    <99> DLLVersion: Result: Version=D2KWUT60.DLL Version 6.0.6.0 Production
    <99> Play_Wav: Args: FileName="SystemStart", Asynchronous=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_PlaySound", DLL Count=1, Initial Reg
    <99> Play_WAV: Result: RC=1
    <99> Get_Parent_Window: Args: Window_Handle =198416, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_ParentWin", DLL Count=1, Initial Reg
    <99> Get_Parent_Window: Result: RC=0
    <99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
    <99> Get_Parent_Window: Args: Window_Handle =329460, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Get_Parent_Window: Result: RC=0
    <99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
    <99> Get_Parent_Window: Args: Window_Handle =329460, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Get_Parent_Window: Result: RC=0
    <99> Add_Error: Get_Parent_Window: Unable to obtain parent window handle
    The ok debug:
    <00> SetDebug: Logging to File chk-debug-new.log
    <99> Win_API(init): Searching For DLL (D2KWUT60.DLL)
    <99> Win_API(init): Preload location not set
    <99> Win_API(init): DLL loaded from D2KWUTIL60_PATH (d:\orawork\d2kwut60\)
    <99> Win_API(init): DLL Found and Loaded
    <99> PreLoad: Args: (None)
    <99> DLLVersion: Args: <No Arguments>
    <99> Register_Function_Call: Ftn="d2kwutil_Version", DLL Count=1, Initial Reg
    <99> DLLVersion: Result: Version=D2KWUT60.DLL Version 6.0.6.0 Production
    <99> Play_Wav: Args: FileName="SystemStart", Asynchronous=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_PlaySound", DLL Count=1, Initial Reg
    <99> Play_WAV: Result: RC=1
    <99> Get_Parent_Window: Args: Window_Handle =526002, Recursive=TRUE, RaiseExceptions=FALSE
    <99> Register_Function_Call: Ftn="d2kwutil_ParentWin", DLL Count=1, Initial Reg
    <99> Get_Parent_Window: Result: RC=198372
    What is wrong?
    Best Regards
    Friedhold

    Hi Duncan,
    thank you for the tip:
    I've modified the OnTop Package and it works fine
    in SDI-mode (the Form is permanent on top!):
    PROCEDURE Window_On_Top (Window_Name IN WINDOW) is
    hWnd PLS_INTEGER;
    hParent PLS_INTEGER;
    iRC PLS_INTEGER;
    BEGIN
    hWnd := to_number(get_window_property(Window_Name,WINDOW_HANDLE));
    ------- hParent := win_api_utility.get_parent_window(hWnd,TRUE,FALSE);
    ------- if hParent <> 0 then
    ------- hWnd := hParent;
    ------- end if;
    iRC := i_SetwindowPos(fh_SetWindowPos,hwnd,-1,0,0,0,0,19);
    END;
    Best Regards
    Friedhold

  • Db link error in PL/SQL but not in SQL

    oracle 10.2.0.4
    solaris 10
    I have a simple procedure (anonymous block) that uses a db link to update a table in another db (on same host)
    The procedure fails with the following error:
    ORA-02019: connection description for remote database not found
    I can insert records using the same db_link using the exact same line pasted from the stored proc (same line that raises the ORA-02019).
    insert into table_x@my_db_link (select * from local_table_y);
    x rows inserted
    I use the same sql*plus session to run both the stored proc and sql command;
    SQL> conn my_user/my_pwd
    connected
    SQL> @my_proc.sql
    ORA-02019: connection description for remote database not found
    SQL> insert into table_x@my_db_link (select * from local_table_y);
    x rows inserted
    QUESTION:
    Why does the db_link fail in the procedure and not the sql command line call?
    P.S.
    I converted the procedure to a store proc and it also fails with the same call.

    Perhaps if the Database link is non-public?There is a bug, #3240720, which applies when the owner of the db link is not the user who's executing the query.
    There are several bugs which demonstrate this sort of behaviour. For instance ORA-2019 can be hurled if the local PL/SQL is running against a remote Dataguard standby database (although I would hope we wouldn't be running an INSERT in that scenario).
    Cheers, APC
    blog: http://radiofreetooting.blogspot.com

  • Insert BLOB error in IAS but not in JDeveloper

    Hi
    Our application have a Servlet who executes an INSERT using a PrepareStatement (created by the Transaction of an ApplciationModule)
    In Jdeveloper (10.1.2) this works OK
    But when deploy it in the IAS (904) we have an error:
    java.sql.SQLException: Io exception: Connection reset
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:189)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:231)
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:345)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:2094)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1986)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2697)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:457)
    at com.asorco.sgie.controller.servlets.general.Archivo.uploadFile(Archivo.java:176)
    at com.asorco.sgie.controller.servlets.general.Archivo.doPost(Archivo.java:118)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:733)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.ja
    va:192)
    at java.lang.Thread.run(Thread.java:534)
    In the IAS, Im using the jars used in JDeveloper (classes12.jar, classes12dms.jar, nls_classes12.jar).
    Any knows the reason?
    Thank you!

              The effect to use <jsp:forward> or RequestDispatcher.forward is different between
              BEA and Tomcat (even Websphere). Weblogic stores the output in a buffer, before
              the buffer reaches the limit, you can call those forward methods without obvious
              problems. Tomcat (and Websphere I ever tested) is not so tolerable. If you have
              send out something via Servlet writer or JSPWriter, or have something like HTML
              tags/text before forwards, chances are big to encounter the exceptions you have.
              So I use more include methods to assemble my JSPs and servlets, for the purpose
              of portability.
              "Aidan Monroe" <[email protected]> wrote:
              >
              >I have a .war file that runs perfectly in WebLogic 7.0. Today I tried
              >to run that
              >same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
              >error:
              >
              >java.lang.IllegalStateException: Cannot forward after response has been
              >committed
              >
              >Now, I know what this error means, but I don't know why I would get it
              >when I
              >run in Tomcat but not WebLogic. Does WebLogic do something to "insulate"
              >me from
              >this error that perhaps Tomcat does not do?
              >
              >Aidan
              >
              

  • TSQL working in 2008 but not in SQL Server 2014

    Hello,
    We recently have been asked to move from SQL Server 2008 to SQL Server 2014. We are trying to run parallel tests and one of our queries that was working perfectly in 2008 is not working in 2014.
    One of the filter on the our query(from 2008) is we convert a varchar field to date and compare it to anotehr calulated filed ("convert(date,Quick_Data_Start_Date) <= convert(date,(Year_ID_to_Use + '-' + Month_ID_to_Use + '-01'))").
    This worked fine in 2008 but when i try to do similar operation in 2014 it returns no result.
    For testing purposes, instead of converting the field to date format, i manully converted the actual value i.e. instead of using "convert(date,Quick_Data_Start_Date)" when i use "convert(date,'8/1/2014')" the code works fine.
    The field "Quick_Data_Start_Date" comes from a pivot query.
    When i create a temporary table for the pivot query and use the temporary table in  my code and then convert the field on fly the code works fine again.
    Seems like the T sql is not able to convert the field from varchar to date on the fly when coming from a different query. We have tried changing the compatbility level to 100 as well and it still would not work.
    Any suggestions and comments will be really helpful. Thanks.
    Regards,
    GM

    Hello, here is my overall review:
    The query is not optimized … agreed!  But that’s not the issue.
    There are a number of indexes that could be created, a number of minor calculations or evaluation criteria that could be improved to make the query more efficient … again – AGREED.
    The query “as is” runs in just under a minute (on SQL 2008 machine with less memory and slower hard drives).  Adding the indexes would take more time to add than they would save.
    NONE of that should make the query NOT WORK.  These deficiencies might make it run more slowly, but should not cause the query to return no results.
    “order by” shouldn’t make any difference because the query plan isn’t assuming or using any special order
    The main table (~10 M rows) is using a clustered index scan (not efficient, but not the point)
    The Time dimension table is using a non-clustered index seek (so the index is sorted but the data in the table is NOT physically sorted that way)
    The pivot subquery is using clustered index scan (it’s only 6 rows, so who cares)
    Once again, the order by might make it less efficient, but shouldn’t make it fail.  We get no errors or warnings – it just returns no rows.
    Because the query DOES return results when we 
    Either dump the Pivot query result into a #temp table(single row) and use the #temp table instead of the pivot query in the big SQL or  
    The “input” tables are limited to X rows but DOES NOT when the inputs have more rows
            This strongly suggests a memory issue.
    The server has 64 GB of RAM, but this probably isn’t enough to hold millions of rows and calculations.
    Can we turn on some traces to see what’s happening to the data in the query?  How and what are we looking for?
    Once the memory capacity is exceeded, SQL should be pushing these results to a temporary table (either in the local database or the tempdb).  Can we test to see if that is happening? 
    How?
    Is there a permissions issue?
    I have successfully done large copies outside of SQL (copied 300+ GB file from one location to another) that had to use the disk instead of just memory … means the disk write operation
    isn’t restricted from my user account.
    I can also confirm that the account that runs the SQL Service (“Network Service” account) has full permissions to the drives and paths where the mdf and ldf files are stored (including
    master and temp).
    If this doesn’t work, our upgrade is basically frozen and cannot proceed.  I’m really out of ideas … anything?

  • Record disappear on the form, but not in the table

    Hi,
    I have a main form which ties to table tab1 and subform which ties to table
    tab2
    User entered a record in the main form and not completely finished and go to another form and try to setup something else. And click "Refresh All"
    When the user went back to the main form, the record is lost on the form, but the record in tab1, I think information of the subform is not entered, and maybe because it is an inner join, that's it is not shown on the form?
    Please advice how I can fix this or how we can prevent this in the future.
    Thanks in advance.

    I think you are right about the inner join causing the problem. Can you post the SQL of the query you are using as the main form's record source? Usually, when you have a main form/sub form setup, each form has a table (not a query) as its record source.
    If you set up the master/child links between the two it becomes an implied outer join.
    Bill Mosca
    www.thatlldoit.com
    http://tech.groups.yahoo.com/group/MS_Access_Professionals

  • ORA-01031: insufficient privileges in PL/SQL but not in SQL

    I have problem with following situation.
    I switched current schema to another one "ban", and selected 4 rows from "ed"
    alter session set current_schema=ban;
    SELECT * FROM ed.PS WHERE ROWNUM < 5;
    the output is OK, and I get 4 rows like
    ID_S ID_Z
    1000152 1
    1000153 1
    1000154 1
    1000155 1
    but following procedure is compiled with warning
    create or replace
    procedure proc1
    as
    rowcnt int;
    begin
    select count(*) into rowcnt from ed.PS where rownum < 5;
    end;
    "Create procedure, executed in 0.031 sec."
    5,29,PL/SQL: ORA-01031: insufficient privileges
    5,2,PL/SQL: SQL Statement ignored
    ,,Total execution time 0.047 sec.
    Could you help me why SELECT does work in SQL but not in PL/SQL procedure?
    Thanks.
    Message was edited by:
    MattSk

    Privs granted via a role are only valid from SQL - and not from/within stored PL/SQL code.
    Quoting Tom's (from http://asktom.oracle.com) response to this:I did address this role thing in my book Expert one on one Oracle:
    <quote>
    What happens when we compile a Definer rights procedure
    When we compile the procedure into the database, a couple of things happen with regards to
    privileges.  We will list them here briefly and then go into more detail:
    q    All of the objects the procedure statically accesses (anything not accessed via dynamic SQL)
    are verified for existence. Names are resolved via the standard scoping rules as they apply to the
    definer of the procedure.
    q    All of the objects it accesses are verified to ensure that the required access mode will be
    available. That is, if an attempt to UPDATE T is made - Oracle will verify the definer or PUBLIC
    has the ability to UPDATE T without use of any ROLES.
    q    A dependency between this procedure and the referenced objects is setup and maintained. If
    this procedure SELECTS FROM T, then a dependency between T and this procedure is recorded
    If, for example, I have a procedure P that attempted to 'SELECT * FROM T', the compiler will first
    resolve T into a fully qualified referenced.  T is an ambiguous name in the database - there may be
    many T's to choose from. Oracle will follow its scoping rules to figure out what T really is, any
    synonyms will be resolved to their base objects and the schema name will be associated with the
    object as well. It does this name resolution using the rules for the currently logged in user (the
    definer). That is, it will look for an object owned by this user called T and use that first (this
    includes private synonyms), then it will look at public synonyms and try to find T and so on.
    Once it determines exactly what T refers to - Oracle will determine if the mode in which we are
    attempting to access T is permitted.   In this case, if we as the definer of the procedure either
    owns the object T or has been granted SELECT on T directly or PUBLIC was granted SELECT, the
    procedure will compile.  If we do not have access to an object called T by a direct grant - the
    procedure P will fail compilation.  So, when the object (the stored procedure that references T) is
    compiled into the database, Oracle will do these checks - and if they "pass", Oracle will compile
    the procedure, store the binary code for the procedure and set up a dependency between this
    procedure and this object T.  This dependency is used to invalidate the procedure later - in the
    event something happens to T that necessitates the stored procedures recompilation.  For example,
    if at a later date - we REVOKE SELECT ON T from the owner of this stored procedure - Oracle will
    mark all stored procedures this user has that are dependent on T, that refer to T, as INVALID. If
    we ALTER T ADD  some column, Oracle can invalidate all of the dependent procedures. This will cause
    them to be recompiled automatically upon their next execution.
    What is interesting to note is not only what is stored but what is not stored when we compile the
    object. Oracle does not store the exact privilege that was used to get access to T. We only know
    that procedure P is dependent on T. We do not know if the reason we were allowed to see T was due
    to:
    q    A grant given to the definer of the procedure (grant select on T to user)
    q    A grant to public on T (grant select on T to public)
    q    The user having the SELECT ANY TABLE privilege
    The reason it is interesting to note what is not stored is that a REVOKE of any of the above will
    cause the procedure P to become invalid. If all three privileges were in place when the procedure
    was compiled, a revoke of ANY of them will invalidate the procedure - forcing it to be recompiled
    before it is executed again. Since all three privileges were in place when we created the procedure
    - it will compile successfully (until we revoke all three that is). This recompilation will happen
    automatically the next time that the procedure is executed.
    Now that the procedure is compiled into the database and the dependencies are all setup, we can
    execute the procedure and be assured that it knows what T is and that T is accessible. If something
    happens to either the table T or to the set of base privileges available to the definer of this
    procedure that might affect our ability to access T -- our procedure will become invalid and will
    need to be recompiled.
    This leads into why ROLES are not enabled during the compilation and execution of a stored
    procedure in Definer rights mode. Oracle is not storing exactly WHY you are allowed to access T -
    only that you are. Any change to your privileges that might cause access to T to go away will cause
    the procedure to become invalid and necessitate its recompilation. Without roles - that means only
    'REVOKE SELECT ANY TABLE' or 'REVOKE SELECT ON T' from the Definer account or from PUBLIC. With
    roles - it greatly expands the number of times we would invalidate this procedure. If some role
    that was granted to some role that was granted to this user was modified, this procedure might go
    invalid, even if we did not rely on that privilege from that role. ROLES are designed to be very
    fluid when compared to GRANTS given to users as far as privilege sets go. For a minute, let's say
    that roles did give us privileges in stored objects. Now, most any time anything was revoked from
    ANY ROLE we had, or any role any role we have has (and so on -- roles can and are granted to roles)
    -- many of our objects would become invalid. Think about that, REVOKE some privilege from a ROLE
    and suddenly your entire database must be recompiled! Consider the impact of revoking some system
    privilege from a ROLE, it would be like doing that to PUBLIC is now, don't do it, just think about
    it (if you do revoke some powerful system privilege from PUBLIC, do it on a test database). If
    PUBLIC had been granted SELECT ANY TABLE, revoking that privilege would cause virtually every
    procedure in the database to go invalid. If procedures relied on roles, virtually every procedure
    in the database would constantly become invalid due to small changes in permissions. Since one of
    the major benefits of procedures is the 'compile once, run many' model - this would be disastrous
    for performance.
    Also consider that roles may be
    q    Non-default: If I have a non-default role and I enable it and I compile a procedure that
    relies on those privileges, when I log out I no longer have that role -- should my procedure become
    invalid -- why? Why not? I could easily argue both sides.
    q    Password Protected: if someone changes the password on a ROLE, should everything that might
    need that role be recompiled?  I might be granted that role but not knowing the new password - I
    can no longer enable it. Should the privileges still be available?  Why or Why not?  Again, arguing
    either side of this is easy. There are cases for and against each.
    The bottom line with respect to roles in procedures with Definer rights are:
    q    You have thousands or tens of thousands of end users. They don't create stored objects (they
    should not). We need roles to manage these people. Roles are designed for these people (end users).
    q    You have far fewer application schema's (things that hold stored objects). For these we want
    to be explicit as to exactly what privileges we need and why. In security terms this is called the
    concept of 'least privileges', you want to specifically say what privilege you need and why you
    need it. If you inherit lots of privileges from roles you cannot do that effectively. We can manage
    to be explicit since the number of development schemas is SMALL (but the number of end users is
    large)...
    q    Having the direct relationship between the definer and the procedure makes for a much more
    efficient database. We recompile objects only when we need to, not when we might need to. It is a
    large efficiency enhancement.
    </quote>

  • Error in Solaris but not in Windows

    I have an application that is reading from a database, cleaning the results of all html tags, and writing to a new database. It all works fine on a Windows machine with jdk1.3. However, it throws the error I have attached to the message on the Solaris box. It has to do with the html cleaning. When I take it out, it works on both machines. Why though. Here is the code for the html cleaning and the error: 5 Dukes to whoever can help.
    Code:
          * Removes the html formatting for a string and stores it in a file
          * @return java.lang.String
          * @param htmlText java.lang.String
          * @param outputText java.lang.String
         public static String removeHtml(String htmlText) throws IOException     
              String returnValue = "";
              EditorKit kit = new HTMLEditorKit();          
              Document doc = kit.createDefaultDocument();          
              // The Document class does not yet handle charset's properly.          
              doc.putProperty("IgnoreCharsetDirective", Boolean.TRUE);          
              try          
                   // Create a reader on the HTML content.     
                   Reader rd = new StringReader(htmlText);
                   // Parse the HTML.               
                   kit.read(rd, doc, 0);               
                   //Write the cleaned text to file
                   //writeOutputFile(doc, outputFile);     
                   //Set returnValue to cleaned text
                   returnValue = doc.getText(0, doc.getLength()).toString();
              catch (Exception e)          
                   e.printStackTrace();          
              return returnValue;
         }Error:
    java.lang.NoClassDefFoundError: sun/awt/motif/MToolkit
    at java.lang.Class.forName1(Native Method)
    at java.lang.Class.forName(Class.java:142)
    at java.awt.Toolkit$2.run(Toolkit.java:533)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:524)
    at java.awt.Toolkit.getEventQueue(Toolkit.java:1179)
    at java.awt.EventQueue.isDispatchThread(EventQueue.java:534)
    at javax.swing.text.StyleContext.reclaim(StyleContext.java(Compiled Code))
    at javax.swing.text.StyleContext.reclaim(StyleContext.java(Compiled Code))
    at javax.swing.text.AbstractDocument$AbstractElement.finalize(AbstractDocument.java(Compiled Code))
    at java.lang.ref.Finalizer.invokeFinalizeMethod(Native Method)
    at java.lang.ref.Finalizer.runFinalizer(Finalizer.java(Compiled Code))
    at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java(Compiled C

    Here is the code where I am calling the html cleaner method. This works fine in a Windows env but fails in Solaris. If I comment out the call to removeHtml(value).trim it will work. It will even work if I make a different call removeHtml("string to strip") from the main method. Why would it work in one place but not the other in Solaris, and why would it always work in Windows? Does anybody have any ideas?
               while (rs.next ()) {
                    for (int i = 1; i <= columnCount; ++i) {
                        String value = rs.getString (i);
                        if (rs.wasNull ()){
                            value = "<null>";
                        String columnName = rsmd.getColumnName(i).trim();
                        if(clean&&(columnName.equalsIgnoreCase("DESC")
                                  ||columnName.equalsIgnoreCase("HEADER")
                                  ||columnName.equalsIgnoreCase("TEXT")))
                             //Clean the text
                             //value = removeHtml(value).trim(); //remove html markup
                             value = value.replace('\n', ','); //remove new lines
                             value = value.replace('\r', ','); //remove carriage returns
                             value = replaceString(value, "&mdash", "-"); //remove dash markup
                           outputBuffer.append (value.trim());                      
                        outputBuffer.append ("||");
                    outputBuffer.append ("{{NEWLINE}}");
                }

  • Error In Tomcat But Not In WebLogic

              I have a .war file that runs perfectly in WebLogic 7.0. Today I tried to run that
              same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
              error:
              java.lang.IllegalStateException: Cannot forward after response has been committed
              Now, I know what this error means, but I don't know why I would get it when I
              run in Tomcat but not WebLogic. Does WebLogic do something to "insulate" me from
              this error that perhaps Tomcat does not do?
              Aidan
              

              The effect to use <jsp:forward> or RequestDispatcher.forward is different between
              BEA and Tomcat (even Websphere). Weblogic stores the output in a buffer, before
              the buffer reaches the limit, you can call those forward methods without obvious
              problems. Tomcat (and Websphere I ever tested) is not so tolerable. If you have
              send out something via Servlet writer or JSPWriter, or have something like HTML
              tags/text before forwards, chances are big to encounter the exceptions you have.
              So I use more include methods to assemble my JSPs and servlets, for the purpose
              of portability.
              "Aidan Monroe" <[email protected]> wrote:
              >
              >I have a .war file that runs perfectly in WebLogic 7.0. Today I tried
              >to run that
              >same .war in Tomcat 4.0.6. Unfortunately, it did not run. I get the following
              >error:
              >
              >java.lang.IllegalStateException: Cannot forward after response has been
              >committed
              >
              >Now, I know what this error means, but I don't know why I would get it
              >when I
              >run in Tomcat but not WebLogic. Does WebLogic do something to "insulate"
              >me from
              >this error that perhaps Tomcat does not do?
              >
              >Aidan
              >
              

  • Database link works for form but not report

    I have created a database link to the scott.emp table in a remote database then created a local synonym in my Portal.
    I then created a Form and a Report referencing the local synonym. The for works and allows me to insert record but the form does not. The report compiles fine but I get a message that Portal can't find the underlying table. It seems that if the form works then the report should too. Does anyone have a recommended solution?
    Thank you.
    Sam Masias

    There is a bug filed for this issue. And it should be taken up for fixing most probably in next release.

  • Spool Error - Spool created but not opening/displaying. Message no SP01R042

    Dear All,
    In the ECC Production System, for SD documents Spool is  created but not opening/displaying.
    Message no SP01R042
    When we check the short dump for the user,
    The dump is -
    - POSTING_ILLEGAL_STATEMENT
    - Statement "CALL SCREEN" is not allowed in this form.
    Please help. Perfect answers will be definitely rewarded.
    Thanks & Regards,
    Sameer

    Hi Sri,
    Try to setup the printer at OS LEVEL.
    then,
    If on Windows---use method C.
    if not,
    use method U and map to your printer queue at OS level.
    Hope this resloves this issue.
    Reward Pts if useful
    Regards,
    Malti

  • Error "ACL found but not expected on..." when doing repair permissions.

    I am getting an error on Disk Utility, Repair permissions.   I was having some problems with permissions and sought and received help through forum regarding changing my userid password through Lion Repair (Control R, etc.)  After finishing that ordeal, rebooting, etc.   everything seems fine and works well, perhaps slightly slow.   I decided to go into Disk Utility again and I repeatedly get the following errors...
    "ACL found but not expected on “usr/sbin/system_profiler”
    Repaired “usr/sbin/system_profiler”
    ACL found but not expected on “usr/sbin/systemsetup”
    Repaired “usr/sbin/systemsetup”
    ACL found but not expected on “usr/sbin/traceroute”
    Repaired “usr/sbin/traceroute”
    After about a 20-25 minute repair process, I clear the report ,exit disk utility, reboot the computer and I still get the same report.  Disk verify shows the hard drive to be functioning well.   What is the source of these errors and is there a solution.
    Thanks,

    I had those too.
    I used ACLr8 just now. Didn't know if it would work for Lion or not. Ran Disk Utility again and it didn't show any problems at all... after having several of the ACL's... which bugged me, even though they are not supposed to mean anything. :-)

Maybe you are looking for