Problem in Procedure compilation
CREATE OR REPLACE PROCEDURE leave_emp
(p_id IN employees.employee_id%TYPE)
IS
BEGIN
DELETE FROM employees
WHERE employee_id = p_id;
log_execution;
END
leave_emp;
While i am compiling the above procedure, i got the below error:
CREATE OR REPLACE PROCEDURE leave_emp IS
ERROR at line 1:
ORA-01031: insufficient privileges
Please help me to solve this issue. Thanks in advance
When faced with this lind of issue it's a good idea to look up the relevant commands in the documentation (in this case the CREATE PROCEDURE statement in the SQL Reference) and check the "prerequisites" section. In this case it tells you that you need the CREATE PROCEDURE system privilege.
CREATE ANY PROCEDURE allows you to create a procedure in any schema, not just your own. Add EXECUTE ANY PROCEDURE and you would have the power of God within that database.
Similar Messages
-
Problem with procedure in package
Problem with procedure in package:
create table accounts
(acno number(10),
name varchar2(20),
balance number(10,2));
create package banking is
procedure new_acct(acno NUMBER, name IN VARCHAR);
procedure acct_dep(acno IN NUMBER, amount IN NUMBER);
procedure acc_wdr(acno IN NUMBER, amount IN NUMBER);
procedure acc_bal(acno IN NUMBER, bal OUT NUMBER);
function acc_drwn(acno IN NUMBER) RETURN BOOLEAN;
end banking;
create or replace package body banking is
procedure new_acct ( acno IN number,
name IN varchar) is
begin
insert into accounts
(acno, name, balance)
values
(acno, name,0);
end;
procedure acct_dep(acno IN NUMBER,
amount IN NUMBER) is
begin
update accounts
set balance = balance + amount
where acno = acno;
end;
procedure acc_wdr(acno IN NUMBER,
amount IN NUMBER) is
begin
update accounts
set balance = balance - amount
where acno = acno;
end;
procedure acc_bal(acno IN NUMBER,
bal OUT NUMBER) is
begin
declare cursor c_balance(i_acno IN accounts.acno%type) is
select balance
from accounts
where acno = i_acno;
acc_bal accounts.balance%type;
begin
if c_balance%isopen then
close c_balance;
end if;
open c_balance(acno);
fetch c_balance into acc_bal;
close c_balance;
end;
end;
function acc_drwn(acno IN NUMBER) RETURN BOOLEAN is
begin
declare cursor c_balance(i_acno IN accounts.acno%type) is
select balance
from accounts
where acno = i_acno;
bal accounts.balance%type;
begin
if c_balance%isopen then
close c_balance;
end if;
open c_balance(acno);
fetch c_balance into bal;
close c_balance;
if bal < 0 then
return true;
else
return false;
end if;
end;
end;
end banking;
begin
banking.new_acct(123,'FRANKS');
end;
execute banking.acct_dep(123,100);
execute banking.acc_wdr(123,50);
Works fine up to this point, however when running the balance check the balance amount is not visible?
SQL> set serveroutput on
SQL> begin
2 declare
3 bal accounts.balance%type;
4 begin
5 banking.acc_bal(123,bal);
6 dbms_output.put_line('Franks balance is '||bal);
7 end;
8 end;
9 /procedure acc_bal(acno IN NUMBER,
bal OUT NUMBER)
is
cursor c_balance(i_acno IN accounts.acno%type) is
select balance
from accounts
where acno = i_acno;
l_acc_bal accounts.balance%type;
begin
open c_balance(acno);
fetch c_balance into l_acc_bal;
close c_balance;
bal := l_acc_bal;
end; -
Problem in Servlet Compilation & Deployment
Hi Friends,
I have problem regarding Servlet Compilation & Deployment.
At the time of compilation gives error message "import javax.servlet.* is not a recognize package.
My J2ee Server gives FATAL Error it says it should be work on JDK1.2 or later.
My JDK is :-j2sdk1.4.2_04
MY J2EE Server is:-j2sdkee1.2.1
My Servlet Runner is:-JSDK2.0
My Java Enviorment is:- Version 1.5.0 (build 1.5.0_04-b05)
Path setting is:-
Class Path=C:\j2sdk1.4.2_04\lib;C:\j2sdkee1.2.1\lib\j2ee.jar;C:\JSDK2.0\lib
CommonProgramFiles=C:\Program Files\Common Files
COMPUTERNAME=DCL-04
ComSpec=C:\WINNT\system32\cmd.exe
Please help me and give the desired result as soon as you all can
Your's Harish
ThanksAt the time of compilation gives error message "import javax.servlet.* is not a recognize package.You have to include servlet.jar or j2ee.jar in the classpath when compiling.
My JDK is :-j2sdk1.4.2_04
My Java Enviorment is:- Version 1.5.0 (build 1.5.0_04-b05)Why are the versions of your JDK and Java runtime environment different? Why are you not using Java 5 to compile and run everything?
Class Path=C:\j2sdk1.4.2_04\lib;C:\j2sdkee1.2.1\lib\j2ee.jar;C:\JSDK2.0\libIf this is an environment variable, it should be "classpath", not "Class Path" with a space in between. -
Demantra - problem with procedure EP_BUILD_MODEL
Hi,
We have installed Demantra 7.3.1 Then create new model with Data Model Wizard. After clicking Build model we got the following error:
Error - ORA-20001: Error in Procedure REBUILD_DATABASE ORA-1400: can not insert null in (DEAMANTRA.LOC_LEVELS.ENGINE_PROFILES_ID)
I found out that reason of this problem is procedure Data_Model.rebuild_database
Statements like this:
INSERT INTO LOC_LEVELS (loc_level,loc_field_name,loc_field) VALUES (1,'Lowest Location Level',1);
INSERT INTO LOC_LEVELS (loc_level,loc_field_name,loc_field) VALUES (2,'Highest Fictive Level',0);
INSERT INTO ITEMS_LEVELS (item_level,item_field_name,item_field) VALUES (1,'Lowest Item Level',2);
INSERT INTO ITEMS_LEVELS (item_level,item_field_name,item_field) VALUES (2,'Highest Fictive Level',0);
INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (1,1,1);
INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (2,1,2);
INSERT INTO FORECAST_TREE (forecast_level,item_level,loc_level) VALUES (3,2,2);
gives error due to a fact that all this tables (LOC_LEVELS, ITEMS_LEVELS, FORECAST_TREE) has column ENGINE_PROFILES_ID with nullable set to no.Hi,
The problem is solved it was a constraint violation when creating the data model on the location levels.
Thank you -
Problem with a compiled program
Hello,
I have a problem with a compiled program on labview 6i.
This program used a serial port (COM1 or COM2).
During the launching of the ".exe ", a fatal error occurs.
Here this error:
=> APPLICATION caused an invalid page fault in
=> module LVRT.DLL at 0167:30164426.
Can somebody help me?
Regards
CedricCedric,
This problem was fixed in the LabVIEW 6.0.2 update. You can download this update (along with the updated runtime engine) from our website.
Good luck with your application, and have a pleasant day.
Sincerely,
Darren N.
NI Applications Engineer
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman -
Problem with NOCOPY compiler hint in form library
When compiling the following code in a package as part of a PL/SQL library attached to my version 6 form, I get the error below.
The error does not occur if I remove the "NOCOPY" compiler hint. Anyone know what the problem is?
TYPE duplicate_id_tab IS TABLE OF duplicate_id_rec;
PROCEDURE find_duplicate_ids (pidm_dupes IN OUT NOCOPY duplicate_id_tab, LName_in IN VARCHAR2,FName_in IN VARCHAR2);
Error 103 at line 13, column 59
Encountered the symbol "DUPLICATE_ID_TAB" when expecting one of the following:
:=,),@ % default character
The symbol ":=" was substituted for "DUPLICATE_ID_TAB" to continue.I posted an answer to this but it seems to have failed, so I'll send it again.
The NOCOPY reserved word appeared in PL/SQL 8.1.x. Forms 6i uses PL/SQL 8.0.6. Therefore, you can't use NOCOPY in Forms 6i.
Oracle9i Forms uses a later version of PL/SQL, so it works. I already tested in Oracle9i Forms for you.
We do not change the RSFs except in a major release. Therefore, no version of Forms 6i will support NOCOPY.
Regards,
Robin Zimmermann
Forms Product Management. -
PROCEDURE COMPILATION AND DEPENDENCIES DOUBT
hello friends,
i have some question. yesterday while woring i faced this problem. even though i solved it, but i was unable to find the reason.
we have a procedure a which calls procedure b. every time procedure b is recompiles/compiled procedure a becomes invalid. my PL told me to solve the problem. i solved it by using packeges as packages nullifies the dependencies problems
now my question is
1) why a procedure has to compiled again n again. i mean what are the situations in which we have to recompile a subprogram? what are the advantages?
2) even though procedure a becomes invalid when we recompile procedure b, but it automatically becomes valid when we execute it(correct me if i am wron). then why should we really bother about dependencies problems?
any kind of answer will be highly appreciatedHi,
1) why a procedure has to compiled again n again. i mean what are the situations in which we have to recompile a subprogram? what are the advantages?
It is normal situation when referenced procedure is changed and recompiled then you must recompile also referencing procedure. There are two modes you can use TIMESTAMP and SIGNATURE. I think you are using TIMESTAMP mode (default) mode. In USER_OBJECTS there is field called LAST_DDL_TIME. This field keep date and time last object recompilation. When referenced object has newer date then referencing object become invalid. Oracle during calling referenced procedure will try to recompile it automatically. Second mode is SIGNATURE. In this mode TIMESTAMP is not stored, instead SIGNATURE is stored. So recompilation is done only when signature is changing. You can use it setting REMOTE_DEPENDENCIES_MODE=SIGNATURE in init.ora file.
2) even though procedure a becomes invalid when we recompile procedure b, but it automatically becomes valid when we execute it(correct me if i am wron). then why should we really bother about dependencies problems?
When procedure is invalid and you run it when oracle will try to compile it first. It standard action.
Peter D. -
Procedure compiles on Oracle 10g but fails to do so on Oracle 9i
Hi,
We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
SQL> show err
Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
LINE/COL ERROR
22/8 PL/SQL: SQL Statement ignored
31/37 PL/SQL: ORA-00907: missing right parenthesis
the 9i version
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
10g version
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
If any body knows the soln, please help
Thanks in advance
Gibs
Procedure
CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
in_emp_id IN VARCHAR,
in_start_date IN DATE,
in_end_date IN DATE,
non_complog OUT Types.ref_cursor
IS
BEGIN
OPEN non_complog
FOR
SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
vcname AS plan_name, start_date, nid AS nid
FROM (SELECT *
FROM ((SELECT employee_id, NAME
FROM hrsample_bridge.ath_employee
WHERE ( (in_emp_id IS NULL AND 1 = 1)
OR (in_emp_id IS NOT NULL
AND employee_id = in_emp_id
)) CROSS JOIN (SELECT vcname
FROM orahrsamplecore.athobjectinstance
WHERE compliance_status = 1
AND ( (in_start_date IS NULL
OR (dtcompreissue
BETWEEN in_start_date
AND in_end_date
)))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
employee_id
AND c.plan_name =
vcname
WHERE c.emp_id IS NULL
AND ( ( (in_emp_id IS NULL)
OR ( in_emp_id IS NOT NULL
AND NOT EXISTS (
SELECT 1
FROM COMPTRACKLOG
WHERE plan_name = vcname
AND c.emp_id = in_emp_id )
AND ( (in_start_date IS NULL)
OR ( (in_start_date IS NOT NULL)
AND c.end_date BETWEEN in_start_date AND in_end_date
ORDER BY c.emp_id, c.plan_name ASC;
END;
/Hi,
We have an application which supports both Oracle 9i and Oracle 10g dbs, recently we added a new procedure to get a report from the applications statistics schema, the procedure uses two other schemas also to get the report and uses a query which does not use any Oracle specific feature (pure ANSI SQL), it compiled successfully on Oracle 10g but gives the following error on 9i db
SQL> show err
Errors for PROCEDURE SPGETNONCOMPLOGBASEDONEMP:
LINE/COL ERROR
22/8 PL/SQL: SQL Statement ignored
31/37 PL/SQL: ORA-00907: missing right parenthesis
the 9i version
Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
PL/SQL Release 9.2.0.1.0 - Production
CORE 9.2.0.1.0 Production
TNS for 32-bit Windows: Version 9.2.0.1.0 - Production
NLSRTL Version 9.2.0.1.0 - Production
10g version
Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Prod
PL/SQL Release 10.1.0.2.0 - Production
CORE 10.1.0.2.0 Production
TNS for 32-bit Windows: Version 10.1.0.2.0 - Production
NLSRTL Version 10.1.0.2.0 - Production
If any body knows the soln, please help
Thanks in advance
Gibs
Procedure
CREATE OR REPLACE PROCEDURE Spgetnoncomplogbasedonemp (
in_emp_id IN VARCHAR,
in_start_date IN DATE,
in_end_date IN DATE,
non_complog OUT Types.ref_cursor
IS
BEGIN
OPEN non_complog
FOR
SELECT end_date AS end_date, employee_id AS emp_id, NAME AS emp_name,
vcname AS plan_name, start_date, nid AS nid
FROM (SELECT *
FROM ((SELECT employee_id, NAME
FROM hrsample_bridge.ath_employee
WHERE ( (in_emp_id IS NULL AND 1 = 1)
OR (in_emp_id IS NOT NULL
AND employee_id = in_emp_id
)) CROSS JOIN (SELECT vcname
FROM orahrsamplecore.athobjectinstance
WHERE compliance_status = 1
AND ( (in_start_date IS NULL
OR (dtcompreissue
BETWEEN in_start_date
AND in_end_date
)))) LEFT OUTER JOIN COMPTRACKLOG c ON c.emp_id =
employee_id
AND c.plan_name =
vcname
WHERE c.emp_id IS NULL
AND ( ( (in_emp_id IS NULL)
OR ( in_emp_id IS NOT NULL
AND NOT EXISTS (
SELECT 1
FROM COMPTRACKLOG
WHERE plan_name = vcname
AND c.emp_id = in_emp_id )
AND ( (in_start_date IS NULL)
OR ( (in_start_date IS NOT NULL)
AND c.end_date BETWEEN in_start_date AND in_end_date
ORDER BY c.emp_id, c.plan_name ASC;
END;
/ -
PL/SQL Procedure Compilation error
Hi,
<br><br>
I have wrote a PL/SQL Stored Procedure to read a couple of table values and then output some data to a file, when I create the procedure on the database I get the following compilation error:
<br><br>
LINE/COL ERROR<br>
-------- -----------------------------------------------------------------<br>
25/7 PLS-00103: Encountered the symbol ")" when expecting one of the<br>
following:<br>
( - + case mod new null <an identifier><br>
<a double-quoted delimited-identifier> <a bind variable> avg<br>
count current max min prior sql stddev sum variance execute<br>
forall merge time timestamp interval date<br>
<a string literal with character set specification>
<a number> <a single-quoted SQL string> pipe<br>
The symbol "null" was substituted for ")" to continue.<br>
<br>
The script is below: <br><br>
CREATE OR REPLACE <br>
PROCEDURE TDF_EXTRACT AS<br>
v_file UTL_FILE.FILE_TYPE;<br>
YEAR number(4);<br>
Q1_VALUE NUMBER(7);<br><br>
BEGIN<br><br>
SELECT PERSON_VALUE<br>
INTO Q1_VALUE<br>
FROM PERSON<br>
WHERE ID = 79;<br><br>
SELECT EXTRACT(YEAR FROM SYSDATE)<br>
INTO YEAR <br>
FROM DUAL;<br><br>
v_file := UTL_FILE.FOPEN(location => '/tmp',<br>
filename => 'extratced_values.txt',<br>
open_mode => 'W',<br>
max_linesize => 32767);<br><br>
UTL_FILE.PUT_LINE(v_file,<br>
'Q1' || YEAR || '23' || Q1_VALUE || '\r\n' ||<br>
);<br><br>
UTL_FILE.FCLOSE(v_file);<br><br>
END TDF_EXTRACT;'Q1' || YEAR || '23' || Q1_VALUE || '\r\n' ||
);Syntax error during concatenation, maybe?
C.
Message was edited by:
cd -
Hi,
This is velrajan from MindTree consultiong Bangalore India.I am new to JSF.When i try to compile my ActionListerner file i got the following error.
MyActionListener.java:9: package javax.faces.tree does not exist
import javax.faces.tree.Tree;
^
MyActionListener.java:26: cannot resolve symbol
symbol : method getComponentId ()
location: class javax.faces.component.UIComponent
+ component.getComponentId());
^
MyActionListener.java:28: cannot resolve symbol
symbol : method getActionCommand ()
location: class javax.faces.event.ActionEvent
String actionCommand = event.getActionCommand();
^
MyActionListener.java:32: cannot resolve symbol
symbol : class Tree
location: class ch02a.MyActionListener
Tree tree = facesContext.getTree();
^
MyActionListener.java:32: cannot resolve symbol
symbol : method getTree ()
location: class javax.faces.context.FacesContext
Tree tree = facesContext.getTree();
^
MyActionListener.java:45: cannot resolve symbol
symbol : method getComponentId ()
location: class javax.faces.component.UIComponent
System.out.println(component.getComponentId());
^
MyActionListener.java:46: incompatible types
found : java.util.List
required: java.util.Iterator
Iterator children = component.getChildren();
I have the following jar files in my JDK lib folder
commons-beanutils.jar
commons-collections.jar
commons-digester.jar
commons-logging.jar
jsf-api.jar
jsf-impl.jar
standard.jar
I hope i have missed out the jsf-ri.jar and jstl_el.jar.
I am not able to find out the jsf-ri.jar in my JSF download.Where can i get this?.
Please suggest me.
This is My Listener:
===============
package ch02a;
import java.util.Iterator;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
import javax.faces.event.ActionListener;
import javax.faces.event.PhaseId;
import javax.faces.tree.Tree;
public class MyActionListener implements ActionListener {
public PhaseId getPhaseId() {
System.out.println("getPhaseId called");
return PhaseId.APPLY_REQUEST_VALUES;
public void processAction(ActionEvent event) {
System.out.println("processAction called");
// the component that triggered the action event
System.out.println("Before GetComponent");
UIComponent component = event.getComponent();
System.out.println("After GetComponent");
System.out.println(
"The id of the component that fired the action event: "
+ component.getComponentId());
// the action command
String actionCommand = event.getActionCommand();
System.out.println("Action command: " + actionCommand);
FacesContext facesContext = FacesContext.getCurrentInstance();
Tree tree = facesContext.getTree();
UIComponent root = tree.getRoot();
System.out.println("----------- Component Tree -------------");
navigateComponentTree(root, 0);
System.out.println("----------------------------------------");
private void navigateComponentTree(
UIComponent component, int level) {
// indent
for (int i=0; i<level; i++)
System.out.print(" ");
// print component id
System.out.println(component.getComponentId());
Iterator children = component.getChildren();
// navigate children
while (children.hasNext()) {
UIComponent child = (UIComponent) children.next();
navigateComponentTree(child, level + 1);
Please guide me.
Thanks and Regards,
Velrajan T.I'am having the same problem of compiling the MyActionListener class.
Not able to find the jsf-ri.jar in jwsdp-1.6 installation directory also.
Please let me know if any body knows from where to get this jar.
Thanks in Advance -
Problem with model compilation
Is it possible to create and compile model based on concat dimension?
I try to do so model creates but when I try to compile such model, server closes connection.
I use 10.2 OracleHi
Take the help from following threads suitable for 7.0
1.[NoClassDefFoundError|Re: java.lang.NoClassDefFoundError]
2.[NoClassDefFoundError in WebDynpro Project|java.lang.NoClassDefFoundError in WebDynpro Project]
3.[Adding External Jar in a Webdynpro Dc|Re: Adding External Jar in a Webdynpro Dc]
4.[Problem using External Library DC|Problem using External Library DC]
Best Regards
Satish Kumar -
Hi,
I encountered a problem during compilation in tools:
>
Could not open repository file 'C:\Siebel\8.1\SiebelTools8113\OBJECTS\ENU\siebel_sia.srf'.
File does not exist or may be in use by another process.(SBL-DAT-00142)
>
Siebel Tools version: 8.1.1.3
Siebel Server version: 8.1.1.3
installed on Windows 2003 server with service pack.
I did the following but the error still appeared during compilation:
1. In siebel tools > Help Menu > About SRF > Filename pointing to --> C:\Siebel\8.1\SiebelTools8113\objects\enu\siebel_sia.srf
2. I went to this directory "C:\Siebel\8.1\SiebelTools8113\objects\enu\" right clicked the siebel_sia.srf then click properties to check if the file's property is set to read-only and it was unchecked.
3. In windows control panel > Administrative Tools > Services: I shutdown the siebel server and the siebel gateway server
4. I also checked the task manager to see if all siebel processes were ended. I stopped all siebel processes aside from siebel Tools.
5. I check if any program is accessing the srf file using a process monitor. No other process was accessing the file.
6. Open tools, login in local DB
7. Compiled a selected object (Siebel repository file: C:\Siebel\8.1\SiebelTools8113\objects\enu\siebel_sia.srf)
8. When I press compile the error above appeared.
After the error appeared I check again using the process monitor to check whether other process has a handle to the SRF file, but there was none.
Could anyone help me? Have I missed something that might have caused this error?
Thanks in advance.Hi,
You cannot compile on the Tools SRF when you are logged into Siebel Tools.
Try to do a full compile on the SRF located in the client folder.
In you case it might be at location C:\Siebel\8.1\SiebelClient\objects\enu\
Once done the full compile on the client SRF use the SRF to connect the client.
Warm Regards
Pramod -
Problem with pthread compilation
hi all...
im trying to compile ccid-1.0.0 on solaris10 x86 and im getting problems that
configure error : pthread
my compiler version is::
bash-3.00# which cc
/opt/SUNWspro/prod/bin/cc
bash-3.00# cc -V
cc: Sun C 5.7 2005/01/07
usage: cc [ options] files. Use 'cc -flags' for details
i installed sunstudio11 prior to this and also pcsclite-1.3.0 and
libmusclecard-1.3.1. They gave me no probs.
./configure --prefix=${MSCPFX}
--enable-usbdropdir=${MSCPFX}/pcsc/drivers --enable-libusb
and the o/p is :
checking for memcpy... yes
checking for dlopen in -ldl... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with -mt... no
checking for the pthreads library -lpthreads... no
checking whether pthreads work without any flags... no
checking whether pthreads work with -Kthread... no
checking whether pthreads work with -kthread... no
checking for the pthreads library -llthread... no
checking whether pthreads work with -pthread... no
checking whether pthreads work with -pthreads... no
checking whether pthreads work with -mthreads... no
checking for the pthreads library -lpthread... no
checking whether pthreads work with --thread-safe... no
checking whether pthreads work with -mt... no
configure: error: POSIX thread support required
pls suggest me some way to get out of it.checking for the pthreads library -lpthread... no
checking whether pthreads work with -mt... noOne of those should work.
pls suggest me some way to get out of it.With such configure scripts, there's usually a resulting 'config.log'. In this, you should be able to see exactly what configure is trying to achieve, and why it is failing.
Paul -
Urgent Solution needed--Problem in JSP compilation with JDK 1.5 and JDK 1.6
Hi,
I m using JDK 1.5 and Tomcat 5.0 the problem is that after starting server when I m going to access my application at that time instead of displaying HomePage it directly display the blank page on screen.
After analyzing tomcat log I have found that there was a problem with JSP page compilation.
The exception logged in Tomcat Log is given below
An error occurred at line: 1 in the generated java file
The type Collection is not generic; it cannot be parameterized with arguments <? extends E>
Stacktrace:
* at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:92)*
* at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)*
* at org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:423)*
* at org.apache.jasper.compiler.Compiler.compile(Compiler.java:308)*
* at org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)*
* at org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)*
* at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)*
* at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)*
* at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)*
* at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)*
* at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)*
* at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)*
* at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)*
* at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)*
* at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:447)*
* at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)*
* at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)*
* at org.apache.catalina.core.StandardHostValve.custom(StandardHostValve.java:424)*
* at org.apache.catalina.core.StandardHostValve.status(StandardHostValve.java:343)*
* at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:144)*
* at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)*
* at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)*
* at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)*
* at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)*
* at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)*
* at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)*
* at java.lang.Thread.run(Thread.java:619)*
After getting this kind of error I have analyzed my code furhter then I came to know that there was problem with static include tag.
In my jsp page I have used following line which is the main cause of error
<%@ include file="top.jsp" %>If I ommit this line then it is working properly.
Instead of static include I have used jsp:include also.
Still I m getting same problem.
We have to migrated from JDK 1.5 to 1.6 and Tomcat 5.0.28 to 6.0.14, still same problem is there.
We have tried a lot but didnt get success to overcome this problem.
If anybody having any solution then ur each reply will be appreciated.
Thanks in advance..........!!!!!!!
Edited by: JBOSS2000 on Jan 15, 2008 9:29 AMHi "mshanu" and "amit" Thanks for ur replies Here I m posting the code of "top.jsp"........!!!!
<%@ page errorPage="errordisplay.jsp"%>
<table cellpadding="0"
cellspacing="0" height=50 width=780>
<tbody>
<tr class="header">
<td class="logo"><IMG SRC="assets/Logo.gif" BORDER=0 ALIGN=top></td>
<td align="right"><span class="applicationtitle"><%@ include file="/contents/logo.htm" %></span><br>
<span class="companyname"><%@ include file="/contents/companyname.htm" %></span></td>
</tr>
</tbody>
</table>To include top.jsp I have tried
<jsp:include page="top.jsp" flush="true">
</jsp:include>
AND
<%@ include file="top.jsp"%>but none of this worked.
If I remove the include then It is working properly.
But I need inluded file too so that I am wondoring for the solution.
This problem seems very wiered to me. I dont know why it is happening.
This problem is started only when I used the TOMCAT 6.14.
Is it the bug of TOMCAT 6.14 or What somebody Plz help.
I got stuck here.........!!!!!!!!!!
It doesn't seem any problem with top.jsp. As per my thinking the problem is there in include due to that it doesn't compile the JSP page in Tomcat 6.0.
Earlier I am having same code running on the Tomcat 5.0.28 and JDK 1.5.0.
But problem occured when I have used Tomcat 6.x...!! -
Procedure compilation Error.......
Hi ,
I am getting an error while compiling the procedure...Please help me out..
create or replace procedure generate_test_file RETURN NUMBER
IS
CURSOR curEmployee IS
SELECT empno,
ename,sal
FROM Emp;
--Line to output
sOutputLine VARCHAR2(4000);
uFileHndl UTL_FILE.FILE_TYPE;
sFileName VARCHAR2(30);
sEmployeeid varchar2(30);
sEmployeeName varchar2(50);
sEmployeeSalary varchar2(30);
sOutputLine varchar2(120);
-- The directory you want file to be generated
gs_TestDir CONSTANT VARCHAR2(50):='c:\tms\';
c_comma VARCHAR2(2) :=',' ; -- Delimiter
BEGIN
OPEN curEmployee
sFileName := 'test.csv'; ---------(ERRORED OUT IN THIS LINE)
uFileHndl := UTL_FILE.FOPEN(gs_TestDir,sFileName,'w');
LOOP
FETCH curEmployee INTO sEmployeeId,sEmployeeName,sEmployeeSalary;
EXIT WHEN curEmployee%NOTFOUND;
sOutputLine := sEmployeeId || c_comma ||
sEmployeeName || c_comma ||
sEmployeeSalary;
UTL_FILE.PUT_LINE(uFileHndl,sOutputLine);
END LOOP;
CLOSE curEmployee;
-- Close the output file
UTL_FILE.FCLOSE(uFileHndl);
RETURN 0;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM);
UTL_FILE.FCLOSE(uFileHndl);
CLOSE curEmployee;
RETURN SQLCODE;
END;
Error:
20/1 PLS-00103: Encountered the symbol "SFILENAME" when expecting one
of the following:
. ( % ; for
The symbol ";" was substituted for "SFILENAME" to continue.
Thanks,
NiteshCheck out the comments in ---------------------XXXX--------------------- below in the code and also this is FUNCTION and not PROCEDURE as you retruning some value using RETURN clause.
The below code is compiling fine.
create or replace function generate_test_file RETURN NUMBER
IS
CURSOR curEmployee IS
SELECT empno,
ename,sal
FROM Emp;
--Line to output
sOutputLine VARCHAR2(4000);
uFileHndl UTL_FILE.FILE_TYPE;
sFileName VARCHAR2(30);
sEmployeeid varchar2(30);
sEmployeeName varchar2(50);
sEmployeeSalary varchar2(30);
sOutputLine varchar2(120); ---------------DECLARE TWICE ----------------------------
-- The directory you want file to be generated
gs_TestDir CONSTANT VARCHAR2(50):='c:\tms\';
c_comma VARCHAR2(2) :=',' ; -- Delimiter
BEGIN
OPEN curEmployee; ----------------SEMICOLON MISSING ---------------------
sFileName := 'test.csv'; ---------(ERRORED OUT IN THIS LINE)
uFileHndl := UTL_FILE.FOPEN(gs_TestDir,sFileName,'w');
LOOP
FETCH curEmployee INTO sEmployeeId,sEmployeeName,sEmployeeSalary;
EXIT WHEN curEmployee%NOTFOUND;
sOutputLine := sEmployeeId || c_comma ||
sEmployeeName || c_comma ||
sEmployeeSalary;
UTL_FILE.PUT_LINE(uFileHndl,sOutputLine);
END LOOP;
CLOSE curEmployee;
-- Close the output file
UTL_FILE.FCLOSE(uFileHndl);
RETURN 0;
EXCEPTION
WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE(SQLERRM);
UTL_FILE.FCLOSE(uFileHndl);
CLOSE curEmployee;
RETURN SQLCODE;
END;
~Vinod
Maybe you are looking for
-
Principal Propagation SOAP - XI - RFC Scenario
Hi, I am developing a synchronous scenario whereby a SOAP request posted by a non SAP system should be forwarded to an ECC system using RFC. Challenge I am facing is that I want to use the user, which was used for basic user authentification to post
-
LT31 - Default print code at User Level
Dear All, Is it possible to default PRINT CODE(Print control data) in LT31 t-code at user level. Thanks in advance. Regards Ramprakash
-
Problem with unit converter widget
I am having a weird problem with my unit converter widget on 10.4.9. I re-installed my system, and now when I go to open the unit converter widget, I can no longer see the British pound currency, there are all these othere European currencies. Is the
-
HT4576 I wanted to change my time zone to Boston, MA
I was wondering why my ipad continued to change the calendar events back to NY,NY. I know it sounds silly to some, but I am a Boston sports fan and it agitates me. I don't see any reason why Boston can't stay there. Can someone help please? Thank you
-
How can I stop folders on my desktop from automatically organizing?
I am trying to figure out how to stop my folders from automatically organizing alphabetically as soon as I make a new folder on my desktop.