Error when using Javascript to scroll page in iFrame
Hi again!
I'm using a small Javascript to control the scrolling of a page loaded in an iFrame:
<script type="text/javascript">
var timer_id;
function scroll_iframe(frm,inc,dir) {
if (timer_id) clearTimeout(timer_id);
if (window.frames[frm]) {
if (dir == "v") frames[frm].scrollBy(0, inc);
else window.frames[frm].scrollBy(inc, 0);
timer_id = setTimeout("scroll_iframe('" + frm + "'," + inc + ",'" + dir + "')", 20);
function stopScroll() { if (timer_id) clearTimeout(timer_id); }
</script>
<a href="javascript:;" onmouseover="scroll_iframe('menu', -4, 'v'); return true" onmouseout="stopScroll(); return true">Up</a>
<a href="javascript:;" onmouseover="scroll_iframe('menu', 4, 'v'); return true" onmouseout="stopScroll(); return true">Down</a>
Running this results the error: "Adobe AIR runtime security violation for JavaScript code in the application security sandbox (window.setTimeOut)".
I've read the page about "Avoiding security-related JavaScript errors" but I don't know how to implement the changes proposed in my script.
Could anyone be so kind and help me with this?
Thanks!
Just wanted to say that I solved the problem...
After long testing I came up with two functions (one for up and one for down) that have the following code at the end:
timer_id = setTimeout(function(){scroll_iframe('up')}, 20); //move up
timer_id = setTimeout(function(){scroll_iframe('down')}, 20); //move down
I also stumbled on to another problem: if I set the scroll property from the iFrame to "no", so that the scroll bar is hidden, I'm not able to use the "scrollBy(x, y)" method.
So what I did was use "frames['iframe'].document.getElementById('menu_content_div').style.top" to change the position of the content div inside the menu page. I had to put some restrictions so that the user isn't able to scroll the menu endlessly up or down, but then it worked like a charm!
If anyone whants to do something similar, this is the code I ended up with:
var timer_id;
var position = 0;
function scroll_iframe(direction) {
if (timer_id) clearTimeout(timer_id);
if (window.frames['iframe']) {
if (direction == "up" && position<0) {
position += 8;
frames['iframe'].document.getElementById('menu_content_div').style.top = position+"px";
timer_id = setTimeout(function(){scroll_iframe('up')}, 40);
menuContentDiv = frames['iframe'].document.getElementById('menu_content_div')
heightPx = document.defaultView.getComputedStyle(menuContentDiv,null).getPropertyValue('height');
heightValue = heightPx.slice(0,(heightPx.length-2)); //removes the "px at the end of heightPx
height = (heightValue-387)-2*(heightValue-387); //sets how much the menu can scroll up until it gets to its end - depends on the iframe height
if (dir == "down" && position>height) {
position -= 8;
frames['iframe'].document.getElementById('menu_content_div').style.top = position+"px";
timer_id = setTimeout(function(){scroll_iframe('down')}, 40);
function stopScroll() {
if (timer_id) clearTimeout(timer_id);
Scroll down: onMouseDown="scroll_iframe('down'); return true" onMouseUp="stopScroll(); return true"
Scroll up: onMouseDown="scroll_iframe('up'); return true" onMouseUp="stopScroll(); return true"
Similar Messages
-
Error when using PPR in the OA page developed.
HI,
We are encountering an error when using PPR for the custom OA page being developed. I am using JDeveloper version 9.0.3.5(Build 1437) and Oracle Applications version 11.5.10.CU2. The scenario we are using PPR and the steps to reproduce the issue is mentioned below,
Scenario:
1) PPR is enabled for a custom OA page that is developed.
2) The PPR is being used to enable or disable a particular field based on the
selection of a value in a poplist in the same OA Page.
Error replication steps:
1) The user enters a value in the primary mandatory field which has to have
unique value.
2) The user selects a value from the poplist of a field which has PPR associated.
3) The user enters data in all other mandatory fields in the OA page except one
and tries to save the form and is shown a error message saying that all
mandatory fields are not entered(This is correct). Now the page gets
automatically refreshed and so the entered values are wiped off.
4) Now if the user again enters a value in the primary mandatory field (as in
step1) and if that value happens to be already existing value and then select
a value from the poplist which has PPR enabled then immediately the error
"Please enter a unique value" is entered, though we did not save the record.
The unique record validation would happen only at the time of saving the
record as per out business logic.
5) But if in Step 4 if i had entered a unique value again then the above said error
does not happen. There are few more similar kind of issues happening in the
same page because PPR is enabled.
Please note that this issue happens only when the page is deployed in a oracle
applications instance and not in JDeveloper.
Would this issue because of some cacheing problem? If Yes then how do we resolve it? Or would it be some other problem caused by our internal coding.
Any inputs for resolving this issue would be highly appreciated.
Thanks, Raja.What works in Jdeveloper should work when deployed in iAS as well.
And PPR is an old feature given quite enough time to mature, so before we suspect OA we should investigate the code. What I do not understand is how the page refreshes in Step 3 and why does the user have to re-enter the fields just because he missed entering one mandatory field the last time.
Mandatory field validations are client validations set by making the fields 'Required'. You obviously have client validations turned off on your PPR, otherwise you would be stuck with a javascript popup on PPR. The only way you can get the "Please enter unique..." error on PPR is Server Validation. So where have you placed this validation? If it is not in the EO, is it in the AM? And are you unconditionally calling the AM validation method in your processFormRequest? The PPR will also go through processFormRequest so I hope the PPR event is in a different if-else block. -
Javascript error when using ExternalInterface.addCallback with crossdomain swf file
how can i use ExternalInterface.addCallback when using
javascript access from Server A (html) to Server B (swf) ? coz it
showing error?
Server A
192.168.0.10/XXX/example.html
===========
<object
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
id="MGSInsurances1" width="960" height="600"
codebase="
http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab">
<param name="movie" value="
http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
/>
<param name="quality" value="high" />
<param name="bgcolor" value="#869ca7" />
<param name="allowScriptAccess" value="always" />
<embed src="
http://192.168.0.22/MGS/flex/MGSInsurances1.swf"
quality="high" bgcolor="#869ca7"
width="960" height="600" name="MGSInsurances1"
align="middle"
play="true"
loop="false"
quality="high"
allowScriptAccess="always"
type="application/x-shockwave-flash"
pluginspage="
http://www.adobe.com/go/getflashplayer">
</embed>
</object>
<script language="javascript">
window.MGSInsurances1 =
document.getElementById('MGSInsurances1');
</script>
Server B
192.168.0.22/MGS/flex/MGSInsurances1.swf
==================
Security.allowDomain("*");
if(ExternalInterface.available)
ExternalInterface.addCallback("onchange",onchange);
ExternalInterface.addCallback("datachange",datachange);
but javascript Error is showing "Unknown name", how can i fix
it? urgent! somebody know this?i solved it! because i havent restart my server again! No
Error again ! sorry for bothering everybody. -
Error when using a condition for required attribute
Hi
I have a requirement to validate the mandatory fields only when the submit button is pressed....if some other button is pressed or some how the form is submitted the validations should not be performed....
I have used required="#{MyBB.somecondition}" for all the mandatory fields...the method that is being called for doing the condition check is given below:
public boolean isSomeCondition() {
// assumes submitButton is a component binding
FacesContext fc = FacesContext.getCurrentInstance();
Map reqParams = fc.getExternalContext().getRequestParameterMap();
return reqParams.containsKey(submitButton.getClientId());
}It is same that is given at the following location
http://wiki.apache.org/myfaces/How_The_Immediate_Attribute_Works ---Soln 3
But the problem is if I am submitting the form using Javascript from another page(page is a popup that is opened inside the current window), this condition doesnt work and it gives me an error saying "Check some field for its value"
Please help me sort out this problem
ThanksI think the problem is not clear....my mistake
I try to be more elaborate on this....
I open up a popup page from my main window....Here I perform a search(lets say there is a requirement for finding the Country and pincode for a particular city that the user enters)
Now when I select the particular row in the datatable and click the submit button...... I want the selected values to be filled inside the parent window.....
I want to bring to your notice that the button that is clicked is in the popup page...not in the parent window.....
So you see that when that button in popup is clicked i am submiting the form of the parent window and during that time I dont want the validation to occur..... To submit the form of the parent window I use the Javascript like this : window.opener.document.forms[0].submit();Also one more thing that I want to mention is that the method that is used for specifying the condition for required attribute for mandatory fields in the parent window works fine for any button that i click inside my parent window......
What I mean by this is lets say I have a button to add a dynamic row into my parent page then also I have to submit the form but during that time validation should not occur and it works fine.
So now I think its clear that the Javascript is being invoked from another page which is submitting the parent window.....
Then you're doing something wrong. Invoking the wrong button maybe? So please enlighten me where i am wrong and how possibly would I know which button I am invoking?? -
UDESEncrypt Errors when using the JAVA engine (NW IDM 7.0)
Folks,
I'm seeing an error when I use the uDESEncrypt function with the Java Engine in NW IDM SP2 Patch 3.
The error I am getting is:
runFunctionsInString($FUNCTION.encrPWD()$$) got exception
org.mozilla.javascript.EvaluatorException: uDESEncrypt: Key should be exactly 24 bytes long.
The code calling it is:
// Main function: encrPWD
function encrPWD(Par){
//Example calling DSE internal function
//UserFunc.uStop("Terminated by user");
key = "C:\Program Files\SAP\IdM\Workflow\configs\KEY\keys.ini";
OutString = UserFunc.uDESEncrypt(key, Par);
return OutString;
I have also seen this error when using Patch 4.
Interestingly enough, the error does not occur when using the Windows Engine. Anyone else seeing this?
Thanks,
MattHi Matthew,
Try to replace the '\' with '
key = "C:
Program Files
SAP
IdM
Workflow
configs
KEY
keys.ini";
Alternative approaches,
1) setting key empty and it will look into %DSE_HOME%\KEY\key.ini
which should be C:\Program Files\SAP\IdM\Identity Center\Key\key.ini on default installation path.
2) or setting the key to something like = 6D5A2AF59B1CDD7F9592484F178331C891537A3F9B91D362
a 24 byte key...
Also when using DES you should ensure that in Identity Center underneath Options/General
you have encryption algorithm set to 3DES.
Normally if you intend to use this for password provisioning in IC you would also
on the identity store (for instance 'Enterprise people') underneath 'password policy' check
of for 'enable password provisioning.'
By doing so the MX_ENCRYPTED_PASSWORD with be set when operating through
workflow (3DES encryption version of the MX_PASSWORD) which allows you to obtain password
when provisioning to other target systems... -
Error When Using Class :(
Hey,
Class:
package
import flash.display.MovieClip;
import flash.events.Event;
public class Main extends MovieClip
public var enemyA:Array = [];
public var birdA:Array = [];
public var rowNum:int = 2;
private var gap:int = 100;
private var obj_no = 2;
public var enemy1:mychar = new mychar();
public var TheBird:BirdChar = new BirdChar();
public function Main()
// constructor code
createEnemyF();
createBirdF();
this.addEventListener(Event.ENTER_FRAME,loopF);
public function createEnemyF()
for (var i:int = 0; i < rowNum; i++)
for (var j:int = 0; j < obj_no; j++)
enemy1.x = Math.random() * stage.stageWidth - enemy1.width;
enemy1.y = - i * (gap + enemy1.height) - 30.65;
enemyA.push(enemy1);
addChild(enemy1);
public function createBirdF() {
TheBird.x = 270.95;
TheBird.y = 350.95;
birdA.push(TheBird);
addChild(TheBird);
public function loopF(event:Event) {
updateEnemyPositionsF();
updateBirdPositionsF();
hitTestF();
public function updateEnemyPositionsF() {
enemy1.y += 2;
public function updateBirdPositionsF() {
TheBird.x = mouseX;
public function hitTestF() {
if(TheBird.hitTestObject(enemy1))
gotoAndPlay(5);
trace('The Bird Hit Enemy 1');
This conflicts and causes this error:
1046: Type was not found or was not a compile-time constant: MouseEvent
^ ^ Code repeats to all of my event listeners
Thanks for your time.Thanks, i thought it might be this because of previous problems but i seen i already had : import flash.events.Event; so i thought that would be OK!
Second Error:
1180: Call to an undefined method Timer.
I think this is the same sort of thing but what to import to fix this?
So far these are my imports:
import flash.display.MovieClip;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.events.TimerEvent;
Thanks for helping.
Date: Thu, 3 Nov 2011 05:36:22 -0600
From: [email protected]
To: [email protected]
Subject: Error When Using Class
Re: Error When Using Class
created by markerline in Flash Pro - General - View the full discussion
Looks like you imported events.Event but not events.MouseEvent (or some similar syntax) basically you must import MouseEvents separately from other Events.
Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4005227#4005227
To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4005227#4005227. In the Actions box on the right, click the Stop Email Notifications link.
Start a new discussion in Flash Pro - General by email or at Adobe Forums
For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746. -
FSG Error when using segment override
Hi,
I have the following error when using segment override :
General Ledger: Version : 12.0.0
Copyright (c) 1979, 1999, Oracle Corporation. All rights reserved.
RGRARG module: Financial Statement Generator
+---------------------------------------------------------------------------+
Current system time is 26-APR-2012 11:17:22
+---------------------------------------------------------------------------+
Starting Program RGRARG.
Arguments are:
0 RGRARG - RGRARG
1 username/password - username/password
2 0 - 0
3 Y - Y
4 Data Access Set ID - 1030
5 Chart of Accounts Id - 101
6 ADHOC Prefix - FSG-ADHOC-
7 Industry - C
8 Flex Code Id - GLLE
9 Default Ledger ID -
10 Report ID - 1011
11 Row Set ID - 3461
12 Column Set ID - 1018
13 Period of Interest - SEP-11
14 Unit of Measure ID - IDR
15 Rounding Option - C
16 Override Values - ----DIV3---000000
17 Content Set ID -
18 Row Order ID -
19 Report Display Set ID -
20 Output Option - R
21 Exceptions Flag - N
22 Miniumum Display Level -
23 Effective Date -
24 Parameter Set ID - 1011
25 Maximum Page Length - 58
26 Sub-Request Run ID - -998
27 Application Shortname - SQLGL
Message level is: Normal
rgrini() 26-APR-2012 11:17:22 rgrini.build_per_arr:
Query for period set name from GL_ACCESS_SETS
SELECT period_set_name
FROM GL_ACCESS_SETS
WHERE access_set_id = 1030
rgrini.build_per_arr:
period set name from GL_ACCESS_SETS:
ACCOUNTING
rgrini.build_per_arr:
Query for period names from GL_PERIODS
SELECT period_name,
to_number(to_char(end_date,'YYYYMMDD'))
FROM GL_PERIODS
WHERE period_set_name = :p_value
ORDER BY NLSSORT(period_name,'NLS_SORT=BINARY') ASC
control->report_id = 1011
control->row_set_id = 3461
control->column_set_id = 1018
control->row_order_id = 0
control->content_set_id = 0
control->display_set_id = 0
control->parameter_set_id = 1011
control->resp_lvl = 0
control->round_option = C
control->output_option = R
control->excp = FALSE
control->sub_req_run_id = -998
control->appl_id = 101
control->id_flex_code = GLLE
control->ldg_val_set_id = 1010673
control->ledger_id = 0
control->ledger_name =
control->ledger_currency =
control->access_set_id = 1030
control->security_segnum = 0
control->per_cnt = 162
control->runtime_currency = IDR
control->resp_id = 50386
control->resp_appl_id = 101
control->enforce_security = TRUE
control->sec_rules = NULL
control->reduced_ranges = NULL
control->num_reduced_ranges = 0
control->max_char_width = 1
control->total_num_cols = 0
control->page = NULL
<< rgrini() 26-APR-2012 11:17:22
rgranl() 26-APR-2012 11:17:22Current date and time: Thu Apr 26 11:17:22 2012
rgrgsa() 26-APR-2012 11:17:22
<< rgrgsa() 26-APR-2012 11:17:22
rgrdrs() 26-APR-2012 11:17:22req_id_str =
809694
rgrdpg.rgrdpg: Unable to read value for profile option RG_DEBUG_ON..
rgrprt.rgrprt: Defaulting value for profile option RG_DEBUG_ON to FALSE..
rgrgas() 26-APR-2012 11:17:22 Entering code to get axis set 1018
<< rgrgas() 26-APR-2012 11:17:22
rgrgas() 26-APR-2012 11:17:22 Entering code to get axis set 3461
<< rgrgas() 26-APR-2012 11:17:23
rgrgrp() 26-APR-2012 11:17:23
<< rgrgrp() 26-APR-2012 11:17:23
COA Structure :
Segment: LEDGER_SEGMENT : Ledger
Segment: SEGMENT1 : COMPANY
Segment: SEGMENT2 : ACCOUNT
Segment: SEGMENT3 : PRODUCT
Segment: SEGMENT4 : DIVISION
Segment: SEGMENT5 : DEPOT
Segment: SEGMENT6 : COST CENTER
Segment: SEGMENT7 : FUTURE
Segment value security is enforced for Financial Statement Generator reporting.
rgrrsr() 26-APR-2012 11:17:23
rgrrsf() 26-APR-2012 11:17:23
<< rgrrsf() 26-APR-2012 11:17:23
<< rgrcrl() 26-APR-2012 11:17:23
<< rgrrsr() 26-APR-2012 11:17:23
rgrpsr() 26-APR-2012 11:17:23The COMPANY segment has security enabled. However, there are no security rules assigned to this responsibility for this segment, or this segment uses a dependent value set. All COMPANY values will be processed.
The ACCOUNT segment has security enabled. However, there are no security rules assigned to this responsibility for this segment, or this segment uses a dependent value set. All ACCOUNT values will be processed.
The PRODUCT segment has security enabled. However, there are no security rules assigned to this responsibility for this segment, or this segment uses a dependent value set. All PRODUCT values will be processed.
The DIVISION segment has security enabled. However, there are no security rules assigned to this responsibility for this segment, or this segment uses a dependent value set. All DIVISION values will be processed.
The DEPOT segment has security enabled. However, there are no security rules assigned to this responsibility for this segment, or this segment uses a dependent value set. All DEPOT values will be processed.
The COST CENTER segment has security enabled. However, there are no security rules assigned to this responsibility for this segment, or this segment uses a dependent value set. All COST CENTER values will be processed.
The FUTURE segment has security enabled. However, there are no security rules assigned to this responsibility for this segment, or this segment uses a dependent value set. All FUTURE values will be processed.
<< rgrpsr() 26-APR-2012 11:17:23
rgrdrs.rgrdrs: Getting value for profile option EXPAND_PARENT_VALUE equal No.
PERF0005: Oracle error detected in get_def_ldgs - ORA-01403: no data found
<x get_def_ldgs() 26-APR-2012 11:17:24
<x get_def_ldgs() 26-APR-2012 11:17:24
rgrgax() 26-APR-2012 11:17:24 rgrgax:get_axes
Starting axis query.
rgumsg:
fdnwsc() is used by default
rgrgax.get_conts - Prepare:
ORA-00936: missing expression
Current date and time: Thu Apr 26 11:17:24 2012
Entered sauulc with code 1 from line 3333 of file rg/lib/rgrgax.c.
+---------------------------------------------------------------------------+
Start of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
End of log messages from FND_FILE
+---------------------------------------------------------------------------+
+---------------------------------------------------------------------------+
Executing request completion options...
Output file size:
0I have followed the following notes but it didn't help me
R12: FSG: PERF0005 Error Detected In GET_DEF_LDGS - ORA-01403: No Data Found Common Issues [ID 1368691.1]
Generating a FSG Report Application Does Not Find Profile Values for RG_LOGFILE_DETAIL_LEVEL and EXPAND_PARENT_VALUE [ID 165339.1]
does anyone know how to solved the problem ??
please advise
thxI have followed the following notes but it didn't help me
R12: FSG: PERF0005 Error Detected In GET_DEF_LDGS - ORA-01403: No Data Found Common Issues [ID 1368691.1]
Generating a FSG Report Application Does Not Find Profile Values for RG_LOGFILE_DETAIL_LEVEL and EXPAND_PARENT_VALUE [ID 165339.1]
does anyone know how to solved the problem ??If none of the docs help, please log a SR.
Thanks,
Hussein -
ME21N Runtime error when using u201CDocument overview onu201D
Hi Gurus,
****I encountered Runtime error when using u201CDocument overview onu201D with variant u201CMy purchase ordersu201D or u201CPurchase orders on holdu201D. I encountered following ABEND message.
Varaint SAP&MEPOBEST not created
****I faced another issue which is mentioned below.
All page activities are blocked when using u201CDocument overview onu201D with variant u201CPurchase Ordersu201D or u201CContactsu201D .
Please reply.Hello,
To use that form you need to configure ADS in your system.
I sugest you to read the ADS configure manual and the troubleshooter note: SAP Note Number: 944221 -
Error when using data postion delay
I obtained this error when using data position delay. Can anyone please
tell me the reason why I can not configure the delay to be between 0.7
and 0.8.
Possible reason(s):
Driver Status: (Hex 0xBFFA403F) Unable to configure requested delay property given the current clock rate.
Ensure that the delay value specified is within the valid range for the
frequency specified or do not configure property for delay operation.
Device: PXI1Slot2
Property: Data Position
Sample Rate: 40000000.0
Requested Value: 0.71875
Supported Values: 0.000 through 0.200, 0.300 through 0.700, 0.800 through 1.000,
Status Code: -219401Timothy,
The 656x devices have a limit on the available data delay values based
on frequency. Between 25MHz and 50MHz there are "holes" in the
available delay range. Above 50MHz, the full 0 to 1 data delay is
valid. If you look in the specifications installed with NI HSDIO
for the NI 656x, on page 7, Figure 1, there is an illustration showing
how to compute what the valid range is for the frequency of interest.
For example, at 40MHz, valid values are:
0 to 0.2
0.3 to 0.7
0.8 to 1
In the error message posted below, you tried to input a value of 0.71875 which is not within these ranges. -
I keep getting script errors when accessing Amazon Seller merchant pages. I get the following A script on this page may be busy, or it may have stopped responding. You can stop the script now, or you can continue to see if the script will complete. Script: chrome://spautofill/content/spOverlay.js:150, I also get js210 as well. I have cleared all cookies and history and unistalled Firefaox and reinstalled. Been thru my AVS and set the site as trusted in every possible place. Still get the problem. Do not get it with IE on same PC.
== URL of affected sites ==
https://sellercentral.amazon.co.ukSame problem but with a different vendor site:
https://www.webvitamins.com/myfavorites.aspx
Not only does the page hang, but the other tabs also hang.
I contacted the vendor and their reply was "we were told that this looks like a script that is used by "Sticky Password", third-party software that must have been installed on your browser. However, our website did not install it and does not have anything to do with it." As far as I can tell, "Sticky Password" is not installed on my Firefox.
Same problem as above occurs, but with IE 8.0.6001.18702. Therefore, it is not unique to Firefox.
CAUSE DETERMINED: Have determined that this problem only occurs when Kaspersky Password Manager is installed. In Firefox, if the "Password Manager Autofill Engine" add-on is disabled, the problem goes away. -
Error when used hana studio to import Delivery Unit
HANA version:1.00.80.00.391861
HANA studio version:1.80.3
Plantform :SUSE Linux Enterprise Server 11.2
I meet a error when used hana studio followed that steps to import Delivery Unit:
Launch HANA Studio
Select your HANA instance
On the Quick launch page, choose Content -> Import
Now Select HANA Content -> Delivery unit.
Choose Next
Select the server, browse the Service DU (Service DU on server: SYS/global/hdb/content): HCO_INA_SERVICE.tgz
Who can help me what shoud i do.
thanks.I has Resolved.
You must set the OS directory privileges which has listed on the picutre to 777 by 'chmod' command ,
if it's 775 or others. -
Is array-referencing syntax allowable when using javascript?
Is the array-referencing syntax notation allowable when using javascript as the calculation language? My hierachy looks like the following:<br /><br /> . form1<br /> . Area[0]<br /> . numHeight<br /> . numWidth<br /> . numDepth<br /> . Area[1]<br /> . numHeight<br /> . numWidth<br /> . numDepth<br /> . <etc><br /><br />Without getting into too many details, my need is for fields in the "Area[2]" container to access fields in the "Area[0]" container. E.g. "this.rawValue = form1.Area[0].numHeight.rawValue;". With this syntax, I received the following report:<br /><br />Generating PDF Document...<br />Script failed (language is javascript; context is xfa[0].form[0].form1[0].Area[2].numHeight[0])<br />script=this.rawValue = form1.Area[0].numHeight.rawValue;<br /> Error: Invalid property get operation; subform doesn't have property '0'<br />PDF generated successfully.<br /><br />1 warnings/errors reported.
You can use resolveNode on basically anything, so yes you can access the record nodes within the xml data source. The function assist does not have anything when you do record but the nodes are created under record to match the nodes in your XML data source.
I am not sure of what you are trying to do with your example - if you want to return a list of nodes match some expression, then there is another version of resolveNode method which does just that called resolveNodes()
For example if you want to find all conditions_item nodes you would have:
xfa.resolveNodes("xfa.record.conditions.conditions_item[*]")
This returns a collection of Nodes and you can then use .length to see how many are returned. Make sure conditions is a child node of the root element. I am not sure, I think you do not specify the root node when accessing the record nodes. -
Photoshop CS4 "Program Error" when using Text tool
Hello. I was having problems with Photoshop displaying a "Program Error" every so often, so I deleted the preference file and all seemed good. But after deleting the preference file for my Photoshop CS4 and re-launching Photoshop, the text tool causes Photoshop to display a Program Error when using the tool. It never did this before. Should I reinstall Photoshop? I am using a Powermac G5 running 10.5.8. I have already tried repairing the disk permissions.
ThanksThats kinda what I thought too, but the problem started happening randomly. It started when we were trying to use photomerge with large photos. The program just started giving the program errors. I still think it may be a font problem, but without going through my 2000+ fonts and disabling them one by one, how can I resolve this issue?
Thanks -
Java Heap Error when using Stateless Session Timer Bean deployed in Oracle
Hi,
Am getting following Java Heap Error when using Stateless Session Timer Bean deployed in Oracle 10g AS R3 (Oracle Containers for J2EE 10g (10.1.3.0.0) (build 060119.1546.05277) ):
06/08/02 14:58:43 javax.ejb.EJBException: java.lang.OutOfMemoryError: Java heap space
06/08/02 14:58:43 at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:304)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:45)
06/08/02 14:58:43 at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:69)
06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
06/08/02 14:58:43 at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:71)
06/08/02 14:58:43 at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1624)
06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:92)
06/08/02 14:58:43 at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:184)
06/08/02 14:58:43 at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
06/08/02 14:58:43 at java.lang.Thread.run(Thread.java:595)
06/08/02 14:58:43 Caused by: java.lang.OutOfMemoryError: Java heap space
I had tried using -Xms / -Xmx options (upto 1 GB).
The trace of exception gets delayed (from being displayed on the console) as the memory size is increased; but after sometime it starts getting displayed on the console.
Even though this exception is displayed on the console, the Timer Bean continues to execute upto sometime before it finally crashes!
If anyone has encountered such problem; would appreciate if you could share the solution.
Regards, VidyadharHi guys, I have the same problem. I have an application EAR file with two modules (EJB and WAR starting in this order). The application can schedule a process via EJB timer. In this case restarting the server I receive the error above. If I change the modules start order --> WAR - EJB the server start correctly, but the application scheduler fails (the persistency is not working) with this error:
07/10/09 10:30:54 FINISSIMO: TimerTask.runBeanTimer java.lang.NullPointerException; nested exception is: java.lang.NullPointerExceptionjavax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
java.lang.NullPointerException
at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at java.util.logging.Formatter.formatMessage(Formatter.java:108)
at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
at java.util.logging.Logger.log(Logger.java:428)
at java.util.logging.Logger.doLog(Logger.java:450)
at java.util.logging.Logger.log(Logger.java:539)
at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
javax.ejb.TransactionRolledbackLocalException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:309)
at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:73)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:55)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
at com.evermind.server.ejb.StatelessSessionEJBHome.invokeTimer(StatelessSessionEJBHome.java:38)
at com.evermind.server.ejb.EJBContainer.invokeTimer(EJBContainer.java:1714)
at oracle.ias.container.scheduler.TimerTask.runBeanTimer(TimerTask.java:106)
at oracle.ias.container.scheduler.TimerTask.run(TimerTask.java:220)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at java.util.ListResourceBundle.handleGetObject(ListResourceBundle.java:107)
at java.util.ResourceBundle.getObject(ResourceBundle.java:319)
at java.util.ResourceBundle.getString(ResourceBundle.java:285)
at java.util.logging.Formatter.formatMessage(Formatter.java:108)
at oracle.j2ee.util.TraceLogFormatter.format(TraceLogger.java:124)
at oracle.j2ee.util.TraceLogger$TraceLoggerHandler.publish(TraceLogger.java:105)
at java.util.logging.Logger.log(Logger.java:428)
at java.util.logging.Logger.doLog(Logger.java:450)
at java.util.logging.Logger.log(Logger.java:539)
at oracle.ias.container.timer.TimerEntry.readObjFromBytes(TimerEntry.java:308)
at oracle.ias.container.timer.TimerEntry.getInfo(TimerEntry.java:107)
at oracle.ias.container.timer.Timer.getInfo(Timer.java:367)
at oracle.ias.container.timer.EJBTimerImpl.getInfo(EJBTimerImpl.java:89)
at com.finantix.foundation.integration.ejbtimer.EJBTimerServiceExecutorBean.ejbTimeout(EJBTimerServiceExecutorBean.java:42)
at com.evermind.server.ejb.interceptor.joinpoint.EJBTimeoutJoinPoint.invoke(EJBTimeoutJoinPoint.java:20)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
at com.evermind.server.ejb.interceptor.system.TxBeanManagedInterceptor.invoke(TxBeanManagedInterceptor.java:53)
... 9 more
Any idea?
Thx Auro -
Getting an error when using adobe photoshop CC, "Could not move the data because of a program error". Any idea on what this means?
Have no idea of what you were even doing in Photoshop my crystal ball is out for repairs so I can not see.
Maybe you are looking for
-
Serviced 4x within 5 Months: Can I Get a New Machine Replacement?
After much consideration, I made the PC to Mac switch, and bought my first laptop and Mac product: a iBook G4 from macmall.com, in late December 2005, right before leaving for a spring semester abroad. In about a month, I had my HD replaced under the
-
Do I begin by scanning my illustration in a pdf and then save it as a png on illustrator?
Do I begin by scanning my artwork as pdf and then saving it as a png on illustrator?
-
Properties Toolbar not displaying in Acrobat Standard 9.0
In editing an Adobe document the Properties Toolbar does not display even though the Toolbar is checked. The Toolbar will not display unless the document is exited and all Adobe documents are closed and Adobe is opened again. Is this a known b
-
W540 Internal / External Display Issues
Hello, I have a Laptop:Docking Station: 40A20170US
-
Captivate 5 Crashing when generating TTS
This is a new upgrade from Captivate 4 and at first was struggling when generating TTS, However now it is crashing. Any assistance will be apprieciated. Thank You in Advance