Works as List, not as Map
I'm having an issue with 1-M mappings where the type of the child attribute is a java.util.Map. When I read the parent and reference the child, Toplink is only populating one object in the Map, even though there multiple in the database.
When I change the data type on the collection attribute to a List, all children are correctly read - i.e., it works fine.
In the collections tab in the workbench, I set the collection type to IndirectMap when using a Map (and set the key method appropriately), and Indirect List when using a List.
In debug (JDeveloper) when processing as a Map, I do see the key method accessed, and actually see data from all children in the debugger data view as it cycles through them. However, only the last object (which it seems to cycle through twice in the key method) ends up in the map. Unfortuntely, the debugger doesn't let me see what's happening with the population of the collection.
This happens whether I use indirection (transparent or value holder) or not.
Any idea on what I'm missing? Code snippets below (parent is Firm, child is FirmOfficer - there are 3 on the database; intent is to read/update all children):
List code:
Firm firm = (Firm)session.readObject(Firm.class);
UnitOfWork uow = session.acquireUnitOfWork();
Firm tempFirm = (Firm)uow.registerObject(firm);
tempFirm.setState("CA");
List l = tempFirm.getFirmOfficers();
// size() of list is 3
Iterator i = l.iterator();
FirmOfficer fo;
while (i.hasNext()){
fo = (FirmOfficer)i.next();
fo.setState("CA");
uow.commit(); //all 3 children updated
Map code:
Firm firm = (Firm)session.readObject(Firm.class);
UnitOfWork uow = session.acquireUnitOfWork();
Firm tempFirm = (Firm)uow.registerObject(firm);
tempFirm.setState("CA");
Map m = tempFirm.getFirmOfficers();
//size() of map = 1
Set s = h.keySet();
Iterator i = s.iterator();
FirmOfficer fo;
while (i.hasNext()){
fo = (FirmOfficer)h.get(i.next());
fo.setState("CA");
uow.commit(); //only the 1 child is updated
Thank you.
Check that the value you are using for the Map key is unique. i.e. each object in the collection must have a unique key value otherwise with a Map you will only end up with a single element if they all share the same Map key.
Similar Messages
-
Working with List, Collection or Map
Hello everyone,
I have the following situation: I must add some values to a List, Collection or Map, and then retrieve them do put them in a combo box. My doubt is: which of them I should use?
I wanna add a string working as an index and another working as a description. Like this:
- "First string", "Hey here's my first string"
- "String 2", "number 2 now"
So, when I add it to the combo (which is actually a html:select), I wanna show the description and get the value.
Which of them should I use?public Map getAtributosColecao(){
Map mapa = null;
mapa.put("colecao","Cole��o");
mapa.put("descricao","Descri��o");
return mapa;
}is it correct? 'cause when I call it from another
class, I get a nullPointerException...Of course you get that exception.
Map mapa = null;Ok, mapa is null here.
mapa.put("colecao","Cole��o");Duh? -
Cascading Select Lists - Not Working for me
I am trying to implement Denes Kubicek's Ajax Cascading Select List solution.
http://apex.oracle.com/pls/otn/f?p=31517:119
But it is not working for me.
I'm a newbie to APEX and checked the forum for advice on cascading select lists. I saw the thread for
"Cascading Select Lists - Not Working" posted by sue and the replies by Varad Acharya, but I'm still
having issues of not seeing the alerts, not able to run the pl/sql process in SQL Workshop, and not
getting the expected results.
I have a list of countries (US - USA, CA - CANADA, etc.) and a list of states for each country. When a
user selects a country I would like to show the list of states within that country.
This is what I've done so far:
Defined an application process:
Process Point: On Demand: Run ... by a page process.
Name: CASCADING_SELECT_LIST1
Process Text:
BEGIN
OWA_UTIL.mime_header ('text/xml', FALSE);
HTP.p ('Cache-Control: no-cache');
HTP.p ('Pragma: no-cache');
OWA_UTIL.http_header_close;
HTP.prn ('<select>');
HTP.prn ('<option value="' || 99 || '">' || '- All States -'
|| '</option>'
FOR c IN (SELECT state_code || ' - ' || state_desc d, state_code r
FROM tbk_state
WHERE country_code = :cascading_selectlist_item_1)
LOOP
HTP.prn ('<option value="' || c.r || '">' || c.d || '</option>');
END LOOP;
HTP.prn ('</select>');
END;
defined and application item:
Name: CASCADING_SELECTLIST_ITEM_1
Build Option: - No Build Option -
Created a 'Form on a table with report' as follows:
Page 5: Report on TBK_HARDWARE_LOCATION
Page 6: Form on TBK_HARDWARE_LOCATION
in HTML Header of the page attributes for 'Form on TBK_HARDWARE_LOCATION' I have:
<script language="JavaScript" type="text/javascript">
<!--
htmldb_delete_message='"DELETE_CONFIRM_MSG"';
//-->
</script>
<script>
function get_select_list_xml1(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
alert ('Dept no=' + pThis.value);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
gReturn = get.get('XML');
// gReturn = get.get();
alert('Enames=' + gReturn);
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue)
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
On Page 6: 'Form on TBK_HARDWARE_LOCATION' I have the following items (plus some others):
Name: P6_COUNTRY_CODE
Display as: Select List
HTML Form Element Attributes: onchange="get_select_list_xml1(this,'P6_STATE_CODE');"
Source Used: Only when current value in session state is null
Source Type: Database Column
maintain session state: Per session
Source value or expression: COUNTRY_CODE
Named LOV: LIST OF COUNTRIES
Name: P6_STATE_CODE
Display as: Select List
Source Used: Only when current value in session state is null
Source Type: Database Column
maintain session state: Per session
Source value or expression: STATE_CODE
Named LOV: - Select named LOV -
List of Values definition:
select state_code || ' - ' || state_desc d, state_code r
from tbk_state
where country_code = :P6_COUNTRY_CODE
order by 1
LIST OF COUNTRIES is defined as:
select country_code || ' - ' || country_desc d, country_code r
from tbk_country
order by 1
Now to the problem:
I run page 5 (the report) to see the list of locations and then I try to edit a record (page 6). When I
try to select a different country I get the following error (on IE):
"Problems with this web page might prevent it from being displayed properly or functioning properly.
In the future, you can display this message by double-clicking the warning icon displayed in the status
bar.
Line: 17
Char: 5
Error: Object expected
Code: 0
URL: http//cmrac4.cm.timeinc.com:7777/pls/htmldb/f?
p=114:6:1413254636072443110::::P6_HARDWARE_LOCATION_ID:2
I don't see any of the alert messages.
I also tried to run the application process code in the SQL - Command Processor (I replaced
:cascading_selectlist_item_1 with 'CA' or 'US') and got the following:
The XML page cannot be displayed
Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh
button, or try again later.
Only one top level element is allowed in an XML document. Error processing resource
'http://cmrac4.cm.timeinc.com:7777/pls/...
<select><option value="99">- All States -</option><option value="X1">X1 - X1</option><optio...
Can someone help me please?Varad,
First, thank you for taking the time to try to help me with this problem.
When I view the page's source code (here are the first few lines):
<html lang="en-us">
<head>
<script src="/i/javascript/core.js" type="text/javascript"></script>
<link rel="stylesheet" href="/i/css/core.css" type="text/css" />
<script language="JavaScript" type="text/javascript">
<!--
htmldb_delete_message='Would you like to perform this delete action?';
//-->
</script>
<script>
function get_select_list_xml1(pThis,pSelect){
var l_Return = null;
var l_Select = html_GetElement(pSelect);
//alert ('Dept no=' + pThis.value);
var get = new htmldb_Get(null,html_GetElement('pFlowId').value,
'APPLICATION_PROCESS=CASCADING_SELECT_LIST1',0);
get.add('CASCADING_SELECTLIST_ITEM_1',pThis.value);
gReturn = get.get('XML');
// gReturn = get.get();
//alert('Enames=' + gReturn);
if(gReturn && l_Select){
var l_Count = gReturn.getElementsByTagName("option").length;
l_Select.length = 0;
for(var i=0;i<l_Count;i++){
var l_Opt_Xml = gReturn.getElementsByTagName("option");
appendToSelect(l_Select, l_Opt_Xml.getAttribute('value'),
l_Opt_Xml.firstChild.nodeValue);
get = null;
function appendToSelect(pSelect, pValue, pContent) {
var l_Opt = document.createElement("option");
l_Opt.value = pValue;
if(document.all){
pSelect.options.add(l_Opt);
l_Opt.innerText = pContent;
}else{
l_Opt.appendChild(document.createTextNode(pContent));
pSelect.appendChild(l_Opt);
</script>
It looks like line 17 is:
var l_Select = html_GetElement(pSelect);
I'm still not sure why I'm getting this error and why it's not working?
Thanks,
Eti -
UI not getting change update when working with LIST and INotifyPropertyChanged
i was trying to know two way data binding. i have simple car class which extend INotifyPropertyChanged for notify the change to update UI. bind List object to few textboxes and notice when one textbox value change then other textbox value not updated. all
textboxes bind to same property. so one's value change should propagate to other textboxes.
this is my code
public class Car : INotifyPropertyChanged
private string _make;
private string _model;
private int _year;
public event PropertyChangedEventHandler PropertyChanged;
public Car(string make, string model, int year)
_make = make;
_model = model;
_year = year;
public string Make
get { return _make; }
set
_make = value;
this.NotifyPropertyChanged("Make");
public string Model
get { return _model; }
set
_model = value;
this.NotifyPropertyChanged("Model");
public int Year
get { return _year; }
set
_year = value;
this.NotifyPropertyChanged("Year");
private void NotifyPropertyChanged(string name)
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(name));
This way i bind
Car carTest;
private void Form1_Load(object sender, EventArgs e)
carTest = new Car("Ford", "Mustang", 1967);
List<Car> ol = new List<Car>();
ol.Add(carTest);
this.textBox1.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
this.textBox3.DataBindings.Add("Text", ol, "Make");
when run the code then Ford was showing as make name but when change value in any textbox then that change is not shown in other textboxes.
the moment i change this line List<Car> ol = new List<Car>(); to
BindingList<Car> ol = new BindingList<Car>(); then code started to work fine.
My Question
1) what is the difference between List and BindingList class ?
2) can't we use List<> for my situation instead of BindingList
3)
this.textBox2.DataBindings.Add("Text", ol, "Make", true, DataSourceUpdateMode.OnPropertyChanged);
this.textBox3.DataBindings.Add("Text", ol, "Make");
see the above code and tell me what is the advantage of using DataSourceUpdateMode.OnPropertyChanged because i have seen if we do not use this code
DataSourceUpdateMode.OnPropertyChanged then also data change is propagated to other textbox when cursor focus change.I would have thought that'd work with List<t>, in fact I think there must be something wrong in your code there. I can't spot it though.
I recommend use of ObservableCollection rather than BindingList.
The default on bindings is that changes are propagated from the target ( view ) to source ( vm ) when the control loses focus.
If you want to do the equivalent to a keydown event handler in a viewmodel then onpropertychanged is the way to go.
You want to avoid creating bindings in code unless you really really have to, it's way easier to put them in xaml.
Even if your ui is dynamic, you can build xaml and use that to create the ui objects:
http://social.technet.microsoft.com/wiki/contents/articles/28797.aspx
The difference between BindingList and List is, literally, iBindingList.
See
https://msdn.microsoft.com/en-us/library/system.componentmodel.ibindinglist%28v=vs.110%29.aspx?f=255&MSPPError=-2147217396
What probably isn't very obvious is that BindingList fires an event - iirc itemchanged when properties on objects in it change.
Maybe you did something wrong in your implementation of inotifypropertychanged. I must admit, I can't see anything there though.
You don't really need those magic strings since .net4.5 and you also don't need to explicitly implement inotifypropertychanged you could use:
public event PropertyChangedEventHandler PropertyChanged;
public void RaisePropertyChanged([CallerMemberName] String propertyName = "")
if (PropertyChanged != null)
PropertyChanged(this, new PropertyChangedEventArgs(propertyName));
As used in this:
https://gallery.technet.microsoft.com/WPF-Dynamic-Fonts-ad3741ca
If you try that sample you can have:
public class FontDetails : INotifyPropertyChanged
or
public class FontDetails
And you can see it still notifies change successfully to both windows.
Most wpf devs will use observablecollection rather than List or bindinglist.
Observablecollection notifies addition or removal of entries. It can be used to notify an entry has changed, but does not detect change of property. You would have to raise the event in code if you want to tell it an item changed.
Hope that helps.
Technet articles: Uneventful MVVM;
All my Technet Articles -
I was doing some minor editing in Logic Pro 9.1.8, like adding some plug-ins to audio and midi tracks on numerous songs. Most of the songs I had no problem bouncing. For some reason 2 of the songs I tried to bounce kept showing me this error message:
"Error in parameter list / Not an existing volume, and no default volume / Bad positioning information / Bad drive number" result code=-50.
The songs open and play fine, but won't let me bounce. I've worked with Logic for a few years and this has never happened. Any suggestions?
Thanks,
JohnnyFixed! Ran disk utilities and repaired my external HD.
-
Revision: 5445
Author: [email protected]
Date: 2009-03-19 17:47:57 -0700 (Thu, 19 Mar 2009)
Log Message:
Fix for - @copy tag for two methods with different arg lists not working.
Some changes for refactoring.
QE Notes: None.
Doc Notes: None.
Bugs: SDK-19975
tests: checkintests, asdoc
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-19975
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja vaRevision: 5445
Author: [email protected]
Date: 2009-03-19 17:47:57 -0700 (Thu, 19 Mar 2009)
Log Message:
Fix for - @copy tag for two methods with different arg lists not working.
Some changes for refactoring.
QE Notes: None.
Doc Notes: None.
Bugs: SDK-19975
tests: checkintests, asdoc
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-19975
Modified Paths:
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/AsDocUtil.java
flex/sdk/trunk/modules/compiler/src/java/flex2/compiler/asdoc/TopLevelClassesGenerator.ja va -
Picklist does not work if list has more than 255 records.
I'm tring to use the picklist class in picklist.pll, the library
that come with Developer2000. Picklist class is demostrated in
one of the Developer2000 demos. This picklist class allows you
to select and move record(s) from one list to another. Picklist
only works if list has 255 records or less and the list property
sheet does not allows me to set number of records > 255
I'm wondering if anyone ran into this problem before and found a
work around.
Thanks in advance,
kl.
nullKevin Lai (guest) wrote:
: I'm tring to use the picklist class in picklist.pll, the
library
: that come with Developer2000. Picklist class is demostrated
in
: one of the Developer2000 demos. This picklist class allows
you
: to select and move record(s) from one list to another.
Picklist
: only works if list has 255 records or less and the list
property
: sheet does not allows me to set number of records > 255
: I'm wondering if anyone ran into this problem before and found
a
: work around.
: Thanks in advance,
: kl.
Hi Kevin,
Yeah I know what the problem is. It is all to do with a forms
limitation re scrolling views. The limitations are:
- The fields in the picklist are displayed on one canvas, whose
canvas size is greater than the view size, hence you get the
scroll bar. The canvas contains a block with 255 records
displayed, but no block scroll bar, hence you cannot scroll the
block and 255 is the max.
- With block scroll bars you can display an unlimited number of
records (obviously), but you cannot resize the view, since the
scroll bar is attached to the block, and there are no
set_block_properties that allow you to change the size of the
scroll bar dynamically
What is needed is a combination of the two.
What you will find is that most of the demos are pretty crap,
and can't really be used for production instances.
Anyway, the good news is that I have implemented a really sexy
picklist and will send it to you if you mail me your E-Mail.
Regards Steve
null -
Could not parse mapping document from resource
HI All,
I'm using hibernate3.2.2 I wrote the following code to contact the database but the system tells the error on it. My code is
Dealer.java:
package com.mapping;
public class Dealer {
private int id;
private String name;
private int did;
public int getDid() {
return did;
public void setDid(int did) {
this.did = did;
public int getId() {
return id;
public void setId(int id) {
this.id = id;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
Product.java
------------------package com.mapping;
public class Product {
private int id;
private int did;
private String name;
private double price;
public int getDid() {
return did;
public void setDid(int did) {
this.did = did;
public int getId() {
return id;
public void setId(int id) {
this.id = id;
public String getName() {
return name;
public void setName(String name) {
this.name = name;
public double getPrice() {
return price;
public void setPrice(double price) {
this.price = price;
JoinExample.java
package com.mapping;
import java.util.Iterator;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import com.HibernateSessionFactory;
public class JoinExample {
public static void main(String args[]){
Session session=null;
try{
session = HibernateSessionFactory.getInstance().getCurrentSession();
session.beginTransaction();
String sql_query = "from Product p inner join p.dealer as d";
Query query = session.createQuery(sql_query);
Iterator ite = query.list().iterator();
System.out.println("Dealer Name\t"+"Product Name\t"+"Price");
while ( ite.hasNext() ) {
Object[] pair = (Object[]) ite.next();
Product pro = (Product) pair[0];
Dealer dea = (Dealer) pair[1];
System.out.print(pro.getName());
System.out.print("\t"+dea.getName());
System.out.print("\t\t"+pro.getPrice());
System.out.println();
session.close();
}catch(Exception e){
e.printStackTrace();
Dealer.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/
hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.mapping.Dealer" table="dealer">
<id name="id" type="java.lang.Integer" column="id">
<generator class="increment"/>
</id>
<property name="name" type="java.lang.String" column="name"/>
<property name="did" type="java.lang.Integer" column="did"/>
<bag name="product" inverse="true" cascade="all,delete-orphan">
<key column="did"/>
<one-to-many class="com.mapping.Product"/>
</bag>
</class>
</hibernate-mapping>
Product.xml
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-mapping
PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
"http://hibernate.sourceforge.net/
hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="com.mapping.Product" table="product">
<id name="id" type="java.lang.Integer" column="id">
<generator class="increment"/>
</id>
<property name="name" type="java.lang.String" column="name"/>
<property name="did" type="java.lang.Integer" column="did"/>
<property name="price" type="java.lang.Double" column="price"/>
<many-to-one name="dealer" class="com.mapping.Dealer" column="did" insert="false" update="false"/>
</class>
</hibernate-mapping>
hibernate.cfg.xml
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://localhost/hibernate</property>
<property name="hibernate.connection.username">root</property>
<property name="hibernate.connection.password"></property>
<property name="hibernate.connection.pool_size">10</property>
<property name="show_sql">true</property>
<property name="dialect">org.hibernate.dialect.MySQLDialect</property>
<property name="hibernate.hbm2ddl.auto">update</property>
<!-- Mapping files -->
<mapping resource="com/mapping/Dealer.hbm.xml"/>
<mapping resource="com/mapping/Product.hbm.xml"/>
</session-factory>
</hibernate-configuration>
it throws the following example:
log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
log4j:WARN Please initialize the log4j system properly.
%%%% Error Creating HibernateSessionFactory %%%%
org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mapping/Dealer.hbm.xml
at org.hibernate.cfg.Configuration.addResource(Configuration.java:575)
at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
at com.HibernateSessionFactory.initSessionFactory(HibernateSessionFactory.java:39)
at com.HibernateSessionFactory.getInstance(HibernateSessionFactory.java:23)
at com.mapping.JoinExample.main(JoinExample.java:19)
Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:514)
at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
... 8 more
Caused by: org.dom4j.DocumentException: hibernate.sourceforge.net Nested exception: hibernate.sourceforge.net
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:505)
... 9 more
org.hibernate.HibernateException: Could not initialize the Hibernate configuration
at com.HibernateSessionFactory.initSessionFactory(HibernateSessionFactory.java:56)
at com.HibernateSessionFactory.getInstance(HibernateSessionFactory.java:23)
at com.mapping.JoinExample.main(JoinExample.java:19)
regards,
Maheshwaran DevarajI also faced same problem when i wrote my first hibernate mapping file, this error will accur because of bad xml parser design, the parser developer did not even validate and remove blank lines from xml before parsing it, becuse of that if there is first blank line in your xml mapping file then we will get "The processing instruction target matching "[xX][mM][lL]" is not allowed" error.
Solution: Just check is there any blank line at the begining of your hibernate mapping file if so remove that then it will works fine. -
How can I activate an old version of Photoshop that I've loaded on my new tablet? The web activation doesn't work, and when I call the number, it says it's not being used anymore. Meanwhile, I'm down to 13 days till it stops working due to not being activated. HELP? I really need to continue using this product for my home business.It works fine not activated but the threat is that it will stop working in 13 more days if I don't get it activated, and none of the activation methods they list seem to work.
The new serial number is to the right of your chosen download.
-
Hi all - My mac pro 1,1 has an enigmatic problem. It's quad-core, 3Ghz, running OS X 10.7.5. The problem began some months back, when running HD video conferences, HD streaming videos and some other graphics-moderate (I won't say intense) uses, such as slide shows in Just Looking. My machine has an ATY, RadeonX1900 card and 2 monitors - both Apple displays, one being 30 inch 2560x1600, the other being 24 inch 1920x1200.
When I start those types of graphics-moderate apps, after about 5 minutes, something would crash (the monitors making a noise as it did) and the displays would both go black. The power did not appear to be fully cut off from the monitors. I think that the underlying applications, however, did not crash. So, I could still hear and speak to people during video conferences, and I could hear the sound tracks of videos.
Attempts to restart the computer and get the monitors back did not immediately work to undo the problem, if done straight away. The only way to correct the problem (so as to have the monitors work) was to wait for a few minutes and then restart.
After a lot of puzzled looking at console logs (and I confess that I am not an expert), I ran into a blank.
But, because of the timing of the crashes (after ~5minutes use) and restarts (after some minutes wait), I reasoned that the problem might be temperature related.
Once on that path of thought, I found this article:
http://worldtv.com/blog/guides_tutorials/fixing_an_overheating_mac_pro_no_expens e_required.php
I installed both Temperature Monitor and SMCFanControl. And I experimented, and got interesting results:
Now to the puzzling bit: SMCFanControl shows that the speed of the Power Supply Fan doesn't vary much, even if I use SMCFanControl to ramp fan speeds right up. All of the other fans react to SMCFanControl, going up to and above 2500rpm when commanded. But the Power Supply Fan does not. Having watched it for a few days now, the Power Supply Fan, according to AFCFanControl, never varies outside of a range from about 600-640 rpm, regardless of what I do with AFCFanControl.
Also (and not surprisingly), whenever the graphics-moderate apps run, when I ramp all the fan speeds up using SMCFanControl, Temperature Monitor shows that the all of the temperatures within the machine plummet, except in the power supply locations. Power Supply Location 2 is the worst affected. Because the Power Supply Fan does not react as the other fans do, the "crashes" still occur.
I could post some screen shots of the read outs of SMCFanControl and Temperature Monitor, although I think I have covered the key points in this post.
It seems that the Power Supply Fan is still working, but does not respond to increased loads.
Instinctively, I'm worried that if that's right, it might be a hard problem to fix. Any suggestions? Help! I would really appreciate them!
Cheers
PThanks for your response Grant. I had already read about, and I think excluded, dust in graphics card/fan/assembly as a cause. The entire inside of the computer, including the graphics card/fan/assembly, is as clean as a whistle. It looks clean. I've cleaned the dust out every now and then (including a few days ago). Also, my undersanding (derived from the article, linked in my first post) is that I might expect to see high temperatures in the Northbridge and memory module B if the graphics card was overheating. According to Temperature Monitor, however, locations do not increase in temperature when I run the relevant apps. Finally, the graphics card/assembly does not feel too hot to touch.
It is strange that SMCFanControl lists the Power Supply Fan as being software controllable, if that fan is not. Still, your comments are consistent with my observations, as the fan simply does not respond to software control.
There are two upsides: First, I've something of a work-around. I've worked out what temperature must be achieved in Power Supply Location 2 for a crash to occur, and I can watch that location in Temperature Monitor, terminating the process before that treshold is reached. Of course, that's not ideal. Second, ramping all the other fans up does significantly delay the onset of the problem, and makes recovery time much quicker.
Is there any donwside to peridically ramping up the other fans when running the relevant apps? Given that it causes all of the other locations to cool significantly, could this lessesn the life expecancy of the mahcine? (I don't want to run the fans up all the time - that's like sitting next to a jet ready for take off!)
Also, a correction to my first post: Yesterday, with all the other fans running on full and running an HD streaming video, the Power Supply Fan did, eventually, slowly, come up to ~740rpm, which is much higher than the ~640rpm maximum I had previously seen, and this may have aided delaying the onset of the problem.
I'm not sure where this leaves me? The problem might now be able managed. Well, sort-of. But it's not eliminated. -
Disp+work.exe is not working
Hi Gurus.........i have system ecc6.0 installed , unfortunatly the disp+work.exe is not working (gray in color) .Please help me out.
below is the dev_dsp file details :
trc file: "dev_disp", trc level: 1, release: "700"
sysno 00
sid EC6
systemid 560 (PC with Windows NT)
relno 7000
patchlevel 0
patchno 75
intno 20050900
make: multithreaded, Unicode, optimized
pid 2196
Fri Sep 19 21:26:44 2008
kernel runs with dp version 217000(ext=109000) (@(#) DPLIB-INT-VERSION-217000-UC)
length of sys_adm_ext is 572 bytes
SWITCH TRC-HIDE on ***
***LOG Q00=> DpSapEnvInit, DPStart (00 2196) [dpxxdisp.c 1237]
shared lib "dw_xml.dll" version 75 successfully loaded
shared lib "dw_xtc.dll" version 75 successfully loaded
shared lib "dw_stl.dll" version 75 successfully loaded
shared lib "dw_gui.dll" version 75 successfully loaded
shared lib "dw_mdm.dll" version 75 successfully loaded
rdisp/softcancel_sequence : -> 0,5,-1
use internal message server connection to port 3900
Fri Sep 19 21:26:49 2008
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 5 seconds
***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c 5273]
MtxInit: 30000 0 0
DpSysAdmExtInit: ABAP is active
DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
DpIPCInit2: start server >gcecc6_EC6_00 <
DpShMCreate: sizeof(wp_adm) 18304 (1408)
DpShMCreate: sizeof(tm_adm) 3994272 (19872)
DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528056/528064
DpShMCreate: sizeof(comm_adm) 528064 (1048)
DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
DpShMCreate: sizeof(file_adm) 0 (72)
DpShMCreate: sizeof(vmc_adm) 0 (1440)
DpShMCreate: sizeof(wall_adm) (38456/34360/64/184)
DpShMCreate: sizeof(gw_adm) 48
DpShMCreate: SHM_DP_ADM_KEY (addr: 05EF0040, size: 4653368)
DpShMCreate: allocated sys_adm at 05EF0040
DpShMCreate: allocated wp_adm at 05EF1E40
DpShMCreate: allocated tm_adm_list at 05EF65C0
DpShMCreate: allocated tm_adm at 05EF65F0
DpShMCreate: allocated wp_ca_adm at 062C5890
DpShMCreate: allocated appc_ca_adm at 062CB650
DpShMCreate: allocated comm_adm at 062CD590
DpShMCreate: system runs without file table
DpShMCreate: allocated vmc_adm_list at 0634E450
DpShMCreate: allocated gw_adm at 0634E490
DpShMCreate: system runs without vmc_adm
DpShMCreate: allocated ca_info at 0634E4C0
DpShMCreate: allocated wall_adm at 0634E4C8
MBUF state OFF
DpCommInitTable: init table for 500 entries
Fri Sep 19 21:26:50 2008
EmInit: MmSetImplementation( 2 ).
MM global diagnostic options set: 0
<ES> client 0 initializing ....
<ES> InitFreeList
<ES> block size is 1024 kByte.
Using implementation flat
<EsNT> Memory Reset disabled as NT default
<ES> 511 blocks reserved for free list.
ES initialized.
Fri Sep 19 21:26:52 2008
J2EE server info
start = TRUE
state = STARTED
pid = 2628
argv[0] = C:\usr\sap\EC6\DVEBMGS00\exe\jcontrol.EXE
argv[1] = C:\usr\sap\EC6\DVEBMGS00\exe\jcontrol.EXE
argv[2] = pf=C:\usr\sap\EC6\SYS\profile\EC6_DVEBMGS00_gcecc6
argv[3] = -DSAPSTART=1
argv[4] = -DCONNECT_PORT=1044
argv[5] = -DSAPSYSTEM=00
argv[6] = -DSAPSYSTEMNAME=EC6
argv[7] = -DSAPMYNAME=gcecc6_EC6_00
argv[8] = -DSAPPROFILE=C:\usr\sap\EC6\SYS\profile\EC6_DVEBMGS00_gcecc6
argv[9] = -DFRFC_FALLBACK=ON
argv[10] = -DFRFC_FALLBACK_HOST=localhost
start_lazy = 0
start_control = SAP J2EE startup framework
DpJ2eeStart: j2ee state = STARTED
Fri Sep 19 21:26:55 2008
rdisp/http_min_wait_dia_wp : 1 -> 1
***LOG CPS=> DpLoopInit, ICU ( 3.0 3.0 4.0.1) [dpxxdisp.c 1623]
Fri Sep 19 21:27:06 2008
***LOG Q0K=> DpMsAttach, mscon ( gcecc6) [dpxxdisp.c 11586]
Fri Sep 19 21:27:12 2008
DpStartStopMsg: send start message (myname is >gcecc6_EC6_00 <)
DpStartStopMsg: start msg sent
Fri Sep 19 21:27:20 2008
CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
Fri Sep 19 21:28:30 2008
CCMS: start to initalize 3.X shared alert area (first segment).
Fri Sep 19 21:28:33 2008
DpJ2eeLogin: j2ee state = CONNECTED
DpMsgAdmin: Set release to 7000, patchlevel 0
MBUF state PREPARED
MBUF component UP
DpMBufHwIdSet: set Hardware-ID
***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c 1050]
DpMsgAdmin: Set patchno for this platform to 75
Release check o.K.
Fri Sep 19 21:28:52 2008
ERROR => W0 (pid 2636) died [dpxxdisp.c 14241]
ERROR => W1 (pid 2644) died [dpxxdisp.c 14241]
ERROR => W2 (pid 2652) died [dpxxdisp.c 14241]
ERROR => W3 (pid 1632) died [dpxxdisp.c 14241]
ERROR => W4 (pid 908) died [dpxxdisp.c 14241]
ERROR => W5 (pid 2660) died [dpxxdisp.c 14241]
my types changed after wp death/restart 0xbf --> 0xbe
ERROR => W6 (pid 2668) died [dpxxdisp.c 14241]
my types changed after wp death/restart 0xbe --> 0xbc
ERROR => W7 (pid 2676) died [dpxxdisp.c 14241]
my types changed after wp death/restart 0xbc --> 0xb8
ERROR => W8 (pid 2684) died [dpxxdisp.c 14241]
ERROR => W9 (pid 640) died [dpxxdisp.c 14241]
ERROR => W10 (pid 2692) died [dpxxdisp.c 14241]
my types changed after wp death/restart 0xb8 --> 0xb0
ERROR => W11 (pid 2700) died [dpxxdisp.c 14241]
my types changed after wp death/restart 0xb0 --> 0xa0
ERROR => W12 (pid 732) died [dpxxdisp.c 14241]
my types changed after wp death/restart 0xa0 --> 0x80
DP_FATAL_ERROR => DpWPCheck: no more work processes
DISPATCHER EMERGENCY SHUTDOWN ***
increase tracelevel of WPs
NiWait: sleep (10000ms) ...
NiISelect: timeout 10000ms
NiISelect: maximum fd=1637
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Fri Sep 19 21:29:02 2008
NiISelect: TIMEOUT occured (10000ms)
dump system status
Workprocess Table (long) Fri Sep 19 15:59:02 2008
========================
No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
0 DIA 2636 Ended no 1 0 0
1 DIA 2644 Ended no 1 0 0
2 DIA 2652 Ended no 1 0 0
3 DIA 1632 Ended no 1 0 0
4 DIA 908 Ended no 1 0 0
5 DIA 2660 Ended no 1 0 0
6 UPD 2668 Ended no 1 0 0
7 ENQ 2676 Ended no 1 0 0
8 BTC 2684 Ended no 1 0 0
9 BTC 640 Ended no 1 0 0
10 BTC 2692 Ended no 1 0 0
11 SPO 2700 Ended no 1 0 0
12 UP2 732 Ended no 1 0 0
Dispatcher Queue Statistics Fri Sep 19 15:59:02 2008
===========================
--------++++--
+
Typ
now
high
max
writes
reads
--------++++--
+
NOWP
0
1
2000
1
1
--------++++--
+
DIA
5
5
2000
5
0
--------++++--
+
UPD
0
0
2000
0
0
--------++++--
+
ENQ
0
0
2000
0
0
--------++++--
+
BTC
0
0
2000
0
0
--------++++--
+
SPO
1
1
2000
1
0
--------++++--
+
UP2
0
0
2000
0
0
--------++++--
+
max_rq_id 10
wake_evt_udp_now 0
wake events total 6, udp 2 ( 33%), shm 4 ( 66%)
since last update total 6, udp 2 ( 33%), shm 4 ( 66%)
Dump of tm_adm structure: Fri Sep 19 15:59:02 2008
=========================
Term uid man user term lastop mod wp ta a/i (modes)
Workprocess Comm. Area Blocks Fri Sep 19 15:59:02 2008
=============================
Slots: 300, Used: 1, Max: 0
--------++--
+
id
owner
pid
eyecatcher
--------++--
+
0
DISPATCHER
-1
WPCAAD000
NiWait: sleep (5000ms) ...
NiISelect: timeout 5000ms
NiISelect: maximum fd=1637
NiISelect: read-mask is NULL
NiISelect: write-mask is NULL
Fri Sep 19 21:29:07 2008
NiISelect: TIMEOUT occured (5000ms)
DpHalt: shutdown server >gcecc6_EC6_00 < (normal)
DpJ2eeDisableRestart
MsIDelService: delete service J2EE for myself
NiBufSend starting
NiIWrite: hdl 3 sent data (wrt=161,pac=1,MESG_IO)
MsINiWrite: sent 161 bytes
send msg (len 110+51) to name MSG_SERVER, type 0, key -
MsSndName: MS_DEL_PROPERTY ok
Send 51 bytes to MSG_SERVER
MS_DEL_PROPERTY : asynchronous call
send MsDelService(J2EE) to msgserver
DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=2628)
killing process (2628) (SOFT_KILL)
DpIJ2eeShutdown: j2ee state = SHUTDOWN
NiBufISelUpdate: new MODE -- (r-) for hdl 4 in set0
SiSelNSet: set events of sock 1508 to: ---
NiBufISelRemove: remove hdl 4 from set0
SiSelNRemove: removed sock 1508 (pos=2)
SiSelNRemove: removed sock 1508
NiSelIRemove: removed hdl 4
DpDelSocketInfo: del info for socket 4 (type=8)
NiICloseHandle: shutdown and close hdl 4 / sock 1508
NiBufIClose: clear extension for hdl 4
DpModState: buffer in state MBUF_PREPARED
NiBufSend starting
NiIWrite: hdl 3 sent data (wrt=110,pac=1,MESG_IO)
MsINiWrite: sent 110 bytes
MsIDetach: send logout to msg_server
MsIDetach: call exit function
DpMsShutdownHook called
NiBufISelUpdate: new MODE -- (r-) for hdl 3 in set0
SiSelNSet: set events of sock 1536 to: ---
NiBufISelRemove: remove hdl 3 from set0
SiSelNRemove: removed sock 1536 (pos=3)
SiSelNRemove: removed sock 1536
NiSelIRemove: removed hdl 3
MBUF state OFF
AdGetSelfIdentRecord: > <
AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
blks_in_queue/wp_ca_blk_no/wp_max_no = 1/300/13
LOCK WP ca_blk 1
make DISP owner of wp_ca_blk 1
DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 16)
MBUF component DOWN
NiICloseHandle: shutdown and close hdl 3 / sock 1536
NiBufIClose: clear extension for hdl 3
MsIDetach: detach MS-system
cleanup EM
EsCleanup ....
EmCleanup() -> 0
Es2Cleanup: Cleanup ES2
***LOG Q05=> DpHalt, DPStop ( 2196) [dpxxdisp.c 10259]
Good Bye .....The work process are dying
ERROR => W1 (pid 2644) died [dpxxdisp.c 14241] *** ERROR => W2 (pid 2652) died [dpxxdisp.c 14241
This lead the dispatcher to emergency shutdow:
DISPATCHER EMERGENCY SHUTDOWN ***
if the dispatcher cannot start the work process it force the shutdown.So, you need to check
at the work process trace (dev_w*) files to find out the reason the they are dying.
@deeptss
if you are talking about the WARNING
WARNING => DpNetCheck: NiAddrToHost(1.0.0.0)took 5 seconds ***
this is a normal situation if the reverse name resolution is not working.
I have found this error when the DNS server has without the reverse zone configured.
However this is not a problem to the dispatcher operation.
Cheers
Clebio -
Leave Request work items are not showing in SBWP TCODE under OUTBOX .
Hi
Friends
I used work flow 12300111 for leave request process and I activated that work flow.
I applied leave through ESS from portal(Employee login)employee sends a leave request sends good,
and I got Leave request(work items) Managers in box(uwl in Manager Login in portal).
Manger Approve the leave request has been approved successfully.
can I check whether leave request is processed in R/3.
in tcode se38-RPTARQDBVIEW - UNDER leave request(Leave)->STATUS>COMPLETED,
But in r/3 i execute the Tcode SBWP...
here is no work items are not showing in outbox..
Please help me
Rafi Shaikit wont be shown in outbox of SBWP
you need to check via SWIA or rptarqdbview or SWI5 for the user
these are java based tasks so will be done in UWL. you can see only the tasks but after approval they are disappeared.
The outbox shows the last 30 days by default. This default cannot be
changed. This 30 days selection period is always set when you enter
the outbox. However, the user can change the selection period by
clicking the button 'Change selection period' on top of the grid
control but this as you know will be reset once you log out.
This is how the mapping from the
backend workplace folders to the UWL tabs should work:
UWL tab Backend folder
Notifications Deadline Messages
Tasks-> Completed Tasks Outbox -> Workitems executed by me
Tracking -> My Requests Outbox -> Started Workflows
Tracking -> Forwarded Outbox -> Forwarded workitems
Edited by: Siddharth Rajora on Aug 5, 2011 10:04 AM -
Work items are not visible UWL task are visible in tracking in portal
HI
Friends
i am new from sap Ess/Mss implementation project...
i am facing an Problem " Work items are not visible under UWL in portal overview page"
but i am configured all the ess/mss related things....and also Created for one user for Requester(send Leave Request)...and one more user for App-rover(Apporve an Leave)..
Requestor send an Leave through portal send it successfully......but i am facing a problem in uwl under work items are not showing in overview page...but in tracking work items are (Leave request)showing.....work items are not showing in uwl TASK(VERY PROBLEM)...
i am configured and also registered UWL IN PORTAL..it is good..
in sap ecc i can assigned UWL_SERVICE user to roles
1.SAP_BC_BMT_WFM_UWL_ADMIN
2.SAP_BC_BMT_WFM_UWL_END_USER
3.SAP_BC_ADMIN_USER
4.SAP_BC_UWL_SERVICE
PLEASE HELP ME.
Tanks
Shaik RafiHi All,
In such cases, please try to check as below :
1) Create Leave request work item from Employee and check the same under the UWL Tracking tab of employee.
2) Log-in to swi5 transaction of the respective back end system and give "US" -> manager's UserID -> Choose Tasks to be completed from the drop down -> Remove any date if mentioned -> Execute.
3) Here if you can see the Leave request created, but not on the portal, it reflects some portal issue like sync.
4) If no leave request work item is seen here, then there is a problem in the employee manager mapping or the workflow setup.
5) In such cases, you can try to check the Swi1 and check the log of that workflow to understand the current status of the Leave request.
Revert if further help is needed with more info.
Reward points if found useful.
Regards,
Shri vidya S -
Unable to select IS from the drop down list in message mapping
Hi,
i know that we can monitor 'Integration server' in message monitoring rather than choosing integration engine or adapter engine.
But in our existing land scapes i am unable to select IS from the drop down list in message mapping.
using PI 7.1 SP 08.
please let me know that we need to set up additional configurations settings to select IS form drop down list.
Regards,
Pradeep A.Hi Pradeep,
please let me know that we need to set up additional configurations settings to select IS form drop down list.
There are no extra settings that needs to be done for this. I don't know whether you have noticed this, but IS option will only come up when you want to monitor the messages from the "Database" and not from the "Database overview" or "Archive".
Regards,
Neetesh -
Blackberry maps does not show map just a location
Blackberry maps does not show map just a location on att with 10.0.10.822 os and software 10.0.10.116
http://forums.crackberry.com/blackberry-z10-f254/blackberry-maps-not-working-818297/
Solved!
Go to Solution.Nope, I don't know the seekrit release dates
1. If any post helps you please click the below the post(s) that helped you.
2. Please resolve your thread by marking the post "Solution?" which solved it for you!
3. Install free BlackBerry Protect today for backups of contacts and data.
4. Guide to Unlocking your BlackBerry & Unlock Codes
Join our BBM Channels (Beta)
BlackBerry Support Forums Channel
PIN: C0001B7B4 Display/Scan Bar Code
Knowledge Base Updates
PIN: C0005A9AA Display/Scan Bar Code
Maybe you are looking for
-
Rename the Column Name in the Repository
Hi, after creation the Repository and some Answers I want to change the name of some columns in the Repository (Presentation Layer or Busines Layer). After changing this column names the answers will not work any more until I replace the columns in a
-
Query gives me invalid number.Plz help what is wrong in this
SELECT A909_STG_CDC.B09_K, A909_STG_CDC.B09_L, A909_STG_CDC.B09_COD_SPROD, A909_STG_CDC.B09_DAT_REG, A909_STG_CDC.B09_INIBAL, A909_STG_CDC.B09_INTRT, A909_STG_CDC.B09_AREA, A909_STG_CDC.B09_ORIG_OFFICER_NO, A909_STG_CDC.B09_COST_CJER, DA901_STG_CDC.E
-
Processor
-
How do I disable updates with a silent install?
I have about 400 computers in my company and I have to update them to at least Java 6u30. I have not found a way to then disable the updates silently so the users aren't continuously prompted to upgrade. There doesn't seem to be an installation switc
-
My YouTube won't work. Please help!
When I go onto YouTube sometimes it doesn't work, it works fine with a wi-fi connection but sometimes when I am using the cellular network this message appears " YouTube requires a cellular network or wi-fi connection but other times it works perfect