Update compilation error
Hi, can someone tell me why this update compiles with compilation error?
CREATE OR REPLACE PROCEDURE updateName
(fname IN varchar2, newname IN varchar2)
IS
BEGIN
Select fname FROM name_tab WHERE fname = fname
UPDATE name_tab
SET newname = newname
END;
Thank you very much
May be its getting multiple records
Try this
CREATE OR REPLACE PROCEDURE updateName
(fname IN varchar2, newname IN varchar2)
IS
BEGIN
for rec in
(Select fname FROM name_tab WHERE fname = fname)
UPDATE name_tab
SET newname = rec.fname;
end loop;
commit;
END;
Similar Messages
-
When try to call Sub in Excel Objects > SheetXX after the original xlsm is modified and saved by another user in diff machine, getting an error below and seems Excel cannot identify any subs exists in Sheet.
Compile error:
Object library invalid or contains references to object definitions that could not be found
Note: it seems that this problem has been occurring After December 2014 update and still exists even after applying the fix:
http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2014/12/11/forms-controls-stop-working-after-december-2014-updates-.aspx)Hi Kwlee324,
Thanks for sharing the workaround with us. It would be very helpful for others who have the same issue.
Also I found a two useful links about the error message "Object library invalid or contains references to object definitions that could not be found":
https://support.microsoft.com/kb/2703186
http://blogs.msdn.com/b/vsod/archive/2009/06/05/visual-basic-6-controls-stop-working-after-security-advisory-960715.aspx
Hope it is helpful.
Regards & Fei
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Compiler errors with most recent update
I just ran the SoftwareUpdate utility and it installed QuickTime 7.1 and Apple Security Update 2006-003. Now when I compile, I get the following errors:
ld: Undefined symbols:
_LLCStyleInfoCheckForOpenTypeTables referenced from QuartzCore expected to be defined in ApplicationServices
_LLCStyleInfoGetUserRunFeatures referenced from QuartzCore expected to be defined in ApplicationServices
This error used to be "[blahblahblah] referenced from Quicktime epected to be defined in ApplicationServices" not QuartzCore. I looked at /System/Library/Frameworks/QuartzCore.framework/Versions/A/QuartzCore and sure enough, it has a modifcation date of today.
The previous error was caused what appears to be QuickTime 7.0.4 being developed/compiled on Tiger and then distributed to Panther users like myself via Software Update.
I can't figure out whether the QuickTime update or the Security Update changed my QuartzCore, but I'm having trouble figuring out a solution to this problem.
Find a copy of the old QuartzCore framework? Figure out some way to add a dummy library that will define these symbols? Make sure Apple developers compile stuff on Panther when delivering code for Panther? I had to downgrade from Quicktime 7.0.4 to 7.0.1 to compile, which broke my iTunes 6.0.4. Now that won't even help, because the Quicktime 7.0.1 downgrade package doesn't contain QuartzCore.I can't compile anymore after the recent update on PowerMac G5 1.8GHz.
It still works on iBook G4 1GHz.
Both running Mac Os X 10.4.6
Here is an example of config.log from a failed configuration.
$ ./configure --prefix=/opt/local --infodir=${prefix}/share/info
## Platform. ##
hostname = orca.local
uname -m = Power Macintosh
uname -r = 8.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
/usr/bin/uname -p = powerpc
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
hostinfo = Mach kernel version:
Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC
Kernel configured for a single processor only.
1 processor is physically available.
Processor type: ppc970 (PowerPC 970)
Processor active: 0
Primary memory available: 1.25 gigabytes
Default processor set: 68 tasks, 263 threads, 1 processors
Load average: 2.71, Mach factor: 0.24
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin
PATH: /usr/X11R6/bin
## Core tests. ##
configure:1658: checking build system type
configure:1676: result: powerpc-apple-darwin8.6.0
configure:1684: checking host system type
configure:1698: result: powerpc-apple-darwin8.6.0
configure:1721: checking for a BSD-compatible install
configure:1776: result: /opt/local/bin/ginstall -c
configure:1787: checking whether build environment is sane
configure:1830: result: yes
configure:1887: checking for gawk
configure:1903: found /opt/local/bin/gawk
configure:1913: result: gawk
configure:1923: checking whether make sets $(MAKE)
configure:1943: result: yes
configure:2109: checking whether to enable maintainer-specific portions of Makefiles
configure:2118: result: no
User:
ABI=
CC=
CFLAGS=(unset)
CPPFLAGS=(unset)
MPN_PATH=
GMP:
abilist=32
cclist=gcc cc
configure:3776: gcc 2>&1 | grep xlc >/dev/null
configure:3779: $? = 1
configure:3833: checking compiler gcc -O2 -mpowerpc
Test compile:
configure:3847: gcc -O2 -mpowerpc conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3850: $? = 1
failed program was:
int main () { return 0; }
configure:4856: result: no
configure:3754: cc -c conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3757: $? = 1
configure:3776: cc 2>&1 | grep xlc >/dev/null
configure:3779: $? = 1
configure:3833: checking compiler cc -O2
Test compile:
configure:3847: cc -O2 conftest.c >&5
cc1: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:<a class="jive-link-external-small" href="http://">http://developer.apple.com/bugreporter> for instructions.
configure:3850: $? = 1
failed program was:
int main () { return 0; }
configure:4856: result: no
configure:5094: error: could not find a working compiler, see config.log for details
PowerMac G5 1.8GHz (single processor) Mac OS X (10.4.6) 1.2GB RAM -
Revision: 5893
Author: [email protected]
Date: 2009-04-02 16:30:46 -0700 (Thu, 02 Apr 2009)
Log Message:
Fixed compiler errors and updated to 2009 namespace w/ Spark controls (where applicable).
Modified Paths:
flex/sdk/trunk/frameworks/projects/framework/asdoc/en_US/mx/printing/examples/PrintDataGr idExample.mxml -
Compilation Error on Launch.aspx after Update from SP2 to SP4
Hi experts,
I have installed BPC 5.1 SP 2, SP 3 and also SP 4 on a Testmachine and
do not have problems with it. On the productive machine at the customer
HTTPS was not working with SP3 after upgrading, with SP2 HF1 it worked
fine. (We reinstalled the software until SP2 HF1)
Now we needed SP4 for a serious Reporting problem and I installed SP4 on
the system. Now an compilation Error displays after launching the start-page.
Server Error in /OSoft Application
Compiler Error Message: BC30456 CodePage is not a member of ASP.launch_aspx
Source File D:\BPC\WebSrvr\Web\launch.aspx
Thanks for any help.
Regards,
Ralf IssmerHello,
Unfortunately we had no changes on the web at all. Only one change was neccessary in the Web.config, we need to add culture="en-US" so that the admin components could work correctly. There are also no other applications on this server. I also had a look at the log-File OSoftSP1Install.log. SP1 in the file name was confusing me actually, but the date and time within the file was from monday afternoon, when I installed the SP4.
Thank you,
Ralf Issmer -
I am just starting to implement a new user login authentication process wherein after prompting user for username & password, I hope to authenticate them againts our company Active Directory user data. Since I am just starting, I only have very few things
done at this point which is how I wanted to work on this so that my development environment is still at its simplest state.
I am using the following for development:
MS-Visual Studios Professional 2013 Version 12.0.30501.00 Update 2, and
MS .NET Framework Version 4.5.50938.
Here are my project solution's current items:
Web.config:
<?xml version="1.0"?>
<!--
For more information on how to configure your ASP.NET application, please visit
http://go.microsoft.com/fwlink/?LinkId=169433
-->
<configuration>
<system.web>
<compilation debug="true" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
</system.web>
<system.webServer>
<defaultDocument enabled="true">
<files>
<add value="Login.aspx" />
</files>
</defaultDocument>
</system.webServer>
</configuration>
Web.Debug.config:
<?xml version="1.0" encoding="utf-8"?>
<!-- For more information on using web.config transformation visit http://go.microsoft.com/fwlink/?LinkId=125889 -->
<configuration xmlns:xdt="http://schemas.microsoft.com/XML-Document-Transform">
<!--
In the example below, the "SetAttributes" transform will change the value of
"connectionString" to use "ReleaseSQLServer" only when the "Match" locator
finds an attribute "name" that has a value of "MyDB".
<connectionStrings>
<add name="MyDB"
connectionString="Data Source=ReleaseSQLServer;Initial Catalog=MyReleaseDB;Integrated Security=True"
xdt:Transform="SetAttributes" xdt:Locator="Match(name)"/>
</connectionStrings>
-->
<system.web>
<compilation xdt:Transform="RemoveAttributes(debug)" />
<!--
In the example below, the "Replace" transform will replace the entire
<customErrors> section of your web.config file.
Note that because there is only one customErrors section under the
<system.web> node, there is no need to use the "xdt:Locator" attribute.
<customErrors defaultRedirect="GenericError.htm"
mode="RemoteOnly" xdt:Transform="Replace">
<error statusCode="500" redirect="InternalError.htm"/>
</customErrors>
-->
</system.web>
</configuration>
Web.Assemblies.config:
<?xml version="1.0"?>
<configuration>
<system.web>
<compilation debug="false" targetFramework="4.5" />
<httpRuntime targetFramework="4.5" />
<assemblies>
<add assembly="System.DirectoryServices, Version=4.0.0.0, Culture=neutral PublicKeyToken=b03f5f7f11d50a3a"/>
</assemblies>
</system.web>
</configuration>
Login.aspx:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Login.aspx.cs" Inherits="Login" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<div id="loginForm" style="height: 562px; width: 399px; margin-left: 0px" title="Login Form">
<asp:Label ID="loginPageLabel" runat="server" Font-Bold="True" Font-Names="Arial Black" Font-Size="Large" Text="Please Log In"></asp:Label>
<br />
<br />
<asp:Label ID="loginUsernameLabel" runat="server" Text="Username:"></asp:Label>
<asp:TextBox ID="loginUserNameTextBox" runat="server" OnTextChanged="loginUserNameTextBox_TextChanged" Width="213px" Wrap="False" AutoPostBack="True" TabIndex="1"></asp:TextBox>
<br />
<br />
<asp:Label ID="loginPasswordLabel" runat="server" Text="Password:"></asp:Label>
<asp:TextBox ID="loginPasswordTextBox" runat="server" OnTextChanged="loginPasswordTextBox_TextChanged" Width="212px" Wrap="False" AutoPostBack="True" TabIndex="2"></asp:TextBox>
<br />
<br />
<asp:RadioButton ID="loginUAradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginUAradioButton_CheckedChanged" Text="TUPSS Associate" AutoPostBack="True" TabIndex="3" />
<asp:RadioButton ID="loginAFradioButton" runat="server" Font-Bold="True" OnCheckedChanged="loginAFradioButton_CheckedChanged" Text="Area Franchisee" AutoPostBack="True" TabIndex="4" />
<br />
<br />
<br />
<asp:Button ID="loginSubmitButton" runat="server" Font-Bold="True" OnClick="loginSubmitButton_Click" Text="Log In" TabIndex="5" />
<asp:Button ID="loginCancelButton" runat="server" Font-Bold="True" OnClick="loginCancelButton_Click" Text="Cancel" TabIndex="6" />
<br />
<br />
<asp:Label ID="loginStatusInstructionLabel" runat="server" Text="Status/Instruction:"></asp:Label>
<br />
<asp:TextBox ID="loginStatusInstructionTextBox" runat="server" Height="230px" MaxLength="100" Rows="12" TextMode="MultiLine" Width="360px" EnableViewState="False" OnTextChanged="loginStatusInstructionTextBox_TextChanged" ReadOnly="True" TabIndex="-1"></asp:TextBox>
</div>
</form>
</body>
</html>
Login.aspx.cs:
using System;
using System.DirectoryServices;
public partial class Login : System.Web.UI.Page
private string uName; // user-entered username
private string pWord; // user-entered password
private int loginLoadCycles; // just keeping track of how many times Page_Load is called
protected void Page_Load(object sender, EventArgs e)
if (this.loginUserNameTextBox.Text == String.Empty &&
this.loginPasswordTextBox.Text == String.Empty &&
this.loginUAradioButton.Checked == false &&
this.loginAFradioButton.Checked == false)
this.loginInit();
this.setLoginVisibilityAndFocus();
this.loginLoadCycles += 1;
private void loginInit()
this.uName = String.Empty;
this.pWord = String.Empty;
this.loginLoadCycles = 0;
private void setLoginVisibilityAndFocus()
// Decide on whether or not the Login submit & cancel buttons should be enabled or not
if ( this.loginUserNameTextBox.Text == String.Empty ||
(this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false) )
this.loginSubmitButton.Enabled = false;
this.loginCancelButton.Enabled = false;
this.loginStatusInstructionTextBox.Text = "Please specify if you are a TUPSS Associate or an Area Franchisee by checking either the 'TUPSS Associate' or 'Area Franchisee' checkbox.";
else
this.loginSubmitButton.Enabled = true;
this.loginCancelButton.Enabled = true;
if (this.loginPasswordTextBox.Text == String.Empty)
this.loginStatusInstructionTextBox.Text = "Now that you have entered your username & type, please enter your password.";
else
this.loginStatusInstructionTextBox.Text = "When you are ready, please select either the Log In button to login, or the Cancel button to abort.";
if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == false)
this.SetFocus(this.loginUAradioButton);
else if (this.loginUserNameTextBox.Text == String.Empty)
this.SetFocus(this.loginUserNameTextBox);
else if (this.loginPasswordTextBox.Text == String.Empty)
this.SetFocus(this.loginPasswordTextBox);
else
this.SetFocus(this.loginSubmitButton);
protected void loginUserNameTextBox_TextChanged(object sender, EventArgs e)
protected void loginPasswordTextBox_TextChanged(object sender, EventArgs e)
// For some reason, after specifying that the password entry box's textmode to 'Password' setting,
// the UI's password textbox is emptied
this.loginStatusInstructionTextBox.Text = "NOTICE:\nThis application is still under development.\n\n" +
"This is why the password you entered is visible. Once this portion of the application is ready, it will be masked.\n\n" +
"Also, still need to figure out why when changing this to Password entry mode to mask its entered data, password is getting reset.";
protected void loginSubmitButton_Click(object sender, EventArgs e)
this.loginLoadCycles = 0;
this.uName = this.loginUserNameTextBox.Text;
this.pWord = this.loginPasswordTextBox.Text;
if (this.loginUAradioButton.Checked == true && this.loginAFradioButton.Checked == false)
this.loginLADPauthenticate('U'); // authenticate UPS Associates against UPS Corp's Active Directory
else if (this.loginUAradioButton.Checked == false && this.loginAFradioButton.Checked == true)
this.loginLADPauthenticate('A'); // authenticate Area Franchisees against UPS Store's iNet Active Directory
else
// set colors to show that this is an error instead of a status message or instruction
this.loginStatusInstructionTextBox.Text = "ERROR: Cannot log in without specifying if you are an UPS Associate or an Area Franchisee!";
protected void loginCancelButton_Click(object sender, EventArgs e)
this.loginStatusInstructionTextBox.Text = "You have selected to cancel from logging in...";
// Still need to plan what to do when user cancels out of logging in. For now, just initialize class attributes
this.loginInit();
protected void loginUAradioButton_CheckedChanged(object sender, EventArgs e)
String msg = String.Empty;
if (this.loginUAradioButton.Checked == true)
this.loginAFradioButton.Checked = false;
msg = "Thanks for specifying that you are a TUPSS Associate. ";
if (this.loginUserNameTextBox.Text == String.Empty)
msg += "Now please specify your username.";
else if (this.loginPasswordTextBox.Text == String.Empty)
msg += "Now please enter your password.";
this.loginStatusInstructionTextBox.Text = msg;
protected void loginAFradioButton_CheckedChanged(object sender, EventArgs e)
String msg = String.Empty;
if (this.loginAFradioButton.Checked == true)
this.loginUAradioButton.Checked = false;
msg = "Thanks for specifying that you are an Area Franchisee. ";
if (this.loginUserNameTextBox.Text == String.Empty)
msg += "Now please specify your username.";
else if (this.loginPasswordTextBox.Text == String.Empty)
msg += "Now please enter your password.";
this.loginStatusInstructionTextBox.Text = msg;
private void loginLADPauthenticate(char whichActiveDirectory)
String msg = "Authenticating user '" + this.uName + "' with password '" + this.pWord + "' against ";
if (whichActiveDirectory == 'U')
msg += "UPS Corp's Active Directory...";
else if (whichActiveDirectory == 'A')
msg += "The UPS Store's Franchisee Active Directory...";
msg += "\n\nNOTICE:\nThis is still under development.\n\nAt this point, this application is supposed to do something else now but is not yet ready.";
this.loginStatusInstructionTextBox.Text = msg;
this.loginStatusInstructionTextBox.AutoPostBack = true;
// Authenticate using LDAP
protected void loginStatusInstructionTextBox_TextChanged(object sender, EventArgs e)
I confirmed that I have System.DirectoryServices.dll located in
C:\Windows\Microsoft.NET\assembly\GAC_MSIL\v4.0_4.0.0.0__b03f5f7f11d50a3a\ folder and that I as well as System have read as well as read&execute privileges
not only to all folders in its path but also to the DLL file itself.
I would appreciate any help in trying to resolve this compilation error so that I can proceed with implementing LDAP features for this endeavor.
Thanks so much,
hguico @ The UPS StoreHi,
For web application problem, please post your thread in
ASP.NET forum.
Best Wishes!
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. Thanks<br/> MSDN Community Support<br/> <br/> Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and
makes it easier for other visitors to find the resolution later. -
Hi!
I can't run LV, I get everytime thins error:
Compiler error. Report this problem to ni tech support.
copy cvt str/pict/tag, csrc=0x40
~~~~
Regards
Sarah
LV 7.1.1Dear Sarah,
have you updated to LV 7.1.1 or does your problem occur in LV 7.1? I haven't updated to lv7.1.1 by now and we are using the english version.
Waldemar
Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
Don't forget to give Kudos to good answers and/or questions -
Warning: Procedure created with compilation errors.
I am trying to upload a pdf file into a blob column of a table. I get this error with these three ways of doing that:Warning: Procedure created with compilation errors.
Any ideas why?
-- THE STORAGE TABLE FOR THE IMAGE FILE
ALTER TABLE PDM
DROP PRIMARY KEY CASCADE;
DROP TABLE PDM CASCADE CONSTRAINTS;
CREATE TABLE PDM (
DNAME VARCHAR2(30), -- DIRECTORY NAME
SNAME VARCHAR2(30), -- SUBDIRECTORY NAME
FNAME VARCHAR2(30), -- FILE NAME
IBLOB BLOB); -- IMAGE FILE
-- CREATE THE PROCEDURE TO LOAD THE FILE
CREATE OR REPLACE PROCEDURE LOAD_FILE (
PDNAME VARCHAR2,
PSNAME VARCHAR2,
PFNAME VARCHAR2) IS
SRC_FILE BFILE;
DST_FILE BLOB;
LGH_FILE BINARY_INTEGER;
BEGIN
SRC_FILE := BFILENAME('PDF_DIR', '266-5210.pdf');
-- INSERT A NULL RECORD TO LOCK
INSERT INTO PDM
(DNAME, SNAME, FNAME, IBLOB)
VALUES
(PDNAME, PSNAME, PFNAME, EMPTY_BLOB())
RETURNING IBLOB INTO DST_FILE;
-- LOCK RECORD
SELECT IBLOB
INTO DST_FILE
FROM PDM
WHERE DNAME = PDNAME
AND SNAME = PSNAME
AND FNAME = PFNAME
FOR UPDATE;
-- OPEN THE FILE
DBMS_LOB.FILEOPEN(SRC_FILE, DBMS_LOB.FILE_READONLY);
DBMS_LOB.OPEN(DST_FILE, DBMS_LOB.LOB_READWRITE);
-- DETERMINE LENGTH
LGH_FILE := DBMS_LOB.GETLENGTH(SRC_FILE);
-- READ THE FILE
DBMS_LOB.LOADFROMFILE(DST_FILE, SRC_FILE, LGH_FILE);
-- UPDATE THE BLOB FIELD
UPDATE PDM
SET IBLOB = DST_FILE
WHERE DNAME = PDNAME
AND SNAME = PSNAME
AND FNAME = PFNAME;
-- CLOSE FILE
DBMS_LOB.FILECLOSE(SRC_FILE);
END LOAD_FILE;
-- THE STORAGE TABLE FOR THE IMAGE FILE
ALTER TABLE PDM
DROP PRIMARY KEY CASCADE;
DROP TABLE PDM CASCADE CONSTRAINTS;
CREATE TABLE PDM
FNAME VARCHAR2(1000)
,IBLOB BLOB
-- CREATE THE PROCEDURE TO LOAD THE FILE
CREATE OR REPLACE PROCEDURE LOAD_FILE AS (
SRC_FILE BFILE := BFILENAME('PDF_DIR', '262-2827.pdf');
DST_FILE BLOB;
BEGIN
-- INSERT A NULL RECORD TO LOCK
INSERT INTO PDM
(FNAME, IBLOB)
VALUES
('262-2827.pdf', EMPTY_BLOB())
RETURNING IBLOB INTO DST_FILE;
-- OPEN THE FILE
DBMS_LOB.FILEOPEN(SRC_FILE, DBMS_LOB.FILE_READONLY);
DBMS_LOB.OPEN(DST_FILE, DBMS_LOB.LOB_READWRITE);
-- READ THE FILE
DBMS_LOB.LOADFROMFILE( SRC_FILE, DST_FILE);
-- UPDATE THE BLOB FIELD
UPDATE PDM
SET FNAME = SRC_FILE,
IBLOB = DST_FILE;
-- CLOSE FILE
DBMS_LOB.CLOSE(DST_FILE);
DBMS_LOB.FILECLOSE(SRC_FILE);
COMMIT;
END LOAD_FILE;
ALTER TABLE IMAGE_TABLE
DROP PRIMARY KEY CASCADE;
DROP TABLE IMAGE_TABLE CASCADE CONSTRAINTS;
CREATE TABLE IMAGE_TABLE (
ID NUMBER PRIMARY KEY,
IMAGE ORDSYS.ORDIMAGE);
CREATE OR REPLACE DIRECTORY IMAGEDIR AS 'C:\cards\';
GRANT READ ON DIRECTORY IMAGEDIR TO PUBLIC;
GRANT READ ON DIRECTORY MY_FILES TO twilliam;
GRANT READ ON DIRECTORY MY_FILES TO tmwillia;
CREATE OR REPLACE PROCEDURE IMAGE_IMPORT(DEST_ID NUMBER,
FILENAME VARCHAR2)
IS
IMG ORDSYS.ORDIMAGE;
CTX RAW(64) := NULL;
BEGIN
DELETE FROM IMAGE_TABLE
WHERE ID = DEST_ID;
INSERT INTO IMAGE_TABLE (ID, IMAGE)
VALUES (DEST_ID, ORDSYS.ORDIMAGE.INIT())
RETURNING IMAGE INTO IMG;
IMG.IMPORTFROM(CTX, 'FILE', 'IMAGEDIR', FILENAME);
UPDATE IMAGE_TABLE SET IMAGE=IMG WHERE ID=DEST_ID;
END
CALL IMAGE_IMPORT(7142,'125-0502.pdf');
CALL IMAGE_IMPORT(7143,'125-0503.pdf');
SELECT ID,
T.IMAGE.GETHEIGHT(),
T.IMAGE.GETWIDTH()
FROM IMAGE_TABLE T;
SELECT ID,
T.IMAGE.GETFILEFORMAT(),
T.IMAGE.GETCOMPRESSIONFORMAT()
FROM IMAGE_TABLE T;
SELECT ID,
T.IMAGE.GETCONTENTFORMAT(),
T.IMAGE.GETCONTENTLENGTH()
FROM IMAGE_TABLE T;In the second load_file procedure you should probably change the update command
-- UPDATE THE BLOB FIELD
UPDATE PDM
SET FNAME = SRC_FILE,
IBLOB = DST_FILE;into this
-- UPDATE THE BLOB FIELD
UPDATE PDM
SET IBLOB = DST_FILE
WHERE FNAME = '262-2827.pdf';but I'm not sure how to explain the eof error message. Usually this happens when you forget an "END;" or "END LOOP;" command.
Ok I rechecked and the declaration of the second procedure seems wrong
-- CREATE THE PROCEDURE TO LOAD THE FILE
CREATE OR REPLACE PROCEDURE LOAD_FILE AS (
SRC_FILE BFILE := BFILENAME('PDF_DIR', '262-2827.pdf');
DST_FILE BLOB;
BEGINshould be rewritten as
-- CREATE THE PROCEDURE TO LOAD THE FILE
CREATE OR REPLACE PROCEDURE LOAD_FILE
AS
SRC_FILE BFILE := BFILENAME('PDF_DIR', '262-2827.pdf');
DST_FILE BLOB;
BEGIN
...I removed one parenthesis which was not closed.
And for the image_import procedure there is a semikolon missing after the final END.
END*;*
Edited by: Sven W. on Nov 24, 2008 5:54 PM.
Edited by: Sven W. on Nov 24, 2008 5:56 PM
Edited by: Sven W. on Nov 24, 2008 5:59 PM -
No Compiling Error but doesn't work NEW
import java.awt.*;
import java.awt.geom.*;
import java.awt.event.*;
import java.applet.*;
public class javacw extends Applet implements KeyListener, Runnable
Area pandaArea;
Graphics2D g2d;
// Providing coordinate control for the Panda
int pandax=20, panday=50;
// Animation condition. True = animate, False = static.
boolean pandabool=false, laidOut=false;
boolean left;
boolean right;
boolean up;
boolean down;
Thread animThread;
Dimension offDimension; // Defines an offscreen Dimension
Image offImage; // Defines an offscreen Image
Graphics offGraphics; // Defines an offscreen Graphics
Image panda; // Defines an Image object for panda
public void init()
// Set the layout of the applet to null
setLayout(null);
panda = getImage(getCodeBase(), "panda.gif");
pandax=0;
panday=0;
addKeyListener(this);
public void Move ()
if (left) {
pandax = pandax - 10;
if (right) {
pandax = pandax + 10;
if (up){
panday = panday + 10;
if (down){
panday = panday - 10;
public void keyTyped(KeyEvent event){}
public void keyPressed(KeyEvent event)
if (event.getKeyCode() == KeyEvent.VK_LEFT) left = true;
if (event.getKeyCode() == KeyEvent.VK_RIGHT) right = true;
if (event.getKeyCode() == KeyEvent.VK_DOWN) down = true;
if (event.getKeyCode() == KeyEvent.VK_UP) up = true;
repaint();
public void keyReleased(KeyEvent e)
if (e.getKeyCode() == KeyEvent.VK_LEFT) left = false;
if (e.getKeyCode() == KeyEvent.VK_RIGHT) right = false;
if (e.getKeyCode() == KeyEvent.VK_UP) up = false;
if (e.getKeyCode() == KeyEvent.VK_DOWN) down = false;
repaint();
public void start()
// Make sure the thread hasn already been created
if (animThread == null) {
animThread = new Thread(this, "anim");
animThread.start();
public void run() {
// Create a current thread.
Thread myThread = Thread.currentThread();
// As long as the thread is created, keep redrawing the
// canvas and then pausing for 10 miliseconds.
while (animThread == myThread) {
repaint();
try {
Thread.sleep(10);
} catch (InterruptedException e){}
public void paint(Graphics g)
if (offImage != null) {
g2.drawImage(offImage, 0, 0, null);
// Overide the update() method
public void update(Graphics g) {
Dimension d = getSize();
// Create the offscreen graphics context
if ((offGraphics == null)
|| (d.width != offDimension.width)
|| (d.height != offDimension.height)) {
offDimension = d;
offImage = createImage(d.width, d.height);
offGraphics = offImage.getGraphics();
// Erase the previous image
offGraphics.setColor(getBackground());
offGraphics.fillRect(0, 0, d.width, d.height);
offGraphics.setColor(Color.black);
paintFrame(offGraphics); // Paint the frame into the image
g.drawImage(offImage, 0, 0, null); // Paint the image onto the screen
public void paintFrame(Graphics g) {
Graphics2D g2d = (Graphics2D)g;
g2d.drawImage(panda, pandax, panday, this);
if (pandabool) { // If pandabool==true, animate the panda =)
if (pandax>400) pandax=0;
if(pandax<0)pandax=400;
public void stop()
animThread = null;
offImage = null;
offGraphics = null;
public void destroy(){}
hi everyone, i'm new to java and i'm trying to wirte a keyListener to makes my image move. btw there are no compiling errors but the key is not working. hope that someone can help me. appreciateYou have a Move() function that you're not calling! Not much use unless you place a call to it in your run() function, eh?
Next time you post code, use the tags. -
Deprecated API compilation error
Please help. Attached is my source code. I'm receiving a compilation error that reads 'RnrBooksApp.java uses or overrides a deprecated API. Recompile with -deprecation for details.' I'm very new to Java, so I appreciate any assistance. Thank you!
//ClassName: RnrBooksApp
import java.sql.*;
import java.awt.*;
import java.awt.event.*;
public class RnrBooksApp extends Frame implements ItemListener, ActionListener
//Declare database variables
Connection conBook;
Statement cmdBook;
ResultSet rsBook;
boolean blnSuccessfulOpen = false;
//Declare components
Choice lstBooks = new Choice();
TextField txtISBN = new TextField(13);
TextField txtTitle = new TextField(50);
TextField txtAuthor = new TextField(30);
TextField txtPublisher = new TextField(30);
Button btnAdd = new Button("Add");
//Button btnUpdate = new Button("Update");
Button btnEdit = new Button("Save");
Button btnCancel = new Button("Cancel");
Button btnDelete = new Button("Delete");
Label lblMessage = new Label(" ");
public static void main(String args[])
//Declare an instance of this application
RnrBooksApp thisApp = new RnrBooksApp();
thisApp.createInterface();
public void createInterface()
//Load the database and set up the frame
loadDatabase();
if (blnSuccessfulOpen)
//Set up frame
setTitle("Books Database");
addWindowListener(new WindowAdapter()
public void windowClosing(WindowEvent event)
stop();
System.exit(0);
setLayout(new BorderLayout());
//Set up top panel
Panel pnlTop = new Panel(new GridLayout(2, 2, 10, 10));
pnlTop.add(new Label("ISBN"));
lstBooks.insert("Select a Book to Display", 0);
lstBooks.addItemListener(this);
pnlTop.add(lstBooks);
pnlTop.add(new Label(" "));
add(pnlTop, "North");
//Set up center panel
Panel pnlMiddle = new Panel(new GridLayout(5, 2, 10, 10));
pnlMiddle.getInsets();
pnlMiddle.add(new Label("ISBN"));
pnlMiddle.add(txtISBN);
pnlMiddle.add(new Label("Title"));
pnlMiddle.add(txtTitle);
pnlMiddle.add(new Label("Author"));
pnlMiddle.add(txtAuthor);
pnlMiddle.add(new Label("Publisher"));
pnlMiddle.add(txtPublisher);
setTextToNotEditable();
Panel pnlLeftButtons = new Panel(new GridLayout(0, 2, 10, 10));
Panel pnlRightButtons = new Panel(new GridLayout(0, 2, 10, 10));
pnlLeftButtons.add(btnAdd);
btnAdd.addActionListener(this);
pnlLeftButtons.add(btnEdit);
btnEdit.addActionListener(this);
pnlRightButtons.add(btnDelete);
btnDelete.addActionListener(this);
pnlRightButtons.add(btnCancel);
btnCancel.addActionListener(this);
btnCancel.setEnabled(false);
pnlMiddle.add(pnlLeftButtons);
pnlMiddle.add(pnlRightButtons);
add(pnlMiddle, "Center");
//Set up bottom panel
add(lblMessage, "South");
lblMessage.setForeground(Color.red);
//Display the frame
setSize(400, 300);
setVisible(true);
else
stop(); //Close any open connection
System.exit(-1); //Exit with error status
public Insets insets()
//Set frame insets
return new Insets(40, 15, 15, 15);
public void loadDatabase()
try
//Load the Sun drivers
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
catch (ClassNotFoundException err)
try
//Load the Microsoft drivers
Class.forName("com.ms.jdbc.odbc.JdbcOdbcDriver");
catch (ClassNotFoundException error)
System.err.println("Drivers did not load properly");
try
//Connect to the database
conBook = DriverManager.getConnection("jdbc:odbc:Book");
//Create a ResultSet
cmdBook = conBook.createStatement();
rsBook = cmdBook.executeQuery(
"Select * from Book;");
loadBooks(rsBook);
blnSuccessfulOpen = true;
catch(SQLException error)
System.err.println("Error: " + error.toString());
public void loadBooks(ResultSet rsBook)
//Fill ISBN list box
try
while(rsBook.next())
lstBooks.add(rsBook.getString("ISBN"));
catch (SQLException error)
System.err.println("Error in Display Record." + "Error: " + error.toString());
public void itemStateChanged(ItemEvent event)
//Retrieve and display the selected record
String strISBN = lstBooks.getSelectedItem();
lblMessage.setText(""); //Delete instructions
try
rsBook = cmdBook.executeQuery(
"Select * from Book where [ISBN] = '"
+ strISBN + "';");
txtISBN.setText(strISBN);
displayRecord(rsBook);
setTextToEditable();
catch(SQLException error)
lblMessage.setText("Error in result set. " + "Error: " + error.toString());
public void displayRecord(ResultSet rsBook)
//Display the current record
try
if(rsBook.next())
txtTitle.setText(rsBook.getString("Title"));
txtAuthor.setText(rsBook.getString("Author"));
txtPublisher.setText(rsBook.getString("Publisher"));
lblMessage.setText("");
else
lblMessage.setText("Record not found");
clearTextFields();
catch (SQLException error)
lblMessage.setText("Error: " + error.toString());
public void actionPerformed(ActionEvent event)
//Test the command buttons
Object objSource = event.getSource();
if(objSource == btnAdd && event.getActionCommand () == "Add")
Add();
else if (objSource == btnAdd)
Save();
else if(objSource == btnEdit)
Edit();
else if(objSource == btnDelete)
Delete();
else if(objSource == btnCancel)
Cancel();
public void setTextToNotEditable()
//Lock the text fields
txtISBN.setEditable(false);
txtTitle.setEditable(false);
txtAuthor.setEditable(false);
txtPublisher.setEditable(false);
public void setTextToEditable()
//Unlock the text fields
txtISBN.setEditable(true);
txtTitle.setEditable(true);
txtAuthor.setEditable(true);
txtPublisher.setEditable(true);
public void clearTextFields()
//Clear the text fields
txtISBN.setText("");
txtTitle.setText("");
txtAuthor.setText("");
txtPublisher.setText("");
public void Add()
//Add a new record
lblMessage.setText(" "); //Clear previous message
setTextToEditable(); //Unlock the text fields
clearTextFields(); //Clear text field contents
txtISBN.requestFocus ();
//Set up the OK and Cancel buttons
btnAdd.setLabel("OK");
btnCancel.setEnabled(true);
//Disable the Delete and Edit buttons
btnDelete.setEnabled(false);
btnEdit.setEnabled(false);
public void Save()
//Save the new record
// Activated when the Add button has an "OK" label
if (txtISBN.getText().length ()== 0 || txtAuthor.getText().length() == 0)
lblMessage.setText("The ISBN or Author is blank");
else
try
cmdBook.executeUpdate("Insert Into Book "
+ "([ISBN], [Title], [Author], [Publisher]) "
+ "Values('"
+ txtISBN.getText() + "', '"
+ txtTitle.getText() + "', '"
+ txtAuthor.getText() + "', '"
+ txtPublisher.getText() + "')");
//Add to name list
lstBooks.add(txtISBN.getText());
//Reset buttons
Cancel();
catch(SQLException error)
lblMessage.setText("Error: " + error.toString());
public void Delete()
//Delete the current record
int intIndex = lstBooks.getSelectedIndex();
String strISBN = lstBooks.getSelectedItem();
if(intIndex == 0) //Make sure a record is selected
//Position 0 holds a text message
lblMessage.setText("Please select the record to be deleted");
else
//Delete the record from the database
try
cmdBook.executeUpdate(
"Delete from Book where [ISBN] = '" + strISBN + "';");
clearTextFields(); //Delete from screen
lstBooks.remove(intIndex); //Delete from list
lblMessage.setText("Record deleted"); //Display message
catch(SQLException error)
lblMessage.setText("Error during Delete."
+ "Error: " + error.toString());
public void Cancel()
//Enable the Delete and Edit buttons
btnDelete.setEnabled(true);
btnEdit.setEnabled(true);
//Disable the Cancel button
btnCancel.setEnabled(false);
//Change caption of button
btnAdd.setLabel("Add");
//Clear the text fields and status bar
clearTextFields();
lblMessage.setText("");
public void Edit()
//Save the modified record
int intIndex = lstBooks.getSelectedIndex();
if(intIndex == 0) //Make sure a record is selected
//Position 0 holds a text message
lblMessage.setText("Please select the record to change");
else
String strISBN = lstBooks.getSelectedItem();
try
cmdBook.executeUpdate("Update Book "
+ "Set [ISBN] = '" + txtISBN.getText() + "', "
+ "[Title] = '" + txtTitle.getText() + "', "
+ "[Author] = '" + txtAuthor.getText() + "', "
+ "[Publisher] = '" + txtPublisher.getText() + "' "
+ "Where [ISBN] = '" + strISBN + "';");
if (!strISBN.equals(txtISBN.getText()))
//Last name changed; change the list
lstBooks.remove(intIndex); //Remove the old entry
lstBooks.add(txtISBN.getText()); //Add the new entry
catch(SQLException error)
lblMessage.setText("Error during Edit. " + "Error: " + error.toString());
public void stop()
//Terminate the connection
try
if (conBook != null)
conBook.close();
catch(SQLException error)
lblMessage.setText("Unable to disconnect");How DO you compile then?
If you don't type "javac", you must be using an IDE.
In your IDE there should be some kind of configuration
tab or option for "compiler options" or compilation options
or compiler arguments... something like that.
put "-deprecation" in that text box and recompile.
Your compiler should tell you all about which methods
are deprecated -- you then go to your trust JavaDocs
and lookup those methods in the API and read WHY they
are deprecated (i.e. OLD, outdated, defunct, no longer used)
and what you should use instead. Then, correct your
code to no longer use the deprecated methods and instead
do things as suggested in the deprecation comments. -
An XJC compilation error - Could not load class (..) for type cvsversion
I've got a strange compilation error using NetBeans 4.0 (I'd guess the version does not matter here) and Ant 1.6.2. When the following task is executed,
<target name="compile_ofx_schema">
<antcall target="clean-ofx"/>
<delete dir="${ofx-jaxb-src.dir}"/>
<mkdir dir="${ofx-jaxb-src.dir}" />
<xjc schema="${schema.dir}/ofx102.xsd" package="com.xxx.ofx102" target="${ofx-jaxb-src.dir}">
<arg value="-nv" />
<arg value="-extension" />
</xjc>
</target>
I get the error from NetBeans console,
Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
D:\appserver\build.xml:797: unable to parse the schema. Error messages should have been provided
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 4 seconds)
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
Could not load class (org.apache.tools.ant.tasksdefs.cvslib.CvsVersion) for type cvsversion
And when I run the Ant task from the command line, I don't get the error at all.
Any help is greatly appreciated.That was a great finding from you. Thank you.
I followed your alternative approach and updated the ant.jar file. The "Could not load class..." error went away but the stack trace still remains. Now I am clueless again since I have ant on the debug mode and can't find any more useful info.
Class com.sun.tools.xjc.reader.internalizer.LocatorTable loaded from ant loader (parentFirst)
Class java.util.HashSet loaded from parent loader (parentFirst)
Class javax.xml.parsers.DocumentBuilderFactory loaded from parent loader (parentFirst)
Couldn't load Resource org/netbeans/core/xml/DOMFactoryImpl.class
Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.DocumentBuilderFactory
Class org.apache.crimson.jaxp.DocumentBuilderFactoryImpl loaded from parent loader (parentFirst)
Class javax.xml.parsers.SAXParserFactory loaded from parent loader (parentFirst)
Couldn't load Resource org/netbeans/core/xml/SAXFactoryImpl.class
Couldn't load ResourceStream for META-INF/services/javax.xml.parsers.SAXParserFactory
Class org.apache.crimson.jaxp.SAXParserFactoryImpl loaded from parent loader (parentFirst)
Class javax.xml.parsers.DocumentBuilder loaded from parent loader (parentFirst)
Class java.util.Map loaded from parent loader (parentFirst)
Class javax.xml.parsers.SAXParser loaded from parent loader (parentFirst)
Finding class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/xmlschema/parser/XMLSchemaInternalizationLogic$ReferenceFinder.class
Finding class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/AbstractReferenceFinderImpl.class
Class org.xml.sax.helpers.XMLFilterImpl loaded from parent loader (parentFirst)
Class com.sun.tools.xjc.reader.internalizer.AbstractReferenceFinderImpl loaded from ant loader (parentFirst)
Class com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic$ReferenceFinder loaded from ant loader (parentFirst)
Class org.xml.sax.XMLFilter loaded from parent loader (parentFirst)
Finding class com.sun.tools.xjc.reader.internalizer.VersionChecker
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/VersionChecker.class
Class com.sun.tools.xjc.reader.internalizer.VersionChecker loaded from ant loader (parentFirst)
Finding class com.sun.tools.xjc.reader.internalizer.DOMBuilder
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-xjc.jar com/sun/tools/xjc/reader/internalizer/DOMBuilder.class
Finding class com.sun.xml.bind.marshaller.SAX2DOMEx
Loaded from D:\bbw\build\Common_3.6\Packaged\appserver\lib\jaxb\jaxb-impl.jar com/sun/xml/bind/marshaller/SAX2DOMEx.class
Class org.xml.sax.ContentHandler loaded from parent loader (parentFirst)
Class com.sun.xml.bind.marshaller.SAX2DOMEx loaded from ant loader (parentFirst)
Class com.sun.tools.xjc.reader.internalizer.DOMBuilder loaded from ant loader (parentFirst)
Class java.util.Stack loaded from parent loader (parentFirst)
Class org.w3c.dom.Document loaded from parent loader (parentFirst)
Class org.xml.sax.XMLReader loaded from parent loader (parentFirst)
Class org.w3c.dom.Node loaded from parent loader (parentFirst)
Class org.w3c.dom.Element loaded from parent loader (parentFirst)
Class javax.xml.parsers.ParserConfigurationException loaded from parent loader (parentFirst)
Class org.xml.sax.SAXException loaded from parent loader (parentFirst)
Class java.io.IOException loaded from parent loader (parentFirst)
D:\bbw\build\Common_3.6\Packaged\appserver\build.xml:799: unable to parse the schema. Error messages should have been provided
at com.sun.tools.xjc.XJCTask._doXJC(XJCTask.java:334)
at com.sun.tools.xjc.XJCTask.doXJC(XJCTask.java:283)
at com.sun.tools.xjc.XJCTask.execute(XJCTask.java:227)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
at org.apache.tools.ant.module.bridge.impl.BridgeImpl.run(BridgeImpl.java:217)
at org.apache.tools.ant.module.run.TargetExecutor.run(TargetExecutor.java:236)
at org.netbeans.core.execution.RunClassThread.run(RunClassThread.java:125)
BUILD FAILED (total time: 1 second)
Any suggestions? BTW, I did not upgrade NetBeans to v5.5 due that my code is still JDK1.4 based. -
"success with compilation error" ?
Hopefully someone can shed light on this. Here is the sample code...
SQL> create or replace procedure pr_TEST
2 as
3 begin
4 execute immediate 'create or replace trigger tr_test after insert or update or delete on test
for each row declare v_row test%rowtype; v_col1 varchar(32); v_col2 varchar(32); v_work varchar(32)
; begin insert into test values (v_col1, v_col2) ;end; /';
5
6 end;
7 /
Procedure created.
SQL> exec pr_test;
ERROR:
ORA-24344: success with compilation error
ORA-06512: at "ROOT.PR_TEST", line 4
ORA-06512: at line 1
Have you ever heard of an ORA-24344 ? Any suggestions on what to correct ?
thx in advance,
RP.You don't want the slash at the end of the string:
sql>create or replace procedure pr_test
2 as
3 begin
4 execute immediate 'create or replace trigger tr_test after insert or update or delete on test
5 for each row declare v_row test%rowtype; v_col1 varchar(32); v_col2 varchar(32); v_work varchar
(32);
6 begin insert into test values (v_col1, v_col2) ;end;'; -- no slash here at end
7 end;
8 /
Procedure created. -
10.1.3 Internal compilation error after unistalling extension cwd4all
I installed the cwd4all extension from the "check for updates" wizard.
Then i decided that I didn't need it so I uncheck it from the Tools>Preferences>Extensions but when I tried to compile apreviously working class I got an "Internal compilation error, terminated with a fatal exception" error.
Rechecking (i.e. reinstalling) the extension solved the problem, so then I removed both the jar and the relative folder from the extensions directory and I got the same error.
I don't want to reinstall the extension.
Any suggestions?Hi,
Extensions that are provided on the "Open Source and Partner Extensions" extension center are written by third parties and come with absolutely no warranty or guarantees whatsoever.
If you want to make sure you're running JDeveloper in a completely supported mode, you should uncheck the "Open Source and Partner Extensions" update center on the "Source" page of Check for Updates before checking for updates (or if you're installing updates via the automatic check balloon, only select extensions which are marked as being from the "Official Oracle Extensions" update center).
Brian -
Internal compilation error, terminated with fatal exception
Hi All:
I have downloaded and installed JDeveloper 10g and
I am trying to develop my frist JSP web application using JDeveloper 10g.When I try compiling the Hello.jsp in workspace 1, I get the following error "Internal compilation error, terminated with fatal exception". Does anyone know how to fix it?
Thanks!The Service Update 1 extension was installed previously. I have:
Studio Edition Version 10.1.3.0.4 (SU1)
Build JDEVADF_10.1.3_NT_060125.0900.3673
I do have the following error, even though the IDE starts-up:
C:\>C:\jdevstudio1013\jdev\bin\jdev.exe
java.lang.NoClassDefFoundError: org/apache/velocity/app/VelocityEngine
at org.dubh.jdev.templatemaker.velocity.VelocityTemplateCaster.<init>(Ve
locityTemplateCaster.java:89)
at org.dubh.jdev.templatemaker.TemplateMaker.initialize(TemplateMaker.ja
va:465)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddin(AddinManage
rImpl.java:416)
at oracle.ideimpl.extension.AddinManagerImpl.initializeAddins(AddinManag
erImpl.java:227)
at oracle.ideimpl.extension.AddinManagerImpl.initProductAndUserAddins(Ad
dinManagerImpl.java:156)
at oracle.ide.IdeCore.initProductAndUserAddins(IdeCore.java:1431)
at oracle.ide.IdeCore.startupImpl(IdeCore.java:1196)
at oracle.ide.Ide.startup(Ide.java:672)
at oracle.ideimpl.Main.start(Main.java:49)
at oracle.ideimpl.Main.main(Main.java:25)
Thanks,
--Todd -
Reports compilation errors (6i to 9i)
Hello,
When migrating a report from Oracle 6i to Oracle 9i, I get a number of errors.
Here are 2 sample functions and the associated errors at compile time:
function AfterReports return boolean is
begin
/* Delete referenced files */
update lot
set ref_file = null;
ref_filenum = null;
where co = :p_co
and (lot.surveyor = :p_surveyor or :p_surveyor is null)
and ref_filenum = :p_project;
/* Flag the project to indicate that work order as been printed */
update thproject
set prtwrkord = 'Y'
where co = :p_co
and nvl(prtwrkord,'N') = 'N'
and project = :p_project;
return (TRUE);
end;
When trying to compile this function under Reports Oracle 9i, I get the following errors:
Error 201 at line 4, column 11
identifier 'LOT' must be declared
Error 0 at line 4, column 4
SQL statement ignored
Error 201 at line 12, column 9
identifier 'TBPROJECT' must be declared
Error 0 at line 12, column 2
SQL Statement ignored.
=====
function BeforeReport return boolean is
trouver BOOLEAN;
CURSOR CURS is select c c.co
from company c, userco u
where c.co = u.co
and u.userid = user;
begin
open curs;
fetch curs into :p.co
trouver := curs%FOUND;
close curs;
return (trouver);
end;
Error 201 at line 4, column 12
identifier 'COMPANY' must be declared
Error 0 at line 3, column 20
SQL Statement ignored.
=====
1) How can I go about resolving these compilation errors and generate the corresponding *.REP file ?
PaoloAt first glance it seems to me that you are missing a comma between ref_file and ref_filenum as below
/* Delete referenced files */
update lot
set ref_file = null;
ref_filenum = null;
where co = :p_co
and (lot.surveyor = :p_surveyor or :p_surveyor is null)
and ref_filenum = :p_project;
should be:
/* Delete referenced files */
update lot
set ref_file = null,
ref_filenum = null;
where co = :p_co
and (lot.surveyor = :p_surveyor or :p_surveyor is null)
and ref_filenum = :p_project;
HTH
Maybe you are looking for
-
How to bulk add group members in Open Directory
So the workgroup manager interface is ghey. The + sign to add group members drag&drops users one at a time. I need to bulk add group members. I tried ldapadd to add all the users quickly and that doesn't seem to work. The ldap group record now has al
-
Exchange Calendar availability not working after upgrading to Mountain Lion
After upgrading to Mountain Lion cannot longer see calendar availability on my Exchange account, before upgrading it worked ok - anyone has the same problem?
-
**SOLVED DELETE****
Hi, I'm new to oracle, so im trying to connect a simple JSP to my oracle db but i keep get this error message "No suitable driver found for jdbc:oracle:thin:@localhost:1521:orcl" The weird thing is it was working yesterday and now it has stopped work
-
i cant drag and drop mail into folders, the same thing happens in iphoto, help
-
Values or size when RESOURCE_NAME equal to LIMIT=DEFAULT
For audit work, are asking me to place the boundary values which are as DEFAULT, which belongs to RESOURCE_NAME parameters. I do not remember if unlimited or if I can see the default values in some way. Thanks in advance! PROFILE RESOURCE_NAME