PeerGoneException after one of the nodes is restarted
WLS 8.1 (no sp), J2SE 1.4.1 or 1.4.2, Solaris 8.
In a two-node cluster, we brought down one of the nodes and then brought it back
up after a few minutes. It seemed to be fine for a while, then we would get
PeerGoneException and the distributed topics distributed messages unreliably.
I suspect when the node (A) was brought down, something in the other node (B)
with respect to A was not cleaned up and when it tried to communicate with the
restarted A (rA), they got mixed up.
I attached the config.xml and the cluster log files in a zip. The behavior is
reproduceable. We also experimented with bringing down the admin server. Same
results.
Thanks,
Bill
[PeerGone.zip]
WLS 8.1 (no sp), J2SE 1.4.1 or 1.4.2, Solaris 8.
In a two-node cluster, we brought down one of the nodes and then brought it back
up after a few minutes. It seemed to be fine for a while, then we would get
PeerGoneException and the distributed topics distributed messages unreliably.
I suspect when the node (A) was brought down, something in the other node (B)
with respect to A was not cleaned up and when it tried to communicate with the
restarted A (rA), they got mixed up.
I attached the config.xml and the cluster log files in a zip. The behavior is
reproduceable. We also experimented with bringing down the admin server. Same
results.
Thanks,
Bill
[PeerGone.zip]
Similar Messages
-
Hi we setup ISE in our lab. We have 2 PSN registered but one of the node is out of sync after I upgraded form 1.1 to 1.2
For out of sync issues, which most likely are due to time changes or NTP sync issues, you must correct the system time and perform a manual sync up through the UI.
For certificate expiry issues, you must install a valid certificate and perform a manual sync up through the UI.
For a node that has been down for more than six hours, you must restart the node, check for connectivity issues, and perform a manual sync up through the UI. -
A connection was abortively closed after one of the peers sent an rst packet
Hello,
i have a dvr on netwoek that is wok fine. i tried to publish it over internet.
i have tmg with two wan connections(load Balancing) and two internal networks.
i create a server application rule and and but dvr protcols on it.
when i try to open it from outside it's not working. on tmg log it's give me this error:
A connection was closed because no SYN/ACK reply was received from the server.
also with others dvr i get this error:
a connection was abortively closed after one of the peers sent an rst packet
i tired to read all post on forums but i didn't get a solution for it.
please not that the network rule from internal to external is route and the publish rule is set to make the request is from local host.
so whats the problem?
thanks.Hi,
Thank you for your post here.
As far as i know, if you would like to publish server located in internal, you need to set the relationship between internal and external as NAT.
Best Regards
Quan Gu -
I have a library of nearly 2000 songs and all of which were purchased/downloaded in their entirety. It seems that after one of the iTunes updates… many (not all, but plenty) of those songs were “cut off” after playing about 2/3 through them… I haven’t gone through the entire library to see which are complete and which were cut off, but hoped this is “known problem” and hopefully with a known “fix”… Make sense?
Please advise…
Thx,
JohnnyI have a library of nearly 2000 songs and all of which were purchased/downloaded in their entirety. It seems that after one of the iTunes updates… many (not all, but plenty) of those songs were “cut off” after playing about 2/3 through them… I haven’t gone through the entire library to see which are complete and which were cut off, but hoped this is “known problem” and hopefully with a known “fix”… Make sense?
Please advise…
Thx,
Johnny -
Backing up the RAC DB when either one of the node is down
11.2.0.2/Solaris 10 (x86-64bit) For our 2-Node production RAC DB, I had configured RMAN backup from Node1 using Cronjob. Last weekend our Node1 went down. Our SMS notifying system which sends SMS alerts to our Mobiles went down on the weekend as well. Only by Monday Noon we came to know that Node1 is down and that there is no backup for Saturday and Sunday.
How can i make sure that RMAN backup of the DB will be taken even if either one of the Nodes go down ? My friend suggested IBM TWS scheduler. Can Tivoli Work Scheduler detect a dead RAC Node and fire RMAN backup from the surviving node ?I don't know the answer regarding TWS, but if you run the backup from crontab I guess that you don't have any 3rd party tool now.
I think the easiest solution will be to have the script and crontab job on both servers and decide which one runs the backup.
For example, the script that is scheduled in the crontab will do:
1. if $HOSTNAME is node1 run the backup. If $HOSTNAME is node2, check if node1 is up and if not run the backup.
2. This is more elegant, check the "crsctl status resource" for something and run the backup accordingly. For example, the script will check where SCAN1 VIP is located and this is the node which will run the backup.
HTH
Liron -
I have a 5 year old Dell PC and purchased Airport Express last year. I used my iphone 4s to connect and it has been working until recently I lost connection after one of the iphone updates. I cannot make contact with the unit. I have even used an ethernet cable that I hooked to my router and still won't work. I cantinually get this message from Airport Utility. An error has occurred and I can not do anything else.
If you have the AirPort Express setup in Bridge Mode, try changing the Connection Sharing setting to "Share a public IP address"
AirPort Utility - Manual Setup
Click the Internet icon
Connection Sharing = Share a public IP address
Update
You will probably get a message about a Double NAT error. Click to "ignore"
This setting might allow mutliple devices to connect and may not. It's worth a try...I have about a 60-70% success rate at hotels with this setting.
Unfortunately, as you note....hotels have become a lot smarter about connections to their network. At some point, they probably will not even allow another router to connect at all. -
HT4623 I'm no longer able to take video on my iPad mini this happened after one of the iOS updates
I'm no longer able to take video with my iPad mini this happened after one of the iOS updates. How can this be fixed?
Try sliding the words up/down to select the various modes.
-
Help please am useing an Iphone 3gs after i restore the iOS device restart my phone can not Activate it.. what do i do please i need your help.?
Usually indicitive of a phone that's been jailbroken or hacked to unlock it, something of which you will net get support for here.
-
I have an ipad running 8.1.1. I lost all of my movie thumbnails after one of the system updates, but I'm not sure which one since I don't look at the movies that ofter.How do I restore my thumbnails. They are fine in itunes on my imac that I sync with.
onix_76 wrote:
how come? Documents also have on hand to buy as photo and check the box
So what? The second-hand shop you bought it from didn't follow the right procedures. You also didn't follow the right procedures to make sure that iPhone was not in Activation Lock. It's like buying a car for cash but not getting the title signed over to you. It's not your car if you don' have the title. And that's not legally your iPhone if the previous owner's Apple ID is still registered to the device for Find My iPhone/Activation Lock.
Only a proof of purchase from the ORIGINAL retail store would do any good at all. Return the device to where you bought it and demand your money back. If they refuse, either get a lawyer and/or turn in the device to local police. If you're in possession of stolen property, then the cops won't care about where you got it from. -
Database Connectivity takes long time if one of the Node is down .. ??
Hello All,
Env: 10.2.0.4 on Solaris 10
I have 2 nodes.
When Node1 server is down, it takes long time to connec to the database.
tnsping would give "OK(2050ms)". Below is the tnsalias.
RAC_test =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.123)(PORT= 1521))
(ADDRESS = (PROTOCOL = TCP)(HOST=20.268.169.127)(PORT= 1521))
(LOAD_BALANCE = yes)
(CONNECT_DATA =
(SERVICE_NAME = DK.com)
(FAILOVER_MODE =
(TYPE = SELECT)
(METHOD = BASIC)
(RETRIES = 180)
(DELAY = 5)
)I put the trace on sqlnet.ora and found that first it pings to the "20.268.169.123",
since the Server is down there will not be any reply and this consumes the delay and
later it would ping "20.268.169.127" and connect to it.
If i keep "20.268.169.127" above "20.268.169.123" in tnsalias, and keep "LOAD_BALANCE=no",
it gets connected very fast, as its directly connecting to Node2. In tnsping i get Ok(40ms).
How do i reduce the connect timing if i use the first step. Why does it take long time for
Oracle Client to understand that the Node1 Server is down ?
TIA,
J JI hope the IP's you are using in the TNS are Virtual IP's.
You must use Virtual IP's / hostnames for the failover to be quick. If Node 1 is not available then then it's (Node 1's) virtual IP would also get assigned to Node 2 hence all client connections are still able to get a response from the Node Virtual IP address without needing to wait for TCP/IP timeouts. This helps clients to get notified immediately that node 1 is unavailable and the connection tries the 2nd ip/host in the connect descriptor.
Hope this helps.
- Siba -
Use XPath to select one of the node??
Can I use xpath to draw <param-value>/mnt/VISL/stats/stats/clarent2</param-value>
only?
I have tried to use ApplyXPath sample, but
I don't know what xpath value I should use?
I tried /doc/servlet/init-param/param-value
but it certainly draw other tag with the same name
Pls help!!!
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<servlet>
<servlet-name>
gen_daily
</servlet-name>
<servlet-class>
gen_daily
</servlet-class>
<init-param>
<param-name>clarent_init_dir</param-name>
<param-value>/mnt/VISL/stats/stats/clarent2</param-value>
</init-param>
<init-param>
<param-name>linefeed_mode</param-name>
<param-value>2</param-value>
</init-param>
</servlet>
<servlet>
<servlet-name>
RequestParamExample
</servlet-name>
<servlet-class>
RequestParamExample
</servlet-class>
</servlet>
<servlet>
<servlet-name>
RequestParamExample2
</servlet-name>
<servlet-class>
RequestParamExample2
</servlet-class>
</servlet>
<!-- Define example application events listeners -->
<!-- Define servlets that are included in the example application -->
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<taglib>
<taglib-uri>
http://java.apache.org/tomcat/examples-taglib
</taglib-uri>
<taglib-location>
/WEB-INF/jsp/example-taglib.tld
</taglib-location>
</taglib>
<resource-ref>
<res-ref-name>mail/session</res-ref-name>
<res-type>javax.mail.Session</res-type>
<res-auth>Container</res-auth>
</resource-ref>
<security-constraint>
<display-name>Example Security Constraint</display-name>
<web-resource-collection>
<web-resource-name>Protected Area</web-resource-name>
<!-- Define the context-relative URL(s) to be protected -->
<url-pattern>/jsp/security/protected/*</url-pattern>
<!-- If you list http methods, only those methods are protected -->
<http-method>DELETE</http-method>
<http-method>GET</http-method>
<http-method>POST</http-method>
<http-method>PUT</http-method>
</web-resource-collection>
<auth-constraint>
<!-- Anyone with one of the listed roles may access this area -->
<role-name>tomcat</role-name>
<role-name>role1</role-name>
</auth-constraint>
</security-constraint>
</web-app>You have to start at the root and go down the XML tree.
Try:
/web-app/servlet/init-param/param-value
Are you trying to use this in xsl?
Kind regards,
Hans. -
Service not registered with listener on one of the nodes?
We have an 11.2.0.1 oracle RAC with 2 nodes. Recently the listener died on node 1 and after a manual startup it seems like the service doesn't register with the listener on this node.
Here's what statusing the listener on both nodes shows:
[oracle@db01]$ $GRID_HOME/bin/lsnrctl status
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-NOV-2010 12:27:49
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 17-NOV-2010 07:14:40
Uptime 0 days 5 hr. 13 min. 9 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db01/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.4)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.14)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM1", status READY, has 1 handler(s) for this service...
The command completed successfully
[oracle@db02 ~]$ $GRID_HOME/bin/lsnrctl status listener
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 17-NOV-2010 12:30:08
Copyright (c) 1991, 2009, Oracle. All rights reserved.
Connecting to (ADDRESS=(PROTOCOL=tcp)(HOST=)(PORT=1521))
STATUS of the LISTENER
Alias LISTENER
Version TNSLSNR for Linux: Version 11.2.0.1.0 - Production
Start Date 17-NOV-2010 07:14:40
Uptime 0 days 5 hr. 15 min. 28 sec
Trace Level off
Security ON: Local OS Authentication
SNMP OFF
Listener Parameter File /u01/app/11.2.0/grid/network/admin/listener.ora
Listener Log File /u01/app/oracle/diag/tnslsnr/db02/listener/alert/log.xml
Listening Endpoints Summary...
(DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=LISTENER)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.5)(PORT=1521)))
(DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=192.168.128.15)(PORT=1521)))
Services Summary...
Service "+ASM" has 1 instance(s).
Instance "+ASM2", status READY, has 1 handler(s) for this service...
Service "prd1.somehost.net" has 1 instance(s).
Instance "prd12", status READY, has 1 handler(s) for this service...
Service "prd1XDB.somehost.net" has 1 instance(s).
Instance "prd12", status READY, has 1 handler(s) for this service...
The command completed successfully
The prd12 instance shows as registered with the listener on db02 but the prd11 doesn't on db01. Right now all connections are routed to the prd12 instance. Also trying to connect to prd11 manually returns "ORA-12505: TNS:listener does not currently know of SID given in connect descriptor". The prd11 instance is actually running and I can connect to it locally via 'sqlplis "/ as sysdba"' but not via 'sqlplus user/pass@prd1'. I'm wondering what went wrong and how to register the prd11 with the listener on db01.
Here's some more information
[oracle@db01 ~]$ $GRID_HOME/bin/srvctl status scan_listener
SCAN Listener LISTENER_SCAN1 is enabled
SCAN listener LISTENER_SCAN1 is running on node db02
SCAN Listener LISTENER_SCAN2 is enabled
SCAN listener LISTENER_SCAN2 is running on node db01
SCAN Listener LISTENER_SCAN3 is enabled
SCAN listener LISTENER_SCAN3 is running on node db01
[oracle@db01 ~]$ $GRID_HOME/bin/srvctl status scan
SCAN VIP scan1 is enabled
SCAN VIP scan1 is running on node db02
SCAN VIP scan2 is enabled
SCAN VIP scan2 is running on node db01
SCAN VIP scan3 is enabled
SCAN VIP scan3 is running on node db01
[oracle@db01 ~]$ $GRID_HOME/bin/srvctl status listener
Listener LISTENER is enabled
Listener LISTENER is running on node(s): db01,db02
Thanks in advance,
Nick
Edited by: user639426 on Nov 17, 2010 4:44 AMSeems like the LISTENER_SCAN2 and LISTENER_SCAN3 are running on node 1 but still I can't status them
[oracle@db01 ~]$ ps -ef | grep tns
oracle 6227 31486 0 08:24 pts/1 00:00:00 grep tns
oracle 18049 1 0 Nov17 ? 00:00:20 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER -inherit
oracle 18120 1 0 Nov17 ? 00:00:16 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN2 -inherit
oracle 18131 1 0 Nov17 ? 00:00:05 /u01/app/11.2.0/grid/bin/tnslsnr LISTENER_SCAN3 -inherit
[oracle@db01 ~]$ $GRID_HOME/bin/lsnrctl status LISTENER_SCAN2
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 08:25:11
Copyright (c) 1991, 2009, Oracle. All rights reserved.
TNS-01101: Could not find service name LISTENER_SCAN2
[oracle@db01 ~]$ $GRID_HOME/bin/lsnrctl status LISTENER_SCAN3
LSNRCTL for Linux: Version 11.2.0.1.0 - Production on 19-NOV-2010 08:25:18
Copyright (c) 1991, 2009, Oracle. All rights reserved.
TNS-01101: Could not find service name LISTENER_SCAN3
/u01/app/11.2.0/grid/network/admin/listener.ora contents:
LISTENER_SCAN2=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN2)))) # line added by Agent
LISTENER_SCAN3=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN3)))) # line added by Agent
LISTENER=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER)))) # line added by Agent
LISTENER_SCAN1=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=IPC)(KEY=LISTENER_SCAN1)))) # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN1=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN3=ON # line added by Agent
ENABLE_GLOBAL_DYNAMIC_ENDPOINT_LISTENER_SCAN2=ON # line added by Agent
/u01/app/oracle/product/11.2.0/dbhome_1/network/admin/tnsnames.ora contents:
PRD1 =
(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST = prdcluster-scan)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = prd1.somehost.net)
Everything worked just fine for quite some time until I found the listener down one morning and started it up manually. I wonder if I didn't start up the processes correctly. I did:
$GRID_HOME/bin/srvctl stop scan_listener
$GRID_HOME/bin/srvctl stop scan
$GRID_HOME/bin/srvctl stop listener
$GRID_HOME/bin/srvctl start listener
$GRID_HOME/bin/srvctl start scan
$GRID_HOME/bin/srvctl start scan_listener
Is this the correct way of starting up the listener processes?
Nick -
How to read a CLOB file and select only one of the node
i have table with one of it's datatyp as CLOB, i need to read one particular node alone,
Ex
Table tesxml has two columnd id,xml and the xml field is a CLOB which has data as shown below.
<?xml version="1.0" encoding="UTF-8"?>
<alert>
<type0 comment="section in XSL component" name="Initial Information">
<details>
<Priority>0001</Priority>
<Date>2010-06-29</Date>
<Initial_Information></Initial_Information>
</details>
</type0>
</alert>now i need to select id,<Date value(from xml)>,<comment value>
o/p should look like
0000,2010-06-29,section in XSL componenti tried these queries but i am doing something wrong with the syntax..
SELECT alert_internal_id,EXTRACTVALUE(VALUE(c), '/Date') datee
FROM (SELECT id,xmltype(xml) xml FROM tesxml),
table(XMLSEQUENCE(EXTRACT(xml, '/alert/type0/details/'))) c;
select dbms_lob.read(HTML_FILE_KEY,alert,type0,details,Date) from alertsDepakjan wrote:
No that is not the case if i just remove the where statement it's workingWell, based on your query, you don't seem to have a repeating group, so I'm guessing your XML looks something like the following:
SQL> ed
Wrote file afiedt.buf
1 with alerts as (select 1 as alert_internal_id,
2 '<alert>
3 <tab0 comment="bob">
4 <details>
5 <Priority>1234</Priority>
6 </details>
7 </tab0>
8 <type0>
9 <details>
10 <DateVRUClaimInitiated>01/02/2010</DateVRUClaimInitiated>
11 </details>
12 </type0>
13 </alert>' as xml from dual)
14 --
15 select alert_internal_id,x.* from alerts, xmltable ('.' passing XMLTYPE(xml)
16 columns prio varchar2 (5) path '/alert/tab0/details/Priority',
17 dt varchar2 (15) path '/alert/type0/details/DateVRUClaimInitiated',
18 type_comment varchar2 (25) path '/alert/tab0/@comment') x
19* where x.dt is not null
SQL> /
ALERT_INTERNAL_ID PRIO DT TYPE_COMMENT
1 1234 01/02/2010 bobHowever, let's assume you do have a repeating group of alerts (I'll achieve that by putting them inside a "root" element), and I'll set one of them so there is no dt returned...
SQL> ed
Wrote file afiedt.buf
1 with alerts as (select 1 as alert_internal_id,
2 '<root>
3 <alert>
4 <tab0 comment="bob">
5 <details>
6 <Priority>1234</Priority>
7 </details>
8 </tab0>
9 <type0>
10 <details>
11 <DateVRUClaimInitiated>01/02/2010</DateVRUClaimInitiated>
12 </details>
13 </type0>
14 </alert>
15 <alert>
16 <tab0 comment="jim">
17 <details>
18 <Priority>2222</Priority>
19 </details>
20 </tab0>
21 <type0>
22 <details>
23 <DateVRUClaimInitiated />
24 </details>
25 </type0>
26 </alert>
27 </root>' as xml from dual)
28 --
29 select alert_internal_id,x.* from alerts, xmltable ('root/alert' passing XMLTYPE(xml)
30 columns prio varchar2 (5) path '/alert/tab0/details/Priority',
31 dt varchar2 (15) path '/alert/type0/details/DateVRUClaimInitiated',
32 type_comment varchar2 (25) path '/alert/tab0/@comment') x
33* where x.dt is not null
SQL> /
ALERT_INTERNAL_ID PRIO DT TYPE_COMMENT
1 1234 01/02/2010 bob
SQL>That works ok for me. Database = 10.2.0.1
What version are you on? -
Hi All,
Please help. I am having a Prodution SQL 2008 RTM Cluster with two nodes-where node 1 works without any problem.However, if i failover to node 2-Agent xp's are disabled automatically. When i verify the SQL Services are node 2 are running fine.
Checked Agent.out file which did not give much info than below:
2012-09-09 08:00:12 - + [162] Internal request (from SetJobNextRunDate [reason: schedule will not run again]) to deactivate schedule 47
2012-09-15 06:50:30 - ? [131] SQLSERVERAGENT service stopping due to a stop request from a user, process, or the OS...
2012-09-15 06:50:41 - ? [098] SQLServerAgent terminated (normally)
I have verified that hardware and software of both nodes are identical. Still ,this issue persists always.
Please let me know the solution for this. it really pressurise on Production having one node active and other not active.
Harithasrisp_configure 'show advanced options', 1;
GO
RECONFIGURE;
GO
sp_configure 'Agent XPs', 1;
GO
RECONFIGURE
GO
Are the SQL Agent running under the same accounts?
Best Regards,Uri Dimant SQL Server MVP,
http://sqlblog.com/blogs/uri_dimant/
MS SQL optimization: MS SQL Development and Optimization
MS SQL Blog:
Large scale of database and data cleansing
MS SQL Consultants:
Improves MS SQL Database Performance -
Need to avaid placing floats one after one on the same place
Hi All,
I have written a script for placing floats after the citation it works only for either the figure or table. But if both figure and table citation comes on the same place the script placing the floats one on one.
How to control this?
Thanks in advance,
LearnerHi Vandy,
It is a xml workflow.
Here is the script.
function caption(){
this.name = "caption";
this.xpath = "//caption";
this.apply = function(caption,){
with(caption){
var mydoc = app.activeDocument;
var pwidth = mydoc.documentPreferences.pageWidth;
var pheight = mydoc.documentPreferences.pageHeight;
var topmargin = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.top;
var bottommargin = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.bottom;
var insidemarginfirstmaserpage = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.left;
var outsidemarginfirstmaserpage = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.right;
var y1 = topmargin;
var x1 = outsidemarginfirstmaserpage;
var y2 = pheight - bottommargin;
var x2 = pwidth- insidemarginfirstmaserpage;
citpage = figCitationPage.name;
textfm = placeIntoFrame(app.activeDocument.pages.item(citpage), [y1, x1, y2, x2]);
textfm.fit(FitOptions.FRAME_TO_CONTENT);
textfm.appliedObjectStyle = mydoc.objectStyles.item("oSlug");
mydoc.xmlImportMaps.add(mydoc.xmlTags.item("caption"), mydoc.paragraphStyles.item("Slug"));
mydoc.mapXMLTagsToStyles();
textfm.textWrapPreferences.textWrapMode = TextWrapModes.BOUNDING_BOX_TEXT_WRAP;
textfm.textFramePreferences.ignoreWrap = true;
var textfmy1 = textfm.geometricBounds[0];
var textfmx1 = textfm.geometricBounds[1];
var textfmy2 = textfm.geometricBounds[2];
var textfmx2 = textfm.geometricBounds[3];
figfmy1 = figfm.geometricBounds[0];
figfmx1 = figfm.geometricBounds[1];
figfmy2 = figfm.geometricBounds[2];
figfmx2 = figfm.geometricBounds[3];
textfm.geometricBounds = [textfmy1,textfmx1,textfmy2,x2];
textfm.move([textfmy1, figfmy2]);
textfm.fit(FitOptions.FRAME_TO_CONTENT);
var myPage = mydoc.pages.everyItem();
var myArray = new Array;
myArray.push(figfm);
myArray.push(textfm);
var t = (textfmy2-textfmy1)
var groupitem = figCitationPage.groups.add(myArray);
var citbaseline = exbm - citpos;
var test = parseInt(citpage)
var citbaseline = exbm - citpos;
var test = parseInt(citpage)
if (citbaseline<groupitem.geometricBounds[2]){
groupitem.move(app.activeDocument.pages[test]);
groupitem.move([x1,y1])
else {
var by1 = groupitem.geometricBounds[0];
var by2 = groupitem.geometricBounds[2];
var t = (by2-by1)
groupitem.move([x1, (y2-t)])
return true;
function figure(){
this.name = "figure";
this.xpath = "//figure";
this.apply = function(figure,){
with(figure){
var mydoc = app.activeDocument;
var pwidth = mydoc.documentPreferences.pageWidth;
var pheight = mydoc.documentPreferences.pageHeight;
var topmargin = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.top;
var bottommargin = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.bottom;
var insidemarginfirstmaserpage = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.left;
var outsidemarginfirstmaserpage = app.activeDocument.masterSpreads.item(0).pages.item(0).marginPreferences.right;
//var insidemarginsecondmaserpage = app.activeDocument.masterSpreads.item(0).pages.item(1).marginPreferences.left;
//var outsidemarginsecondmaserpage = app.activeDocument.masterSpreads.item(0).pages.item(1).marginPreferences.right;
var y1 = topmargin;
var x1 = outsidemarginfirstmaserpage;
//var x1recto = AMinsidemargin
var y2 = pheight - bottommargin;
var x2 = pwidth- insidemarginfirstmaserpage;
//var x2recto = pwidth- AMoutsidemargin;
citpage = figCitationPage.name;
figfm = placeIntoFrame(app.activeDocument.pages.item(citpage), [y1, x1, y2, x2]);
figfm.fit(FitOptions.FRAME_TO_CONTENT);
figfm.textWrapPreferences.textWrapMode = TextWrapModes.BOUNDING_BOX_TEXT_WRAP;
figfm.textFramePreferences.ignoreWrap = true;
figfm.appliedObjectStyle = mydoc.objectStyles.item("ofigure");
fy1 = figfm.geometricBounds[0];
fx1 = figfm.geometricBounds[1];
fy2 = figfm.geometricBounds[2];
fx2 = figfm.geometricBounds[3];
return true;
Maybe you are looking for
-
Bsp error - synthax error - standard pages
http://server:8000/sap/bc/bsp/sap/dswpnotifcreate/selfsubmit.html This is standard and I get the following message 500 SAP Internal Server Error Error message: Syntax error in program CL_O2C3YJC90QK4A21UYC755ZFS5D7CP . ( type of termination: RABAX_ST
-
Apple is suppose to be the pinnacle of usability and, yet, I want to throw my new IPhone 4s as far as I can and watch is smash into a million pieces on concrete. Seriously, I've already got three things that irritate the **** out of me. First, there
-
Experts, Request your view on this: The scenario is File to IDOC via XI. XI picks up the XML files via a file adapter which is then mapped to idoc ZRMD_A07 (HRMaster Idoc Basic type built as a copy of HRMD_A07 to add additional infotypes) and sent t
-
No sound via HDMI on non-KDE apps (using KDE 4.5)
Hi, I was just wondering if anyone would know how I would go about having sound from applications like Firefox use the sound device that I select via the System Settings > Multimedia > Phonon device preference? KDE applications work no problem. I am
-
BT Infinity Canonbury Exchange
BT's publicly-available materials say that the Canonbury Exchange is enabled for Infinity, and there is a sign saying that on the box in my street. But if I check whether my phone number is able to get Infinity, the response is that it isn't. So it a