Need help in fixing the error
Hi All,
could anybody help in fixing the following error.
C:\bea\weblogic81\server\bin\.\myserver\.wlnotdelete\extract\myserver_SAISTARS_SAISTARS\jsp_servlet\__listproject.java:1071: cannot resolve symbol
probably occurred due to an error in /listProject.jsp line 221:
<pg:pager maxIndexPages="<%=10%>" maxPageItems="<%=10%>">
Thanks and Regards,
shaik
Hi abinash,
Not enough information!
Check the logs for errors and post the here.
regards
Juan
Similar Messages
-
Need help in understanding the error ORA-01843: not a valid month - ECX_ACT
Hello All,
We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
And how to enable the log for Transaction Monitor -> Processing Logfile.
Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
thanks
muthu.Hello All,
We need help in understanding the Transaction Monitor -> Processing Message (error "ORA-01843: not a valid month - ECX_ACTIONS.GET_CONVERTED_DATE").
And how to enable the log for Transaction Monitor -> Processing Logfile.
Actually we are trying to import the Purchase Order XML (OAG) into eBusiness Suite via BPEL Process Manager using the Oracle Applications Adapter. The process is working fine with expected payload until it reaches the XML Gateway Transaction Monitor, where we are getting this error.
thanks
muthu. -
I am not done with the program but I get errors that I am not sure how to fix them. I was wondering if anyone can help me solve the problem.
This program is a quiz program and has to handle 3 subjects. The user is able to select from these 3 categories. The program presents 3 questions and has to provide 4 option for each question. One would be to exit from the quiz. If the user responds to a question correctly, the program displays a positive feedback message. If the user responds incorrectly to the question, the program displays the correct answer. Exiting the questions menu returns the student to the topics menu. At the end of the quiz, the program displays the total number of correct and incorrect answers for each topic. Have a counter to count the correct answers.
Plese help me fix the problem with the code
import java.util.Scanner;
import java.io.*;
public class Test
int correctAnswer = 0;
String str;
String q;
Scanner scan = new Scanner (System.in);
System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
String str = scan.nextLine();
while (str != 'x')
if( str == m)
System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
q = scan.nextLine();
if (q == c)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
q = scan.nextLine();
if (q == c)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
if( str == s)
System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
q = scan.nextLine();
if (q == c)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
if( str == a)
System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q == a)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
q = scan.nextLine();
if (q == b)
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1
else System.out.println(" your answer is not correct");
}}Here's a better version, fixing what I mentioned above. I haven't test compiled it, but it should work now. As a note, you might want to look into the ++ operator as well. And when you post code, enclose it in the "code" tags (see the code button above your posting). That makes it easier to read.
Anyway, here it is:
import java.util.Scanner;
import java.io.*;
public class Test {
int correctAnswer = 0;
String str;
String q;
Scanner scan = new Scanner (System.in);
static public void main(String [] args) {
System.out.println("key in m for Math category, s for Science category, a for Art category, or x to exit the test");
String str = scan.nextLine();
while (!str.equals("x")) {
if( str.equals("m")) {
System.out.println (" What is the area if Triangle? a) l*W b)S^2 c)1/2 b * h");
q = scan.nextLine();
if (q.equals("c")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is the premiter? a)The distance of all the sides b)the parallel distance c)The angle of a shape");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is a right angle? a)100 degree b)180 degree c)90 degree");
q = scan.nextLine();
if (q.equals("c")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else { System.out.println(" your answer is not correct");
if( str.equals("s")) {
System.out.println (" What is Diffusion? a)No movement between Molecules b)Movement of molecules high to low c)Movement of molecules high to low");
q = scan.nextLine();
if (q.equals("c")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is the element sign for carbon dioxide? a)CO2 b)CO c)O2");
q = scan.nextLine();
if (q.equals("a") {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("What is the normal body temperature? a)98.5 b)99.0 c)102.1");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
if( str.equals("a")) {
System.out.println ("which artist painted the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("which artist painted the Sister Chapple? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso ");
q = scan.nextLine();
if (q.equals("a")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
System.out.println ("which artist paint the Monalisa? a)Michael Angelo b)Leonardo De Vinci c)Pablo Picasso");
q = scan.nextLine();
if (q.equals("b")) {
System.out.println(" your answer is correct");
correctAnswer = correctAnswer+1;
} else {
System.out.println(" your answer is not correct");
} -
Oracle Instance Failuer Need help to fix the problem
Hi
I am running Oracle9.2 on AIX. The data base got filed due to the following error and I am not getting where to start to dig into the error. The following are the mesg I found in alert log file. But i restarted it its now running But I dont want the same problem to repeat that's why I need assistance to debug the problem. Thanks
Sat Oct 1 21:11:06 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_65536.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:10 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_64730.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:13 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_29256.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:16 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_74036.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:18 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_24036.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:20 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_58880.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:22 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_24038.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:25 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_65544.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:28 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_74044.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:31 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_24050.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:34 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_55086.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:37 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_59506.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:40 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_58894.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:43 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_59508.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:46 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_65552.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:49 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_24056.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:52 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_65556.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:55 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_64746.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:11:58 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_74056.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:12:01 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_55098.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:12:04 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_74058.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Sat Oct 1 21:12:07 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_59520.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Mon Oct 3 10:25:56 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_23834.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Mon Oct 3 10:27:32 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_38114.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Mon Oct 3 10:28:29 2005
Starting ORACLE instance (normal)
Mon Oct 3 10:29:03 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_65696.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Mon Oct 3 10:29:24 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_54902.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Mon Oct 3 10:31:32 2005
Starting ORACLE instance (normal)
Mon Oct 3 10:31:33 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_55050.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
Mon Oct 3 10:32:07 2005
Shutting down instance: further logons disabled
Shutting down instance (immediate)
License high water mark = 26
All dispatchers and shared servers shutdown
Mon Oct 3 10:32:11 2005
ALTER DATABASE CLOSE NORMAL
Mon Oct 3 10:32:11 2005
SMON: disabling tx recovery
SMON: disabling cache recovery
Mon Oct 3 10:32:11 2005
Shutting down archive processes
Archiving is disabled
Mon Oct 3 10:32:11 2005
ARCH shutting down
ARC0: Archival stopped
Mon Oct 3 10:32:11 2005
ARCH shutting down
ARC1: Archival stopped
Mon Oct 3 10:32:12 2005
Thread 1 closed at log sequence 4026
Successful close of redo thread 1
Mon Oct 3 10:32:18 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_74172.trc:
ORA-00600: internal error code, arguments: [17175], [255], [], [], [], [], [], []
Mon Oct 3 10:32:19 2005
Errors in file /oracle/ABBA1/system/dump/udump/ABBA1_ora_74172.trc:
ORA-07445: exception encountered: core dump [] [] [] [] [] []
ORA-00600: internal error code, arguments: [17175], [255], [], [], [], [], [], []
Mon Oct 3 10:32:29 2005
Errors in file /oracle/ABBA1/system/dump/bdump/ABBA1_pmon_32534.trc:
ORA-00600: internal error code, arguments: [17175], [255], [], [], [], [], [], []
Mon Oct 3 10:32:29 2005
Errors in file /oracle/ABBA1/system/dump/bdump/ABBA1_pmon_32534.trc:
ORA-00600: internal error code, arguments: [17175], [255], [], [], [], [], [], []
Mon Oct 3 10:32:29 2005
PMON: terminating instance due to error 600
Instance terminated by PMON, pid = 32534
Mon Oct 3 10:33:46 2005
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 3
Using log_archive_dest parameter default value
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.5.0.
System parameters with non-default values:
processes = 150
timed_statistics = TRUE
shared_pool_size = 117440512
large_pool_size = 16777216
java_pool_size = 117440512
control_files = /oracle/ABBA1/system/control01.ctl, /oracle/ABBA1/system/control02.ctl, /oracle/ABBA1/system/control03.ctl
db_block_size = 16384
db_cache_size = 318767104
compatible = 9.2.0.0.0
log_archive_start = TRUE
log_archive_dest_1 = LOCATION=/oracle/ABBA1/archive
log_archive_format = ABBA1_%T_%S.ARC
db_file_multiblock_read_count= 32
fast_start_mttr_target = 300
undo_management = AUTO
undo_tablespace = UNDOTBS1
undo_retention = 10800
remote_login_passwordfile= EXCLUSIVE
db_domain =
instance_name = oracle/ABBA1
dispatchers = (PROTOCOL=TCP) (SERVICE=oracle/ABBA1XDB)
job_queue_processes = 10
hash_join_enabled = TRUE
hash_area_size = 1048576
background_dump_dest = /oracle/ABBA1/system/dump/bdump
user_dump_dest = /oracle/ABBA1/system/dump/udump
core_dump_dest = /oracle/ABBA1/system/dump/cdump
sort_area_size = 1048576
db_name = ABBA1
open_cursors = 300
star_transformation_enabled= TRUE
query_rewrite_enabled = TRUE
pga_aggregate_target = 314572800
aq_tm_processes = 1
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
CJQ0 started with pid=8
QMN0 started with pid=9
Mon Oct 3 10:33:48 2005
starting up 1 shared server(s) ...
starting up 1 dispatcher(s) for network address '(ADDRESS=(PARTIAL=YES)(PROTOCOL=TCP))'...
ARCH: STARTING ARCH PROCESSES
ARC0 started with pid=12
ARC0: Archival started
ARC1 started with pid=13
ARC1: Archival started
Mon Oct 3 10:33:49 2005
ARCH: STARTING ARCH PROCESSES COMPLETE
Mon Oct 3 10:33:49 2005
ARC0: Thread not mounted
Mon Oct 3 10:33:49 2005
ARC1: Thread not mounted
Mon Oct 3 10:33:49 2005
/* OracleOEM */ ALTER DATABASE MOUNT
Mon Oct 3 10:33:53 2005
Successful mount of redo thread 1, with mount id 1053693133
Mon Oct 3 10:33:53 2005
Database mounted in Exclusive Mode.
Completed: /* OracleOEM */ ALTER DATABASE MOUNT
Mon Oct 3 10:33:53 2005
/* OracleOEM */ ALTER DATABASE OPEN
Mon Oct 3 10:33:53 2005
LGWR: Primary database is in CLUSTER CONSISTENT mode
Thread 1 opened at log sequence 4026
Current log# 2 seq# 4026 mem# 0: /oracle/ABBA1/redo2/redo2_A.dbf
Current log# 2 seq# 4026 mem# 1: /oracle/ABBA1/redocopy/redo2_B.dbf
Successful open of redo thread 1
Mon Oct 3 10:33:54 2005
SMON: enabling cache recovery
Mon Oct 3 10:33:54 2005
Undo Segment 1 Onlined
Undo Segment 2 Onlined
Undo Segment 3 Onlined
Undo Segment 4 Onlined
Undo Segment 5 Onlined
Undo Segment 6 Onlined
Undo Segment 7 Onlined
Undo Segment 8 Onlined
Undo Segment 9 Onlined
Undo Segment 10 Onlined
Successfully onlined Undo Tablespace 1.
Mon Oct 3 10:33:54 2005
SMON: enabling tx recovery
Mon Oct 3 10:33:54 2005
Database Characterset is WE8ISO8859P1
replication_dependency_tracking turned off (no async multimaster replication found)
Completed: /* OracleOEM */ ALTER DATABASE OPEN
Mon Oct 3 10:34:17 2005
ORA-00130: invalid listener address '(ADDRESS=(PROTOCOL=TCP)(HOST=plpar00)(PORT=1521))'
Mon Oct 3 10:34:35 2005
Shutting down instance: further logons disabled
Shutting down instance (immediate)
License high water mark = 5
Waiting for dispatcher 'D000' to shutdown
All dispatchers and shared servers shutdown
Mon Oct 3 10:34:38 2005
ALTER DATABASE CLOSE NORMAL
Mon Oct 3 10:34:39 2005
SMON: disabling tx recovery
SMON: disabling cache recovery
Mon Oct 3 10:34:39 2005
Shutting down archive processes
Archiving is disabled
Mon Oct 3 10:34:39 2005
ARCH shutting down
ARC0: Archival stopped
Mon Oct 3 10:34:39 2005
ARCH shutting down
ARC1: Archival stopped
Mon Oct 3 10:34:39 2005
Thread 1 closed at log sequence 4026
Successful close of redo thread 1
Mon Oct 3 10:34:39 2005
Completed: ALTER DATABASE CLOSE NORMAL
Mon Oct 3 10:34:39 2005
ALTER DATABASE DISMOUNT
Completed: ALTER DATABASE DISMOUNT
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
ARCH: Archiving is disabled
Shutting down archive processes
Archiving is disabled
Archive process shutdown avoided: 0 active
Mon Oct 3 10:34:49 2005
Starting ORACLE instance (normal)
LICENSE_MAX_SESSION = 0
LICENSE_SESSIONS_WARNING = 0
SCN scheme 3
LICENSE_MAX_USERS = 0
SYS auditing is disabled
Starting up ORACLE RDBMS Version: 9.2.0.5.0.
System parameters with non-default values:
processes = 150
timed_statistics = TRUE
shared_pool_size = 117440512
large_pool_size = 16777216
java_pool_size = 117440512
control_files = /oracle/ABBA1/system/control01.ctl, /oracle/ABBA1/system/control02.ctl, /oracle/ABBA1/system/control03.ctl
db_block_size = 16384
db_cache_size = 318767104
compatible = 9.2.0.0.0
log_archive_start = TRUE
log_archive_dest = /oracle/ABBA1/archive
log_archive_format = ABBA1_%T_%S.ARC
db_file_multiblock_read_count= 32
fast_start_mttr_target = 300
undo_management = AUTO
undo_tablespace = UNDOTBS1
undo_retention = 10800
remote_login_passwordfile= EXCLUSIVE
db_domain =
instance_name = oracle/ABBA1
dispatchers = (PROTOCOL=TCP) (SERVICE=oracle/ABBA1XDB)
job_queue_processes = 10
hash_join_enabled = TRUE
hash_area_size = 1048576
background_dump_dest = /oracle/ABBA1/system/dump/bdump
user_dump_dest = /oracle/ABBA1/system/dump/udump
core_dump_dest = /oracle/ABBA1/system/dump/cdump
sort_area_size = 1048576
db_name = ABBA1
open_cursors = 300
star_transformation_enabled= TRUE
query_rewrite_enabled = TRUE
pga_aggregate_target = 314572800
aq_tm_processes = 1
PMON started with pid=2
DBW0 started with pid=3
LGWR started with pid=4
CKPT started with pid=5
SMON started with pid=6
RECO started with pid=7
CJQ0 started with pid=8
QMN0 started with pid=9
Mon Oct 3 10:34:49 2005
I need assistance in this regard
ThanksIt will help if you have a look at Note:211909.1 in Metalink to understand why ORA-07445
Then have a look at the content of the trace files. e.g /oracle/ABBA1/system/dump/udump/ABBA1_ora_65536.trc to see if you can pick anything from the 'Current SQL statement' you will see in it (get help from Note:154170.1). This will at least give you an idea what SQL is causing the problem.
If they are your own application SQLs, then try to see if your team can fix the code. If they are System related or you cannot figure out what it is (even if it is from your own SQLs), I would suggest log a TAR with Oracle Support. -
Need help in analysing the error in JasperReportIntegration Test Applicatio
Our DBA installed Jasper Reports Integration kit Version 1.1.0.0 in our test environment. Apex version is 3.2.1.00.12. Oracle database is 11g and Apache Tomcat is 7.0.26
I was able to bring up the Jasper Reports Integration test application. When I navigate to "Report Tester" tab, changed the JasperReportIntegration URL to the correct localhost and then cklick the "Show report (directly)" button, I got this message:
Jun 12, 2012 11:41:58 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [ReportWrapper] in context with path [JasperReportsIntegration] threw exception [Servlet execution threw an exception] with root cause
Throwable occurred: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at de.oc.integration.jasper.webapp.ReportWrapper.service(ReportWrapper.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
Can anyone help me understand this error and let me know if this message is caused by installing the jasper report integration kit incorrectly?
Thanks.
Edited by: bratz69 on Jun 12, 2012 7:35 PMHi Dietmar,
Thanks for your reply.
There's no jasperreports-fonts-3.7.4.jar file in the webapps/JasperReportsIntegration/WEB-INF/lib folder. The only font file available is jasperreports-fonts-4.5.0.jar. I've downloaded the 3.7.40 jar file and saved it in the same folder without deleting the 4.5.0.jar. I tried to run the Test application again and still give me the same error.
Jun 13, 2012 3:58:26 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [ReportWrapper] in context with path [JasperReportsIntegration] threw exception [Servlet execution threw an exception] with root cause
Throwable occurred: java.lang.NoClassDefFoundError: net.sf.jasperreports.engine.util.JRStyledTextParser (initialization failure)
at java.lang.J9VMInternals.initialize(J9VMInternals.java:140)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:121)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:87)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:57)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:142)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:52)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:417)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:247)
at de.oc.integration.jasper.webapp.ReportWrapper.service(ReportWrapper.java:318)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:897)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:919)
at java.lang.Thread.run(Thread.java:736)
I also tried the suggestion from the link provided by Nick. However, the syntax is for SUN environment and we are using IBM so I searched the equivalent of that command in IBM. Our DBA added the Java system property in the startup script by adding these 2 lines. But it errored out on the first 2 lines. I'm not sure if I do have the right syntax.
java.version=1.4
java.awt.headless=true
----- Error
27) ./startup.sh
./startup.sh[25]: java.version=1.4: not found
./startup.sh[26]: java.awt.headless=true: not found
Using CATALINA_BASE: /dbfupg/apache-tomcat-7.0.26
Using CATALINA_HOME: /dbfupg/apache-tomcat-7.0.26
Using CATALINA_TMPDIR: /dbfupg/apache-tomcat-7.0.26/temp
Using JRE_HOME: /usr/java6/jre
Using CLASSPATH: /dbfupg/apache-tomcat-7.0.26/bin/bootstrap.jar:/dbfupg/apache-tomcat-7.0.26/bin/tomcat-juli.jar
----- Start up script
27) cat startup.sh
#!/bin/sh
java.version=1.4
java.awt.headless=true
os400=false
case "`uname`" in
OS400*) os400=true;;
esac
# resolve links - $0 may be a softlink
PRG="$0"
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`/"$link"
fi
done
PRGDIR=`dirname "$PRG"`
EXECUTABLE=catalina.sh
# Check that target executable exists
if $os400; then
# -x will Only work on the os400 if the files are:
# 1. owned by the user
# 2. owned by the PRIMARY group of the user
# this will not work if the user belongs in secondary groups
eval
else
if [ ! -x "$PRGDIR"/"$EXECUTABLE" ]; then
echo "Cannot find $PRGDIR/$EXECUTABLE"
echo "The file is absent or does not have execute permission"
echo "This file is needed to run this program"
exit 1
fi
fi
exec "$PRGDIR"/"$EXECUTABLE" start "$@"
BTW, Thanks for the update on the new version.
Thanks!
Edited by: bratz69 on Jun 13, 2012 4:48 PM -
Bad game performance: "Tibia" - need help to find the error
hi
im playing a game called tibia (www.tibia.com) for a long time, back on windows i had no problems with the programm(except that windows itself crashed sometimes while playing ;P).
since some time they made an linux client again and i tryed it on my pc, running arch with all updates.
my problem is that sometimes when (probably to much) pictures like garbage and player are shown on the screen(its an 2d mud inspired by ultima) i get performence issues, the program is freezing 2 seconds before i can view another level, just to say an example.
via "top" i watched what kicks in that uses my cpu so much and it is X.
ok, now i dont realy know where this post belongs, more here or into newbie's corner, but:
as i said before i have every possible update for arch and the installed programms.
i got an geforce fx 5200 with the newest driver(manualy installed because the installer via pacman whont have the new driver because of an outdatet kernel, atleast that was what i remember).
my problem now is that i just dont know where the error is.
i know of people, using the same client as i that dont have that issues.
i already bugged the support forums but as far as i saw they dont realy like arch user, atleast they dont answer to their questions. ;P
i whant to know if MAYBE someone is here who plays tibia and can tell me that he got the same problems like i do or not.
or you could give me hints what i could try to solve this problem.
to write it in one short line:
the problem is that the process "X" sometimes kicks in, using 100% of the cpu, this happens only while playing "tibia"
thank youLook at Steps #4, #6, #9 and #12.
http://helpx.adobe.com/dreamweaver/kb/troubleshoot-javascript-errors-dreamweaver-cs4.html
Nancy O. -
Need help to fix the Procedure
I found a procedure in the forum. I think Vikash posted this. I update and it is working for comma delimiter records but I want to work it for TAB delimiter. I edited many ways but no luck. If any body fix it, please help so.
Thanks,
Lubna
create or replace PACKAGE htmldb_tools
AS
PROCEDURE parse_textarea (
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
PROCEDURE parse_file(
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
create or replace PACKAGE BODY htmldb_tools
AS
TYPE varchar2_t IS TABLE OF VARCHAR2(32767) INDEX BY binary_integer;
PROCEDURE delete_collection (
p_collection_name IN VARCHAR2
IS
BEGIN
IF (htmldb_collection.collection_exists(p_collection_name))
THEN
htmldb_collection.delete_collection(p_collection_name);
END IF;
END delete_collection;
PROCEDURE csv_to_array (
p_csv_string IN VARCHAR2,
p_array OUT wwv_flow_global.vc_arr2,
p_separator IN VARCHAR2 := 'chr(09)'
IS
l_start_separator PLS_INTEGER := 0;
l_stop_separator PLS_INTEGER := 0;
l_length PLS_INTEGER := 0;
l_idx BINARY_INTEGER := 0;
l_quote_enclosed BOOLEAN := FALSE;
l_offset PLS_INTEGER := 1;
BEGIN
l_length := NVL(LENGTH(p_csv_string),0);
IF (l_length <= 0)
THEN
RETURN;
END IF;
LOOP
l_idx := l_idx + 1;
l_quote_enclosed := FALSE;
IF SUBSTR(p_csv_string, l_start_separator + 1, 1) = '"'
THEN
l_quote_enclosed := TRUE;
l_offset := 2;
l_stop_separator := INSTR(p_csv_string, '"', l_start_separator + l_offset, 1);
ELSE
l_offset := 1;
l_stop_separator := INSTR(p_csv_string, p_separator, l_start_separator + l_offset, 1);
END IF;
IF l_stop_separator = 0
THEN
l_stop_separator := l_length + 1;
END IF;
p_array(l_idx) := (SUBSTR(p_csv_string, l_start_separator + l_offset,(l_stop_separator - l_start_separator - l_offset)));
EXIT WHEN l_stop_separator >= l_length;
IF l_quote_enclosed
THEN
l_stop_separator := l_stop_separator + 1;
END IF;
l_start_separator := l_stop_separator;
END LOOP;
END csv_to_array; --}}}
PROCEDURE get_records(p_blob IN blob,p_records OUT varchar2_t) --{{{
IS
l_record_separator VARCHAR2(2) := chr(13)||chr(10);
l_last INTEGER;
l_current INTEGER;
BEGIN
IF (NVL(dbms_lob.instr(p_blob,utl_raw.cast_to_raw(l_record_separator),1,1),0)=0)
THEN
l_record_separator := chr(10);
END IF;
l_last := 1;
LOOP
l_current := dbms_lob.instr( p_blob, utl_raw.cast_to_raw(l_record_separator), l_last, 1 );
EXIT WHEN (nvl(l_current,0) = 0);
p_records(p_records.count+1) := utl_raw.cast_to_varchar2(dbms_lob.substr(p_blob,l_current-l_last,l_last));
l_last := l_current+length(l_record_separator);
END LOOP;
END get_records;
PROCEDURE parse_textarea (
p_textarea IN VARCHAR2,
p_collection_name IN VARCHAR2
IS
l_index INTEGER;
l_string VARCHAR2(32767) := TRANSLATE(p_textarea,chr(9)||chr(13)||chr(10)||' ,','@@@@');
l_element VARCHAR2(100);
BEGIN
l_string := l_string||'@';
htmldb_collection.create_or_truncate_collection(p_collection_name);
LOOP
l_index := instr(l_string,'@');
EXIT WHEN NVL(l_index,0)=0;
l_element := substr(l_string,1,l_index-1);
IF (trim(l_element) IS NOT NULL)
THEN
htmldb_collection.add_member(p_collection_name,l_element);
END IF;
l_string := substr(l_string,l_index+1);
END LOOP;
END parse_textarea;
PROCEDURE parse_file(
p_file_name IN VARCHAR2,
p_collection_name IN VARCHAR2,
p_headings_item IN VARCHAR2,
p_columns_item IN VARCHAR2,
p_ddl_item IN VARCHAR2,
p_table_name IN VARCHAR2 DEFAULT NULL
IS
l_blob blob;
l_records varchar2_t;
l_record wwv_flow_global.vc_arr2;
l_datatypes wwv_flow_global.vc_arr2;
l_headings VARCHAR2(4000);
l_columns VARCHAR2(4000);
l_seq_id NUMBER;
l_num_columns INTEGER;
l_ddl VARCHAR2(4000);
BEGIN
IF (p_table_name is not null)
THEN
l_ddl := 'insert into '||p_table_name||' '||
'select '||v(p_columns_item)||' '||
'from htmldb_collections '||
'where seq_id > 0 and collection_name='''||p_collection_name||'''';
htmldb_util.set_session_state('P149_DEBUG',v('P149_DEBUG')||'/'||l_ddl);
execute immediate l_ddl;
RETURN;
END IF;
BEGIN
select blob_content into l_blob from wwv_flow_files
where name=p_file_name;
EXCEPTION
WHEN NO_DATA_FOUND THEN
raise_application_error(-20000,'File not found, id='||p_file_name);
END;
get_records(l_blob,l_records);
IF (l_records.count < 2)
THEN
raise_application_error(-20000,'File must have at least 3 ROWS, id='||p_file_name);
END IF;
htmldb_collection.create_or_truncate_collection(p_collection_name);
csv_to_array(l_records(1),l_record);
l_num_columns := l_record.count;
if (l_num_columns > 900000) then
raise_application_error(-900000,'Max. of 9,000,00 columns allowed, id='||p_file_name);
end if;
FOR i IN 1..l_record.count
LOOP
l_headings := l_headings||':'||l_record(i);
l_columns := l_columns||',c'||lpad(i,3,'0');
END LOOP;
l_headings := ltrim(l_headings,':');
l_columns := ltrim(l_columns,',');
htmldb_util.set_session_state(p_headings_item,l_headings);
htmldb_util.set_session_state(p_columns_item,l_columns);
FOR i IN 2..l_records.count
LOOP
csv_to_array(l_records(i),l_record);
l_seq_id := htmldb_collection.add_member(p_collection_name,'dummy');
FOR i IN 1..l_record.count
LOOP
htmldb_collection.update_member_attribute(
p_collection_name=> p_collection_name,
p_seq => l_seq_id,
p_attr_number => i,
p_attr_value => l_record(i)
END LOOP;
END LOOP;
DELETE FROM wwv_flow_files WHERE name=p_file_name;
END;
BEGIN
NULL;
END;sir manu,
i started the oracleAS report Server with the following command in command prompt : rwserver server=rep_myserver
and it successfully started.
i insert this code on my button :
DECLARE
RO_Report_ID REPORT_OBJECT;
Str_Report_Server_Job VARCHAR2(100);
Str_Job_ID VARCHAR2(100);
Str_URL VARCHAR2(100);
PL_ID PARAMLIST ;
BEGIN
PL_ID := GET_PARAMETER_LIST('TEMPDATA');
IF NOT ID_NULL(PL_ID) THEN
PAUSE;
DESTROY_PARAMETER_LIST(PL_ID);
END IF;
PL_ID := CREATE_PARAMETER_LIST('TEMPDATA');
--RO_Report_ID := FIND_REPORT_OBJECT('REPORT_OBJ');
RO_Report_ID := FIND_REPORT_OBJECT('REPORT1');
ADD_PARAMETER(PL_ID, 's_sin_no', TEXT_PARAMETER,:scrap_delivery_request.sin_no);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_FILENAME, 'C:\New Forms\REF_SF_510.ref');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_COMM_MODE, SYNCHRONOUS);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_EXECUTION_MODE, BATCH);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESTYPE, cache);
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_DESFORMAT, 'PDF');
SET_REPORT_OBJECT_PROPERTY(RO_Report_ID, REPORT_SERVER, 'rep_myserver');
Str_Report_Server_Job := RUN_REPORT_OBJECT(RO_Report_ID, PL_ID);
Str_Job_ID := SUBSTR(Str_Report_Server_Job, LENGTH('rep_myserver') + 2, LENGTH(Str_Report_Server_Job));
Str_URL := '/reports/rwservlet/getjobid' || Str_Job_ID || '?server=' || 'rep_myserver';
WEB.SHOW_DOCUMENT(Str_URL, '_SELF');
DESTROY_PARAMETER_LIST(PL_ID);
END;
after pressing the button this error come up in browser :
REP-52251: Cannot get output of job ID 3 you requested on SAt. jul 04 11:44...... <P> REP-51026 :No output for job b -
Need help in fixing the query for performance reasons
hi
I have a view in which I am calling a function to return some values I wand to get rid of the function and want to some how do all in the sql. Can I use case or something similar that will help me in avoiding the use of this function. Any help in this regard will highly be appreciated.
Query
SELECT SUBSTR(f_type_px17(ap.cidn,ap.currentstatusoid, 'DESC'), 1, 255)
from
px17_appointment ap,
/*context co_ap,*/
px17_payrollagreement pa,
px17_payrollgroup pg;
FUNCTION
CREATE OR REPLACE FUNCTION f_type_px17
fv_cidn IN px17_type_client.cidn%TYPE,
fv_oid IN px17_type_client.oid%TYPE,
fv_col IN VARCHAR2 DEFAULT NULL
) RETURN VARCHAR2 AUTHID CURRENT_USER AS
v_rtn_name px17_type_client.name%TYPE := NULL ;
v_rtn_desc px17_type_client.description%TYPE := NULL ;
BEGIN
IF fv_oid IS NOT NULL THEN
BEGIN
IF UPPER(SUBSTR(fv_oid,1,3)) = 'SYS' THEN
SELECT name, description
INTO v_rtn_name, v_rtn_desc
FROM px17_sys_type
WHERE oid = fv_oid
AND ROWNUM = 1 ;
ELSE
SELECT name, description
INTO v_rtn_name, v_rtn_desc
FROM px17_type_client
WHERE oid = fv_oid
AND cidn = fv_cidn
AND ROWNUM = 1 ;
END IF ;
EXCEPTION
WHEN no_data_found THEN
v_rtn_name := NULL ;
v_rtn_desc := NULL ;
END ;
END IF ;
IF (UPPER(NVL(fv_col, '~')) = 'NAME') THEN
RETURN v_rtn_name ;
ELSIF ((UPPER(NVL(fv_col, '~')) = 'DESC')
OR (UPPER(NVL(fv_col, '~')) = 'DESCRIPTION')) THEN
RETURN v_rtn_desc ;
ELSE
RETURN (NVL(v_rtn_name, CHR(155)) || '~' || NVL(v_rtn_desc, CHR(155))) ;
END IF ;
END f_type_px17 ;
/Well following is the whole code of a view and the functions releated, This will give you the whole picture and this query is running for long time.
create or replace view PX17_CHK_VW_SUMMARY_VW
(CIDN,BATCH_NUMBER, BUSINESS_UNIT, CHECK_VOUCHER_NUMBER, CHECK_VOUCHER_CODE, CHECKVIEW_CLOCK_NUMBER,
COMPANY_CHECKVIEW_HOME_DEPT, PERIOD_END_DATE, FEDERAL_TAX, GROSS_PAY, HOME_DEPARTMENT,
HOME_DEPARTMENT_DESC, LIVED_LOCAL_TAX_CODE, LIVED_STATE_TAX_CODE, LIVED_LOCAL_TAX, LIVED_STATE_TAX,
MEDICARE_TAX, NET_PAY, DEPARTMENT_WORKED_IN, PAY_TO_COMPANY_INDICATOR, PAY_DATE,
PAYROLL_NUMBER, SCHOOL_DISTRICT_TAX, CHECKVIEW_SCHOOL_DISTRICT, SOCIAL_SECURITY_TAX, SUI_SDI_TAX,
SUI_SDI_TAX_CODE, VOID_CHECK_INDICATOR, WEEK_NUMBER, WORKED_LOCAL_TAX_CODE, WORKED_STATE_TAX_CODE,
WORKED_LOCAL_TAX, WORKED_STATE_TAX, YEAR, COMPANY_CODE, FILE_NUMBER,
FIRST_NAME, LAST_NAME, LAST_NAME_FIRST_NAME, SOCIAL_SECURITY_NUMBER, STATUS,
OVERTIME_EARNINGS, OVERTIME_HOURS, REGULAR_EARNINGS, REGULAR_HOURS, VIEWPK,
HOME_COST_NUMBER, TAX_FREQUENCY, COMPANY_COST_NUMBER, COST_NUMBER_WORKED_IN, DISTRIBUTION_NUMBER,
TOTAL_DEDUCTIONS_AMOUNT, TOTAL_HOURS_AMOUNT, TOTAL_MEMO_AMOUNT, TOTAL_OTHER_EARNINGS, TOTAL_OTHER_HOURS,
CHECK_SEQ_NO, JOINKEY, CHECK_REVERSAL_INDICATOR
as
with user_security_homedept
AS
(select /*+ INLINE */ distinct cg.cidn,co_code,asso.oid,asso.name,department_Access ,t2.column_value dep,cg.oid
from px17_cocodegroup cg ,
px17_associate asso ,
px17_securityobject so,
px17_cocodegrp_securitygrp cs,
px17_security_group sg ,
TABLE(f_str2tbl_px17(cg.department_access)) t2
where cg.USEROID = asso.OID
and cg.co_code = substr(so.name,8,3)
and upper(asso.name) = upper(sys_context('payx_r17_app_context', 'app_userid'))
and cg.oid = cs.cocodegroupoid
and cs.securitygroupoid = sg.oid
and cg.cidn = asso.cidn
and cg.cidn = so.cidn
and cg.cidn = cs.cidn
and cs.cidn = sg.cidn
order by 2,1
user_security_cost_no
AS
(select /*+ INLINE */
cg.cidn,co_code,count(distinct cd.code)cost_no,cd.code
from px17_cocodegroup cg ,
px17_associate asso ,
px17_securityobject so,
px17_cocodegrp_securitygrp cs,
px17_security_group sg ,
px17_customaccessdetail cd
where cg.USEROID = asso.OID
and cg.co_code = substr(so.name,8,3)
and upper(asso.name) = upper(sys_context('payx_r17_app_context', 'app_userid'))
and cg.oid = cs.cocodegroupoid
and cs.securitygroupoid = sg.oid
and cg.oid = cd.cocodegroupoid(+)
and cg.cidn = cd.cidn(+)
and cg.cidn = asso.cidn
and cg.cidn = so.cidn
and cg.cidn = cs.cidn
and cs.cidn = sg.cidn
group by cg.cidn,co_code,cd.code
order by 2,1
super_user_check as
(SELECT
distinct a.cidn su_cidn,1 as su_user
FROM
px17_LINK LN
, px17_userprofile up
, px17_ASSOCIATE a
, px17_pcp_user pu
WHERE
a.oid = pu.oid
AND pu.userprofileoid = up.oid
AND LN.parentoid = up.oid
AND a.active = 1
AND a.cidn=pu.cidn
AND pu.cidn=up.cidn
AND ln.cidn=up.cidn
AND upper(a.name) = upper(sys_context('payx_r17_app_context', 'app_userid'))
AND upper(up.name) = upper('Super user')
nonsuper_user_check as
SELECT distinct a.cidn s_cidn , 1 as non_user
FROM
px17_LINK LN
, px17_userprofile up
, px17_ASSOCIATE a
, px17_pcp_user pu
WHERE
a.oid = pu.oid
AND pu.userprofileoid = up.oid
AND LN.parentoid = up.oid
AND a.active = 1
AND a.cidn=pu.cidn
AND pu.cidn=up.cidn
AND ln.cidn=up.cidn
AND upper(a.name) = upper(sys_context('payx_r17_app_context', 'app_userid'))
AND LN.childoid IN ( 'SYS:5:7478')
SELECT distinct
cidn
,batch_number Batch_Number
, business_unit Business_Unit
, check_voucher_number Check_Voucher_Number
, check_voucher_code Check_Voucher_Code
, clock_number CheckView_Clock_Number
, company_code_or_dept Company_CheckView_Home_Dept
, period_end_date Period_End_Date
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, 1, (INSTR(taxes_and_rates, '~', 1, 1) -1)), CHR(155), NULL)) Federal_Tax
, gross_pay Gross_Pay
, home_department Home_Department
, home_department_descr Home_Department_Desc
, SUBSTR(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 1) +1)
, INSTR(taxes_and_rates, '~', 1, 2) - (INSTR(taxes_and_rates, '~', 1, 1) +1)), CHR(155), NULL), 1, 32) Lived_Local_Tax_Code
, SUBSTR(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 2) +1)
, INSTR(taxes_and_rates, '~', 1, 3) - (INSTR(taxes_and_rates, '~', 1, 2) +1)), CHR(155), NULL), 1, 32) Lived_State_Tax_Code
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 3) +1)
, INSTR(taxes_and_rates, '~', 1, 4) - (INSTR(taxes_and_rates, '~', 1, 3) +1)), CHR(155), NULL)) Lived_Local_Tax
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 4) +1)
, INSTR(taxes_and_rates, '~', 1, 5) - (INSTR(taxes_and_rates, '~', 1, 4) +1)), CHR(155), NULL)) Lived_State_Tax
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 5) +1)
, INSTR(taxes_and_rates, '~', 1, 6) - (INSTR(taxes_and_rates, '~', 1, 5) +1)), CHR(155), NULL)) Medicare_Tax
, net_pay Net_Pay
, department_paid Department_Worked_In
, to_pay_indicator Pay_to_Company_Indicator
, pay_date Pay_Date
, payroll_number Payroll_Number
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 6) +1)
, INSTR(taxes_and_rates, '~', 1, 7) - (INSTR(taxes_and_rates, '~', 1, 6) +1)), CHR(155), NULL)) School_District_Tax
, SUBSTR(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 7) +1)
, INSTR(taxes_and_rates, '~', 1, 8) - (INSTR(taxes_and_rates, '~', 1, 7) +1)), CHR(155), NULL), 1, 32) CheckView_School_District
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 8) +1)
, INSTR(taxes_and_rates, '~', 1, 9) - (INSTR(taxes_and_rates, '~', 1, 8) +1)), CHR(155), NULL)) Social_Security_Tax
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 9) +1)
, INSTR(taxes_and_rates, '~', 1, 10) - (INSTR(taxes_and_rates, '~', 1, 9) +1)), CHR(155), NULL)) SUI_SDI_Tax
, SUBSTR(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 10) +1)
, INSTR(taxes_and_rates, '~', 1, 11) - (INSTR(taxes_and_rates, '~', 1, 10) +1)), CHR(155), NULL), 1, 32) SUI_SDI_Tax_Code
, void_check_indicator Void_Check_Indicator
, week_number Week_Number
, SUBSTR(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 11) +1)
, INSTR(taxes_and_rates, '~', 1, 12) - (INSTR(taxes_and_rates, '~', 1, 11) +1)), CHR(155), NULL), 1, 32) Worked_Local_Tax_Code
, SUBSTR(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 12) +1)
, INSTR(taxes_and_rates, '~', 1, 13) - (INSTR(taxes_and_rates, '~', 1, 12) +1)), CHR(155), NULL), 1, 32) Worked_State_Tax_Code
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 13) +1)
, INSTR(taxes_and_rates, '~', 1, 14) - (INSTR(taxes_and_rates, '~', 1, 13) +1)), CHR(155), NULL)) Worked_Local_Tax
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 14) +1)
, INSTR(taxes_and_rates, '~', 1, 15) - (INSTR(taxes_and_rates, '~', 1, 14) +1)), CHR(155), NULL)) Worked_State_Tax
, year Year
, company_code Company_Code
, file_number File_Number
, first_name First_Name
, last_name Last_Name
, name Last_Name_First_Name
, ssn Social_Security_Number
, status Status
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 15) +1)
, INSTR(taxes_and_rates, '~', 1, 16) - (INSTR(taxes_and_rates, '~', 1, 15) +1)), CHR(155), NULL)) Overtime_Earnings
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 16) +1)
, INSTR(taxes_and_rates, '~', 1, 17) - (INSTR(taxes_and_rates, '~', 1, 16) +1)), CHR(155), NULL)) Overtime_Hours
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 17) +1)
, INSTR(taxes_and_rates, '~', 1, 18) - (INSTR(taxes_and_rates, '~', 1, 17) +1)), CHR(155), NULL)) Regular_Earnings
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 18) +1)
, INSTR(taxes_and_rates, '~', 1, 19) - (INSTR(taxes_and_rates, '~', 1, 18) +1)), CHR(155), NULL)) Regular_Hours
, (company_code || '/' || ssn || '/' || file_number || '/' || TO_CHAR(payroll_number) || '/'
|| TO_CHAR(year) || '/' || TO_CHAR(week_number) || '/' || check_voucher_number
|| '/' || to_char(check_seq_num) || '/' || TO_CHAR(distribution_number)) Viewpk
, home_costnumber_desc Home_Cost_Number
, tax_frequency Tax_Frequency
, co_chkv_home_cost_no Company_Cost_Number
, cost_no_worked_in Cost_Number_Worked_In
, distribution_number Distribution_Number
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 19) +1)
, INSTR(taxes_and_rates, '~', 1, 20) - (INSTR(taxes_and_rates, '~', 1, 19) +1)), CHR(155), NULL)) Total_Deductions_Amount
, NVL(TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 20) +1)
, INSTR(taxes_and_rates, '~', 1, 21) - (INSTR(taxes_and_rates, '~', 1, 20) +1)), CHR(155), NULL)), 0) Total_Hours_Amount
, NVL(TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 21) +1)
, INSTR(taxes_and_rates, '~', 1, 22) - (INSTR(taxes_and_rates, '~', 1, 21) +1)), CHR(155), NULL)), 0) Total_Memo_Amount
, NVL(TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 22) +1)
, INSTR(taxes_and_rates, '~', 1, 23) - (INSTR(taxes_and_rates, '~', 1, 22) +1)), CHR(155), NULL)), 0) Total_Other_Earnings
, TO_NUMBER(REPLACE(SUBSTR(taxes_and_rates, (INSTR(taxes_and_rates, '~', 1, 23) +1)), CHR(155), NULL)) Total_Other_Hours
, check_seq_num Check_Seq_No
, (NVL(company_code, '~') || CHR(155) || NVL(file_number, '~') || CHR(155) || NVL(ssn, '~') || CHR(155) || NVL(TO_CHAR(year), '~') || CHR(155)
|| NVL(TO_CHAR(week_number), '~') || CHR(155) || NVL(TO_CHAR(payroll_number), '~')
|| CHR(155) || NVL(check_voucher_number, '~') || CHR(155) || NVL(TO_CHAR(check_seq_num), '~') || CHR(155) || NVL(TO_CHAR(distribution_number), '~')) Joinkey
, chk_reverse Check_Reversal_Indicator
FROM
SELECT
ch.cidn cidn
/*BATCH NUMBER*/
, ch.batch_nb batch_number
, /*BUSINESS UNIT*/
(select asso.description
from px17_appointment ap,
px17_jobposition jp,
px17_corporation co,
px17_associate asso,
px17_payrollagreement pa,
px17_payrollgroup pg
where
ch.cidn = pg.cidn
AND ch.cidn = pa.cidn
AND pa.cidn = pg.cidn
AND pa.cidn = ap.cidn
AND em.cidn = ap.cidn
AND ap.cidn = jp.cidn
and jp.cidn = co.cidn
and co.cidn = asso.cidn
and ch.co_code=pg.co_code
and ch.file_nb=pa.file_number
and pa.cocodeoid=pg.oid
and pa.appointmentoid=ap.oid
and em.oid=ap.employmentoid
and ap.jobpositionoid=jp.oid
and jp.corporationoid=co.oid
and co.oid=asso.oid) business_unit
, /*CHECK/VOUCHER NUMBER*/
ch.check_nb check_voucher_number
, /*CHECK/VOUCHER CODE*/
SUBSTR(f_type_px17(ch.cidn,ch.chkvchcodeoid, 'NAME'), 1, 255) check_voucher_code
, /*CLOCK NUMBER*/
ch.clock_id clock_number
, /* COMPANY CODE OR DEPT*/
ch.co_code||'/'||substr(ch.home_dept_code,1,20) company_code_or_dept
, /*PERIOD END DATE*/
ch.payroll_ending_date period_end_date
, /*GROSS PAY*/
NVL(chd.gross_pay_amt,0) gross_pay
, /*HOME DEPARTMENT*/
ch.home_dept_code home_department
, /*HOME DEPARTMENT DESCRIPTION*/
(select ty.description
from px17_type ty,px17_securityobject sc
where
ch.cidn = sc.cidn
and ty.cidn in ('COMMON', ch.cidn)
and ch.home_dept_code=ty.name
and ty.category='T_CO_DEPT'
and ty.securityoid=sc.oid
and ch.co_code=substr(sc.name,8)) home_department_descr
, /*NET PAY*/
nvl(chd.net_pay_amt,0) net_pay
, /*DEPARTMENT PAID*/
-- ch.paid_in_debt_code department_paid
chd.worked_in_dept department_paid
, /*TO PAY INDICATOR*/
decode(to_char(ch.pay_to_co),'1','Y','0','N',to_char(ch.pay_to_co)) to_pay_indicator
, /*PAY DATE*/
ch.pay_date pay_date
, /*PAYROLL NUMBER*/
to_char(ch.payroll_nb) payroll_number
, /*VOID CHECK INDICATOR*/
decode(to_char(ch.void_flag),'1','Y','0','N',to_char(ch.void_flag)) void_check_indicator
, /*WEEK NUMBER*/
TO_number(ch.week) week_number
, /*YEAR*/
to_char(ch.year) year
, /*COMPANY CODE*/
ch.co_code company_code
, /*FILE NUMBER*/
LPAD(ch.file_nb,6,0) file_number
, /*FIRST NAME*/
pe.first_name first_name
, /*LAST NAME*/
pe.last_name last_name
, /*NAME*/
pe.last_name||', '||pe.first_name name
, /*SSN*/
payx_r17_principal_info.masked_ssn(pe.unique_id, ch.cidn) ssn
, /*STATUS*/
(SELECT SUBSTR(f_type_px17(ap.cidn,ap.currentstatusoid, 'DESC'), 1, 255)
from
px17_appointment ap,
/*context co_ap,*/
px17_payrollagreement pa,
px17_payrollgroup pg
where
pg.cidn=ch.cidn
and pa.cidn=ch.cidn
and ap.cidn=pa.cidn
and ap.cidn = em.cidn
and ap.employmentoid=em.oid
and ap.active=1
and ap.oid=pa.appointmentoid
and lpad(to_char(pa.file_number),6,0)=ch.file_nb
and pa.cocodeoid=pg.oid
and pg.co_code=ch.co_code) status
-- FED TAX
-- , LIVED LOCAL TAX CODE, LIVED STATE TAX CODE, LIVED LOCAL TAX, LIVED STATE TAX, MEDICARE TAX
-- , SCHOOL DISTRICT TAX, SCHOOL DISTRICT, SOCIAL SECURITY TAX, SUI SDI TAX, SUI SDI TAX CODE
-- , WORKED LOCAL TAX CODE, WORKED STATE TAX CODE, WORKED LOCAL TAX, WORKED STATE TAX
-- , OVERTIME EARNINGS, OVERTIME HOURS, REGULAR EARNINGS, REGULAR HOURS
NVL (
(SELECT
TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2982', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| NVL(MAX(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2984', ci.code, NULL), NULL)), CHR(155)) || '~'
|| NVL(MAX(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2987', DECODE(ci.code,'XX',null,ci.code), NULL), NULL)), CHR(155)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2984', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2987', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:4118', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:4114', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| NVL(MAX(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:4114', ci.code, NULL), NULL)), CHR(155)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2988', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2989', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| NVL(MAX(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2989', ci.code, NULL), NULL)), CHR(155)) || '~'
|| NVL(MAX(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2983', ci.code, NULL), NULL)), CHR(155)) || '~'
|| NVL(MAX(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2986', ci.code, NULL), NULL)), CHR(155)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2983', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3709', DECODE(ci.taxcodeoid, 'SYS:4:2986', NVL(ci.amount,0), 0), 0) ), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3713', NVL(ci.amount,0), 0)), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3727', NVL(ci.amount,0), 0)), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3715', NVL(ci.amount,0), 0)), 0)) || '~'
|| TO_CHAR(NVL(SUM(DECODE(ci.histtypeoid, 'SYS:4:3716', NVL(ci.amount,0), 0)), 0)) || '~'
-- R16 columns.
-- Total Deductions Amount === Other Deductions on UI screen.
|| TO_CHAR(NVL(SUM(DECODE(chcat.name, 'DeductionHistory'
, DECODE(NVL(ci.statutory_ded, 0), 0
, DECODE(ci.taxcodeoid, NULL
, DECODE(ci.code, NULL, 0, NVL(ci.amount,0)), 0), 0), 0)), 0)) || '~' -- "Total Deductions Amount"
|| TO_CHAR(NVL(SUM(DECODE(chcat.name, 'OvertimeHours', NVL(ci.amount,0)
, 'AdditionalHours', NVL(ci.amount,0), 'RegularHours', NVL(ci.amount,0), 0)), 0)) || '~' -- "Total Hours Amount"
|| TO_CHAR(NVL(SUM(DECODE(chcat.name, 'Memo', NVL(ci.amount,0), 0)), 0)) || '~' -- "Total Memo Amount"
|| TO_CHAR(NVL(SUM(DECODE(chcat.name, 'AdditionalEarnings', NVL(ci.amount,0), 0)), 0)) || '~' -- "Total Other Earnings"
|| TO_CHAR(NVL(SUM(DECODE(chcat.name, 'AdditionalHours', NVL(ci.amount,0), 0)), 0)) -- "Total Other Hours"
FROM
px17_checkhistoryitem ci
, px17_sys_type chcat
WHERE
ci.cidn=chd.cidn
AND ci.checkhistorydistributionoid = chd.oid
AND chcat.category = 'CheckHistoryItem'
AND chcat.oid = ci.histtypeoid
-- AND ci.histtypeoid IN ('SYS:4:3713', 'SYS:4:3727', 'SYS:4:3715', 'SYS:4:3716', 'SYS:4:3709')
), '0' || '~' || CHR(155) || '~' || CHR(155)
|| '0~0~0~0~' || CHR(155) || '~0~0~' || CHR(155) || '~' || CHR(155) || '~'
|| CHR(155) || '~0~0~0~0~0~0'
) taxes_and_rates
, ch.check_seq_num check_seq_num
, ch.home_cost_number home_costnumber_desc
, SUBSTR(f_type_px17(ch.cidn,ch.payfrequencyoid, 'NAME'), 1, 255) tax_frequency
, (ch.co_code || '/' || ch.home_cost_number) co_chkv_home_cost_no
, chd.worked_in_cost_number cost_no_worked_in
, chd.distribution_number distribution_number
, DECODE(NVL(ch.reversed_flag, 0), 1, 'Y', 'N') chk_reverse
FROM
px17_checkhistory ch
, px17_employment em
, px17_person pe
, px17_payrollgroup pg
, px17_checkhistory_dist chd
, px17_appointment ap
WHERE
ch.cidn = em.cidn
and em.cidn = pe.cidn
and pg.cidn = ch.cidn
and ch.cidn = chd.cidn
and ap.cidn(+) = em.cidn
and ch.employmentoid=em.oid
AND em.personoid=pe.oid
AND pg.co_code = ch.co_code
AND ch.active = 1
AND ch.oid = chd.checkhistoryoid
AND ap.employmentoid(+) = em.oid
AND DECODE(ap.oid, NULL, 1, NVL((SELECT 1 FROM px17_payrollagreement pa
WHERE
pa.cidn = ap.cidn
and pa.cidn = ch.cidn
and pa.cidn = pg.cidn
and pa.appointmentoid = ap.oid
AND pa.file_number = ch.file_nb
AND pa.cocodeoid = pg.oid), 0)) = 1
and ch.cidn in (select distinct s_cidn from nonsuper_user_check)
AND ( sys_context('payx_r17_app_context', 'app_role') in ('ADP', 'CSR')
or (exists (select 1 from super_user_check where su_cidn =ch.cidn))
or (ch.cidn,ch.co_code,ch.home_dept_code) in (select cidn,co_code,dep from user_security_homedept)
or (ch.cidn,ch.co_code,ch.home_cost_number) in (select cidn,co_code,code from user_security_cost_no)
or ( exists(select co_code from user_security_homedept where cidn=ch.cidn and co_code = ch.co_code and dep is null)
and exists(select co_code from user_security_cost_no where cidn=ch.cidn and co_code = ch.co_code and cost_no = 0) )
Following are the functions being called:
create or replace type myTable_17 as table of varchar2(4000);
CREATE OR REPLACE function f_str2tbl_px17( p_str in varchar2 ) return myTable_17 pipelined
as
l_str long default p_str || ',';
l_n number;
begin
loop
l_n := instr( l_str, ',' );
exit when (nvl(l_n,0) = 0);
pipe row( ltrim(rtrim(substr(l_str,1,l_n-1))) );
l_str := ltrim( substr( l_str, l_n+1 ) );
end loop;
return;
end f_str2tbl_px17;
CREATE OR REPLACE FUNCTION f_check_purge_px17
fv_cidn px17_reservedfilenumber.cidn%TYPE,
fv_file_number px17_reservedfilenumber.file_number%TYPE,
fv_cocode px17_payrollgroup.co_code%TYPE DEFAULT NULL
) RETURN NUMBER AUTHID CURRENT_USER
AS
v_val NUMBER(5) ;
BEGIN
IF fv_cocode IS NULL THEN
RETURN 0 ;
END IF ;
SELECT 1 INTO v_val
FROM px17_reservedfilenumber a,
px17_payrollgroup b
WHERE
a.cidn = fv_cidn
AND b.cidn = fv_cidn
AND a.file_number = fv_file_number
AND a.parentoid = b.oid
AND b.co_code = fv_cocode
AND ROWNUM = 1 ;
RETURN 1 ;
EXCEPTION
WHEN no_data_found THEN
RETURN 0 ;
END f_check_purge_px17 ;
CREATE OR REPLACE FUNCTION f_check_security_px17
fv_cidn IN px17_type_client.cidn%TYPE,
fv_cocode px17_cocodegroup.co_code%TYPE -- pg.cocode
, fv_home_dept px17_type_client.name%TYPE -- ap.home_dept
) RETURN NUMBER AUTHID CURRENT_USER
AS
v_val NUMBER(5) ;
v_key VARCHAR2(20) ;
v_users VARCHAR2(4000) ;
v_cocodes VARCHAR2(4000) ;
BEGIN
BEGIN
SELECT c_user_list, c_cocodes, c_run_key
INTO v_users, v_cocodes, v_key
FROM px17_t_context_vals
WHERE c_run_key = (SELECT MAX(c_run_key) FROM px17_t_context_vals)
AND ROWNUM = 1 ;
EXCEPTION
WHEN no_data_found THEN
v_cocodes := NULL ;
END ;
IF v_cocodes IS NULL THEN
RETURN 1 ;
ELSIF INSTR( (v_cocodes || ','), (fv_cocode || ',') ) = 0 THEN
RETURN 0 ;
ELSE
BEGIN
SELECT
1
INTO
v_val
FROM
px17_type_client t
, px17_securityobject s
, px17_cocodegroup c
WHERE
t.securityoid=s.oid
AND t.category='T_CO_DEPT'
AND c.useroid=(SELECT a.oid
FROM px17_associate a
WHERE a.oid = c.useroid
AND a.active=1
AND UPPER(a.name) = UPPER(v_users)
AND ROWNUM = 1)
AND SUBSTR(s.name,8,3)=c.co_code
AND (c.department_access IS NULL
OR c.department_access LIKE '%' || t.name || '%')
AND SUBSTR(s.name,8,3) = fv_cocode
AND t.name = fv_home_dept
AND ROWNUM = 1 ;
RETURN 1 ;
EXCEPTION
WHEN no_data_found THEN
BEGIN
SELECT
1
INTO
v_val
FROM
px17_cocodegroup c
, px17_associate a
WHERE
c.useroid=a.oid
AND c.department_access IS NULL
AND c.co_code = fv_cocode
AND UPPER(a.name)= UPPER(v_users)
AND a.active=1
AND ROWNUM = 1 ;
RETURN 1 ;
EXCEPTION
WHEN no_data_found THEN
RETURN 0 ;
END ;
END ;
END IF ;
RETURN 0 ;
END f_check_security_px17 ;
SELECT SUBSTR(f_type_px17(ap.cidn,ap.currentstatusoid, 'DESC'), 1, 255)
from
px17_appointment ap,
/*context co_ap,*/
px17_payrollagreement pa,
px17_payrollgroup pg
CREATE OR REPLACE FUNCTION f_type_px17
fv_cidn IN px17_type_client.cidn%TYPE,
fv_oid IN px17_type_client.oid%TYPE,
fv_col IN VARCHAR2 DEFAULT NULL
) RETURN VARCHAR2 AUTHID CURRENT_USER AS
v_rtn_name px17_type_client.name%TYPE := NULL ;
v_rtn_desc px17_type_client.description%TYPE := NULL ;
BEGIN
IF fv_oid IS NOT NULL THEN
BEGIN
IF UPPER(SUBSTR(fv_oid,1,3)) = 'SYS' THEN
SELECT name, description
INTO v_rtn_name, v_rtn_desc
FROM px17_sys_type
WHERE oid = fv_oid
AND ROWNUM = 1 ;
ELSE
SELECT name, description
INTO v_rtn_name, v_rtn_desc
FROM px17_type_client
WHERE oid = fv_oid
AND cidn = fv_cidn
AND ROWNUM = 1 ;
END IF ;
EXCEPTION
WHEN no_data_found THEN
v_rtn_name := NULL ;
v_rtn_desc := NULL ;
END ;
END IF ;
IF (UPPER(NVL(fv_col, '~')) = 'NAME') THEN
RETURN v_rtn_name ;
ELSIF ((UPPER(NVL(fv_col, '~')) = 'DESC')
OR (UPPER(NVL(fv_col, '~')) = 'DESCRIPTION')) THEN
RETURN v_rtn_desc ;
ELSE
RETURN (NVL(v_rtn_name, CHR(155)) || '~' || NVL(v_rtn_desc, CHR(155))) ;
END IF ;
END f_type_px17 ;
************************* -
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankApplication
class Program
static void Main(string[] args)
String AccountName = " ";
float Balance = 0f;
Boolean quit = false;
int userChoice;
Console.WriteLine("please Chose what to do:");
Console.WriteLine("1. Create Acount");
Console.WriteLine("2. Deposit cash");
Console.WriteLine("3. Withdraw Cash");
Console.WriteLine("4. Chech balance");
Console.WriteLine("or 0. to quit");
userChoice = Console.Read();
switch(userChoice)
case 1:
string name;
Console.WriteLine("please enter account name");
name = Console.ReadLine();
if (name==name)
Console.WriteLine("name alredy exist");
else
AccountName += name;
Console.WriteLine("Account Name ", name);
break;
case 2:
float amount;
Console.WriteLine("Amount to deposit: ");
amount = Console.Read();
if (amount <= 0){
Console.WriteLine("Can't deposit nonpositive amount.");
else {
Balance += amount;
Console.WriteLine("R" + amount + " has been deposited.");
break;
case 3:
Console.WriteLine("Amount to withdraw: ");
amount = Console.Read();
if (amount <= 0 || amount > Balance)
Console.WriteLine("Withdrawal can't be completed.");
else {
Balance -= amount;
Console.WriteLine("R" + amount + " has been withdrawn.");
break;
case 4:
Console.WriteLine("Your balance: R" + Balance);
break;
case 0:
quit = true;
break;
default:
Console.WriteLine("Wrong choice.");
break;
while(!quit);
Console.WriteLine("BIY!");In addition to the other good advice already posted, I suggest that you NOT us the float datatype for the balance, as you may encounter rounding errors.
Use the decimal datatype instead.
Instead of:
float Balance
= 0f;
use:
decimal Balance = 0d;
Read here:
https://msdn.microsoft.com/en-us/library/364x0z75.aspx?f=255&MSPPError=-2147217396
"the decimal type has more precision and a smaller range, which makes it appropriate for financial and monetary calculations." -
Need help for fixing selectonechoice error in ADF !!!
i have a selectonechoice with three values :A,B,C but i am getting following error on its change event:
<SimpleSelectOneRenderer> <_getSelectedIndex> Could not find selected item matching value "B" in RichSelectOneChoice[UIXEditableFacesBeanImpl, id=soc1]
My selectonechoice is configured as :
<af:selectOneChoice label="Condition Codes :" id="soc1"
valueChangeListener="#{myManageBean.onCondCodeChg}"
binding="#{myManageBean.propConditionCode}"
autoSubmit="true" valuePassThru="true"
unselectedLabel="Please Select"">
<f:selectItems value="#{myManageBean.conditionCodes}" id="si1"/>
</af:selectOneChoice>
Pls help!!!! where am i wrong ?
Edited by: AdfeeeZy_941794 on Jan 21, 2013 5:06 AMHi,
Check
http://gergerconsulting.blogspot.com/2007/03/programmatic-selectonechoice-example.html -
error
19e529fd-3785-410e-ad4e-f4c8542ade52 2014-03-17T21:40:59.079Z err { message: '@D
efault is not a parameter for procedure sp_Address_UPDATE.',? type: 'alert',?
stack: 'Error: @Default is not a parameter for procedure sp_Address_UPDATE.\n
at TDSStream.onRequestComplete (c:\Projects\caa-api\lib\data\tedious\TDSS
tream.js:67:11)\n at Request.callback (c:\Projects\caa-api\node_modules\t
edious\lib\request.js:24:27)\n at PooledConnection.Connection.STATE.SENT_CL
IENT_REQUEST.events.message (c:\Projects\caa-api\node_modules\tedious\lib\
connection.js:198:29)\n at PooledConnection.Connection.dispatchEvent (c:\Pro
jects\caa-api\node_modules\tedious\lib\connection.js:465:59)\n at Messag
eIO. (c:\Projects\caa-api\node_modules\tedious\lib\connection.j
s:419:20)\n at MessageIO.EventEmitter.emit (events.js:92:17)\n at MessageI
O.eventData (c:\Projects\caa-api\node_modules\tedious\lib\message-io.js:59
:21)\n at CleartextStream. (c:\Projects\caa-api\node_modules\t
edious\lib\message-io.js:3:59)\n at CleartextStream.EventEmitter.emit (even
ts.js:95:17)\n at CleartextStream. (_stream_readable.js:746:14)' }
existing Proc
sp_helptext sp_Address_UPDATE
CREATE PROCEDURE [dbo].[sp_Address_UPDATE]
@AddressID INT OUTPUT,
@Line1 NVARCHAR(400) = NULL,
@Line2 NVARCHAR(400) = NULL,
@Line3 NVARCHAR(400) = NULL,
@UnitNumber NVARCHAR(30) = NULL,
@City NVARCHAR(400) = NULL,
@StateProvinceID INT = NULL,
@PostalCode NVARCHAR(50) = NULL,
@CountryID INT = NULL,
@Latitude NUMERIC(30, 8) = NULL,
@Longitude NUMERIC(30, 8) = NULL,
@Elevation NUMERIC(30, 8) = NULL,
@Active SMALLINT = NULL,
@ModifiedBy NVARCHAR(50) = NULL,
@Error NVARCHAR(400) = NULL OUTPUT,
@Locality NVARCHAR(400)=NULL,
@AdministrativeArea NVARCHAR(400)=NULL,
@AdministrativeSubArea NVARCHAR(400)=NULL,
@Country NVARCHAR(400)=NULL
AS
IF @Country IS NOT NULL
SELECT @Countryid = CountryId
FROM countries
WHERE ( Country = @Country )
OR ( CountryAbrv2 = @Country )
OR ( CountryAbrv3 = @Country )
IF @AdministrativeArea IS NOT NULL
SELECT @StateProvinceID = StateProvinceID
FROM StateProvince
WHERE ( abbreviation = @AdministrativeArea )
OR ( name = @AdministrativeArea )
-- BEGIN TRAN
UPDATE a
SET Line1 = ISNULL(@Line1, a.Line1),
Line2 = ISNULL(@Line2, a.Line2),
Line3 = ISNULL(@Line3, a.Line3),
UnitNumber = ISNULL(@UnitNumber, a.UnitNumber),
City = ISNULL(@City, a.City),
StateProvinceID = CASE
WHEN AdministrativeArea IS NOT NULL
AND @StateProvinceID IS NULL THEN NULL
ELSE ISNULL(@StateProvinceID, a.StateProvinceID)
END,
PostalCode = ISNULL(@PostalCode, a.PostalCode),
CountryID = CASE
WHEN Country IS NOT NULL
AND @CountryID IS NULL THEN NULL
ELSE ISNULL(@CountryID, a.CountryID)
END,
Latitude = ISNULL(@Latitude, a.Latitude),
Longitude = ISNULL(@Longitude, a.Longitude),
Elevation = ISNULL(@Elevation, a.Elevation),
Active = ISNULL(@Active, a.Active),
ModifiedDate = GETDATE(),
ModifiedBy = ISNULL(@ModifiedBy, ModifiedBy),
locality = ISNULL(@locality, locality),
AdministrativeArea = ISNULL(@AdministrativeArea, AdministrativeArea),
AdministrativeSubArea = ISNULL(@AdministrativeSubArea, AdministrativeSubArea),
Country = ISNULL(@Country, Country),
geogcode = CASE
WHEN @latitude IS NOT NULL
AND @longitude IS NOT NULL THEN geography::STPointFromText('POINT(' + CAST(@Longitude AS VARCHAR(20))
+ ' ' + CAST(@Latitude AS VARCHAR(20)) + ')', 4326)
ELSE NULL
END,
geocode = CASE
WHEN @latitude IS NOT NULL
AND @longitude IS NOT NULL THEN geometry::STPointFromText('POINT(' + CAST(@Longitude AS VARCHAR(20))
+ ' ' + CAST(@Latitude AS VARCHAR(20)) + ')', 4326)
ELSE NULL
END
FROM [Address] a
WHERE a.AddressID = @AddressID
IF EXISTS(SELECT *
FROM address
WHERE Addressid = @addressid
AND ( locality IS NOT NULL
OR AdministrativeArea IS NOT NULL
OR country IS NOT NULL ))
SELECT AddressID,
Line1,
Line2,
Line3,
UnitNumber,
isnull(Locality, City) AS 'Locality',
a.StateProvinceID,
isnull(administrativeArea, S.Name) AS 'AdministrativeArea',
AdministrativeSubArea,
a.PostalCode,
a.CountryID,
isnull(c.Country, a.Country) AS Country,
a.Latitude,
a.Longitude,
a.Elevation,
a.ModifiedBy,
a.ModifiedDate
FROM [Address] a
LEFT JOIN stateprovince s
ON s.stateprovinceid = a.stateprovinceid
LEFT JOIN Countries c
ON c.Countryid = a.Countryid
WHERE AddressID = @AddressID
ELSE
SELECT AddressID,
Line1,
Line2,
Line3,
UnitNumber,
City,
StateProvinceID,
PostalCode,
CountryID,
Latitude,
Longitude,
Elevation,
ModifiedBy,
ModifiedDate
FROM [Address]
WHERE AddressID = @AddressID
RETURN @AddressIDNothing in the procedure is right. The “sp_” prefix has special meaning in T-SQL, so the name is wrong. THEN it gets even worse.
No postal service in Earth uses 400 character address lineS. Can you give me an exampelf of a city_ with 400 characters?
Longitude and latitude are done with FLOAT because of the math used. ISO country codes are CHAR(3). Addresses do not have an id; we have “<something>_address” in RDBMS. Do you want some industry standard like the SAN?
The (ModIFiedBy, ModIFiedDate) pair is audit data, so it is illegal to have it in the table under audit.
Your code is BASIC or COBOL written in T-SQL with 1960's with IF-THEN control flow and not in declarative SQL! Why did you fail to use COALESCE?
Look at how to write a MERGE statement and get rid of this procedure. And look at an address scrubbing tool for the data. In the future, post DDL and follow minimal Netiquette.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
I need help on fixing the bug in my ipod 4
I called apple they sent me an email now do i just reset the hole thing??
There are various programs out there for recovering photos from an iPod, have a look at the ones below. If you search the internet you can find more:
iPodPhotoCopy Windows only
CopyPodPhoto Windows only
iPod Photo Liberator Mac & Windows
iPodCopy Mac and Windows Versions
If you have full resolution copies of the photos on the iPod have a look here: Apple Knowledge Base article - Use Disk Mode to copy photos from iPod -
; hi good plzz do help me to fix the error to my bb9300 i just update my bb9300 the the i see
error b Uncaught exception: java.lang.NullPointerException anyone here can help me to fix i appreciateI am guessing that you are not a Java developer, and it is not your application that is causing the Null Pointer Exception.
It sounds like you have updated the OS on your Blackberry device and one of the applications that you have installed is not coping with the upgrade.
If you press on an application icon and then that causes the error, then you know there is a problem with that application and so you need to report this to the developers of that application and get an updated version.
If this is happening when you restart your device, then it appears that one of the installed applications is failing at start up time and so it is not obvious which application. So you need to see which of your applications doesn't appear to be providing all the functions it used to, and it would be a good guess that it is that application that is causing the problem. Again you need to go back to the developer to get an update.
Let us know if that does not help.
Also you have posted in the Java developer forum. If this really is not your program causing the problem, then I suggest a better place to post a question relating to the 9300 is in the appropriate device forum here:
http://supportforums.blackberry.com/t5/BlackBerry-Curve/bd-p/Curve -
Need help to trace the place where error occuring in Web UI of type System
Hi All,
Need help to trace the place where error occurring in Web UI of type System error,
this error coming while saving the corporate account creation,
error message description : - System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_SEGMENT
System error: Interruption in Routine READ TABLE GT_CHAR_VAL, CHAR_NAME = PVTLTD_CLEAN_CLASS-CP
thanking you.
Best Regards,
VijHydHi Nagaraj,
See that the mandatory SICF setting are enabled or Active in the SICF Services. Follow the steps as below:-
Enter the TCode SICF
Execute the same for Hierarchy Type SICF.
Check the following SAP Note 1295006.
If every thing is Active then, the IC Agent role will open.
Still if it is not opening Let me know.
regards,
Sarangamath -
I'm getting this problem when trying to update my iphone 3gs it says that the iphone software could not be contacted and I went on youtube got some advise to go into my hard drive to fix the error I have nothing in my host file please help me if you can this is all new to me.
Read this: iOS 4: Updating your device to iOS 5 or later
... oh I think it is a 3gs or a 3
This makes a difference. What does it say in Settings > General > About?
Maybe you are looking for
-
Cannot sync music to iPhone 3GS
I just bought a new computer & wanted to have my iTunes on the new computer that I downloaded all music to. When I tried to sync my iPhone 3GS to my music it does not work. Can anyone let me know what I might be doing wrong?
-
Why am I getting "download error, tap to retry" when I try to get music on my ipod?
I tried to download a few albums from itunes through my ipod and it downloaded a few song but now all I get is the message "download error, tap to retry." How do I get the download to continue since it has already taken the money out of my account?
-
Is there any table/view that we can find the hostname of the database backup stored in RMAN catalog data dictionary? Thanks
-
Random Cell Errors when opening Numbers Document
I recently downloaded the iWork '09 trial to see if I wanted to upgrade. When I bought iWork '08 I altered the Budget template so I could add my transactions and then have a chart which showed how well I met my budget. (Or how badly I went over) When
-
Problem with EIS drill through reporting
Hello,<BR><BR>Please help me with this.<BR><BR>We are using Drill Through reports with EIS 7.1 and Essbase 7.1 in AIX environment. (These are the IBMDB2 Olap versions, not directly from Hyperion.) For some reports when retrieved on a member with more