Empty "KEY" attribute Error
We have upgraded to BI Platform 4.1 Support Pack 3. We are seeing the following error when opening reports containing drill filters.
Empty "KEY" attribute (Error: INF)
Can anyone help with the solution?
We get the following error message when we try to modify the report, which has error, in applet mode.
com.businessobjects.rebean.internal.xml.XmlValidationException: Empty
"KEY" attribute.
at
com.businessobjects.rebean.wi.impl.xml.parser.DrillInfosParser.parseDrillObject(DrillInfosParser.java:148)
at
com.businessobjects.rebean.wi.impl.xml.parser.DrillInfosParser.parseDrillHiers(DrillInfosParser.java:111)
at
com.businessobjects.rebean.wi.impl.xml.parser.DrillInfosParser.parse(DrillInfosParser.java:54)
at
com.businessobjects.rebean.wi.impl.services.ReportEngineDrillServiceImpl.getDrillDataFromServerCaller(ReportEngineDrillServiceImpl.java:780)
at
com.businessobjects.rebean.wi.impl.services.ReportEngineDrillServiceImpl.getInternalDrillHierarchies(ReportEngineDrillServiceImpl.java:639)
at com.businessobjects.rebean.wi.impl.services.ReportEngineDrillServiceImpl.getDrillHierarchies(ReportEngineDrillServiceImpl.java:613)
at
com.businessobjects.rebean.wi.impl.services.ReportEngineDrillServiceImpl.searchDrillFilterRSFromGetDrillInfo(ReportEngineDrillServiceImpl.java:246)
at
com.businessobjects.rebean.wi.impl.services.ReportEngineDrillServiceImpl.getDrillFilters(ReportEngineDrillServiceImpl.java:199)
at
com.sap.webi.ui.drill.DrillBar.BuildDrillBar(DrillBar.java:432)
at
com.sap.webi.ui.drill.DrillBar.UpdateComponents(DrillBar.java:617)
at
com.sap.webi.ui.drill.DrillBar.updateAll(DrillBar.java:341)
at
com.sap.webi.ui.drill.DrillBar.eventBusProcessNewMessage(DrillBar.java:305)
at
com.sap.webi.toolkit.ui.eventbus.EventBus.dispatchEvent(EventBus.java:324)
at
com.sap.webi.toolkit.ui.eventbus.EventBus.sendMessage(EventBus.java:61)
at
com.sap.webi.toolkit.ui.eventbus.EventBus.sendDefaultMessage(EventBus.java:87)
at
com.sap.webi.ui.tasks.NavigOnDocumentTask.doneProcess(NavigOnDocumentTask.java:142)
at com.sap.webi.toolkit.ui.tasks.WebITask$PrivateWorker.done(WebITask.java:378)
at
javax.swing.SwingWorker$5.run(Unknown Source)
at
javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at
sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown
Source)
at
javax.swing.Timer.fireActionPerformed(Unknown Source)
at
javax.swing.Timer$DoPostEvent.run(Unknown Source)
at
java.awt.event.InvocationEvent.dispatch(Unknown Source)
at
java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at
java.awt.EventQueue.access$000(Unknown Source)
at
java.awt.EventQueue$1.run(Unknown Source)
at
java.awt.EventQueue$1.run(Unknown Source)
at
java.security.AccessController.doPrivileged(Native Method)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at
java.awt.EventQueue.dispatchEvent(Unknown Source)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at
java.awt.Dialog$1.run(Unknown Source)
at
java.awt.Dialog$3.run(Unknown Source)
at
java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Unknown
Source)
at
com.jidesoft.dialog.StandardDialog.show(Unknown Source)
at
java.awt.Component.show(Unknown Source)
at
java.awt.Component.setVisible(Unknown Source)
at
java.awt.Window.setVisible(Unknown Source)
at
java.awt.Dialog.setVisible(Unknown Source)
at
com.sap.webi.toolkit.ui.dialog.MessageDialog.setVisible(MessageDialog.java:186)
at
com.sap.webi.ui.SwingClientHelper.showError(SwingClientHelper.java:347)
at
com.sap.webi.ui.SwingClientHelper.showError(SwingClientHelper.java:198)
at
com.sap.webi.ui.SwingClientHelper.showError(SwingClientHelper.java:205)
at
com.sap.webi.ui.SwingClientHelper.showError(SwingClientHelper.java:188)
at
com.sap.webi.ui.drill.DrillBar.BuildDrillBar(DrillBar.java:435)
at
com.sap.webi.ui.drill.DrillBar.UpdateComponents(DrillBar.java:617)
at
com.sap.webi.ui.drill.DrillBar.updateAll(DrillBar.java:341)
at
com.sap.webi.ui.drill.DrillBar.eventBusProcessNewMessage(DrillBar.java:321)
at
com.sap.webi.toolkit.ui.eventbus.EventBus.dispatchEvent(EventBus.java:324)
at
com.sap.webi.toolkit.ui.eventbus.EventBus.sendMessage(EventBus.java:61)
at
com.sap.webi.toolkit.ui.eventbus.EventBus.sendDefaultMessage(EventBus.java:87)
at
com.sap.webi.toolkit.ui.eventbus.ContextEventBus.sendDefaultMessageOnEventBus(ContextEventBus.java:23)
at
com.sap.webi.ui.tasks.workflows.RefreshWorkspaceWorkflow.onFinish(RefreshWorkspaceWorkflow.java:131)
at
com.sap.webi.toolkit.ui.tasks.TaskWorkflow.startNextTask(TaskWorkflow.java:71)
at
com.sap.webi.toolkit.ui.tasks.TaskWorkflow.propertyChange(TaskWorkflow.java:90)
at
java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at
com.sap.webi.toolkit.ui.tasks.WebITask.firePropertyChange(WebITask.java:66)
at
com.sap.webi.toolkit.ui.tasks.WebITaskManager$TaskPCL.propertyChange(WebITaskManager.java:275)
at
java.beans.PropertyChangeSupport.firePropertyChange(Unknown Source)
at
javax.swing.SwingWorker$SwingWorkerPropertyChangeSupport.firePropertyChange(Unknown
Source)
at
javax.swing.SwingWorker$SwingWorkerPropertyChangeSupport$1.run(Unknown Source)
at
javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.run(Unknown Source)
at
sun.swing.AccumulativeRunnable.run(Unknown Source)
at javax.swing.SwingWorker$DoSubmitAccumulativeRunnable.actionPerformed(Unknown
Source)
at
javax.swing.Timer.fireActionPerformed(Unknown Source)
at
javax.swing.Timer$DoPostEvent.run(Unknown Source)
at
java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown
Source)
at
java.awt.EventQueue.access$000(Unknown Source)
at
java.awt.EventQueue$1.run(Unknown Source)
at
java.awt.EventQueue$1.run(Unknown Source)
at
java.security.AccessController.doPrivileged(Native Method)
at
java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at
java.awt.EventQueue.dispatchEvent(Unknown Source)
at
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at
java.awt.EventDispatchThread.run(Unknown Source)
I had the same problem. I saved my batch and it gave me that same error: "You must enter a name for this batch submission. This is the name that identifies this submission in the Batch Monitor and the History window."
What I did was to create a second batch (another tab in the batch window) I left this one "untitled" (did not save it) then submitted it -and it worked. I named the job and it is happily chewing away.
Not pretty, but it worked.
Similar Messages
-
Error : Rowkey does not have any primary key attributes
Hello All,
I'm developing an ADF application which has a few ADF forms. The forms have VO's and some tables.
On running, I seem to be getting this error
<Error> <oracle.adfinternal.view.faces.model.binding.CurrencyRowKeySet> <BEA-000000> <ADFv: Rowkey does not have any primary key attributes. Rowkey: oracle.jbo.Key[], table: oracle.jbo.server.ViewObjectImpl@2ecf4f19.>
Where does the Rowkey have to be set? Is it in the VO?
Regards,
PPMake sure that the VO's you use have at least one attribute selected as a key attribute. GO to View Object overview editor and select attributes tab, see whether there is at least one attribute marked as a key. If not select the most appropriate attribute from the list of fields and go to edit attribute dialog, tick the key attribute property.
-
Issue with INSERT INTO, throws primary key violation error even if the target table is empty
Hi,
I am running a simple
INSERT INTO Table 1 (column 1, column 2, ....., column n)
SELECT column 1, column 2, ....., column n FROM Table 2
Table 1 and Table 2 have same definition(schema).
Table 1 is empty and Table 2 has all the data. Column 1 is primary key and there is NO identity column.
This statement still throws Primary key violation error. Am clueless about this?
How can this happen when the target table is totally empty?
ChintuNope thats not true
Either you're not inserting to the right table or in the background some other trigger code is getting fired which is inserting into some table which causes a PK violation.
Please Mark This As Answer if it solved your issue
Please Vote This As Helpful if it helps to solve your issue
Visakh
My Wiki User Page
My MSDN Page
My Personal Blog
My Facebook Page -
Empty Navigation Tree error in SRM 7
Hello Experts,
I'm setting up an SRM 7 system. I've configured most of it, but when I test login into the web UI, I get an "Empty Navigation Tree" error with the following text: "The user menu tree for user <username> is empty. Please contact your system administrator".
Here's some additional information:
System version: SAP SRM 7.0
Component: SRM_SERVER 701 SPL 0004
Portal-Independent Navigation Frame is Active (we don't have a SAP Portal installed)
Roles have been regenerated, and my user has been assigned to the org structure correctly.
Org structure has been setup with required attributes.
How I'm doing this test:
1. Login to SICF
2. Go to SAP -> BC -> NWBC -> SRM -> Test Service.
3. This takes me correctly to a "SAP Netweaver" web page, where I click on the "Login" button.
4. A pop-up window appears where I type in my username & password.
5. I get the error message mentioned above.
I'm not really sure what I'm missing.
Your help is appreciated.
Regards,
Gilberto Gallardo.Hello Gilberto Gallardo,
I've had the same issue and the fix for it is to configure in tcode SU01 some roles for the user you are using to access the portal. Some common roles are:
/SAPSRM/ADMINISTRATOR
/SAPSRM/EMPLOYEE
/SAPSRM/OP_PURCHASER
/SAPSRM/RECIPIENT
/SAPSRM/SECRETARY
/SAPSRM/ST_PURCHASER
Perhaps it won't help you, since the post is not recent, but it will help if someone encounters the same issue.
Regards,
Mihai -
Unique Key Violation error while updating table
Hi All,
I am having problem with UNIQUE CONSTRAINT. I am trying to update a table and getting the violation error. Here is the over view. We have a table called ActivityAttendee. ActivityAttendee has the following columns. The problem to debug is this table has
over 23 million records. How can I catch where my query is going wrong?
ActivityAttendeeID INT PRIMARY KEY IDENTITY(1,1)
,ActivityID INT NOT NULL (Foreign key to parent table Activity)
,AtendeeTypeCodeID INT NOT NULL
,ObjectID INT NOT NULL
,EmailAddress VARCHAR(255) NULL
UNIQUE KEY is on ActivityID,AtendeeTypeCodeID,ObjectID,EmailAddress
We have a requirement where we need to update the ObjectID. There is a new mapping where I dump that into a temp table #tempActivityMapping (intObjectID INT NOT NULL, intNewObjectID INT NULL)
The problem is ActivityAttendee table might already have the new ObjectID and the unique combination.
For example: ActivityAttendee Table have the following rows
1,1,1,1,NULL
2,1,1,2,NULL
3,1,1,4,'abc'
AND the temp table has 2,1
So essentially when I update in this scenario, It should ignore the second row because, if I try updating that there will be a violation of key as the first record has the exact value. When I ran my query on test data it worked fine. But for 23 million records,
its going wrong some where and I am unable to debug that. Here is my query
UPDATE AA
SET AA.ObjectID = TMP.NewObjectID
FROM dbo.ActivityAttendee AA
INNER JOIN #tmpActivityMapping TMP ON AA.ObjectID = TMP.ObjectID
WHERE TMP.NewObjectID IS NOT NULL
AND NOT EXISTS(SELECT 1
FROM dbo.ActivityAttendee AA1
WHERE AA1.ActivityID = AA.ActivityID
AND AA1.AttendeeTypeCodeID = AA.AttendeeTypeCodeID
AND AA1.ObjectID = TMP.NewObjectID
AND ISNULL(AA1.EmailAddress,'') = ISNULL(AA.EmailAddress,'')>> I am having problem with UNIQUE CONSTRAINT. I am trying to update a table and getting the violation error. Here is the over view. We have a table called Activity_Attendee. <<
Your problem is schema design. Singular table names tell us there is only one of them the set. Activities are one kind of entity; Attendees are a totally different kind of entity; Attendees are a totally different kind of entity. Where are those tables? Then
they can have a relationship which will be a third table with REFERENCES to the other two.
Your table is total garbage. Think about how absurd “attendee_type_code_id” is. You have never read a single thing about data modeling. An attribute can be “attendee_type”, “attendee_code” or “attendee_id”but not that horrible mess. I have used something like
this in one of my busk to demonstrate the wrong way to do RDBMS as a joke, but you did it for real. The postfix is called an attribute property in ISO-11179 standards.
You also do not know that RDBMS is not OO. We have keys and not OIDs; but bad programmers use the IDENTITY table property (NOT a column!), By definition, it cannot be a key; let me say that again, by definition.
>> ActivityAttendee has the following columns. The problem to debug is this table has over 23 million records [sic: rows are not records]<<
Where did you get “UNIQUE KEY” as syntax in SQL?? What math are you doing the attendee_id? That is the only reason to make it INTEGER. I will guess that you meant attendee_type and have not taken the time to create an abbreviation encoding it.
The term “patent/child” table is wrong! That was network databases, not RDBMS. We have referenced and referencing table. Totally different concept!
CREATE TABLE Attendees
(attendee_id CHAR(10) NOT NULL PRIMARY KEY,
attendee_type INTEGER NOT NULL --- bad design.
CHECK (attendee_type BETWEEN ?? AND ??),
email_address VARCHAR(255),
CREATE TABLE Activities
(activity_id CHAR(10) NOT NULL PRIMARY KEY,
Now the relationship table. I have to make a guess about the cardinally be 1:1, 1:m or n:m.
CREATE TABLE Attendance_Roster
(attendee_id CHAR(10) NOT NULL --- UNIQUE??
REFERENCES Attendees (attendee_id),
activity_id Activities CHAR(10) NOT NULL ---UNIQUE??
REFERENCES Activities (activity_id)
PRIMARY KEY (attendee_id, activity_id), --- wild guess!
>> UNIQUE KEY is on activity_id, attendee_type_code_id_value_category, object_id, email_address <<
Aside from the incorrect “UNIQUE KEY” syntax, think about having things like an email_address in a key. This is what we SQL people call a non-key attribute.
>> We have a requirement where we need to update the ObjectID. There is a new mapping where I dump that into a temp table #tempActivityMapping (intObjectID INTEGER NOT NULL, intNewObjectID INTEGER NULL) <<
Mapping?? We do not have that concept in RDBMS. Also putting meta data prefixes like “int_” is called a “tibble” and we SQL people laugh (or cry) when we see it.
Then you have old proprietary Sybase UODATE .. FROM .. syntax. Google it; it is flawed and will fail.
Please stop programming until you have a basic understanding of RDBMS versus OO and traditional file systems. Look at my credits; when I tell you, I think I have some authority.
--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 -
Failed to set security on SQL Server registry key. Error: 2
Hi,
I have a Primary site (mixed mode) running SCCM 2007 SP1 for many months now with no issues.
This site is made up of two Win 2008 sp2 servers sharing the SCCM roles:-
SCCM01 - Site server, DP, RP, PXE and SQL2005 hosting the SCCM database
SCCM02 – SUP, MP, FSP, SLP
The SQL2005 on SCCM01 is running under a domain service account called
domain\service_sccm which is also a sysadmin in SQL as is the SCCM02 server.
In an effort to resolve the isse I have made this account a Domain Admin.
I have also used this account to log onto SEC01 to run the Secondary Site installation and to be the SQL Service account.
I'm now trying to add a Secondary Site on a Domain Controller called SEC01 (also Win2008 sp2) and on the same LAN as the SCCM01/02.
This is where I get problems.
I run the installation locally on the Sec Site server (DC) as a Domain Admin and the installation completes OK (all green ticks),
the ComponentSetup.log and Pre-Reqs are all good as well however when I check the ConfigMgrSetup.log I see the below -
Failed to set security on SQL Server registry key. Error: 2.
<11-09-2010 22:46:59> SMS Setup full version is 4.00.6221.1000
<11-09-2010 22:46:59> Successfully set security on Setup registry key.
<11-09-2010 22:46:59> Failed to set security on SQL Server registry key. Error: 2
<11-09-2010 22:46:59> Successfully set security on Identification registry key.
<11-09-2010 22:46:59> Creating SMS Inbox Source registry key ...
<11-09-2010 22:46:59> Installing SMS Site Component Manager ...
<11-09-2010 22:46:59> Installing Site Component Manager under acct <NT AUTHORITY\SYSTEM> path <C:\Program Files (x86)\Microsoft
Configuration Manager\bin\i386\sitecomp.exe>
<11-09-2010 22:47:01> Started Site Component Manager service
<11-09-2010 22:47:01> SMS Site Component Manager installation completed.
<11-09-2010 22:47:01> Done with service installation
Adding the PMP role to SEC01 also fails to install and no MPSetup or MPControl logs are created.
WebDav and win2008 roles, features all added and server fully patched.
Despooler.log on SCCM01 seems good and passing keys.
Tried installing to default path and to shortened path such as C:\SCCM
The new secondary site is listed in the console and an address can be added for the Secondary Site
BITS Server Extensions and Remote Differential Compression Features are enabled.
The Group memberships all appear ok:-
SCCM01
Local Admins
contains the sec site server SEC01, SCCM01, installation accounts
SMS_SiteToSiteConnection_001
SEC01 (the sec site server)
SMS_SiteSystemToSiteServerConnection_001
SCCM02
SEC01
No Local Admins as a DC
SMS_SiteToSiteConnection_002
SCCM01
SMS_SiteSystemToSiteServerConnection_002
empty
SQL 2005
This has the account logged in during installation as a sysadmin
SCCM02 is also sysadmin
The fundamental issue appears to be that the SEC01$ server account is not being added to SQL Logins (and therefore SCCM database Roles)
therefore the installation cannot complete.
I have tried to manually add the SEC01 account to SQL Logins before installation of Sec Site but this did not work.
Not sure if the fact that SEC01 is a DC may be a factor.
Appreciate any help if anyone has seen this before or can suggest a resolution.
ThanksAfter a lot of digging around and head scratching I eventually found the resolution.
The original thread title Error turned out to be a bit of a red herring in that my failure to deploy Sec Sites came down to two separate issues seemingly unrelated to the error message of the thread title.
The first part of the resolution was to manually create the SQL Server accounts for the Sec Site Servers and assign them to the smsdbrole_MP DB role to
let the SQL side of the SCCM install complete a s these were not being created automatically.
This then left the fact that that the installation of the Sec Site completed successfully according to the install logs in C:\ however the DP and MP would
never install.
The big clue was eventually contained in the mpfdm.log errors relating to
**ERROR: Cannot find path for destination inbox SMS_AMT_PROXY_COMPONENT on server REGISTRY SMS_MP_FILE_DISPATCH_MANAGER
and
**ERROR: Cannot find path for destination inbox Asset Intelligence KB Manager on server REGISTRY SMS_MP_FILE_DISPATCH_MANAGER
Thankfully the errors led me to these two blogs:
http://myitforum.com/cs2/blogs/scassells/archive/2009/07/20/error-cannot-find-path-for-destination-inbox-sms-amt-proxy-component-on-server-registry.aspx
and
http://social.technet.microsoft.com/Forums/en-US/configmgrsetup/thread/5fcc53d4-8629-4b34-9eaa-6cb020eedc13/
As it turned out the SCCM installation registry and folder creation does not complete and I had to manually enter the reg settings as detailed in the
links above to complete the installation. Once I did as described everything worked a treat – all my MPs and DPs are 100% now.
Solutions
Add the following reg keys to each of your effected secondary sites.
Inbox Fix
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\MPFDM\Inboxes]
"Asset Intelligence KB Manager"="E:\\Program Files\\Microsoft Configuration Manager\\inboxes\\AIKbMgr.box"
"SMS_AMT_PROXY_COMPONENT"="E:\\Program Files\\Microsoft Configuration Manager\\inboxes\\amtproxy.box"
Asset Intelligence fix:
Note: you will need to identify the next largest key value.
In my example it was key 49
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Inbox Source\Inbox Definitions\49]
"Inbox Name"="Asset Intelligence KB Manager"
"Relative Path"="inboxes\\AIKbMgr.box"
"NAL Path"=""
"User Rights"=dword:00000000
"Service Rights"=dword:00000004
"Monitoring Enabled"=dword:00000001
"Location Type"=dword:00000001
"Guest Rights"=dword:00000001
AMT registry Fix.
Note: you will need to identify the next largest key value.
In my example it was key 50
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\SMS\Inbox Source\Inbox Definitions\50]
"Inbox Name"="SMS_AMT_PROXY_COMPONENT"
"Relative Path"="inboxes\\amtproxy.box"
"NAL Path"=""
"User Rights"=dword:00000000
"Service Rights"=dword:00000004
"Monitoring Enabled"=dword:00000001
"Location Type"=dword:00000001
"Guest Rights"=dword:00000001
Big thanks to Shaun Cassells and John Marcum for these blogs -
Problem: Empty id attribute is not allowed
Hi, I'm a newby with JSF and can't understand how to make some really simple things to work.
One of the problems occurred, when I tried to make a dataTable for choosing locales.
Simple table, like
language code | button "choose"
language code | button "choose"
language code | button "choose"
, and actionListener attached to buttons. The language code is shown by <h:outputText value="${locale}">, works just fine! But when I add <h:commandButton id="${locale}" value="#{msg.set}" actionListener="#{tryoutsView.chooseLocaleAL}"/>, an error appears "Empty id attribute is not allowed"!
So I have two questions about that:
(1) Why ${locale} is normally calculated in one place, and is null nearby? Didn't find any clues on that in official tutorial.
(2) How do I make this work (make id attribute take expression)?
And one more question on related subject
(3) Why did official tutorial authors use "synchronized" mark for method, that determines content of h:dataTable? (http://download.oracle.com/javaee/6/tutorial/doc/bnaty.html#bnauc)
The code:
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Facelet Title</title>
</h:head>
<h:body>
Hello from Facelets!
<f:view>
<f:loadBundle basename="my.presentation.tryouts" var="msg"/>
<h:dataTable
id="locales_table"
value="#{tryoutsView.supportedLocales}"
var="locale"
title="#{msg.thelocales}">
<f:facet name="header"><h:outputText value="#{msg.tableheader}"/></f:facet>
<h:column>
<f:facet name="column_locale_head"><h:outputText value="#{msg.locale}"/></f:facet>
<h:outputText value="${locale}"/>
</h:column>
<h:column>
<h:form>
<h:commandButton id="${locale}" value="#{msg.set}" actionListener="#{tryoutsView.chooseLocaleAL}"/>
</h:form>
</h:column>
<f:facet name="footer"><h:outputText value="#{msg.tablefooter}"/></f:facet>
</h:dataTable>
</f:view>
</h:body>
</html>
public class TryoutsView {
private static final TreeMap<String, Locale> SUPPORTED_LOCALES = MyUtils.iterator2treemap(FacesContext.getCurrentInstance().getApplication().getSupportedLocales());
public synchronized List<String> getSupportedLocales() {
List<String> l = MyUtils.iterator2arrlist(SUPPORTED_LOCALES.keySet().iterator());
return l;
}Edited by: 800060 on Oct 4, 2010 10:23 PM
Edited by: 800060 on Oct 5, 2010 12:18 AMIf you have/intend nothing useful to say, then, please, stop trashing the thread.I don't consider asking questions, or pointing out tautologies, to be 'trashing the thread'.
(1) Why ${locale} is normally calculated in one place, and is null nearby? It isn't 'calculated' anywhere in your code. It is set by the listbox. Until the user selects a value it doesn't have one. It iis empty. Hence the error message that I keep directing your attention to.
(2) How do I make this work (make id attribute take expression)?Make sure the value of the expression isn't empty.
And one more question on related subject
(3) Why did official tutorial authors use "synchronized" mark for method, that determines content of h:dataTable? (http://download.oracle.com/javaee/6/tutorial/doc/bnaty.html#bnauc)
Because 'items' is probably not thread-safe.
If you want any further help from me I suggest you mind your manners. It is clear that you have very little useful to say here. You seem to have no intention of answering any of the questions I asked you. Nor am I convinced that you understand the difference between 'empty' and 'omitted' that I have been trying to get you to see. It is impossible to help those who will not help themselves, and abusing those who are trying to help them is not a rational policy. -
Hi All,
i am working on a upgrade project from 46c to ECC 6.
we are facing field attribute error "No write access to reference CONTROL takes place".
the error is been pointed in data declaration ' DATA: CONTROL TYPE REF TO I_OI_OLE_CONTAINER_CONTROL."
can anyone suggest solution for this?Hi,
I am using table element, I would like to explain my problem with an example.
now suppose there are 5 rows and 3 columns in my table element with all the fields mandatory, and at runtime i fill up the table columns while keeping any fields empty. Now my requirement is to highlight those perticular cells which are empty.
I have written my validation code in one of the component controller method.
Pls suggest.
I am pasting teh code snippet.
* get all declared attributes
node_t_bknvi->get_static_attributes_table(
IMPORTING
table = tabl_t_bknvi ).
LOOP AT tabl_t_bknvi INTO stru_t_bknvi.
IF stru_t_bknvi-taxkd IS INITIAL.
* report message
CALL METHOD l_message_manager->report_attribute_error_message
EXPORTING
message_text = 'Input Required Fields'
element = elem_t_bknvi
attribute_name = 'TAXKD'
* PARAMS =
* MSG_USER_DATA =
ENDIF.
ENDLOOP. -
No primary key attribute and does not support rowId -- URGENT : ADF Swing
Hi , i have created a view and while create Entity Object through Business Components wizard for that view i am getting following error.
ENTITY CREATION FAILED FOR THE FOLLOWING DATABASE OBJECT
NO PRIMARY KEY ATTRIBUTES AND DOES NOT SUPPORT ROWID . USE ENTITY WIZARD TO CREATE THE ENTITY OBJECT.
very urgent.
Jdeveloper version :: 10.1.3.1.0
oracle version :: 10g
view script is :
SELECT
oh.order_number||'- ('||ol.line_number||'-'||ol.shipment_number||')' so_line,
oh.cust_po_number customer_po,
ol.flow_status_code status,
ol.shipping_method_code carrier,
ol.ordered_item item_no,
nvl(xxapplication_express_pkg.getcustomerpart(ol.inventory_item_id, hca.cust_account_id), ' ') customer_item_number,
nvl(mtl.description , 'na') description,
nvl(org.organization_name , 'oak park') ship_from,
hcsu.location||' ('||hl.city||' '||hl.state||' '||hl.postal_code||')' ship_to,
nvl(ol.promise_date, sysdate) promised_date,
nvl(ol.ordered_quantity, 0) order_quality ,
xxapps.xx_eg_calculated_onhand(ol.line_id) available_qty,
nvl(ol.shipped_quantity, 0) shipped_quality ,
ol.order_quantity_uom uom,
hp.party_name customer_name,
jrs.name sales_person_name,
0 refer
FROM
oe_order_headers_all oh,
oe_order_lines_all ol,
hz_cust_accounts hca,
hz_parties hp ,
hz_cust_site_uses_all hcsu,
hz_cust_acct_sites_all hcas,
hz_party_sites hps,
hz_locations hl,
org_organization_definitions org ,
mtl_system_items_b mtl ,
jtf_rs_salesreps jrs
WHERE
oh.header_id = ol.header_id and
oh.org_id = ol.org_id and
oh.sold_to_org_id = hca.cust_account_id and
hca.party_id = hp.party_id and
hcas.cust_account_id = hca.cust_account_id and
hcsu.cust_acct_site_id = hcas.cust_acct_site_id and
hcas.party_site_id = hps.party_site_id and
hps.location_id = hl.location_id and
hcsu.site_use_id = oh.ship_to_org_id and
hcsu.site_use_code = 'SHIP_TO' and
org.organization_id = ol.ship_from_org_id and
org.organization_id = mtl.organization_id and
ol.inventory_item_id = mtl.inventory_item_id and
ol.ship_from_org_id = mtl.organization_id and
ol.salesrep_id = jrs.salesrep_id and
ol.org_id = jrs.org_id
can i know will it check for any constraints while correlation multiple table or whether this type of exception can be sorted out .
need help looking forward to reply...
Regards
bhanu prakash
Message was edited by:
user579125
Message was edited by:
user579125User,
I assume that this is for read-only activity. If so, don't create an EO from the database view; create a read-only view object instead. The only reason you'd want to use an Entity Object is if you were going to insert/update through the EO; unless you have an instead-of trigger, this database view is non-insertable/non-updatable.
Short answer: I think what you want to do is a read-only View Object (not EO) - put "select x, y, z (your columns) from view_name" as the SQL.
John -
JSF- view with no key-attributes cannot be activated
Hi,
i have a view Called Globals with 2 transient varibales , when i open many sessions at the same time and work with them , i got error
JBO-30003: The application pool (model.PlacingModuleLocal) failed to checkout an application module due to the following exception:oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-25052: ViewObject Globals with no key-attributes cannot be activated!
each attribute of the view have
Updateable = Always
Queyable is Checked
Passivative is checked
in the view properties, tab Tuning => No Rows
and "Fill Last Page " and "Passivate State " and "Including All Transient Variables"
all the 3 are checked
the view is NOT based on Entity Object
i use this view for holding data from SelectOneListBox
should i modify the view by any way ?
By The Way this view is exactly the same in SRDemo
Any Suggestions?
thanks....hi,
answer is here
http://www.oracle.com/webapps/online-help/jdeveloper/10.1.2/state/content/navId.4/navSetId._/vtTopicFile.bc4jjavadoc%7Crt%7Coracle%7Cjbo%7CCSMessageBundle~html/
and it says
JBO-25052: JboException
Cause: A ViewObject with no key attributes has transient passivatable attributes. This type of ViewObject cannot participate in passivation/activation.
Action: Set one or more attributes as key attributes for this ViewObject
that means that SRDemo may have a little bug which is any attribute should be key attr in Globals view -
JHeadstart SU1 - LOV target item cannot be based on key attribute
I have just installed by the SU1 and tried to re-generate one of my Application Modules and I am getting the following error
JAG-00131 [ QualificationPapers / PaperVariants / SessionPaperQuestions / VariantCode ] Lov target item 'VarId' cannot be based on key attribute of base ViewObject, uncheck the key attribute checkbox for this attribute.
Is this a new check that has been introduced?
Thanks
MarkMark, take a look at Re: What is the reason for JAG-00131 in SU97?
Toine -
Getting ADFv: Rowkey does not have any primary key attributes
Hi
I am using 11.1.1.5.0 version of JDeveloper.
The ViewObject has DistaccountId,OperatingUnit,PricingCategoryId,PartyId as Primary Key and
the EntityObject also has DistaccountId,OperatingUnit,PricingCategoryId,PartyId as Primary Key
and my Table also has the same set of attributes(DistaccountId,OperatingUnit,PricingCategoryId,PartyId) as Primary Key .
I am getting the following error on Create,Update Operation -
"<CurrencyRowKeySet> <_computeCurrentRowKey> ADFv: Rowkey does not have any primary key attributes. Rowkey: oracle.jbo.Key[], table: oracle.jbo.server.ViewObjectImpl@6c41af."
Also,when i choose a row for Update operation,the pop-up that opens up holds the values for some other record.
Please suggest.I'm not too sure but can you check if you have the following text in your page source ?
selectedRowKeys="#{bindings.<TreeBindingName>.collectionModel.selectedRow}"
selectionListener="#{bindings.<TreeBindingName>.collectionModel.makeCurrent}" -
View object SponsorVwView does not include a primary key attribute RowId
Hi,
I have an Entity Object and a View Object which do not have a primary key. So I use a ROWID to act as one. The only thing is that sometimes I get this error which causes the application to fail on the server:
JBO-30003: The application pool (gov.fda.cber.pts.model.services.CberPtsServiceLocal) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.PersistenceException, msg=JBO-26028: View object SponsorVwView does not include a primary key attribute RowId of entity base SponsorVw.
Does anyone have any any ideas on this?
Thank you in advanceHi...
I believe you'll need a PK so Oracle will know how to update the MV. Is there any particular reason for you not having a PK in FAFG_ASSETS table? As an alternative, you may want to create a new column in this table and having a table trigger/sequence populating this column.
But It looks like you are using EBS, so, I don't know if you can add new columns to tables.
See if this thread can help you:
Re: ORA-12014: table 'XXX' does not contain a primary key constraint
Regards,
Marcos -
Anyone know what this all means !! - Sense Key = hardware error ?
I have just been tring to make a Back-up copy of a CD using Toast ( v7.1 ) and at the end I keep getting this message, does anyone know what it all means please.
Sense Key = Hardware Error
Sense Code = 0x44, 0xD6
Internal Target Failure
Now before we go on, I have been using Toast all week making Back-ups with out a problem so I don't know why all of a sudden I am getting this message.
It also states that the Lead in & Out failed.
Hope some one can enlighten me.
SteveIn some cases if you have done a lot of burning you will need to empty the cache files before you can burn successfully. I have had to do this after I burned 4 or 5 movies and then I was good to go again.
I use 3 programs.
Macjanitor.
http://personalpages.tds.net/~brian_hill/macjanitor.html
Cache Out X.
http://www.versiontracker.com/dyn/moreinfo/macosx/14850
Onyx.
http://www.titanium.free.fr/pgs2/english/download.html
If I am doing a lot of burning I run these 3 once a week need to or not just to keep the trash all cleaned out of my system.
I try to always follow this Media guide as well and find it to be invaluable when buying good media, for DVD.
http://www.digitalfaq.com/media/dvdmedia.htm
This may do the trick for you.
Don -
Cross platform migrate repository and oms, gets "EM Key Verification Error"
Hello,
I am trying to cross platform migrate repository and oms from Sun Solaris Sparc 64 bit to Linux x86-64bit.
Environment:
Original repository Oracle 10.2.0.3, OMS 10.2.0.5, Sun Solaris Sparc 64 bit
New repositoy Oracle 10.2.0.3, OMS 10.2.0.5, Linux x86-64bit
Following metalink note:
Subject: How To Move Grid Control Oms & Repository To Another Server
Doc ID: 853293.1
to step 4:
4. Point the new OMS to the new repository
can't get over emkey corrupt issue, gets error:
2009-10-13 14:07:24,570 [AJPRequestHandler-ApplicationServerThread-11] ERROR conn.ConnectionService verifyRepositoryEx.918 - EM Key Verification Error = Em key does not match with repos verifier
2009-10-13 14:07:27,910 [Shutdown] ERROR em.notification unregisterOMS.2573 - Error unregistering: EM Key is Missing java.sql.SQLException: EM Key is Missing
The newly installed additional OMS can only point to the original repository and can't point to the newly migrated repository.
Steps I did:
Install an addition OMS to point to original repository (make sure emkey is in repository)
create a new empty database on new host with a new name (is new name caused problem?)
migrate old repository to new (use export/import)
point new OMS to new repository by modifing emoms.properties
startup oms and gets emkey corrupt error
This metalink note does not help either:
Subject: The Em Key is not configured properly. Run "emctl status emkey" for more details.
Doc ID: 817035.1
I also have a SR open but still have no help from Oracle support. I did make sure the emkey is in the repository before migrate. There may be tricks that I don't know.
Can anyone shed some light on this?
Thank you for your help in advance.
Edited by: user1062137 on Oct 16, 2009 2:14 PMHi, I'm having the same issue.
Our original installation was on Windows 32bit with the repository and OMS on the same host. I want to move the repository to a linux 64bit host to make more resource available for everything. The new database is 11.1.0.7 though. As the Grid control release is 10.2.0.5 Oracle Support have confirmed that the 11g database is OK to use.
In the log I see a lot of this:
[AJPRequestHandler-ApplicationServerThread-5] ERROR conn.ConnectionService verifyRepositoryEx.911 - Invalid Connection Pool. ERROR = ORA-01031: insufficient privileges
ORA-06512: at "SYSMAN.MGMT_USER", line 10296
ORA-06512: at "SYSMAN.SETEMUSERCONTEXT", line 17
ORA-06512: at line 1
2009-11-05 18:54:57,254 [AJPRequestHandler-ApplicationServerThread-7] ERROR conn.FGAConnection _setConnContext.326 - java.sql.SQLException: ORA-01031: insufficient privileges
ORA-06512: at "SYSMAN.MGMT_USER", line 10296
ORA-06512: at "SYSMAN.SETEMUSERCONTEXT", line 17
ORA-06512: at line 1
java.sql.SQLException: ORA-01031: insufficient privileges
ORA-06512: at "SYSMAN.MGMT_USER", line 10296
ORA-06512: at "SYSMAN.SETEMUSERCONTEXT", line 17
ORA-06512: at line 1
2009-11-05 18:54:59,973 [Shutdown] ERROR em.notification unregisterOMS.2573 - Error unregistering: EM Key is Missing
java.sql.SQLException: EM Key is Missing
Unfortunately that package is wrapped so I can't see what privs are required.
The instructions say (simplified here) either datapump or exp/imp to the new database, run some admin scripts, then update the emoms.properties with the new connection information. Thats it - start OMS again and it should work.
Thankfully I can turn the old repository back on while I sift through these logs.
Maybe you are looking for
-
My Ipod touch is not recognized by Itunes or Windows Explorer. I have followed Apple's troublehsooting but it did not solve the problem. Thanks in advance for any assistance that you can provide.
-
No Startup Chime on the Boss's MacBook
My boss is currently in Mexico and his MacBook has started having problems. He can turn it on, the power light comes on and the HD starts spinning, but it never gets to the startup chime. It simply continues to run with a black screen until he holds
-
Gallery in which user can choose pictures and submit
HI, Im a begginer, so please be patient;) I want to build an online gallery - very simple, only thumbnails - in which I upload pictures and the viewer can choose the pictures he wants and press a submit button. This will send me an email with the nam
-
Org Unit Validity Period change
Hi Experts, Can any you please let me know, is there any option of changing the Org Unit Validity period. Ex: By mistake I have created an Org unit with Start Date as 01.01.0091 and End Date 31.12.9999. Now I would want to change the Validity period
-
Can't ... install ... program ...
i was working on video project, and needed after effects so when I went to install it I got this error "after effects error: sfntread library" some info on adobe site said something about changing the value in file "AfterFX8.ini" from 0 to 1 that did