NULL nested object
Hi,
OTT generates code as
streamOCCI_.setObject(obj);
when one define a nested object (not REF) e.g
CREATE TYPE inside_t (f1 NUMBER)
CREATE TYPE outside_t (id NUMBER, insider inside_t)
The problem I am seeing is that when I instantiate a persistent object of outside_t in a c++ app and assign the result to a Ref<>
Ref<outside_t> o = new(conn, "OUTSIDERS_V") outside_t;
where OUTSIDERS_V is an object view over a traditional relational table of the form
CREATE TABLE outsiders (id NUMBER, f1 NUMBER) and
CREATE VIEW outsiders_v OF outside_t ... AS SELECT id,inside_t(f1) FROM outsiders
it core-dumps on the setObject as the writeSQL is called upon the new but i don't have any value for inside_t yet and could want it to remain NULL for the lifetime of the object. Is it possible to achieve this without using REFs ?
Unfortunately, AMF serialization is something of a black art. I'd run into multiple issues in the past (working with Granite DS, rather than Blaze--but it's essentially the same thing). I'm not sure about Blaze, but Granite has very verbose logging available if you configure log4j to DEBUG level for org.granite. The other alternative is to attach to your Java process with a debugger (Eclipse makes this fairly automagical), download the Blaze source and configure Blaze as a project in Eclipse, add it to source lookup for your project, and step through the actual serialization to see what's going on. This is moderately complicated to set up, but priceless when it comes to debugging.
Similar Messages
-
Can we show the nested objects in Powershell?
I am adding a .NET type to Powershell session using Add-Type and then creating object of that type using New-Object. This is done as follows:
Add-Type -AssemblyName OuterObj
$a = New-Object OuterObj
Object of type OuterObj is successfully created. Now .NET type $a has a field named innerObj which is object of another .NET type innerObject. So I add "innerObject" .NET type and create an instance using New-Object.
Add-Type -AssemblyName innerObject
$b = New-Object innerObject
Object of type innerObject is also successfully created. Now I do as follows:
$a.innerObj = $b
Now when I print $a, it shows something like this:
innerObj : innerObject
Thus it does not display the contents of innerObject by default. When I go and explore, innerObj has the fields. I know Powershell does not show the nested objects by default but instead just shows their types, but is there a way I can specify that what
level of nesting of objects powershell should show by default? Is there something to specify to show 1 or 2 levels of nested objects?
Any help would be highly appreciated.The simplest approach, if you're writing these C# classes yourself, is probably to override the class's ToString method. That way it will just display that way by default in PowerShell, without any extra effort on the scripter's part.
If that's not an option, then you can write PowerShell code to accomplish something similar. Here are examples of both:
# C# ToString version:
Add-Type -TypeDefinition @'
public class innerObject
public string Property1;
public string Property2;
public override string ToString()
return string.Format("Property1: {0}, Property2: {1}", Property1, Property2);
public class OuterObj
public innerObject innerObj;
$a = New-Object OuterObj
$b = New-Object innerObject -Property @{ Property1 = 'First Property'; Property2 = 'Second Property' }
$a.innerObj = $b
$a | Format-List
# PowerShell version using constructed property values with
# Format-List.
Add-Type -TypeDefinition @'
public class innerObject
public string Property1;
public string Property2;
public class OuterObj
public innerObject innerObj;
$a = New-Object OuterObj
$b = New-Object innerObject -Property @{ Property1 = 'First Property'; Property2 = 'Second Property' }
$a.innerObj = $b
$a | Format-List -Property @{ Label = 'innerObj'; Expression = { "Property1: $($_.innerObj.Property1), Property2: $($_.innerObj.Property2)" } } -
Is there some way (script / plugin?) to auto nest objects on page?
In other words, to place all objects as tight as possible to eachother.@Meate
Our rip software (Wasatch Softrip) uses rectangles too. In most cases this is good enough (and allow easy cutting), but some cases where cutting isn't needed, tighter fitting would be helpful if available. See simple example in attachment.
But like i said, i was just checking if some script existed already. If not, it's not worth writing one for the rare occasions it would be helpful. -
How to send nested object collection to PL/SQL Procedure as an Input param
How to send nested object collection to PL/SQL Procedure as an Input parameter.
The scenario is there is a parent mapping object containing a collection(java.sql.Array) of child objects.
I need to send the parent object collection to PL/SQL procedure as a input parameter.
public class parent{
String attr1;
String attr2;
Child[] attr3;
public class Child{
String attr1;
SubChild[] attr2;
public class SubChild{
String attr1;
Urgent!!!
Edited by: javiost on Apr 30, 2008 2:09 AMjaviost wrote:
How to send nested object collection to PL/SQL Procedure as an Input parameter.There are a few ways to do this, all of which likely depend on the particular database you're using.
Urgent!!!Not to me... -
I am looking for advice on how to nest objected created from
cfcs...
The place I have seen this sdone is in the fusebox framwork
in the following:
#myFusebox.getCurrentCircuit().getAlias()#
What I would like to do is create an object called called
users from a users.cfc with methods such as listUsers() and
findUser(userID)...
Ex. #users.findUser(34)#
Then from there I want to next another object (object might
not be the correct term) or set of functions that deal with the
user specified such as getName() and getEmail()...
Ex. #users.findUser(34).getName()#
Ex. #users.findUser(34).getEmail()#
Can someone explain to me how this can be done?
Thanks!jeby wrote:
> Can someone explain to me how this can be done? Thanks!
>
How this is done depends largely on how the objects are
related to each
other. I.E. Does one object extend (inherit) the other object
creating
an is-a or parent child relationship. Or does one object
contain an
instance of the other as a property|variable (composite)
creting an
has-a relationship.
I'm doing some web service with complex object testing and I
have just
written this simple testing code. See if it makes some sense
to you.
basic.cfc
<cfcomponent>
<cfproperty name="foo" type="string">
<cfproperty name="bar" type="string">
<cfscript>
this.foo = "George";
variables.bar = "Gracie";
</cfscript>
<cffunction name="getBar" access="remote"
returntype="string">
<cfreturn variables.bar>
</cffunction>
</cfcomponent>
complex.cfc
<cfcomponent>
<cfproperty name="anObj" type="basic">
<cfscript>
variables.anObj = createObject("component","basic");
</cfscript>
<cffunction name="getObj" access="remote"
returntype="basic">
<cfreturn variables.anObj>
</cffunction>
</cfcomponent>
index.cfm
<cfscript>
complexComp = createObject("component","complex");
</cfscript>
<cfdump var="#basicComp#" expand="no">
<dl>
<dt>complexComp.getObj()</dt>
<dd><cfdump
var="#complexComp.getObj()#"></dd>
<dt>complexComp.getObj().foo</dt><
dd>#complexComp.getObj().foo#</dd>
<dt>complexComp.getObj().getBar()</dt>
<dd>#complexComp.getObj().getBar()#</dd>
</dl> -
I used DWCS4 to install a flash swf animation into a asp
page. (I have html pages on the site the swf plays no problem.) I
recieved the following error.
Active Server Pages error 'ASP 0139'
Nested Object
/index.asp, line 86
An object tag cannot be placed inside another object tag.
----->below is the source code that was genereated by CS4
when I installed the swf <-----------
<object id="FlashID"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="800"
height="80">
<param name="movie" value="rdslogo2.swf">
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<!-- This param tag prompts users with Flash Player 6.0
r65 and higher to download the latest version of Flash Player.
Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall"
value="../Scripts/expressInstall.swf">
<!-- Next object tag is for non-IE browsers. So hide it
from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash"
data="rdslogo2.swf" width="800" height="80">
<!--<![endif]-->
<param name="quality" value="high">
<param name="wmode" value="opaque">
<param name="swfversion" value="9.0.45.0">
<param name="expressinstall"
value="../Scripts/expressInstall.swf">
<!-- The browser displays the following alternative
content for users with Flash Player 6.0 and older. -->
<div>
<h4>Content on this page requires a newer version of
Adobe Flash Player.</h4>
<p><a href="
http://www.adobe.com/go/getflashplayer"><img
src="
http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif"
alt="Get Adobe Flash player" width="112" height="33"
/></a></p>
</div>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
Does anyone know how to correct this problem?Found the answer here:
http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=12&catid=189&threadid =1419395&enterthread=y
I was inserting the .swf into an .html page with my IIS
server set to read .html pages as .asp.
CS4 puts in different code for asp pages compared to html
pages.
Rich -
Revision: 10416
Author: [email protected]
Date: 2009-09-18 15:30:02 -0700 (Fri, 18 Sep 2009)
Log Message:
Allow null in object properties when sorting.
QE Notes: None
Doc Notes: None
Bugs: SDK-13585
Reviewer: Corey
API Change: No
Is noteworthy for integration: No
tests: checkintests mustella/browser/DataGrid
Ticket Links:
http://bugs.adobe.com/jira/browse/SDK-13585
Modified Paths:
flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/collections/ListCollectionView .as
flex/sdk/branches/3.x/frameworks/projects/framework/src/mx/collections/SortField.asHello Sini and all-
We've applied SP 8 and we're now able to show free characteristics only. However, in our 3.x reports, we give our users a lot of free characteristics, so we arrange these in different navigation blocks to make thme easier to find. So far in NW2004s, I find no way to limit specific characteristics to a particular navigation block/pane. In 3.x we use the following parameters in the Nav Item to do this:
<param name="ITEM_NAV_BLOCK_IOBJNM_1" value="DIVREP"/>
<param name="ITEM_NAV_BLOCK_IOBJNM_2" value="0COMPANY"/>
<param name="ITEM_NAV_BLOCK_IOBJNM_3"value="0COMP_CODE"/>
Please advise if you know of any way to accomplish this in NW2004s.
Thanks,
Ray -
Nested object property in a form?
Hi,
I have a problem with nested object property in a form; the nested property could be business.address.zipcode, however, the Flex data binding doesn't support the "." operator. Any advice/hint/code sample will be greatly appreciated.It does support the dot operator, there are several examples below:
http://livedocs.adobe.com/flex/3/html/help.html?content=databinding_4.html
Have you tried? What problems did you have? -
Nested object assignment to super type object
Can anybody explain how objects, which are nested as attributes into other object and have type hierarchy, are assigned?
Let view the following type hierarchy
create or replace type OT_A as object (
num number
) NOT FINAL;
create or replace type OT_A1 under OT_A (
num1 number
In the next PL/SQL code I assign objects which are in type hierarchy:
declare
v_a OT_A;
v_a1 OT_A1;
begin
v_a1 := OT_A1 (1,2);
v_a := v_a1;
dbms_output.put_line (v_a.num);
end;
After executing the fragment, '1' will be printed.
Let now add a new type
create or replace type OT_B as object (
a1 OT_A1
In the next PL/SQL code I will try to assign attribute (which is nested object) to its super type.
declare
v_a OT_A;
v_a1 OT_A1;
v_b OT_B;
begin
v_a1 := OT_A1 (1,2);
v_b := OT_B (v_a1);
v_a := v_b.a1;
dbms_output.put_line (v_a.num);
end;
After executing the fragment, nothing will be printed. Variable v_a will not contain valid num attribute.
Do I do something wrong or I can't do something like this at all?
Oracle version: Oracle9i Enterprise Edition Release 9.2.0.2.0 - 64bit Production
OS: HP-UXElena,
This looks like a bug. Do you have an Oracle customer id to file a TAR at http://metalink.oracle.com?
Regards,
Geoff -
Queue Table with Nested Objects
I need to create a queue table based on nested object
These are my declarations
TYPE TESTATATYPE AS OBJECT (
CODICE VARCHAR2(5),
DESCRIZIONE VARCHAR2(30)
TYPE DETTAGLIOTYPE AS OBJECT (
CODICE VARCHAR2(5),
DESCRIZIONE VARCHAR2(30),
VALORE NUMBER
TYPE DETTAGLITYPE IS TABLE OF DETTAGLIOTYPE
TYPE MESSAGGIOTYPE AS OBJECT (
TESTATA TESTATATYPE,
DETTAGLI DETTAGLITYPE
Now i'm trying to create queue table
DBMS_AQADM.CREATE_QUEUE_TABLE(queue_table => 'MsgQTab',
queue_payload_type => 'MessaggioType',
storage_clause => 'NESTED TABLE
dettagli STORE AS dettagli_tab_Q',
sort_list => 'priority,enq_time'
but I get
ORA-00904: invalid column name
ORA-06512: at "SYS.DBMS_AQADM_SYS", line 2012
ORA-06512: at "SYS.DBMS_AQADM", line 55
ORA-06512: at line 3
maybe the problem is storage clause, can you help me ?
nullAndrea,
You cannot currently use a nested table even as an embedded object within a message payload.
However, you can create an object type that contains one or more VARRAYs, and create a queue table that is founded on this object type. I guess this might be the problem you are facing. -
How to get value of a nested object?!!
I am writing a small game program in java(applet). I am not getting the value of a nested object in the paint method. Please help.
the text marked as code is wrong. Can u tell me a simple method?
s1.a[0].x will give error. What should I use?
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
class SnakeBit
int x,y; //x and y are coordinates
int position;
public SnakeBit(int x, int y)
this.x=x;
this.y=y;
public SnakeBit copy(SnakeBit a)
this.x=a.x;
this.y=a.y;
return this;
public int getValueX()
int a;
a=this.x;
return a;
public int getValueY()
int b;
b=this.y;
return b;
}//end of class SnakeBit.
class Cell
public int x,y;
//************************************************Snake class***************************************
class Snake
public Snake()
SnakeBit a[]=new SnakeBit[5];
a[0]=new SnakeBit(8,4);
public static void main(String args[])
SnakeBit a[]=new SnakeBit[5];
a[0]=new SnakeBit(8,4);
a[1]=new SnakeBit(8,5);
a[2]=new SnakeBit(8,6);
a[3]=new SnakeBit(9,6);
a[4]=new SnakeBit(10,6);
a[5]=new SnakeBit(10,7);
a[6]=new SnakeBit(10,8);
Snake a1=new Snake();
public void up(SnakeBit a[])
move(a);
a[0].y=a[0].y-1;
public void right(SnakeBit a[])
move(a);
a[0].x=a[0].x+1;
public void left(SnakeBit a[])
move(a);
a[0].x=a[0].x-1;
public void down(SnakeBit a[])
move(a);
a[0].x=a[0].y+1;
public void move(SnakeBit a[])
a[6].copy(a[5]);
a[5].copy(a[4]);
a[4].copy(a[3]);
a[3].copy(a[2]);
a[2].copy(a[1]);
a[1].copy(a[0]);
}//end of class Snake.
public class Game1 extends Applet //implements KeyListener
Snake s1;
SnakeBit aa;
int sizeOfCell=10; //default=10
int startX=20; //starting x position of board.default=20
int startY=20; //starting y position of board.
int maxX=200; //max x value of board, ie width. default=200
int maxY=200; //max y value of board ie height.
boolean drawBoard;
//int arrays which will store the values of the objects
int x[]=new int[5];
int y[]=new int[5];
public void init()
s1=new Snake();
//drawBoard=false;
//x=s1.getValueX();
//y=s1.getValueY();
//aa = s1.a[0];
public void paint(Graphics g)
//public void Mpaint(Graphics g, Snake s1)
//if (drawBoard==false)
drawBoard=true;
g.setColor(Color.cyan);
for(int i=startX;i<=maxX;i=i+sizeOfCell)
for(int j=startY;j<=maxY;j=j+sizeOfCell)
g.fillRect(i,j,sizeOfCell,sizeOfCell);
g.setColor(Color.red);
for(int i=startX;i<=maxX;i=i+sizeOfCell)
for(int j=startY;j<=maxY;j=j+sizeOfCell)
g.drawRect(i,j,sizeOfCell,sizeOfCell);
for(int i=0;i<7;i++)
<code>
g.drawRect(s1.a[0].x * sizeOfCell, s1.a[0].y*sizeOfCell,sizeOfCell,sizeOfCell);
</code>
}//end of class Game.Those who feel the program is too big to solve,( actually the code is not well written, and documentation is nill)
I will try to explain in my own words.
There are only 3 classes
1)SnakeBit
2)Snake
3)Game
SnakeBits draws a small part of a snake.
Snake draws the whole snake.
In the constructor of the Snake class , one SnakeBit is created.(Actually we create 5 or more, but right now to make the problem clear, I have created only one.)
SnakeBit a[]=new SnakeBit[5];
a[0]=new SnakeBit(8,4);
In the game class, a Snake is created.
In the game class, I can access the members of the Snake class. But I cannot access the members of the SnakeBit class.
I need to access the members of the SnakeBit class from the paint method. otherwise How am I going to draw it on the screen.
So tell me a way to do it.
I want to get the x and y variable of the SnakeBit class from the Game class.
Please help. -
Sort Nested Object - 2 properties
Hello,
I am trying to sort based on a few properties of an object. The only issue i am having is the properties are within a nested object.
For example.
I would like to stort the following object by StreetNumber and StreetName, but these properties are inside 'locations_attributes' array.
"commute": {
"minutes": 0,
"startTime": "Wed May 06 22:14:12 EDT 2009",
"locations_attributes": [
"StreetNumber": "12",
"StreetName": "Main"
"StreetType": "St"
"StreetNumber ": "17",
"StreetName": "Morning Side ",
"StreetType": "Dr"
"StreetNumber ": "26",
"StreetName": "Blake",
"StreetType": "St"
Can this be done ?
DrewI get a JSON result from a REST service and I have a custom component that I populate.
I am not usin a datagrid, but a extended version of the List component.
I am just trying to sort the returned result sorted by street number and street name.
I was using a compareFunction in a sort() method, but only found samples for sorting off of one field.. not 2.
Here is is a sample of what I was using for 1 field.
private function sortByAttribute(a:Object, b:Object):Object
var x:String = a.attributes[this._activePanel.SortField].toLowerCase();
var y:String = b.attributes[this._activePanel.SortField].toLowerCase();
return ((x < y) ? -1 : ((x > y) ? 1 : 0)); -
Hi,
we're using WLP 7.0 on Windows 2000 machines against an Oracle 8.1.6
database. From time to time we get an error "Retreived a null PortalState
object from the PortalRequest" which forces us to restart the (weblogic)
server.
Here's the stack trace from the runtime error:
Exception[com.bea.p13n.appflow.exception.ProcessingException: Retreived a
null PortalState object from the PortalRequest.] at
com.bea.portal.appflow.processor.PostProcessor.process(PostProcessor.java:92
) at
com.bea.portal.appflow.processor.AbstractPortalProcessor.process(AbstractPor
talProcessor.java:104) at
com.bea.p13n.appflow.webflow.internal.IPProcessor.process(IPProcessor.java:1
06) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processTarget(Webf
lowExecutorImpl.java:1217) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:730) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:745) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
est(WebflowExecutorImpl.java:530) at
com.bea.portal.appflow.PortalAppflowHelper.invokeWebflow(PortalAppflowHelper
.java:166) at
com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
bflowServlet.java:128) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242) at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:341) at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721) at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:251) at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:115) at
jsp_servlet.__index._jspService(index.jsp:3) at
weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242) at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5360) at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721) at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043) at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2468) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152) at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
and in the command window where startPortal.bat was executed we have this:
<2002-okt-16 15:10:34 CEST> <Error> <PortalAppflow> <415403> <Could not
retrieve the UserPortalState [user identity = null, portal identifier =
portalApp/banzukeWebApp, page identifier = null] from the PortalManager.
Exception[com.bea.portal.manager.internal.persistence.PersistenceException:
No rows returned.]
at
com.bea.portal.manager.internal.persistence.jdbc.JdbcPersonalizationManager.
loadPortalP13nEntry(JdbcPersonalizationManager.java:222)
at
com.bea.portal.manager.internal.persistence.jdbc.CachingPersonalizationManag
er.loadPortalP13nEntry(CachingPersonalizationManager.java:141)
at
com.bea.portal.manager.internal.persistence.jdbc.KeyCachingPersistenceManage
r.loadPortalPersonalization(KeyCachingPersistenceManager.java:250)
at
com.bea.portal.manager.internal.persistence.AbstractPersistenceManager.getPo
rtalPersonalization(AbstractPersistenceManager.java:283)
at
com.bea.portal.manager.internal.persistence.jdbc.ValidatingPersistenceManage
r.getPortalPersonalization(ValidatingPersistenceManager.java:63)
at
com.bea.portal.manager.internal.persistence.jdbc.UserCachingPersistenceManag
er.getPortalPersonalization(UserCachingPersistenceManager.java:126)
at
com.bea.portal.manager.internal.persistence.AbstractPersistenceManager.getPo
rtalPersonalization(AbstractPersistenceManager.java:245)
at
com.bea.portal.manager.internal.PortalManagerDelegateImpl.getMutablePortalPe
rsonalization(PortalManagerDelegateImpl.java:213)
at
com.bea.portal.manager.internal.PortalManagerDelegateImpl.getPortalPersonali
zation(PortalManagerDelegateImpl.java:187)
at
com.bea.portal.manager.internal.PortalManagerDelegateImpl.getUserPortalState
(PortalManagerDelegateImpl.java:166)
at
com.bea.portal.manager.ejb.internal.PortalManagerBean.getUserPortalState(Por
talManagerBean.java:70)
at
com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_EOImpl.getUserP
ortalState(PortalManagerBean_w6xny9_EOImpl.java:262)
at
com.bea.portal.appflow.internal.PortalRequestImpl.getPortalState(PortalReque
stImpl.java:148)
at
com.bea.portal.appflow.processor.PostProcessor.process(PostProcessor.java:88
at
com.bea.portal.appflow.processor.AbstractPortalProcessor.process(AbstractPor
talProcessor.java:104)
at
com.bea.p13n.appflow.webflow.internal.IPProcessor.process(IPProcessor.java:1
06)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processTarget(Webf
lowExecutorImpl.java:1217)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:730)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:745)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
est(WebflowExecutorImpl.java:530)
at
com.bea.portal.appflow.PortalAppflowHelper.invokeWebflow(PortalAppflowHelper
.java:166)
at
com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
bflowServlet.java:128)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:341)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:251)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:115)
at jsp_servlet.__index._jspService(index.jsp:3)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5360)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2468)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Anybody got any ideas on what's happening, and why?
Thanks in advance.
/torkelYes, the server that messed up the PORTAL_P13N table by deleting and
inserting a row sent out a Cache.flush() that was not received by the other
servers hitting the db because they were not in a cluster with the first
machine.
Ture Hoefner
BEA Systems, Inc.
www.bea.com
<Will Young wyoungATsapient.com> wrote in message
news:[email protected]...
>
Hi Torkel,
I actually thought I responded to this thread earlier...i guess my postdid not
show up?
Anyhoo...we saw this problem a lot as well. We realized that the problemwas
caused by multiple developers (and their individual servers) pointing tothe same
Weblogic schema. When one server was up and running by itself...noproblem.
Once another server started, it changes the values in one of the PORTAL_*tables.
This messes up the first server.
We had to make sure that individual developers each had their own weblogicschema's
to sync to.
Will Young
"Ture Hoefner" <replyto@newsgroup> wrote:
Hello Torkel,
I traced the stack trace from your server console and I believe that
you
are getting the PersistencException with <Could not retrieve the
UserPortalState...> because there is an invalid key for the PORTAL_P13N
table in your key cache, "Portal P13n Key Cache".
This is a known issue that was fixed with CR083320 in SP1 for Portal
7.0
that sounds like your problem. The workaround, until you can install
SP1,
is to flush or disable the "Portal P13n Key Cache". This can be done
via
the WebLogic Console (I'll put instructions at the end of this posting).
Here is what your stack trace tells me:
The main message from your command window starts with
[...PortalPersistenceException: No rows returned]
I traced the ...JdbcPersonalizationManager.loadPortalP13nEntry(line 222)
to
verify that this was caused by an empty ResultSet from a query of the
PORTAL_P13N table using the primary key, PORTAL_P13N_ID.
I traced CachingPersonalizationManager.loadPortalP13nEntry(line 141)
to
verify that the key we use to compare to the PORTAL_P13N_ID primary key
is
obtained from the "Portal P13n Key Cache" (yes, those are spaces in the
name). This is a com.bea.p13n.cache.Cache.
Here is why I think this could be the same problem we solved with
CR083320:
The key that we used to cache the PORTAL_P13N_ID in the "Portal P13n
Key
Cache" is not Serializable. In some situations (like a clustered
configuration) this can cause the "Portal P13n Key Cache" to becomestale.
When a stale PORTAL_P13N_ID is used to look up a row in the PORTAL_P13N
table, it is not there anymore and you can get your exception.
However, it is possible that another part of the Portal framework is
deleting the row in your PORTAL_P13N table without updating the "Portal
P13n
Key Cache". If that is the case, then you may see the problem after
you
install SP1. If that is the case, then disable the cache as a temporary
workaround and let me know.
Here are the instructions for setting up the MBean to manage the "Portal
P13n Key Cache" (yes, those are spaces in the name)...
Add an entry for this cache in the META-INF/application-config.xml
deployment descriptor for your J2EE
application. Add it to the <CacheManager> element with the other caches
like this:
<CacheManager
Name="CacheManager"
>
<Cache
Enabled="false"
MaxEntries="100"
Name="Portal P13n Key Cache"
TimeToLive="3600000"
/>
</CacheManager>
Once you have created an entry for this cache, you can manage it through
the
console with the other caches, using the "Service Configuration"extension
under your J2EE app deployment.
"Torkel Skogman" <[email protected]> wrote in message
news:[email protected]...
Hi,
we're using WLP 7.0 on Windows 2000 machines against an Oracle 8.1.6
database. From time to time we get an error "Retreived a null
PortalState
object from the PortalRequest" which forces us to restart the(weblogic)
server.
Here's the stack trace from the runtime error:
Exception[com.bea.p13n.appflow.exception.ProcessingException: Retreived
a> >> null PortalState object from the PortalRequest. at
com.bea.portal.appflow.processor.PostProcessor.process(PostProcessor.java:92
) at
com.bea.portal.appflow.processor.AbstractPortalProcessor.process(AbstractPor
talProcessor.java:104) at
com.bea.p13n.appflow.webflow.internal.IPProcessor.process(IPProcessor.java:1
06) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processTarget(Webf
lowExecutorImpl.java:1217) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:730) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:745) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668) at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
est(WebflowExecutorImpl.java:530) at
com.bea.portal.appflow.PortalAppflowHelper.invokeWebflow(PortalAppflowHelper
.java:166) at
com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
bflowServlet.java:128) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242) at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:341) at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721) at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:251) at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:115)at
jsp_servlet.__index._jspService(index.jsp:3) at
weblogic.servlet.jsp.JspBase.service(JspBase.java:27) at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332) at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242) at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5360) at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721) at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043) at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2468) at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)at
weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
and in the command window where startPortal.bat was executed we havethis:
<2002-okt-16 15:10:34 CEST> <Error> <PortalAppflow> <415403> <Couldnot
retrieve the UserPortalState [user identity = null, portal identifier
=> >> portalApp/banzukeWebApp, page identifier = null from the
PortalManager.
>>>
>
Exception[com.bea.portal.manager.internal.persistence.PersistenceException:
No rows returned.]
at
com.bea.portal.manager.internal.persistence.jdbc.JdbcPersonalizationManager.
loadPortalP13nEntry(JdbcPersonalizationManager.java:222)
at
com.bea.portal.manager.internal.persistence.jdbc.CachingPersonalizationManag
er.loadPortalP13nEntry(CachingPersonalizationManager.java:141)
at
com.bea.portal.manager.internal.persistence.jdbc.KeyCachingPersistenceManage
r.loadPortalPersonalization(KeyCachingPersistenceManager.java:250)
at
com.bea.portal.manager.internal.persistence.AbstractPersistenceManager.getPo
rtalPersonalization(AbstractPersistenceManager.java:283)
at
com.bea.portal.manager.internal.persistence.jdbc.ValidatingPersistenceManage
r.getPortalPersonalization(ValidatingPersistenceManager.java:63)
at
com.bea.portal.manager.internal.persistence.jdbc.UserCachingPersistenceManag
er.getPortalPersonalization(UserCachingPersistenceManager.java:126)
at
com.bea.portal.manager.internal.persistence.AbstractPersistenceManager.getPo
rtalPersonalization(AbstractPersistenceManager.java:245)
at
com.bea.portal.manager.internal.PortalManagerDelegateImpl.getMutablePortalPe
rsonalization(PortalManagerDelegateImpl.java:213)
at
com.bea.portal.manager.internal.PortalManagerDelegateImpl.getPortalPersonali
zation(PortalManagerDelegateImpl.java:187)
at
com.bea.portal.manager.internal.PortalManagerDelegateImpl.getUserPortalState
(PortalManagerDelegateImpl.java:166)
at
com.bea.portal.manager.ejb.internal.PortalManagerBean.getUserPortalState(Por
talManagerBean.java:70)
at
com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_EOImpl.getUserP
ortalState(PortalManagerBean_w6xny9_EOImpl.java:262)
at
com.bea.portal.appflow.internal.PortalRequestImpl.getPortalState(PortalReque
stImpl.java:148)
at
com.bea.portal.appflow.processor.PostProcessor.process(PostProcessor.java:88
at
com.bea.portal.appflow.processor.AbstractPortalProcessor.process(AbstractPor
talProcessor.java:104)
at
com.bea.p13n.appflow.webflow.internal.IPProcessor.process(IPProcessor.java:1
06)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processTarget(Webf
lowExecutorImpl.java:1217)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:730)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNode(WebflowEx
ecutorImpl.java:745)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.gotoNextNode(Webfl
owExecutorImpl.java:668)
at
com.bea.p13n.appflow.webflow.internal.WebflowExecutorImpl.processWebflowRequ
est(WebflowExecutorImpl.java:530)
at
com.bea.portal.appflow.PortalAppflowHelper.invokeWebflow(PortalAppflowHelper
.java:166)
at
com.bea.portal.appflow.servlets.internal.PortalWebflowServlet.doGet(PortalWe
bflowServlet.java:128)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.RequestDispatcherImpl$ForwardAction.run(RequestDis
patcherImpl.java:341)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
at
weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImp
l.java:251)
at
weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:115)
at jsp_servlet.__index._jspService(index.jsp:3)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
at
weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(Servle
tStubImpl.java:945)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:332)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:242)
at
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(W
ebAppServletContext.java:5360)
at
weblogic.security.service.SecurityServiceManager.runAs(SecurityServiceManage
r.java:721)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:3043)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2468)
atweblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
Anybody got any ideas on what's happening, and why?
Thanks in advance.
/torkel -
Nested Objects for a Data Provider in a Data Grid, not displaying data
Hi, I have a datagrid and the dataprovider for this grid is the result of a RPC call. The result set has the following structure:
Array
[0]->Object #1
[one] => 1
[two] => 1
[three] => Object #2
[apple1] = > Object #3
[color] => red
[rate] => 20
[apple2] => Object #4 ( the number of apples is dynamic, apple3,apple4 .. and so on)
[color] => blue
[rate] => 100
and so on ... so the number of apple objects will vary since its
dynamic. How do I display this data in a datagrid ??? Please help!! I
saw many articles on creating the "Nested DataGridColumn " classes...
like this :
http://active.tutsplus.com/tutorials/flex/working-with-the-flex-datagrid-and-nested-data-structures/
it helps, but the problem with my data is that some of the indexes (like apple1,apple2 etc) are dynamic.
Also, my flex application is a desktop application (in case that matters). Just to see whats going on, I
dropped all the nested arrays and used a plain simple one-dimensional array. Even in this case the data
isnt getting displayed.
I dont know what im doin wrong. the datafields, labels etc e'thing is correct. I even debugged and
im getting the result on the flex side. whats going on ?No luck ... i converted the result set to a List, and even tried with an iList. Same problem - nothing gets displayed...
I have no idea whats happening ....
This is my code :
[Bindable]private var privilegesArray:ArrayCollection = new ArrayCollection();
public function init():void{ // called on creation complete
RO.getPrivileges.addEventListener(ResultEvent.RESULT,handleGetPrivileges);
RO.getPrivileges();
protected function handleGetPrivileges(event:ResultEvent):void{
privilegesArray = event.result as ArrayCollection;
<mx:DataGrid id="privilegesDG" dataProvider="{privilegesArray}" width="100%">
<mx:columns>
<mx:DataGridColumn headerText="Name" dataField="name" />
<mx:DataGridColumn headerText="Alias" dataField="alias" />
</mx:columns>
</mx:DataGrid>
The data that gets returned is smthing like this : (for the moment I have removed all the nested objects and arrays and returning just a simple plain array)
Array => [0] => Object #1
[name] => some name
[alias] => alias -
Using Nested Object Properties as DataGrid dataField
I am populating a DataGrid with an ArrayCollection of
Objects. Each of those Objects has a property that is itself an
Object. I want to use a property of the second (or "nested") Object
as a dataField for one of my columns.
Any idea how to make this work? Would a custom item render be
the only way?Using the labelFunction property of the DataGridColumn would
be enough:
<mx:DataGrid width="100%" height="100%"
dataProvider="{myAC}">
<mx:columns>
<mx:DataGridColumn dataField="myProperty1" />
<mx:DataGridColumn dataField="myProperty2" />
<mx:DataGridColumn
labelFunction="myOwnLabel" />
</mx:columns>
</mx:DataGrid>
function myOwnLabel(item:Object,
column:DataGridColumn):String
return item.myProperty;
The function must have that signature in order to work, where
item is an instance of the objects in your dataProvider and column
is the DataGridColumn calling the function.
Maybe you are looking for
-
When I Drag Loops To The Loop Browser...
All my loops are in the folder /Library/Application Support/GarageBand/Apple Loops. I dragged them over from the finder to the loop browser in GB, and it looks like it copied all of them to another folder user/Library/Audio/Apple Loops/User Loops/Gar
-
"Save as PDF" - pages truncated - whole right side missing
When using "Save as PDF", the resulting image has the right margins truncated. The right margins are cropped off so document is displayed in very large characters (although I'm in 80 %) and the whole right side of the page is non-existent. Problem oc
-
HT201343 Airplay Mirroring in Mac OS
Hi All, Am wondering why am not able to do a Airplay using My Macbook Pro 2010. Support team says its a hardware compatibility issue, however am able to use Google Chromecast from chrome browser for mirroring. Whats Apple Is doing ?
-
Cant log in to time capsule with windows vista computer
When i try to log in to the time capsule I keep getting an error message that wont let me log in. I turned the firewalls off and it still doesnt let me. Any help??
-
Why does my Powerbook system date reset?
Every so often the system date and time on my Powerbook G4 resets? I then get a warning from the OS stating that it has lost time? I thought OSX (Leopard) updated it's time and date upon boot?? Any ideas?