Problem with referencing nodes
Hey I am having an odd problem writing a program that uses a Stack to build an expression tree. I have the Stack class set up and my main so that I can locate operators and make a new Node with the operator and put it on the top of the stack, and do the same with the operands. However when I go to push the operator Node (i.e. assign the topOfStack field in my LLStack class to the node I pass) it loses the character in the operator field of my Node. Any idea as to why this happens? I can build the operand stack fine. Here are my classes:
public class LLStack {
private IntSLLNode topOfStack;
public LLStack(){
topOfStack=null;
public boolean isEmpty(){
return topOfStack==null;
public void push(IntSLLNode el){
topOfStack= new IntSLLNode(el, topOfStack);
public IntSLLNode pop(){
if(isEmpty())
return null;
else
IntSLLNode top=topOfStack;
topOfStack=topOfStack.next;
return top;
}main method
Scanner scanString = new Scanner(System.in);
System.out.println("Enter a postfix expression: ");
String inputString= scanString.nextLine();
LLStack operatorStack = new LLStack(); //create new stacks
LLStack treeStack = new LLStack();
for(int i=0;i<inputString.length();i++){
if(inputString.charAt(i)=='+'|inputString.charAt(i)=='*'|inputString.charAt(i)=='-'){
IntSLLNode optr= new IntSLLNode(inputString.charAt(i));
operatorStack.push(optr);
else
IntSLLNode opnd= new IntSLLNode(Integer.parseInt(Character.toString(inputString.charAt(i))));
treeStack.push(opnd);
}In other words...when I apply this line
topOfStack= new IntSLLNode(el, topOfStack);The data in the operator field in "el" does not get assigned to the same field in topOfStack. In Eclipse it shows it as blank. Any ideas why?
oaklandathletic wrote:
Fixed it.Funny how explaining a problem for others helps you to work out the solution yourself, isn't it?
Don't forget that if you decide on programming as a career.
Winston
Similar Messages
-
Data slice inconsistency problem with hierarchy nodes
Hi Experts,
We want to lock planning tables from function. We create the appropriate data slices but there are problems with (material group) hierarchy nodes.
If I give the node as input variable to the function it causes inconsistency in the data slice. If I choose and add this node to the lock in modeler, the problem is the same.
We are using the following variables to create a data slice:
0VERSION
0VTYTYPE
0COMP_CODE
ZGRMAT (developed material group)
Z_YEARCR (developed yera created)
The problem also exist if I set an another type of node e.g. destination country (0RECIPCNTRY) instead of material group.
For me, the problem seems to be generic.
Do you have any idea?
Many thanks in advance
PeterThere is a note related to this proble:
Note 1070608 - Lowflag field is not valid
The implementation of this note resolves the problem.
Peter -
Problem with filling nodes of a context with data
hi,
i've got the following problem with filling a controller context:
the context of the controller looks like:
Context
|-Node1 0..n singleton
|-Subnode1 0..n singleton
| |-SubVal1.1
| |-SubVal1.2
|-Subnode2 0..n singleton
| |-Subval2.1
| |-Subval2.2
|-Val1.1
|-Val1.2
that means every Element of Node1 should have its own Subnode-Elements & Val1-Values
in wdDoInit() of the controller I fill the context like this:
Collection Node1, SubNode1, SubNode2
for (Iterator iter = Node1.iterator(); iter.hasNext;) {
newNode1NodeElement = wdContext.createNode1Element();
newNode1NodeElement.set... //setting the values
wdContext.nodeNode1().addElement(newNode1NodeElement);
for (Iterator iter2=Subnode1.iterator(); iter2.hasNext;) {
newSubnode1NodeElement = wdContext.createSubnode1Element();
newSubNode1NodeElement.set... // setting the SubVal1.x
wdContext.nodeSubnode1.addElement(newSubnode1NodeElement);
for (Iterator iter3=SubNode2.iterator(); iter3.hasNext;) {
newSubnode2NodeElement = wdContext.createSubnode2Element();
newSubNode2NodeElement.set... // setting the SubVal2.x
wdContext.nodeSubnode2.addElement(newSubnode2NodeElement);
i've got the impression, that <b>all</b> my SubNodes are filled in the <b>first</b> Node1-Element. is there an error in the code above? because in the first place, i see every values in the first Element of Node1-views and if i navigate to the next Element of Node1, every views are empty.
for every Node (Node1, Subnode1, Subnode2) i've got an own view, that maps its context to the corresponding Node of the controller context, e.g for the SubNode1-View:
Context Context
| ....
|- ViewNode ---> ..|- Subnode1
|- SubVal1.1 ---> .. |-SubVal1.1
|- SubVal1.2 ---> .. |-SubVal1.2
in these views, i navigate through the nodes via
wdContext.nodeViewNode().move...()
in the SubNode1-View i see the SubVal1.1, SubVal1.2 (that's what i want) <b>and</b> additional SubVal2.1, SubVal2.2 (that's what I don't want...)
kind regards, achim
ps: i've studied the Master/Detail-Tutorial and i think the choice for cardinality 0..n and type singleton is correct in my case.hmm, let's look at the code:
for (Iteration Node1) {
newNode1NodeElement = wdContext.createNode1Element();
wdContext.nodeNode1().addElement(newNode1NodeElement);
for (Iteration SubNode1) {
newSubNode1NodeElement = wdContext.createSubNodeXElement();
newNode1NodeElement.nodeSubNode1().addElement(newSubNode1NodeElement);
for (Iteration SubNode1.1) {
newSubNode1.1NodeElement = <b>wdContext</b>.createSubNode1.1Element();
newSubNode1NodeElement.nodeSubNode1.1.addElement(newSubNode1.1NodeElement);
for (Iteration SubNode2) {
newSubNode2NodeElement = wdContext.createSubNode2Element();
newNode1NodeElement.nodeSubNode2.addElement(newSubNode2NodeElement);
is there an error in creating the SubNode1.1-Node (bold line)?
if the code is correct, perhaps it's only a viewing problem:
i use views that point on every node and display the values in that node. if i move in the view for Node1 to another node, the values for SubNode1 point to the correct values too, but the values for SubNode1.1 still stay on the old values. is the move of a grandfather node not correctly propagated to his first child?
kr, achim -
I have problems with autom. discover of nodes.The services Man.server and agent are started, but i get
the errormsg:Discovery failed:VNI-4009: Cannot contact agent on the node.
Can someone help me.
Thanks.what os are you running?
on my linux box, what i did was to delete *.q and services.ora from $ORACLE_HOME/network/agent then manually put in my instance in tnsnames.ora using the example used in http://www.mike-devlin.com/oracle/tnsnames_ora.htm. i made sure that the instance was up then ran lsnrctl start and agentctl start. OMS was able to discover my database automatically after that.
i do have a feeling that you are using Win2k/XP, but the files i mentioned can be located in the same directory. instead of lsnrctl start and agentctl start, you can go to Administrative Tools>Sevices and start OracleOra92TNSListener and OracleOra92Agent
i would recommend, however, trying to use netca when recreating the tnsnames.ora. it just didn't work with mine so i had to do it manually. -
Problem with the nodes in Oracle Portal using JPDK Portlets
Here in Production environment we have 2 different Portal Servers
Even if logged in with the node 'b' then also the images path showing path from node 'a' only.
Note:
The thing is both the Portal servers are sharing the common portal repository.
We are using JPDK Portlets with Oracle AppserverDoes anyone know how to modify an existing report with sub labels within the main report? I am trying to resize one of the labels.
O'Neil -
Problem with childs nodes and automatic key mapping in a Data Object
Hi experts!
I'm doing the service order tutorial from the mobile help at [this link|http://help.sap.com/saphelp_nwmobile71/helpdata/en/21/9b5b924c3b434fba4767731794b029/frameset.htm] and I have a problem...
In the topic "Modeling the Equipment Data Object", says you have to mark the "Automatic Key Mapping" checkbox. So when I had to create a third child node ( the location node ) the system raised an exception with the message "Deselect automatic key mapping flag for more than two-level nodes". I'm trying deselecting the flag and creating the location node, but when I want mark again the automatic key mapping flag, this is disabled.
What can I do to solve this and create the three child nodes with the flag marked? It's a configuration thing?
Any help it's very welcome. Thanks in advance.
Best regards,
Simon.The thing is: Its not allowed to use automatic keymapping if you have more than two levels. This is why the message showed up, and this is why its been disabled.
What automatic keymapping does: Figures out automatically which child node belongs to which parent (by guessing from the field name and type, which fields in the child correspond to which key fields of the parent).
On three levels, this becomes more complicated => Its disabled.
How to do keymapping yourself instead of having the DOE do it automatically: Do 'Explicit keymapping' from each child to its parent. Explicit keymapping is done by clicking on the corresponding menu button in the child node. Here you need to associate child node fields (they need not be key fields of the child, but they are allowed to be that as well) to each of its parent nodes key fields (so that each child can be associated to its parent).
Cheers -
Oracle 10gR2 RAC EE 10.2.0.5 problem with one node.
Hi, I have an Oracle Rac 10gR2 10.2.0.5 EE on SLES 10 on ibm ppc. My problem is that in crs don't appear that database is start in one instance. However the database is start when I use srvctl or sqlplus
crsctl query crs softwareversion
CRS active version on the cluster is [10.2.0.5.0]
crsctl query crs activeversion
CRS active version on the cluster is [10.2.0.5.0]
oracle@agripa:/u01/oracle/app/product/102_64/crs/bin> ./srvctl config database
ELIO3
oracle@agripa:/u01/oracle/app/product/102_64/crs/bin> ./srvctl status database -d ELIO3
La instancia ELIO32 se está ejecutando en el nodo julia
La instancia ELIO31 no se está ejecutando en el nodo agripa
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_stat -t
Nombre Tipo Destino Estado Host
ora....31.inst application ONLINE OFFLINE
ora....32.inst application ONLINE ONLINE julia
ora.ELIO3.db application ONLINE ONLINE julia
ora....PA.lsnr application ONLINE OFFLINE
ora....PA.lsnr application ONLINE OFFLINE
ora.agripa.gsd application ONLINE OFFLINE
ora.agripa.ons application ONLINE OFFLINE
ora.agripa.vip application ONLINE ONLINE agripa
ora....IA.lsnr application ONLINE ONLINE julia
ora.julia.gsd application ONLINE ONLINE julia
ora.julia.ons application ONLINE ONLINE julia
ora.julia.vip application ONLINE ONLINE julia
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> ./srvctl start instance -d ELIO3 -i ELIO31
PRKP-1001 : Error al iniciar la instancia ELIO31 en el nodo agripaThis command show an error, however the database is up.
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mié Sep 26 09:32:25 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Conectado a:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL> select * from v$active_instances;
INST_NUMBER INST_NAME
2 julia:ELIO32
4 agripa:ELIO31
SQL>But crs, don't show it.
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_stat -t
Nombre Tipo Destino Estado Host
ora....31.inst application ONLINE OFFLINE
ora....32.inst application ONLINE ONLINE julia
ora.ELIO3.db application ONLINE ONLINE julia
ora....PA.lsnr application ONLINE OFFLINE
ora....PA.lsnr application ONLINE OFFLINE
ora.agripa.gsd application ONLINE OFFLINE
ora.agripa.ons application ONLINE OFFLINE
ora.agripa.vip application ONLINE ONLINE agripa
ora....IA.lsnr application ONLINE ONLINE julia
ora.julia.gsd application ONLINE ONLINE julia
ora.julia.ons application ONLINE ONLINE julia
ora.julia.vip application ONLINE ONLINE juliaSome logs...
oracle@agripa:/u01/oracle/app/product/102_64/app/log/agripa/racg> cat ora.ELIO3.ELIO31.inst.log
2012-09-26 09:35:45.108: [ COMMCRS][53473856]clsc_connect: (0x40002a0a6c0) no listener at (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:36:15.150: [ RACG][173648] [2346][173648][ora.ELIO3.ELIO31.inst]: end for resource = ora.ELIO3.ELIO31.inst, action = rundetach, status = -1, time = 300.600s
agripa:/u01/oracle/app/product/102_64/crs/bin # ls -ltrach /var/tmp/.oracle/
total 512
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sagripaDBG_CSSD
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sOracle_CSS_LclLstnr_crs_3
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sOCSSD_LL_agripa_crs
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sagripaDBG_EVMD
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sCagripa_crs_evm
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 08:28 sAagripa_crs_evm
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 09:46 s#3633.2
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 09:46 s#3633.1
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 10:00 s#11308.1
srwxrwxrwx 1 oracle oinstall 0 2012-09-24 10:03 s#11308.2
drwxrwxrwt 8 root root 232 2012-09-26 09:24 ..
srwxrwxrwx 1 oracle oinstall 0 2012-09-26 09:30 sora_racg_ELIO3_agripa
srwxrwxrwx 1 oracle oinstall 0 2012-09-26 09:35 sSYSTEM.evm.acceptor.auth
srwxrwxrwx 1 root root 0 2012-09-26 09:35 sagripaDBG_CRSD
srwxrwxrwx 1 root root 0 2012-09-26 09:40 sCRSD_UI_SOCKET
srwxrwxrwx 1 root root 0 2012-09-26 09:45 sora_crsqs
srwxrwxrwx 1 root root 0 2012-09-26 09:45 sprocr_local_conn_0_PROC
srwxrwxrwx 1 oracle oinstall 0 2012-09-26 09:45 sOCSSD_LL_agripa_
drwxrwxrwt 2 root root 640 2012-09-26 09:45 .
oracle@agripa:/u01/oracle/app/product/102_64/app/log/agripa/racg> cat imon_ELIO3.log
2012-09-26 09:30:41.047: [ RACG][173648] [1100][173648][ora.ELIO3.ELIO31.inst]: racgimon started
2012-09-26 09:31:06.174: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]:
SQL*Plus: Release 10.2.0.5.0 - Production on Wed Sep 26 09:30:42 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Enter user-name: Connected to an idle instance.
SQL> ORACLE instance started.
Total System Global Area 8589934592 bytes
2012-09-26 09:31:06.174: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: Fixed Size 2109992 bytes
Variable Size 1358958040 bytes
Database Buffers 7214202880 bytes
Redo Buffers 14663680 bytes
Base de datos montada.
Base de datos abierta.
2012-09-26 09:31:06.174: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: SQL> Desconectado de Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
2012-09-26 09:31:06.404: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcexecut: env _USR_ORA_PFILE=/u01/oracle/app/product/102_64/crs/racg/tmp/ora.ELIO3.ELIO31.inst.ora
2012-09-26 09:31:06.404: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcexecut: cmd = /u01/oracle/app/product/102_64/app/bin/racgeut -e _USR_ORA_DEBUG=0 -e ORACLE_SID=ELIO31 540 /u01/oracle/app/product/102_64/app/bin/racgmdb -q
2012-09-26 09:31:06.404: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcexecut: rc = 3, time = 0.230s
2012-09-26 09:31:07.196: [ OCRMSG][70660672]prom_rpc: CLSC send failure..ret code 11
2012-09-26 09:31:07.196: [ OCRMSG][70660672]prom_rpc: possible OCR retry scenario
2012-09-26 09:31:07.254: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #0
2012-09-26 09:31:07.528: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:07.584: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #1
2012-09-26 09:31:07.847: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:07.904: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #2
2012-09-26 09:31:08.178: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:08.235: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #3
2012-09-26 09:31:08.488: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:08.544: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #4
2012-09-26 09:31:08.808: [ OCRCLI][70660672]oac_reconnect_server: Could not connect to server. clsc ret 9
2012-09-26 09:31:08.865: [ OCRAPI][70660672]procr_open: Node Failure. Attempting retry #5
2012-09-26 09:31:08.971: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcsetenvvar: set env var 'ORACLE_CONFIG_HOME' to be '/u01/oracle/app/product/102_64/crs/'
2012-09-26 09:31:09.767: [ RACG][70660672] [1100][70660672][ora.ELIO3.ELIO31.inst]: clsrcqryapi: crs_qstat error
2012-09-26 09:36:14.709: [ OCRMSG][148804160]prom_rpc: CLSC send failure..ret code 11
2012-09-26 09:36:14.709: [ OCRMSG][148804160]prom_rpc: possible OCR retry scenario
2012-09-26 09:36:14.768: [ OCRAPI][148804160]procr_open: Node Failure. Attempting retry #0
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_getperm ora.ELIO3.ELIO32.inst
Nombre: ora.ELIO3.ELIO32.inst
owner:oracle:rwx,pgrp:oinstall:rwx,other::r--,
agripa:/u01/oracle/app/product/102_64/crs/bin # ./crs_getperm ora.ELIO3.ELIO31.inst
Nombre: ora.ELIO3.ELIO31.inst
owner:oracle:rwx,pgrp:oinstall:rwx,other::r--,I try to stop instance with srvctl but instance don't stop.
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> ./srvctl stop instance -d ELIO3 -i ELIO31
oracle@agripa:/u01/oracle/app/product/102_64/app/bin> sqlplus / as sysdba
SQL*Plus: Release 10.2.0.5.0 - Production on Mié Sep 26 09:42:24 2012
Copyright (c) 1982, 2010, Oracle. All Rights Reserved.
Conectado a:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
SQL>How can I fix it?
How can I do to srvctl works fine and crs show that database is start??
Thanks you very much!!!My database in another node (julia) was started with sqlplus
sqlplus / as sysdba
startup open;The crsd.log appears the follow
2012-09-24 11:36:56.798: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-24 11:36:56.798: [ CRSMAIN][363782720]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-24 11:36:56.798: [ CRSMAIN][365879872]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:30:40.776: [ CRSRES][380703296]0startRunnable: setting CLI values
2012-09-26 09:30:40.814: [ CRSRES][380703296]0Attempting to start `ora.ELIO3.ELIO31.inst` on member `agripa`
2012-09-26 09:30:54.931: [ default][174064][ENTER]0
Oracle Database 10g CRS Release 10.2.0.5.0 Production Copyright 1996, 2004, Oracle. All rights reserved
2012-09-26 09:30:54.931: [ default][174064]0CRS Daemon Starting
2012-09-26 09:30:54.932: [ CRSMAIN][174064]0Checking the OCR device
2012-09-26 09:30:54.935: [ CRSMAIN][174064]0Connecting to the CSS Daemon
2012-09-26 09:30:55.238: [ CLSVER][174064]0Active Version from OCR:10.2.0.5.0
2012-09-26 09:30:55.238: [ CLSVER][174064]0Active Version and Software Version are same
2012-09-26 09:30:55.238: [ CRSMAIN][174064]0Initializing OCR
2012-09-26 09:30:55.254: [ OCRRAW][174064]proprioo: for disk 0 (/u01/oracle/1020_64/voting1/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:30:55.254: [ OCRRAW][174064]proprioo: for disk 1 (/u01/oracle/1020_64/voting2/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:30:55.286: [ CRSD][174064]0ENV Logging level for Module: allcomp 0
2012-09-26 09:30:55.289: [ CRSD][174064]0ENV Logging level for Module: default 0
2012-09-26 09:30:55.292: [ CRSD][174064]0ENV Logging level for Module: COMMCRS 0
2012-09-26 09:30:55.294: [ CRSD][174064]0ENV Logging level for Module: COMMNS 0
2012-09-26 09:30:55.297: [ CRSD][174064]0ENV Logging level for Module: CRSUI 0
2012-09-26 09:30:55.300: [ CRSD][174064]0ENV Logging level for Module: CRSCOMM 0
2012-09-26 09:30:55.303: [ CRSD][174064]0ENV Logging level for Module: CRSRTI 0
2012-09-26 09:30:55.306: [ CRSD][174064]0ENV Logging level for Module: CRSMAIN 0
2012-09-26 09:30:55.309: [ CRSD][174064]0ENV Logging level for Module: CRSPLACE 0
2012-09-26 09:30:55.312: [ CRSD][174064]0ENV Logging level for Module: CRSAPP 0
2012-09-26 09:30:55.315: [ CRSD][174064]0ENV Logging level for Module: CRSRES 0
2012-09-26 09:30:55.317: [ CRSD][174064]0ENV Logging level for Module: CRSOCR 0
2012-09-26 09:30:55.320: [ CRSD][174064]0ENV Logging level for Module: CRSTIMER 0
2012-09-26 09:30:55.323: [ CRSD][174064]0ENV Logging level for Module: CRSEVT 0
2012-09-26 09:30:55.326: [ CRSD][174064]0ENV Logging level for Module: CRSD 0
2012-09-26 09:30:55.329: [ CRSD][174064]0ENV Logging level for Module: CLUCLS 0
2012-09-26 09:30:55.332: [ CRSD][174064]0ENV Logging level for Module: CLSVER 0
2012-09-26 09:30:55.335: [ CRSD][174064]0ENV Logging level for Module: OCRRAW 0
2012-09-26 09:30:55.338: [ CRSD][174064]0ENV Logging level for Module: OCROSD 0
2012-09-26 09:30:55.341: [ CRSD][174064]0ENV Logging level for Module: CSSCLNT 0
2012-09-26 09:30:55.343: [ CRSD][174064]0ENV Logging level for Module: OCRAPI 0
2012-09-26 09:30:55.346: [ CRSD][174064]0ENV Logging level for Module: OCRUTL 0
2012-09-26 09:30:55.349: [ CRSD][174064]0ENV Logging level for Module: OCRMSG 0
2012-09-26 09:30:55.352: [ CRSD][174064]0ENV Logging level for Module: OCRCLI 0
2012-09-26 09:30:55.355: [ CRSD][174064]0ENV Logging level for Module: OCRCAC 0
2012-09-26 09:30:55.358: [ CRSD][174064]0ENV Logging level for Module: OCRSRV 0
2012-09-26 09:30:55.360: [ CRSD][174064]0ENV Logging level for Module: OCRMAS 0
2012-09-26 09:30:55.360: [ CRSMAIN][174064]0Filename is /u01/oracle/app/product/102_64/crs/crs/init/agripa.pid
[ clsdmt][299713088]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=agripaDBG_CRSD))
2012-09-26 09:30:55.383: [ CRSMAIN][174064]0Using Authorizer location: /u01/oracle/app/product/102_64/crs/crs/auth/
2012-09-26 09:30:55.401: [ CRSMAIN][174064]0Initializing RTI
2012-09-26 09:30:55.436: [CRSTIMER][316899904]0Timer Thread Starting.
2012-09-26 09:30:55.438: [ CRSRES][174064]0Parameter SECURITY = 1, running in USER Mode
2012-09-26 09:30:55.438: [ CRSMAIN][174064]0Initializing EVMMgr
2012-09-26 09:30:55.526: [ CRSMAIN][174064]0CRSD locked during state recovery, please wait.
2012-09-26 09:30:56.003: [ CRSRES][174064]0ora.agripa.vip check shows ONLINE
2012-09-26 09:30:56.121: [ CRSMAIN][174064]0CRSD recovered, unlocked.
2012-09-26 09:30:56.122: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:30:56.122: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:30:56.130: [ CRSMAIN][174064]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
2012-09-26 09:30:56.133: [ CRSMAIN][174064]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=agripa-priv)(PORT=49896))
2012-09-26 09:30:56.133: [ CRSMAIN][174064]0Starting Threads
2012-09-26 09:30:56.134: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-26 09:30:56.134: [ CRSMAIN][362721856]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-26 09:30:56.134: [ CRSMAIN][364819008]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:31:08.582: [ default][174064][ENTER]0
Oracle Database 10g CRS Release 10.2.0.5.0 Production Copyright 1996, 2004, Oracle. All rights reserved
2012-09-26 09:31:08.582: [ default][174064]0CRS Daemon Starting
2012-09-26 09:31:08.583: [ CRSMAIN][174064]0Checking the OCR device
2012-09-26 09:31:08.585: [ CRSMAIN][174064]0Connecting to the CSS Daemon
2012-09-26 09:31:08.885: [ CLSVER][174064]0Active Version from OCR:10.2.0.5.0
2012-09-26 09:31:08.885: [ CLSVER][174064]0Active Version and Software Version are same
2012-09-26 09:31:08.885: [ CRSMAIN][174064]0Initializing OCR
2012-09-26 09:31:08.891: [ OCRRAW][174064]proprioo: for disk 0 (/u01/oracle/1020_64/voting1/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:31:08.891: [ OCRRAW][174064]proprioo: for disk 1 (/u01/oracle/1020_64/voting2/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:31:08.934: [ CRSD][174064]0ENV Logging level for Module: allcomp 0
2012-09-26 09:31:08.937: [ CRSD][174064]0ENV Logging level for Module: default 0
2012-09-26 09:31:08.940: [ CRSD][174064]0ENV Logging level for Module: COMMCRS 0
2012-09-26 09:31:08.942: [ CRSD][174064]0ENV Logging level for Module: COMMNS 0
2012-09-26 09:31:08.945: [ CRSD][174064]0ENV Logging level for Module: CRSUI 0
2012-09-26 09:31:08.948: [ CRSD][174064]0ENV Logging level for Module: CRSCOMM 0
2012-09-26 09:31:08.964: [ CRSD][174064]0ENV Logging level for Module: CRSRTI 0
2012-09-26 09:31:08.970: [ CRSD][174064]0ENV Logging level for Module: CRSMAIN 0
2012-09-26 09:31:08.973: [ CRSD][174064]0ENV Logging level for Module: CRSPLACE 0
2012-09-26 09:31:08.976: [ CRSD][174064]0ENV Logging level for Module: CRSAPP 0
2012-09-26 09:31:08.979: [ CRSD][174064]0ENV Logging level for Module: CRSRES 0
2012-09-26 09:31:08.982: [ CRSD][174064]0ENV Logging level for Module: CRSOCR 0
2012-09-26 09:31:08.985: [ CRSD][174064]0ENV Logging level for Module: CRSTIMER 0
2012-09-26 09:31:08.988: [ CRSD][174064]0ENV Logging level for Module: CRSEVT 0
2012-09-26 09:31:08.991: [ CRSD][174064]0ENV Logging level for Module: CRSD 0
2012-09-26 09:31:08.994: [ CRSD][174064]0ENV Logging level for Module: CLUCLS 0
2012-09-26 09:31:08.997: [ CRSD][174064]0ENV Logging level for Module: CLSVER 0
2012-09-26 09:31:08.999: [ CRSD][174064]0ENV Logging level for Module: OCRRAW 0
2012-09-26 09:31:09.002: [ CRSD][174064]0ENV Logging level for Module: OCROSD 0
2012-09-26 09:31:09.005: [ CRSD][174064]0ENV Logging level for Module: CSSCLNT 0
2012-09-26 09:31:09.008: [ CRSD][174064]0ENV Logging level for Module: OCRAPI 0
2012-09-26 09:31:09.011: [ CRSD][174064]0ENV Logging level for Module: OCRUTL 0
2012-09-26 09:31:09.014: [ CRSD][174064]0ENV Logging level for Module: OCRMSG 0
2012-09-26 09:31:09.017: [ CRSD][174064]0ENV Logging level for Module: OCRCLI 0
2012-09-26 09:31:09.020: [ CRSD][174064]0ENV Logging level for Module: OCRCAC 0
2012-09-26 09:31:09.023: [ CRSD][174064]0ENV Logging level for Module: OCRSRV 0
2012-09-26 09:31:09.026: [ CRSD][174064]0ENV Logging level for Module: OCRMAS 0
2012-09-26 09:31:09.026: [ CRSMAIN][174064]0Filename is /u01/oracle/app/product/102_64/crs/crs/init/agripa.pid
[ clsdmt][303034944]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=agripaDBG_CRSD))
2012-09-26 09:31:09.057: [ CRSMAIN][174064]0Using Authorizer location: /u01/oracle/app/product/102_64/crs/crs/auth/
2012-09-26 09:31:09.072: [ CRSMAIN][174064]0Initializing RTI
2012-09-26 09:31:09.094: [CRSTIMER][319812160]0Timer Thread Starting.
2012-09-26 09:31:09.096: [ CRSRES][174064]0Parameter SECURITY = 1, running in USER Mode
2012-09-26 09:31:09.096: [ CRSMAIN][174064]0Initializing EVMMgr
2012-09-26 09:31:09.198: [ CRSMAIN][174064]0CRSD locked during state recovery, please wait.
2012-09-26 09:31:09.728: [ CRSRES][174064]0ora.agripa.vip check shows ONLINE
2012-09-26 09:31:09.846: [ CRSMAIN][174064]0CRSD recovered, unlocked.
2012-09-26 09:31:09.847: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:31:09.847: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:31:09.855: [ CRSMAIN][174064]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
2012-09-26 09:31:09.858: [ CRSMAIN][174064]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=agripa-priv)(PORT=49896))
2012-09-26 09:31:09.859: [ CRSMAIN][174064]0Starting Threads
2012-09-26 09:31:09.859: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-26 09:31:09.859: [ CRSMAIN][364917312]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-26 09:31:09.859: [ CRSMAIN][367014464]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:35:44.874: [ default][174064][ENTER]0
Oracle Database 10g CRS Release 10.2.0.5.0 Production Copyright 1996, 2004, Oracle. All rights reserved
2012-09-26 09:35:44.874: [ default][174064]0CRS Daemon Starting
2012-09-26 09:35:44.875: [ CRSMAIN][174064]0Checking the OCR device
2012-09-26 09:35:44.877: [ CRSMAIN][174064]0Connecting to the CSS Daemon
2012-09-26 09:35:45.186: [ CLSVER][174064]0Active Version from OCR:10.2.0.5.0
2012-09-26 09:35:45.186: [ CLSVER][174064]0Active Version and Software Version are same
2012-09-26 09:35:45.186: [ CRSMAIN][174064]0Initializing OCR
2012-09-26 09:35:45.201: [ OCRRAW][174064]proprioo: for disk 0 (/u01/oracle/1020_64/voting1/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:35:45.202: [ OCRRAW][174064]proprioo: for disk 1 (/u01/oracle/1020_64/voting2/ocr), id match (1), my id set (1616921495,1352295226) total id sets (1), 1st set (1616921495,1352295226), 2nd set (0,0) my votes (1), total votes (2)
2012-09-26 09:35:45.236: [ CRSD][174064]0ENV Logging level for Module: allcomp 0
2012-09-26 09:35:45.242: [ CRSD][174064]0ENV Logging level for Module: default 0
2012-09-26 09:35:45.245: [ CRSD][174064]0ENV Logging level for Module: COMMCRS 0
2012-09-26 09:35:45.247: [ CRSD][174064]0ENV Logging level for Module: COMMNS 0
2012-09-26 09:35:45.250: [ CRSD][174064]0ENV Logging level for Module: CRSUI 0
2012-09-26 09:35:45.253: [ CRSD][174064]0ENV Logging level for Module: CRSCOMM 0
2012-09-26 09:35:45.256: [ CRSD][174064]0ENV Logging level for Module: CRSRTI 0
2012-09-26 09:35:45.259: [ CRSD][174064]0ENV Logging level for Module: CRSMAIN 0
2012-09-26 09:35:45.262: [ CRSD][174064]0ENV Logging level for Module: CRSPLACE 0
2012-09-26 09:35:45.265: [ CRSD][174064]0ENV Logging level for Module: CRSAPP 0
2012-09-26 09:35:45.269: [ CRSD][174064]0ENV Logging level for Module: CRSRES 0
2012-09-26 09:35:45.273: [ CRSD][174064]0ENV Logging level for Module: CRSOCR 0
2012-09-26 09:35:45.276: [ CRSD][174064]0ENV Logging level for Module: CRSTIMER 0
2012-09-26 09:35:45.279: [ CRSD][174064]0ENV Logging level for Module: CRSEVT 0
2012-09-26 09:35:45.282: [ CRSD][174064]0ENV Logging level for Module: CRSD 0
2012-09-26 09:35:45.285: [ CRSD][174064]0ENV Logging level for Module: CLUCLS 0
2012-09-26 09:35:45.288: [ CRSD][174064]0ENV Logging level for Module: CLSVER 0
2012-09-26 09:35:45.291: [ CRSD][174064]0ENV Logging level for Module: OCRRAW 0
2012-09-26 09:35:45.293: [ CRSD][174064]0ENV Logging level for Module: OCROSD 0
2012-09-26 09:35:45.297: [ CRSD][174064]0ENV Logging level for Module: CSSCLNT 0
2012-09-26 09:35:45.300: [ CRSD][174064]0ENV Logging level for Module: OCRAPI 0
2012-09-26 09:35:45.302: [ CRSD][174064]0ENV Logging level for Module: OCRUTL 0
2012-09-26 09:35:45.305: [ CRSD][174064]0ENV Logging level for Module: OCRMSG 0
2012-09-26 09:35:45.308: [ CRSD][174064]0ENV Logging level for Module: OCRCLI 0
2012-09-26 09:35:45.311: [ CRSD][174064]0ENV Logging level for Module: OCRCAC 0
2012-09-26 09:35:45.314: [ CRSD][174064]0ENV Logging level for Module: OCRSRV 0
2012-09-26 09:35:45.318: [ CRSD][174064]0ENV Logging level for Module: OCRMAS 0
2012-09-26 09:35:45.318: [ CRSMAIN][174064]0Filename is /u01/oracle/app/product/102_64/crs/crs/init/agripa.pid
[ clsdmt][303034944]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=agripaDBG_CRSD))
2012-09-26 09:35:45.341: [ CRSMAIN][174064]0Using Authorizer location: /u01/oracle/app/product/102_64/crs/crs/auth/
2012-09-26 09:35:45.361: [ CRSMAIN][174064]0Initializing RTI
2012-09-26 09:35:45.391: [CRSTIMER][319812160]0Timer Thread Starting.
2012-09-26 09:35:45.393: [ CRSRES][174064]0Parameter SECURITY = 1, running in USER Mode
2012-09-26 09:35:45.393: [ CRSMAIN][174064]0Initializing EVMMgr
2012-09-26 09:35:45.481: [ CRSMAIN][174064]0CRSD locked during state recovery, please wait.
2012-09-26 09:35:45.956: [ CRSRES][174064]0ora.agripa.vip check shows ONLINE
2012-09-26 09:35:46.097: [ CRSMAIN][174064]0CRSD recovered, unlocked.
2012-09-26 09:35:46.098: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:35:46.098: [ CRSMAIN][174064]0QS socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=ora_crsqs))
2012-09-26 09:35:46.105: [ CRSMAIN][174064]0CRSD UI socket on: (ADDRESS=(PROTOCOL=ipc)(KEY=CRSD_UI_SOCKET))
2012-09-26 09:35:46.109: [ CRSMAIN][174064]0E2E socket on: (ADDRESS=(PROTOCOL=tcp)(HOST=agripa-priv)(PORT=49896))
2012-09-26 09:35:46.109: [ CRSMAIN][174064]0Starting Threads
2012-09-26 09:35:46.109: [ CRSMAIN][174064]0CRS Daemon Started.
2012-09-26 09:35:46.109: [ CRSMAIN][364896832]0Starting runCommandServer for (UI = 1, E2E = 0). 0
2012-09-26 09:35:46.109: [ CRSMAIN][366993984]0Starting runCommandServer for (UI = 1, E2E = 0). 1
2012-09-26 09:36:09.889: [ CRSRES][381674048]0CRS-1002: Resource 'ora.ELIO3.db' is already running on member 'julia'
2012-09-26 09:47:41.288: [ CRSRES][379576896]0ora.ELIO3.ELIO31.inst target set to OFFLINE before stop action
2012-09-26 09:47:41.288: [ CRSRES][379576896]0StopResource: setting CLI values
2012-09-26 09:47:41.355: [ CRSRES][379576896]0Target set to OFFLINE for `ora.ELIO3.ELIO31.inst`
2012-09-26 09:47:42.266: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.
2012-09-26 09:47:43.278: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.
2012-09-26 09:47:44.286: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.
2012-09-26 09:47:45.298: [ CRSRES][379576896]0`ora.ELIO3.ELIO31.inst` is already OFFLINE.PD: Excuseme for the long text about crsd.log, but I don't know how can I attach a file.
Thanks you very much!!. -
Problem with referenced libraries (after flash 5.5 trial install/uninstall)
I've been using flash builder 4 & flash cs5 with on problems.
I unstalled flash 5.5 trial version to have a play around, then uninstalled it. I also changed the flex sdk version flash builder was using so I could export and test stageVideo.
Now when making Flash Professional Project in flash builder ( and selectiong and selecting the main fla), the referenced libraries are not imported to the project, and all old predicts ( which have referenced librares and used to work) are looking for swc's held in the 'Adobe Flash CS5.5' folder, and so none of the code hinting is working.
Help pleaseHi MoTor,
You would need to uninstall existing Flash Builder 4.5 on your machine and then install Flash Builder 4.6 in trial mode.
During installation, it doesn't accept the serial number of Master Collection. So, just install it in trial mode and make sure that the you select the same language as that of your Master Collection, during FB installation.
Now launch FB and it would then accept Master Collection CS 5.5 serial number.
http://kb2.adobe.com/cps/924/cpsid_92402.html is the related tech note.
Hope this helps.
Regards,
Anand -
Oracle VM 3.2.1 test setup - problems with OVS node evictions
Hi all
I am building a small test environment for Oracle VM with the following configuration
4 boxes, each 1 x AMD 6 core cpu + 32GB RAM + 2 x 1GB ethernet (10.30.32.n, 192.168.20.n networks - I only have 1x16 port GB switch, so all cabling is through the one switch - that may be part of the problem)
3 boxes are diskless, running Oracle VM Server from 8GB USB flash drive
1 Box is EL6.3 and set up with:
1x750GB with (LVM) partitions for /, /u01 (Oracle 11gR2SE + OVM Manager), swap, and a partition for the OVS pool
4x2TB drives, set up with LVM striping, and 4 LVs - 1 750GB for virtualbox and VMWare VMs, and 3 others for OVS storage repositories (each a bit over 2TB) - all ext4.
The OVS Pool and OVS Storage file systems are exported via NFS
VM server and VM manager installs all went smoothly. Servers and storage are discovered OK in the manager.
I created 2 networks - one on the 10.30.32 subnet for Server Management, Cluster Heartbeat and Live Migrate (also the public network for accessing the machines). The other on the 192.168.20 subnet for Storage and Virtual Machine.
Created storage pools, and presented to all the servers.
In creating the Server Pool, just took the default 120 for the cluster timeout
Now when I try to import an assembly, or a VM template, it gets so far, then then the server doing the actual job reboots.
My initial thought is that for whatever reason the NFS traffic involved in importing and writing - either network, or I/O on the NFS server - is swamping the cluster heartbeat traffic, and the node just fences itself
Just wondering if anyone has any ideas or suggestions, or can advise what further diagnostics or troubleshooting I can doI suspect it more to do with your storage than anything. Run your import again and sample your I/O performance from your NFS server during the import. Also, if you can... .create LACP bond on your NFS server. I don't know what kind of throughput you expect but remember. A single GB nic can only do a max of 125/MB a sec. That sounds rather good but take into consideration everything you're doing across your environment... its not a lot. I see well over 400 mb/sec network throughput at times on my storage. I run bonded 10GB nics.
Once you get your templates and such built you shouldn't experience that much NFS I/O. You should allocate enough memory to your guest as to avoid virtual disk paging on your NFS storage. -
Problem with Referenced Images
Hi all,
I have some documents that all follow the same structure.
doc1\doc1.book
\*.fm
\images\A.jpg
doc2\doc2.book
\*.fm
\images\A.jpg
In both documents, I have an imported image file that I want to be "images\A.jpg".
my doc2 directory would have been created by copying and renaming doc1 (because they all follow the same document template/format). But in doc2's .fm file, my referenced image file's path is "..\doc1\images\A.jpg", referencing to the original file.
I've tried renaming doc1\images\A.jpg to doc1\images\B.jpg, and opening the doc2 .fm, which then says it can't find "..\doc1\images\A.jpg" and asks me to replace it with another file. So, I use "images\A.jpg" (which is in the doc2 directory). That seems to work. But this seems to also change the link in the doc1 .fm file to point to "..\doc2\images\A.jpg".
So, the problem seems like both .fm files will always point to the same image file. I don't know how to disconnect these, so that they can work independently from each other. i.e. each doc directory (doc1 and doc2) is self-sufficient.
Any ideas?
Thanks in advance.
KevinKevin,
If I understand you correctly, you have created the doc1 folder, inside is the doc1.book, *.fm files, and an images folder. One of the *.fm files references the A.jpg image in the images folder.
Create the doc2 folder, then copy all the files and folders inside doc1 to inside doc2. Do this in Windows Explorer, NOT FrameMaker.
Rename the doc1.book inside the doc2 folder to doc2.book. Everything should be as you want it to be.
NOTE that if you open doc1/*.fm in FrameMaker and then save it as doc2/*.fm, then FrameMaker recalculates the path to A.jpg to point to the file doc1/images/A.jpg, because FrameMaker assumes you want to retain your links to the original image files. The difference from the procedure above is that you are doing the copying within FrameMaker, not within the Windows file system.
Van -
Problem with layer nodes adding brightness
Hi all,
I've having an interesting problem: When I add a layer node of the same piece of video - copy and paste to a multilayer or over node for rotoscoping - and go to look at it in the viewer, the image looks extremely washed out. It's like Shake is trying to blend the two images, and combine the color values. The resulting composite looks awful.
Has anyone had a problem similar to this? If so, how did you go about fixing it. I can't seem to find the preference files, and I couldn't find anything at apple's site.
Any help would be much appreciated!I looked at the autoalpha and clicked it, but the image still is brightened...I
I guess it might also help to explain a little of what I'm doing and how the problem is occuring. I'm creating a storm/tornado scene. My node tree has two copies of the background plate: one for a luma key for the sky removal and the other for the rotoscoped areas in the ground affected by the luma key(road, grass). The tornado and cloud cover are out of Lightwave and rendered with alpha channels.
When I fileIn the clouds and start my multilayer node, everything works great; but when I add the second plate that has the rotoscoped ground, that's when the image doubles in brightness.
It almost appears as though the multilayer node is multiplying the color values, rather than letting me create my composite. The same occurs using any of the Layer Nodes.
I exported my background plate from FCP as an TIFF image sequence for use with Syntheyes. I had thought to export a quicktime file as my background plate to see if Shake just doesn't like the TIFFs from FCP.
I appreciate the thoughts...maybe this info will help. -
Problem with Dynamic Node & UI Elements
Hi,
The scenario is to create an Questioaire.Since the number questions which I get from R/3 may vary, I have created the Dynamic Node which is mapped with Dynamic set of Radio button Group by index for options & Dynamic text view for displaying Questions.. A New Dynamic Node will be created for each set of Questions .The Number of questions displayed per page is controlled by the Static Counter Variable....
Now the issue is ,if i click back button the count will be initialized so again it needs to trigger the DoModifyView(). at that time It is arising an exception "Duplicate ID for view & Radio button ..." because while creating Dynamic node i used to have "i" value along the Creation of node name...
for(i=Count;i<i<wdContext.nodeQuestions().size();i++)
customnod=<b>nodeinfo.getChild("Questionaire"+i);</b>
if(customnod==null)
Its not possible to create a new node whenever i click the Back button.
At the same time i am not able to fetch the elements which had already created Dynamically...
How do i make the Next & back button work?
If anyone bring me the solution It would be more helpful to me.
Thanks in advance..
Regards,
MalarHi,
We can Loop through the Node Elements but how can we do Option Button Creation for each set of question Options?. At design time we can not have the radio buttons,because we do not know how many set of questions are available at the Backend. -
Problem With Referenced Array Loading
Hi. I'm working on the final lab for my java class at the moment, and I'm to create a program which reads a file containing transaction records, stores each record as an array element, and then prints various types of reports using the array of transactions. I've created a class called Transaction which stores all the data for each transaction, and the array used in my program is of type Transaction.
I'm not having any problems in writing the program, except there's something going wrong with my attempt to write a method to load the array. The method declaration is:
* Method to accept a file from the user and load its data into an array.
* Returns the number of elements added to the array.
public static int loadArray(Transaction[] transactionArray, int size) throws ExceptionNow, I'm under the impression (and my teacher confirmed this) that arrays are passed by reference. So I'm assuming that by creating an array in my main method, passing it into loadArray(), and changing the values within the method, all the data will be present in the array within main without having to explicitly return the loaded array.
However, as soon as I try to do anything with the loaded array, I get a NullPointerException. I opened up the debug mode, set a breakpoint in my main right after loadArray() is called, and it shows that every element in my array is null. I am at a loss as to why. If anyone can help me figure out why my reference array isn't staying updated as it's edited elsewhere, it would be greatly appreciated.
Here is my loadArray() code in case it would help, but there is no error in it's execution, as the same code directly in my main method works fine.
public static int loadArray(Transaction[] transactionArray, int size) throws Exception
int logicalSize = 0; // the number of transactions loaded into the array
int itemID; // the item ID involved in the transaction
int units; // the number of units in the transaction
double unitCost; // the cost of each unit in the transaction
char type; // the type of the transaction
String date; // the date of the transaction
String fileName; // the name of the user selected file
String record; // the current record in the file
Scanner file; // reads input from a user selected file
Scanner parse; // reads input from the file's current record
transactionArray = new Transaction[size]; // creates a new array for the new data
System.out.print("Please enter a file name: ");
fileName = input.nextLine();
file = new Scanner(new File(fileName));
record = file.nextLine(); // discards the initial line of headers
while(file.hasNext())
// grab the next record and parse all its data
record = file.nextLine();
parse = new Scanner(record).useDelimiter(",");
date = parse.next();
itemID = parse.nextInt();
type = parse.next().toUpperCase().charAt(0);
units = parse.nextInt();
unitCost = parse.nextDouble();
transactionArray[logicalSize] = new Transaction(date, itemID, type, units, unitCost); // loads the current transaction into the array
logicalSize++;
return logicalSize;
}Thanks!
Oh, I guess I should also add that the variable input is a global variable of type Scanner.
static Scanner input = new Scanner(System.in); // reads input from keyboardMessage was edited by:
Kristofer.WardNow, I'm under the impression (and my teacher confirmed this) that arrays are
passed by reference.Java passes references to arrays by value.
So I'm assuming that by creating an array in my main method, passing it into
loadArray(), and changing the values within the method, all the data will be present
in the array within main without having to explicitly return the loaded array.Bearing in mind my statement above, what really happens is that a reference to
the array you created is passed to loadArray() by value. What I mean by that
last bit is that your loadArray() is free to assign a reference to a completely
different array to its argument variable and the caller will not notice the change.
That's what's happening here:public static int loadArray(Transaction[] transactionArray, int size) throws Exception
// declarations of local variables
* The argument variable is now assigned a reference to a completely
* new array. When this function returns the variable the caller used to
* invoke this method will have exactly the same value it did before this
* method was invoked. Ie it will *still* refer to an array of nulls.
transactionArray = new Transaction[size];
// more stuff - that involves changing the contents of
// the newly created array, not the one the caller has
// a reference to.
return logicalSize;
} -
when i post the reports,i get the posting message as success but the distribution node status says not posted?
can someone help me?I have done the following and the problem has been resolved
It seems that your Default local node did not have the authentication option set. You have to set the Authentication option under Node definitions. Go to
PeopleTools >> Integration Broker > >Node Definitions and set the
Authentication Option from 'None' to 'Password'. After this restart the
application server. Also recheck the report node URL and URI host name
specified on the report node definition page. Apart from this also setup the
single signon. Go to PeopleTools->Security-> Security Objects -> Single
Signon and add an expiration time value and for the Message node name insert
your default local node. After saving all this restart your app
server, process scheduler and web server. -
Problem with referenced account locked
hi expert ,
i am installing Dialog instance on ECC 6.0 With SQL client.
i start the installation throught sapinst.exe
at the execute service i am getting this problem
Unable to get information about path
sapglobalhost\sapmnt using volume information operating system error message the reference account is currently blocked out and may not be loged on to.
please kindly replay me
thanksits a very bad idea to enable (unlock) the guest account on Windows.
Normaly the Windows Buildin User Everyone is associated with all authenticated (users with valid username/password combinations) users. That may be domain users or local users.
Unlocking the guest account will give unauthenticated users same access as the buildin user Everyone.
this is the best way to get an insecure system.
Installing client server configurations on Windows did need a domain configuration where a central resource (Domain Controler) takes control over domain wide resources like user accounts, domain members (computers) and domain groups.
you can try to run without domain but this is no real fun.
File access to a different computer will work if:
1. both computers are member of the same work group
2. the user account exists on both computers
3. the users password on both computers have the SAME password
As you may imagine it makes no fun to change passwords in this environment (you have the change a password on every single server).
Peter
Maybe you are looking for
-
RichHTMLField to insert a Webpart in Sharepoint 2013 Page LAyout
Hi I am trying to insert RichHtmlField in page layout,but when i edit a page it's not showing option to insert content in a tml rich hfield,i did the following to insert a RichHtmlField. Note: i am using Design manager to create a page layout. <div
-
I am working on creating a form with a "Carbon Copy" type of section on it; where the user fills out one section of the form, and it automatically duplicates to the second section. Everything is going fine, except for the signature fields. The input
-
BB 9780 On a BES Server Can open any ZIP file for my mail in the Playbook, any idea ? thanks yves
-
JDK MetalWorks demo problems...
Hello, I have been writing a Swing based MDI application (Taking the metalworks demo as a basis) and have come across some annoying, problems which i have tried to find a solution to and have also posted before without any responses... Can anyone tel
-
I am just running out of room on my HDD so I was wondering what people think is the best way to extend storage on the iMac? And what hardware do they reccommed and even what type of configuration do they use? Is there a special system (do I need to