Query required for the below result format:
Table(DATA):
Bank_id Device_type Status date Station_status
1011 N Y 3/23/2012 DOWN
1011 N Y 3/23/2012 up
1011 N y 3/23/2012 up
1011 E Y 3/23/2012 down
1011 E I 3/23/2012 down
1011 W Y 3/23/2012 up
1012 N Y 3/23/2012 DOWN
1012 N Y 3/23/2012 up
1012 N y 3/23/2012 up
1012 E Y 3/23/2012 down
1012 E I 3/23/2012 down
1012 W Y 3/23/2012 up
1013 N Y 3/23/2012 DOWN
1013 N Y 3/23/2012 up
1013 N y 3/23/2012 up
1013 E Y 3/23/2012 down
1013 E I 3/23/2012 down
1013 W Y 3/23/2012 up
(SELECT QUERY RESULT SHOULD BE LIKE THIS):Report result:
Bank_id----Date-----TOTAL---UP_STATUS--DOWN_STATUS-----DEVICE
1011 3/23/2012 6 3 3 N<2>N<1>,E<0>E<2>,W<1>W<0>
1012 3/23/2012 6 3 3 N<2>N<1>,E<0>E<2>,W<1>W<0>
1013 3/23/2012 6 3 3 N<2>N<1>,E<0>E<2>,W<1>W<0>
N<2>N<1>,E<0>E<2>,W<1>W<0> this mean(INDICATES)
In N 2 UP 1 DOWN
IN E 0 up 2 down
In W 1 up 0 down
SCRIPTS:
CREATE TABLE FIMS_TEST
BANK_ID VARCHAR2(10 BYTE),
DEVICE_TYPE VARCHAR2(10 BYTE),
STATUS VARCHAR2(1 BYTE),
DATE_TS DATE,
STATION_STATUS VARCHAR2(10 BYTE)
INSERT SCRIPT:
SET DEFINE OFF;
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1011', 'N', 'Y', TO_DATE('03/26/2012 16:30:48', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1011', 'N', 'Y', TO_DATE('03/26/2012 16:32:26', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1011', 'N', 'Y', TO_DATE('03/26/2012 16:32:55', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1011', 'E', 'Y', TO_DATE('03/26/2012 16:33:51', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1011', 'I', 'Y', TO_DATE('03/26/2012 16:34:15', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1011', 'W', 'Y', TO_DATE('03/26/2012 16:34:39', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1012', 'N', 'Y', TO_DATE('03/26/2012 16:35:13', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1012', 'N', 'Y', TO_DATE('03/26/2012 16:35:56', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1012', 'N', 'Y', TO_DATE('03/26/2012 16:36:48', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1012', 'E', 'Y', TO_DATE('03/26/2012 16:37:17', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1012', 'E', 'I', TO_DATE('03/26/2012 16:37:42', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1012', 'W', 'Y', TO_DATE('03/26/2012 16:38:10', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1013', 'N', 'Y', TO_DATE('03/26/2012 16:38:37', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN ');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1013', 'N', 'Y', TO_DATE('03/26/2012 16:39:23', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1013', 'N', 'Y', TO_DATE('03/26/2012 16:39:54', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1013', 'E', 'Y', TO_DATE('03/26/2012 16:40:19', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1013', 'E', 'I', TO_DATE('03/26/2012 16:40:53', 'MM/DD/YYYY HH24:MI:SS'), 'DOWN');
Insert into TEST.FIMS_TEST
(BANK_ID, DEVICE_TYPE, STATUS, DATE_TS, STATION_STATUS)
Values
('1013', 'W', 'Y', TO_DATE('03/26/2012 16:41:17', 'MM/DD/YYYY HH24:MI:SS'), 'UP');
COMMIT;
thanks in advance
can any one help me please
Similar Messages
-
Query needed for the below requirement
Hi,
I have three tables structures like below.
tableA - LINE_ID, VENDOR_ID,DEAL_SITE_ID
tableB - LINE_ID, DEAL_SITE_ID
tableC - DEAL_ID,VERSION, DEAL_SITE_ID
Now the requirement is I have to fetch all distinct VENDOR_ID from tableA with some given DEAL_ID (100001) and VERSION (1), only Problem is in tableA the rows which have LINE_ID will not have DEAL_SITE_ID and vice versa. I've used the below query for this purpose but wanted to know if there is any better solution.
select distinct VENDOR_ID from tableA where deal_site_id in
(select deal_site_id from tableC where deal_id = 100001 and snapshot_ver = 1)
UNION
select distinct VENDOR_ID from tableA where line_id in
(select line_id from tableB where deal_site_id in
(select deal_site_id from tableC where deal_id = 100001 and snapshot_ver = 1))
Regards,
Subhadeep
Edited by: sumajumd on Jul 17, 2012 2:33 AMTry regular joins (assuming column version should be snapshot_ver).
Like this (untested):
select tablea.vendor_id
from tablea
inner join tablec on (tablea.deal_site_id = tablec.deal_site_id)
where tablec.deal_id = 100001
and tablec.snapshot_ver = 1
union
select tablea.vendor_id
from tablea
inner join tableb on (tableb.line_id = tablea.line_id)
inner join tablec on (tableb.deal_site_id = tablec.deal_site_id)
where tablec.deal_id = 100001
and tablec.snapshot_ver = 1 -
Required clarification for the below code:
Hi All,
For one of my requiremnet, i found one solution which worked as expected.. But i was not able to understand the logic.. Can any one explain me the below
syntax what exactly the meaning for the below code:
Code:
SELECT NULL
FROM apex_application_page_ir_cond cond
WHERE cond.application_id = v('APP_ID')
AND cond.page_id = v('APP_PAGE_ID')
AND cond.condition_type = 'Filter'
AND cond.condition_enabled = 'Yes'
AND cond.report_id = (SELECT report_id
FROM apex_application_page_ir_rpt
WHERE application_id = v('APP_ID')
AND page_id = v('APP_PAGE_ID')
AND application_user = v('APP_USER')
AND report_type = 'SESSION'
AND TO_CHAR (session_id) = v('SESSION')
AND report_name IS NULL))
For your refernec i have enclosed the link also
URL : Re: Interactive_Report with Search Bar only
Thanks,
Anoo..Anoo,
Two things. First, it makes things a lot easier if you put "{code}" (no quotes) around your SQL when you post it:
SELECT rowid "EDIT", attr_code,ATTR_ATCL_CODE "Atcl Code", attr_description, attr_atcl_code,
attr_abbreviation,
attr_include_short_desc "Include short desc",
attr_include_long_desc "Include long desc",
attr_attr_type "AttrType", rowid "DELETE"
FROM t_new WHERE EXISTS (SELECT 1 FROM APEX_APPLICATION_PAGE_IR_COND WHERE APPLICATION_ID = :APP_ID AND PAGE_ID = :APP_PAGE_ID AND CONDITION_ENABLED = 'Yes'
AND APPLICATION_USER = :APP_USER) ORDER BY attr_description;Though the spacing still needs work, it's a little easier to read.
Second, your query's exist clause just checks for an enabled condition, without checking the condition type. Without checking, I'd guess that either APEX creates at least one internal condition, or that your IR has a default condition on it (other than a filter). Try adding the condition_type constraint to your where clause to see if that fixes it.
Also, I noted that you don't have the extra code for getting the report_id. It shouldn't be necessary, since there's currently only support for one IR per page, but you asked what the differences are.
-David -
How to search in BI 7.1 query designer for the required key figures & chars
Hi All,
Can anyone plz tell me how to search in BI 7.1 query designer for the required key figures & characteristics. I have the query being built on a multiprovider which has many cubes.
So, i have a huge list of key figures and characteristics. I am not able to search for the required one by the name or the technical name.
How can we search and pick the required object from the enormous list of the Mutliprovider in the Bex Query Designer??
Thanks
PhaniThere is not a search feature available. You have to do an educated guess under what dimension your infoobject could be and select.
-
Need to find a BAPI for the below requirement
Hi All,
Need to find a BAPI for the below requirement.
We are assigning roles to users using SU01 T-Code and we are in the process of automating this and since we need a BAPI which can do this. Apart from assigning roles to users, SU01 T-code is doing many functionalities, but if we can get a BAPI which can perform assigning roles to users will suffice the requirement.
Thanks in advance,
Srilakshmi.Hi SreeLakshmi
see the list of BAPIs given below.
1065 Business Object Employee
BAPI_JOBROLE_CLONE Create a User Role in Another System By Copying
BAPI_BUPA_ROLES_GET SAP BP, BAPI: Determine All Roles
BAPI_BUPA_ROLE_ADD SAP BP, BAPI: Add Role
BAPI_BUPA_ROLE_EXISTENCE_CHECK SAP BP, BAPI: Check Existence of Role
BAPI_BUPA_SET_ROLE SAP BP: Set Object Part / Roles
BAPI_GET_EVENTTYPE_FOR_ROLE Determine Business Event Types Using Standard Role
BAPI_EMPLOYEET_CHANGEPASSWORD Change employee password
BAPI_EMPLOYEET_CHECKPASSWORD Check employee password
BAPI_EMPLOYEET_CREATE_PW_REG Create entry for employee password
BAPI_EMPLOYEET_DELETE_PW_REG Delete entry for employee password
BAPI_EMPLOYEET_DEQUEUE Unlock employee
BAPI_EMPLOYEET_ENQUEUE Lock employee
BAPI_EMPLOYEET_GET_PW_REG Read entry for employee password
BAPI_EMPLOYEET_INITPASSWORD Initialize employee password
Reward if helpful
Regards
Lakshman -
Query to get the hierarchical results
Hi,
Please help me in writing a Query to get the hierarchical results. I want a result like follows...
course-----groupname---TotalMembers---NotStarted---INProgress---Completed
Course1---country1--------12---------------6----------3-------------3
Course1-----state11-------12---------------6----------3-------------3
Course1------District111--10---------------5----------0-------------0
Course1--------City1111----0---------------0----------0-------------0
Course1--------City1112----1---------------0----------0-------------1
Course1--------City1113----6---------------3----------2-------------1
Course1---country2--------12---------------6----------3-------------3
Course1----state21--------12---------------6----------3-------------3
Course1------District211--10---------------5----------0-------------0
Course1--------City2111----0---------------0----------0-------------0
Course1--------City2112----1---------------0----------0-------------1
Course1--------City2113----6---------------3----------2-------------1
Course2---country1--------12---------------6----------2-------------3
Course2----state11--------12---------------6----------2-------------3
Course2------District111--10---------------5----------0-------------0
Course2--------City1111----0---------------0----------0-------------0
Course2--------City1112----1---------------0----------0-------------1
Course2--------City1113----6---------------3----------1-------------2
Course2---country2--------12---------------6----------3-------------3
Course2-----state21-------12---------------6----------3-------------3
Course2------District211--10---------------5----------0-------------0
Course2--------City2111----0---------------0----------0-------------0
Course2--------City2112----1---------------0----------0-------------1
Course2--------City2113----6---------------3----------2-------------1
These are the Tables available to me.
(I have just given some examle data in tables, to get the idea)
"Groups" Table (This table gives the information of the group)
GROUPID-----NAME-------PARENTID
1---------Universe--------1
2---------country1--------1
3---------state11---------2
4---------District111-----3
5---------City1111--------4
6---------City1112--------4
7---------City1113--------4
8---------country2--------1
9---------state21---------8
10--------District211-----9
11--------City2111--------10
12--------City2112--------10
13--------City2113--------10
"Users" Table (This table provides the user information)
userID----FIRSTNAME---LASTNAME
user1-----------Jim-------Carry
user2-----------Tom-------lee
user3-----------sunny-----boo
user4-----------mary------mall
"User-Group" Tables (This table provides the relation between the groups
and the members)
GROUPID---userID
3-------------user1
3-------------user2
3-------------user4
4-------------user5
5-------------user6
5-------------user7
user_score (This table provides the user scores of different courses)
USERID----course-----STATUS
user1------course1-----complete
user1------course2-----NotStarted
user2------course1-----NotStarted
user2------course2-----complete
user3------course1-----complete
user3------course2-----InProgress
user4------course2-----complete
user4------course1-----NotStarted
I will explain the first four lines of the above result.
Course1---country1--------12---------------6----------4-------------2
Course1-----state11-------12---------------6----------4-------------2
Course1------District111--10---------------5----------3-------------2
Course1--------City1111----0---------------0----------0-------------0
Course1--------City1112----1---------------0----------0-------------1
Course1--------City1113----6---------------3----------2-------------1
# "city1111" group has 0 members
# "city1112" group has 1 member (1 member completed the course1)
# "city1113" group has 6 members(3 members notStarted,2 members
InProgress,1 member completed the course1)
# "District111" is the parent group of above three groups, and has 3
members.(2 members NotStarted,1 member InProgress the course1). But this
group has child groups, so the scores of this group has to rollup the
child groups scores also. Thats why it has 2+3+0+0=6 members Not
Started,1+2+0+0=3 members InProgress,0+0+1+1=2 members completed.
# "state11" group also same as the above group.
I am able to get the group hierarchy by using "Connect By" like follows
"select name,groupid,parentid from groups_info start with groupid=1 connect by parentid = prior groupid;"
But i want to get the result as i have mentioned in the begining of this discussion.
I am using oracle 8i (oracle8.1.7).
Thank you for any help
Srinivas MThis may not be exactly what you want,
but it should be fairly close:
SET LINESIZE 100
SET PAGESIZE 24
COLUMN groupname FORMAT A20
SELECT INITCAP (user_score.course) "course",
groupnames.name "groupname",
COUNT (*) "TotalMembers",
SUM (NVL (DECODE (UPPER (user_score.status), 'NOTSTARTED', 1), 0)) "NotStarted",
SUM (NVL (DECODE (UPPER (user_score.status), 'INPROGRESS', 1), 0)) "InProgress",
SUM (NVL (DECODE (UPPER (user_score.status), 'COMPLETE', 1), 0)) "Completed"
FROM user_score,
user_group,
(SELECT ROWNUM rn,
name,
groupid
FROM (SELECT LPAD (' ', 2 * LEVEL - 2) || name AS name,
groupid
FROM groups
START WITH groupid = 1
CONNECT BY PRIOR groupid = parentid)) groupnames
WHERE user_score.userid = user_group.userid
AND user_group.groupid IN
(SELECT groupid
FROM groups
START WITH groupid = groupnames.groupid
CONNECT BY PRIOR groupid = parentid)
GROUP BY user_score.course, groupnames.name, groupnames.rn
ORDER BY user_score.course, groupnames.rn
I entered the minimal test data that you
provided and a bit more and got this result
(It was formatted as you requested,
but I don't know if it will display properly
on this post, or wrap around):
course groupname TotalMembers NotStarted InProgress Completed
Course1 Universe 6 2 0 4
Course1 country1 5 2 0 3
Course1 state11 5 2 0 3
Course1 District111 2 0 0 2
Course1 City1112 1 0 0 1
Course1 City1113 1 0 0 1
Course1 country2 1 0 0 1
Course1 state21 1 0 0 1
Course1 District211 1 0 0 1
Course1 City2113 1 0 0 1
Course2 Universe 5 1 1 3
Course2 country1 4 1 1 2
Course2 state11 4 1 1 2
Course2 District111 1 0 1 0
Course2 City1113 1 0 1 0
Course2 country2 1 0 0 1
Course2 state21 1 0 0 1
Course2 District211 1 0 0 1
Course2 City2113 1 0 0 1
Here is the test data that I used, in case
anyone else wants to play with it:
create table groups
(groupid number,
name varchar2(15),
parentid number)
insert into groups
values (1,'Universe',null)
insert into groups
values (2,'country1',1)
insert into groups
values (3,'state11',2)
insert into groups
values (4,'District111',3)
insert into groups
values (5,'City1111',4)
insert into groups
values (6,'City1112',4)
insert into groups
values (7,'City1113',4)
insert into groups
values (8,'country2',1)
insert into groups
values (9,'state21',8)
insert into groups
values (10,'District211',9)
insert into groups
values (11,'City2111',10)
insert into groups
values (12,'City2112',10)
insert into groups
values (13,'City2113',10)
create table user_group
(groupid number,
userid varchar2(5))
insert into user_group
values (3,'user1')
insert into user_group
values (3,'user2')
insert into user_group
values (3,'user4')
insert into user_group
values (4,'user5')
insert into user_group
values (5,'user6')
insert into user_group
values (5,'user7')
insert into user_group
values (7,'user8')
insert into user_group
values (13,'user9')
insert into user_group
values (11,'use11')
insert into user_group
values (6,'use6')
create table user_score
(userid varchar2(5),
course varchar2(7),
status varchar2(10))
insert into user_score
values ('use6','course1','complete')
insert into user_score
values ('user9','course1','complete')
insert into user_score
values ('user9','course2','complete')
insert into user_score
values ('user8','course1','complete')
insert into user_score
values ('user8','course2','InProgress')
insert into user_score
values ('user1','course1','complete')
insert into user_score
values ('user1','course2','NotStarted')
insert into user_score
values ('user2','course1','NotStarted')
insert into user_score
values ('user2','course2','complete')
insert into user_score
values ('user3','course1','complete')
insert into user_score
values ('user3','course2','InProgress')
insert into user_score
values ('user4','course2','complete')
insert into user_score
values ('user4','course1','NotStarted') -
How to use Add Query Criteria for the MySQL data Base in Netbeans ?
How to use Add Query Criteria for the MySQL data Base in Netbeans Visual web pack.
When the Query Criteria is add like
SELECT ALL counselors.counselors_id, counselors.first_name, counselors.telephone,counselors.email
FROM counselors WHERE counselors.counselors_id = ?
when i run this Query in the Query Window
i get a error message Box saying
Query Processing Error Parameter metadata not available for the given statement
if i run the Query with out Query Criteria its working fine.*I am glad I am not the only one who have this problem. Part of issue has been described as above, there are something more in my case.
Whenever I try to call ****_tabRowSet.setObject(1, userDropList.getSeleted()); I got error message as shown below:*
The Java codes are:
public void dropDown1_processValueChange(ValueChangeEvent event) {
Object s = this.dropDown1.getSelected();
try {
this.User_tabDataProvider1.setCursorRow(this.User_tabDataProvider1.findFirst("User_Tab.User_ID", s));
this.getSessionBean1().getTrip_tabRowSet1().setObject(1, s);
this.Trip_tabDataProvider1.refresh();
} catch (Exception e) {
this.log("Error: ", e);
this.error("Error: Cannot select user"+e.getMessage());
SQL statement for Trip_tabRowSet:
SELECT ALL Trip_Tab.Trip_Date,
Trip_Tab.User_ID,
Trip_Tab.Destination
FROM Trip_Tab
WHERE Trip_Tab.User_ID = ?
Error messages are shown below:
phase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl@5abf3f) threw exception: com.sun.rave.web.ui.appbase.ApplicationException: java.sql.SQLException: No value specified for parameter 1 java.sql.SQLException: No value specified for parameter 1
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.cleanup(ViewHandlerImpl.java:559)
com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.afterPhase(ViewHandlerImpl.java:435)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:274)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
tandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
java.sql.SQLException: No value specified for parameter 1
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:910)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:1674)
at com.mysql.jdbc.PreparedStatement.fillSendPacket(PreparedStatement.java:1622)
at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1332)
at com.sun.sql.rowset.internal.CachedRowSetXReader.readData(CachedRowSetXReader.java:193)
at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:979)
at com.sun.sql.rowset.CachedRowSetXImpl.execute(CachedRowSetXImpl.java:1439)
at com.sun.data.provider.impl.CachedRowSetDataProvider.checkExecute(CachedRowSetDataProvider.java:1274)
at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorRow(CachedRowSetDataProvider.java:335)
at com.sun.data.provider.impl.CachedRowSetDataProvider.setCursorIndex(CachedRowSetDataProvider.java:306)
at com.sun.data.provider.impl.CachedRowSetDataProvider.getRowCount(CachedRowSetDataProvider.java:639)
at com.sun.webui.jsf.component.TableRowGroup.getRowKeys(TableRowGroup.java:1236)
at com.sun.webui.jsf.component.TableRowGroup.getFilteredRowKeys(TableRowGroup.java:820)
at com.sun.webui.jsf.component.TableRowGroup.getRowCount(TableRowGroup.java:1179)
at com.sun.webui.jsf.component.Table.getRowCount(Table.java:831)
at com.sun.webui.jsf.renderkit.html.TableRenderer.renderTitle(TableRenderer.java:420)
at com.sun.webui.jsf.renderkit.html.TableRenderer.encodeBegin(TableRenderer.java:143)
at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:810)
at com.sun.webui.jsf.component.Table.encodeBegin(Table.java:1280)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:881)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:889)
at com.sun.faces.application.ViewHandlerImpl.doRenderView(ViewHandlerImpl.java:271)
at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:182)
at com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:285)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:397)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:240)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:216)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:184)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:239)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574)
at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844)
at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287)
at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212)
at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252)
at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75)
Also when I tried to update my MYSQL connector / J driver to version 5.1.5 from 5.0.5 (NB 5.5.1) and 5.0.7 (NB 6.1), I could not get it work (looooong time to search some JDBC classes and with no response in the end) on both of my Netbean 5.5.1(on PC) and Netbean 6.1(on laptop) IDEs.
Could anybody look into this issue.
Many thanks
Edited by: linqing on Nov 22, 2007 4:48 AM -
ABAP Routine code for the below logic
Hello BW Experts ,
I need to write a complex ABAP routine in BW .
Following is the detail explaination .
Can anyone tell me the ABAP code for the below logic?
It would be a greate help as I am unable to do this
since last two days.
WBS Elements are maintained at IOS and Warranty levels in R/3 side.
The IOS WBS is a top level of WBS element and below that the Warranty WBS level.
The IOS and Warranty WBS elements can be differentiated by means of priority field.
When priority = i , WBS Element is known as IOS Level WBS Element and
When priority = Y the WBS element is known as Warranty WBS element.
The Equipment Number is maintained compulsorily at IOS Level WBS elements only.
It is not maintained at Warranty WBS Element.
But the Cost is maintained at Warranty WBS Elements.
In BW I need all Warranty WBS ( priority = Y) along with their cost figures and Equipment Numbers.
But as the Equipment Number is not maintained compulsorily at Warranty WBS level we have asked to
Copy it from IOS WBS ( priority = i ) and assign it to Warranty WBS level ( priority = Y ).
So I have included the Equipment Number in the ODS and in update rules I need to write the routine for it as
per the above logic.
The Equipment Number is coming from Master data of WBS Element.
The WBS element master data we are loading in BW .
Also the same WBS Element transaction data is coming from the transaction data data source in BW.
Following fields / infoobjects and the table names in BW :
1. Equipment Number : /BIC/ZEQUIPMNT and table name /BIC/MZWBS_ELEM.
2. WBS Element : ZWBS_ELEM is coming from transaction data data source as well as master data.
In ODS update rules it is coming from transaction data data source Comm_structure-ZWBS_ELEM.
Also we are loading separetly the master data for ZWBS_ELEM.
The ZEQUIPMNT is an attribute of ZWBS_ELEM.
3. Priority : PRIORITY and table name /BIC/MZWBS_ELEM.
The info object name for Priority is 0Priority but in master data table /BIC/MZWBS_ELEM
the field name is PRIORITY.
When PRIORITY = ' i ' then ZWBS_ELEM is at IOS Level
When PRIORITY = ' y ' then ZWBS_ELEM is at Warranty Level.
4. ODS name : /BIC/AZCOST00 and same is table name active data table .
So please tell me the routine Code .
Best Regards ,
Amol.Hi Dinaker,
Did you find any solution for this issue. I too have a similar requirement of pulling all the service orders for a specific Purchase Order in the BW report.
Thanks,
SAPBWI -
When trying to load music from ITunes to my ipod I receive the error "The software required for the ipod is not installed correctly. Please reinstall itunes to install the required sotware"
What should I do to correct the error?For general advice see Troubleshooting issues with iTunes for Windows updates.
The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies. The notes below the box include tips on removing troublesome components.
The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
Your library should be unaffected by these steps but there also links to backup and recovery advice should it be needed.
tt2 -
Hi,
I'm trying to setup an App-V environment in my lab.
I've used the App-V 5.0 Trial guide to help me configure all necessary components.
I'm able to install everything without error.
when come time to publish an app, it simply doesn't show up on my client.
after looking at events on the client and server, I found that the Publishing server is returning under Admin the following message.
'The request URL doesn't contain the query string for the client OS'
My setup is pretty simple.
App-V Server managament and Publishing on the same box
App-V database on my SQL server.
I'm able to see the publishing "webpage" by using http:://localhost:889.
It only display this :
-<Publishing Protocol="1.0"
<Packages />
</Publishing>
I've published one app from the management console.
any idea what could mean this error?
thanksHi,
thanks for the link.
I've validated the suggested debug steps. It seems that the problem is with my Publish server again.
I've looked in the web.config file. It seems to be missing some parts compare to the example provided.
Again, I've published an application from the management console. Management and Publishing are running on the same box, while SQL is remote.
Here's the web.config
<?xml version="1.0" ?>
- <configuration>
- <system.web>
<compilation debug="false" targetFramework="4.0" />
<machineKey validationKey="AutoGenerate,IsolateApps" decryptionKey="AutoGenerate,IsolateApps" />
- <authentication>
- <!-- We don't support form authentication, but this will supress x-ray security warning
-->
<forms requireSSL="true" />
</authentication>
</system.web>
- <system.webServer>
- <modules runAllManagedModulesForAllRequests="true">
<add name="UrlRoutingModule" type="System.Web.Routing.UrlRoutingModule, System.Web, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</modules>
- <security>
- <requestFiltering>
- <verbs>
<remove verb="GET" />
<add verb="GET" allowed="true" />
</verbs>
</requestFiltering>
</security>
</system.webServer>
- <system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
+ <behaviors>
- <serviceBehaviors>
- <behavior name="">
<serviceAuthorization impersonateCallerForAllOperations="true" />
<serviceMetadata httpGetEnabled="false" httpsGetEnabled="false" />
</behavior>
</serviceBehaviors>
</behaviors>
- <bindings>
- <webHttpBinding>
- <binding name="SecureBinding">
- <security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
<binding name="UnsecureBinding" />
</webHttpBinding>
</bindings>
- <protocolMapping>
<add scheme="http" binding="webHttpBinding" bindingConfiguration="UnsecureBinding" />
<add scheme="https" binding="webHttpBinding" bindingConfiguration="SecureBinding" />
</protocolMapping>
- <standardEndpoints>
- <webHttpEndpoint>
- <!--
Configure the WCF REST service base address via the global.asax.cs file and the default endpoint
via the attributes on the <standardEndpoint> element below
-->
<standardEndpoint name="" helpEnabled="true" automaticFormatSelectionEnabled="true" />
</webHttpEndpoint>
</standardEndpoints>
</system.serviceModel>
</configuration> -
Whether SAP DMS support the below file format in workstation application
Hi..
Whether SAP DMS support the below file format in workstation application?
.DAT
.DWF
.IGES,
.MSP, .MSPX
.PST
.RAR
.RVT
.XERHi Sandip,
Refer the link below for supported workstation applications in DMS.
http://wiki.sdn.sap.com/wiki/display/PLM/2.Customizing(CA-DMS-EAI)
All of your workstation applications should be supported.
Regards,
Deepak Kori -
Dimensions for the below cubes.
Hi All,
My interview Q was :
Could you plz provide me the Dimensions for the below Cubes:
0SD_C03, 0SD_C05, 0SD_C01, 0PUR_C01
How to find out the dimensions from the help files?
Any other Dimensions except unit, time n pkg Dim ?? Are there any particular/specific Dim for each of these cubes ?
Thanks in Adv.Hi,
0sd_c03 having following dimensions by default
Data Package, Time, Unit, Organization, SD Document Category, Customer, Material, Value Type, Version, Sales Area, Document Classification.
install your required infocube's from BI content.
double click on the particular infocube. you can able to see the dimensions available for that infocube's.
hope this help you
regards
harikrishna N -
What are the network requirements for the Remote Panel Server?
What are the network requirements for the Remote Panel Server?
I've been trying for a while now to setup a Remote Panel. I can connect to my computers remote panel from other computers on my LAN but nowhere else.
When ever I use the web publishing tool it gives me a URL in this format: http://Computer-Name.Corporate-Name.local:8086/VI-Name.html Apparently this means I have a local DNS server and this URL has no meaning from the public.
When I try connecting with the Operate>>Connect to Remote Panel..., I get this error message:
"Connecting to remote panel server...
Remote panel connection refused by specified server: Make sure LabVIEW Web Server is enabled on specified server"
I got the same error when I tried to host a remote panel from my laptop at home, on my Wi-Fi. Is there some network or firewall setting I'm not seting? Could it be my server or router or private network?
My goal is to be able to host Remote Panels from my laptop while I am travailing internationally, by using 4G mobile internet. Is that even passable?
Solved!
Go to Solution.Over_Nyquest
Have you enabled the Remote Panel Server in the Web Server options on the server?
Kyle B | Product Support Engineer | ni.com/support -
USB Recording - requirements for the external USB drive
What are the requirements for the external USB drive to be recognised by the TV?
I've tried two now, which can both be seen by the TV to show media, but neither are recognised by the TV to be used as USB Recording space.Hi,
I have a similar question.
I have a 40L6353 and I cannot seem to playback anything recorded onto USB.
I have tried a large 500 Gb Toshiba (USB powered) drive and 2 or 3 others such as an 8 Gb SanDisk and a smaller capacity non branded 500 Mb stick.
All of the above I have formatted in the TV. When I press record the pop-up staes that recording has started and when I press stop it asks me to confirm. When I go to the recorded list it shows the files but says that they are an unsupported file format!!
I can play videos and music transferred to another Toshiba 500 Gb drive by PC.
I have also tested the sticks and they pass the 2 on-screen tests and I believe when a stick is inserted I can pause live TV.
Does anyone have any ideas?
I have been trying to get this to work for over a week - if there is a fault I will need to go back to the vendor but I want to be sure it isn't operator error.
Thanks in advance.
Message was edited by: banzai -
The link to system requirements for Firefox 4 beta takes you to a page that gives you the requirements for Firefox 3.6 instead. I assume that the requirements for the beta are different as I can't seem to install the beta on my Macs. Where can I find the beta system requirements?
I never expected Mozilla to neglect the users of Apple's PowerPC (PPC) computers, while still supporting much older operating environments such as Windows XP. So, I should just throw away a $6,000 system, which is still fast and functional, and contribute masses of heavy metals to land-fills because…?
I'm hurt and confused after supporting Firefox for many years — installing and using it not only on my own computers but on most of my customers' computers. Now I have to tell my customers with PPC Macs they can't have a secure cross-platform browsing experience from Mozilla. They'll have to learn to use some other browser, or buy a new computer.
If one doesn't buy a new computer every year, one doesn't deserve Firefox 4. This is sort of sounding more like a Microsoft™© doctrine. (But wait, I can still have Firefox 4 on a ''SERIOUSLY CRAPPY WINDBLOWS XP pile of rubbish?!'') Please open your eyes Mozilla. This just doesn't make sense.
Maybe you are looking for
-
Less source fields in transformation than in the source DSO
Hi, I'm in a business content flow DSO 0GN_BP (consolidated BP) to fill master data attribut 0GN_VENDOR. In the transformation source fields I only have a part of the fields in the DSO. 17 fields in DSO and only 10 in the source fields in the transfo
-
How to connect the iPad to a TV?
I see that the Netflix app can now output from the iPad. We would like to show movies on our television. Is the "Apple iPad Dock Connector to VGA Adapter" the accessory to buy? Is there something else we'd need? We have older TV sets and use RCA comp
-
Another device on network is using your computer
I have been getting this message since installing Yosemite. All I have done to correct is reset my Airport extreme. We have 2 iPhones, an iPad, and aMacBook Pro. I presume I have to change the IP address on my Desktop computer (iMac). I haven 't a cl
-
When uploading a website to the net, is there any way I can see it's progress in iweb '09? It would be a great help if there were a bar as in some other software. Is there a way to check what is happening? pattery
-
How can a trusted applet get permissions on server
Hello all, I have just now read some tutorial about Trusted Applet and not even experimented one. So my knowledge is absolutely zero. I would like to use Trusted Applets in my environment which I describe below: I have a database server on a Linux ma