Need help in ra.xml
Hi,
I am using kodo 4.0 with weblogic10.
I set the ra.xml using XATransaction...
ra.xml
<managedconnectionfactory-class>kodo.persistence.jdbc.JPAManagedConnectionFactory</managedconnectionfactory-class>
<connectionfactory-interface>javax.resource.cci.ConnectionFactory</connectionfactory-interface>
<connectionfactory-impl-class>kodo.persistence.jdbc.JPAConnectionFactory</connectionfactory-impl-class>
<connection-interface>javax.resource.cci.Connection</connection-interface>
<connection-impl-class>kodo.persistence.EntityManagerImpl</connection-impl-class>
<transaction-support>XATransaction</transaction-support>
<config-property>
<description>connection driver name</description>
<config-property-name>ConnectionDriverName</config-property-name>
<config-property-type>java.lang.String</config-property-type>
<config-property-value>oracle.jdbc.driver.OracleDriver</config-property-value>
</config-property>
and facing problem.Following are the problem in console:
<Jan 21, 2008 5:52:47 PM IST> <Warning> <Connector> <BEA-190155> <Compliance checking/validation of the resource adapter C:\bea\user_projects\domains\HUB30\kodo-jdbc.rar resulted in the following warnings:
[1] In ra.xml element <connection-definition> the property "PropertiesFilename" of type "java.lang.String": unable to find a set method in class "kodo.persistence.jdbc.JPAManagedConnectionFactory"
[2] The weblogic-ra.xml element <outbound-resource-adapter><connection-definition-group>[connection-factory-interface = javax.resource.cci.ConnectionFactory]<connection-instance>[ jndi-name = jdbc/PersistenceManagerFactory] contains a property "RetainValues" with value "false" which cannot be found in ra.xml and therefor will not be set
[3] The weblogic-ra.xml element <outbound-resource-adapter><connection-definition-group>[connection-factory-interface = javax.resource.cci.ConnectionFactory]<connection-instance>[ jndi-name = jdbc/PersistenceManagerFactory] contains a property "RestoreValues" with value "true" which cannot be found in ra.xml and therefor will not be set
[4] The weblogic-ra.xml element <outbound-resource-adapter><connection-definition-group>[connection-factory-interface = javax.resource.cci.ConnectionFactory]<connection-instance>[ jndi-name = jdbc/PersistenceManagerFactory] contains a property "Optimistic" with value "true" which cannot be found in ra.xml and therefor will not be set
[5] The weblogic-ra.xml element <outbound-resource-adapter><connection-definition-group>[connection-factory-interface = javax.resource.cci.ConnectionFactory]<connection-instance>[ jndi-name = jdbc/PersistenceManagerFactory] contains a property "NontransactionalWrite" with value "false" which cannot be found in ra.xml and therefor will not be set
[6] The weblogic-ra.xml element <outbound-resource-adapter><connection-definition-group>[connection-factory-interface = javax.resource.cci.ConnectionFactory]<connection-instance>[ jndi-name = jdbc/PersistenceManagerFactory] contains a property "NontransactionalRead" with value "true" which cannot be found in ra.xml and therefor will not be set
[7] The weblogic-ra.xml element <outbound-resource-adapter><connection-definition-group>[connection-factory-interface = javax.resource.cci.ConnectionFactory]<connection-instance>[ jndi-name = jdbc/PersistenceManagerFactory] contains a property "Multithreaded" with value "false" which cannot be found in ra.xml and therefor will not be set
[8] The weblogic-ra.xml element <outbound-resource-adapter><connection-definition-group>[connection-factory-interface = javax.resource.cci.ConnectionFactory]<connection-instance>[ jndi-name = jdbc/PersistenceManagerFactory] contains a property "IgnoreCache" with value "false" which cannot be found in ra.xml and therefor will not be set>
<Jan 21, 2008 5:53:07 PM IST> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Long com.quadriga.hub.core.ejbs.session.message.MessageSenderRemote.sendMessage(com.quadriga.hub.core.messaging.OutboundMessage,int,java.util.Set,java.lang.Long) throws com.quadriga.hub.core.ejbs.session.message.MessageNotSentException,java.rmi.RemoteException' in EJB 'hubcore.session.MessageSenderRemote' contains a parameter of type: 'java.util.Set' which is not Serializable. Though the EJB 'hubcore.session.MessageSenderRemote' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<Jan 21, 2008 5:53:07 PM IST> <Warning> <EJB> <BEA-012035> <The Remote interface method: 'public abstract java.lang.Long com.quadriga.hub.core.ejbs.session.message.MessageSenderRemote.sendMessage(com.quadriga.hub.core.messaging.OutboundMessage,int,java.util.Set,java.lang.Long,int,java.util.Date,int) throws com.quadriga.hub.core.ejbs.session.message.MessageNotSentException,java.rmi.RemoteException' in EJB 'hubcore.session.MessageSenderRemote' contains a parameter of type: 'java.util.Set' which is not Serializable. Though the EJB 'hubcore.session.MessageSenderRemote' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>
<Jan 21, 2008 5:53:08 PM IST> <Warning> <EJB> <BEA-010202> <Call-by-reference is not enabled for the EJB 'hubcore.session.MessageSenderRemote'. The server will have better performance if it is enabled. To enable call-by-reference, set the enable-call-by-reference element to True in the weblogic-ejb-jar.xml deployment descriptor for this EJB.>
<Jan 21, 2008 5:53:08 PM IST> <Warning> <EJB> <BEA-010202> <Call-by-reference is not enabled for the EJB 'hubcore.session.ScheduleManager'. The server will have better performance if it is enabled. To enable call-by-reference, set the enable-call-by-reference element to True in the weblogic-ejb-jar.xml deployment descriptor for this EJB.>
<Jan 21, 2008 5:54:25 PM IST> <Warning> <EJB> <BEA-010202> <Call-by-reference is not enabled for the EJB 'com.quadriga.estate.ContentEstateController'. The server will have better performance if it is enabled. To enable call-by-reference, set the enable-call-by-reference element to True in the weblogic-ejb-jar.xml deployment descriptor for this EJB.>
Pls help me as soon as possible:
Thanks
Hi. I'm the previous dev lead for the connector container. However, I'm not that familiar with kodo. Is the rar your own, or is it something you picked up from us? If I could get my hands on the rar, I could check it out.
However, note that all you are geting here are Warnings, so they may or may not be causing you problems.
What actual problem(s) are you having.
If you don't want to post the rar here, you can e-mail it to me at [email protected]
Jim Gish
Jim Gish
Staff Software Engineer
BEA WebLogic Engineering
Similar Messages
-
Need help with Berkeley XML DB Performance
We need help with maximizing performance of our use of Berkeley XML DB. I am filling most of the 29 part question as listed by Oracle's BDB team.
Berkeley DB XML Performance Questionnaire
1. Describe the Performance area that you are measuring? What is the
current performance? What are your performance goals you hope to
achieve?
We are measuring the performance while loading a document during
web application startup. It is currently taking 10-12 seconds when
only one user is on the system. We are trying to do some testing to
get the load time when several users are on the system.
We would like the load time to be 5 seconds or less.
2. What Berkeley DB XML Version? Any optional configuration flags
specified? Are you running with any special patches? Please specify?
dbxml 2.4.13. No special patches.
3. What Berkeley DB Version? Any optional configuration flags
specified? Are you running with any special patches? Please Specify.
bdb 4.6.21. No special patches.
4. Processor name, speed and chipset?
Intel Xeon CPU 5150 2.66GHz
5. Operating System and Version?
Red Hat Enterprise Linux Relase 4 Update 6
6. Disk Drive Type and speed?
Don't have that information
7. File System Type? (such as EXT2, NTFS, Reiser)
EXT3
8. Physical Memory Available?
4GB
9. Are you using Replication (HA) with Berkeley DB XML? If so, please
describe the network you are using, and the number of Replica’s.
No
10. Are you using a Remote Filesystem (NFS) ? If so, for which
Berkeley DB XML/DB files?
No
11. What type of mutexes do you have configured? Did you specify
–with-mutex=? Specify what you find inn your config.log, search
for db_cv_mutex?
None. Did not specify -with-mutex during bdb compilation
12. Which API are you using (C++, Java, Perl, PHP, Python, other) ?
Which compiler and version?
Java 1.5
13. If you are using an Application Server or Web Server, please
provide the name and version?
Oracle Appication Server 10.1.3.4.0
14. Please provide your exact Environment Configuration Flags (include
anything specified in you DB_CONFIG file)
Default.
15. Please provide your Container Configuration Flags?
final EnvironmentConfig envConf = new EnvironmentConfig();
envConf.setAllowCreate(true); // If the environment does not
// exist, create it.
envConf.setInitializeCache(true); // Turn on the shared memory
// region.
envConf.setInitializeLocking(true); // Turn on the locking subsystem.
envConf.setInitializeLogging(true); // Turn on the logging subsystem.
envConf.setTransactional(true); // Turn on the transactional
// subsystem.
envConf.setLockDetectMode(LockDetectMode.MINWRITE);
envConf.setThreaded(true);
envConf.setErrorStream(System.err);
envConf.setCacheSize(1024*1024*64);
envConf.setMaxLockers(2000);
envConf.setMaxLocks(2000);
envConf.setMaxLockObjects(2000);
envConf.setTxnMaxActive(200);
envConf.setTxnWriteNoSync(true);
envConf.setMaxMutexes(40000);
16. How many XML Containers do you have? For each one please specify:
One.
1. The Container Configuration Flags
XmlContainerConfig xmlContainerConfig = new XmlContainerConfig();
xmlContainerConfig.setTransactional(true);
xmlContainerConfig.setIndexNodes(true);
xmlContainerConfig.setReadUncommitted(true);
2. How many documents?
Everytime the user logs in, the current xml document is loaded from
a oracle database table and put it in the Berkeley XML DB.
The documents get deleted from XML DB when the Oracle application
server container is stopped.
The number of documents should start with zero initially and it
will grow with every login.
3. What type (node or wholedoc)?
Node
4. Please indicate the minimum, maximum and average size of
documents?
The minimum is about 2MB and the maximum could 20MB. The average
mostly about 5MB.
5. Are you using document data? If so please describe how?
We are using document data only to save changes made
to the application data in a web application. The final save goes
to the relational database. Berkeley XML DB is just used to store
temporary data since going to the relational database for each change
will cause severe performance issues.
17. Please describe the shape of one of your typical documents? Please
do this by sending us a skeleton XML document.
Due to the sensitive nature of the data, I can provide XML schema instead.
18. What is the rate of document insertion/update required or
expected? Are you doing partial node updates (via XmlModify) or
replacing the document?
The document is inserted during user login. Any change made to the application
data grid or other data components gets saved in Berkeley DB. We also have
an automatic save every two minutes. The final save from the application
gets saved in a relational database.
19. What is the query rate required/expected?
Users will not be entering data rapidly. There will be lot of think time
before the users enter/modify data in the web application. This is a pilot
project but when we go live with this application, we will expect 25 users
at the same time.
20. XQuery -- supply some sample queries
1. Please provide the Query Plan
2. Are you using DBXML_INDEX_NODES?
Yes.
3. Display the indices you have defined for the specific query.
XmlIndexSpecification spec = container.getIndexSpecification();
// ids
spec.addIndex("", "id", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
spec.addIndex("", "idref", XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
// index to cover AttributeValue/Description
spec.addIndex("", "Description", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_SUBSTRING, XmlValue.STRING);
// cover AttributeValue/@value
spec.addIndex("", "value", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
// item attribute values
spec.addIndex("", "type", XmlIndexSpecification.PATH_EDGE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
// default index
spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ELEMENT | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
spec.addDefaultIndex(XmlIndexSpecification.PATH_NODE | XmlIndexSpecification.NODE_ATTRIBUTE | XmlIndexSpecification.KEY_EQUALITY, XmlValue.STRING);
// save the spec to the container
XmlUpdateContext uc = xmlManager.createUpdateContext();
container.setIndexSpecification(spec, uc);
4. If this is a large query, please consider sending a smaller
query (and query plan) that demonstrates the problem.
21. Are you running with Transactions? If so please provide any
transactions flags you specify with any API calls.
Yes. READ_UNCOMMITED in some and READ_COMMITTED in other transactions.
22. If your application is transactional, are your log files stored on
the same disk as your containers/databases?
Yes.
23. Do you use AUTO_COMMIT?
No.
24. Please list any non-transactional operations performed?
No.
25. How many threads of control are running? How many threads in read
only mode? How many threads are updating?
We use Berkeley XML DB within the context of a struts web application.
Each user logged into the web application will be running a bdb transactoin
within the context of a struts action thread.
26. Please include a paragraph describing the performance measurements
you have made. Please specifically list any Berkeley DB operations
where the performance is currently insufficient.
We are clocking 10-12 seconds of loading a document from dbd when
five users are on the system.
getContainer().getDocument(documentName);
27. What performance level do you hope to achieve?
We would like to get less than 5 seconds when 25 users are on the system.
28. Please send us the output of the following db_stat utility commands
after your application has been running under "normal" load for some
period of time:
% db_stat -h database environment -c
% db_stat -h database environment -l
% db_stat -h database environment -m
% db_stat -h database environment -r
% db_stat -h database environment -t
(These commands require the db_stat utility access a shared database
environment. If your application has a private environment, please
remove the DB_PRIVATE flag used when the environment is created, so
you can obtain these measurements. If removing the DB_PRIVATE flag
is not possible, let us know and we can discuss alternatives with
you.)
If your application has periods of "good" and "bad" performance,
please run the above list of commands several times, during both
good and bad periods, and additionally specify the -Z flags (so
the output of each command isn't cumulative).
When possible, please run basic system performance reporting tools
during the time you are measuring the application's performance.
For example, on UNIX systems, the vmstat and iostat utilities are
good choices.
Will give this information soon.
29. Are there any other significant applications running on this
system? Are you using Berkeley DB outside of Berkeley DB XML?
Please describe the application?
No to the first two questions.
The web application is an online review of test questions. The users
login and then review the items one by one. The relational database
holds the data in xml. During application load, the application
retrieves the xml and then saves it to bdb. While the user
is making changes to the data in the application, it writes those
changes to bdb. Finally when the user hits the SAVE button, the data
gets saved to the relational database. We also have an automatic save
every two minues, which saves bdb xml data and saves it to relational
database.
Thanks,
Madhav
[email protected]Could it be that you simply do not have set up indexes to support your query? If so, you could do some basic testing using the dbxml shell:
milu@colinux:~/xpg > dbxml -h ~/dbenv
Joined existing environment
dbxml> setverbose 7 2
dbxml> open tv.dbxml
dbxml> listIndexes
dbxml> query { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }
dbxml> queryplan { collection()[//@date-tip]/*[@chID = ('ard','zdf')] (: example :) }Verbosity will make the engine display some (rather cryptic) information on index usage. I can't remember where the output is explained; my feeling is that "V(...)" means the index is being used (which is good), but that observation may not be accurate. Note that some details in the setVerbose command could differ, as I'm using 2.4.16 while you're using 2.4.13.
Also, take a look at the query plan. You can post it here and some people will be able to diagnose it.
Michael Ludwig -
Urgent : Need help in parsing XML from Sharepoint and save it into DB
Hi ,
I am Sharepoint guy and a newbie in Oracle . PL/SQL
I am using UTL_DBWS Package to call a Sharepoint WebService " and was sucessfull , Now the xml has to be parsed and stored into a Table. I am facing the issue as the XML has a different namesoace and normal XPATH query is not working
Below is the XML and need help in parsing it
declare
responsexml sys.XMLTYPE;
testparsexml sys.XMLTYPE;
begin
responsexml := sys.XMLTYPE('<GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetListItemsResult>
<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<rs:data ItemCount="2">
<z:row ows_MetaInfo="1;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Test Title 1" ows_ID="1" ows_owshiddenversion="1" ows_UniqueId="1;#{9C45D54E-150E-4509-B59A-DB5A1B97E034}" ows_FSObjType="1;#0" ows_Created="2009-09-12 17:13:16" ows_FileRef="1;#Lists/Tasks/1_.000"/>
<z:row ows_MetaInfo="2;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Testing Tasks" ows_ID="2" ows_owshiddenversion="1" ows_UniqueId="2;#{8942E211-460B-422A-B1AD-1347F062114A}" ows_FSObjType="2;#0" ows_Created="2010-02-14 16:44:40" ows_FileRef="2;#Lists/Tasks/2_.000"/>
</rs:data>
</listitems>
</GetListItemsResult>
</GetListItemsResponse>');
testparsexml := responsexml.extract('/GetListItemsResponse/GetListItemsResult/listitems/rs:data/z:row/@ows_Title');
DBMS_OUTPUT.PUT_LINE(testparsexml.extract('/').getstringval());
end;
The issue is with rs:data , z:row nodes.... please suggest how to handle these kind of namespaces in Oracle
I need the parse the attribute "ows_Title" and save it into a DB
this script would generate "Error occured in XML Parsing"
Help is appriciated, thanks for lookingSQL> SELECT *
FROM XMLTABLE (
xmlnamespaces ('http://schemas.microsoft.com/sharepoint/soap/' as "soap",
'#RowsetSchema' AS "z"
'for $i in //soap:*//z:row return $i'
PASSING xmltype (
'<GetListItemsResponse xmlns="http://schemas.microsoft.com/sharepoint/soap/">
<GetListItemsResult>
<listitems xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema">
<rs:data ItemCount="2">
<z:row ows_MetaInfo="1;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Test Title 1" ows_ID="1" ows_owshiddenversion="1" ows_UniqueId="1;#{9C45D54E-150E-4509-B59A-DB5A1B97E034}" ows_FSObjType="1;#0" ows_Created="2009-09-12 17:13:16" ows_FileRef="1;#Lists/Tasks/1_.000"/>
<z:row ows_MetaInfo="2;#" ows__ModerationStatus="0" ows__Level="1" ows_Title="Testing Tasks" ows_ID="2" ows_owshiddenversion="1" ows_UniqueId="2;#{8942E211-460B-422A-B1AD-1347F062114A}" ows_FSObjType="2;#0" ows_Created="2010-02-14 16:44:40" ows_FileRef="2;#Lists/Tasks/2_.000"/>
</rs:data>
</listitems>
</GetListItemsResult>
</GetListItemsResponse>')
columns ows_MetaInfo varchar2(20) path '@ows_MetaInfo',
ows_Title varchar2(20) path '@ows_Title',
ows__ModerationStatus varchar2(20) path '@ows__ModerationStatus'
OWS_METAINFO OWS_TITLE OWS__MODERATIONSTATUS
1;# Test Title 1 0
2;# Testing Tasks 0
2 rows selected. -
Need help with this xml gallery !!!
i have build a gallery but its very simple...... it takes images from xml file.
i have attached all files in zip.
i just want two things if anyone can help.
first when i press next button it goes to next image but with no effect. it just displays next image ... i want to incorporate a sliding effect when the image is changed to another.
and second i want to use autoplay feature.
as soon as swf starts the images came one by one with difference of few seconds.
thx in advance... i really need help in this....!You're welcome.
I don't have an example to offer for the autorun. You should be able to think it thru. One key, as I mentioned is to preload all of the images first, that will allow for smooth playing of the show--no waiting for images to load between changes. You can load them into empty movieclips and hide them (_viisible = false) until they are needed. You could load them when called for, but you would have to put conditions on the displaying of things until the image loads, which will change when they are all loaded, so I recommend just loading them all first.
For the timing you can use setInterval. If something is going to be allowed to interupt the autorun, then you will need to make use of the clearInterval function as well, so that you stop the clock.
Since you will be wanting to know when things are loaded, you will need to use the MovieClipLoader.loadClip method for loading the images instead of using loadMovie. This is because the MovieClipLoader class supports having an event listener. If you look in the help documents in the MovieClipLoader.addListener section, there is an example there that provides a fairly good complete overview of using the code. The only difference is you'd be looking for the onLoadComplete event rather than the onLoadInit event. -
<p>Need help with the following error.....what does it mean....</p><p>28943 3086739136 XML-240304 3/7/07 7:13:23 PM |SessionNew_Job1<br /><font color="#ff0000">28943 3086739136 XML-240304 3/7/07 7:13:23 PM XML parser failed: Error <An exception occurred! Type:UnexpectedEOFException, Message:The end of input was not expected> at</font><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM line <7>, char <8> in <<?xml version="1.0" encoding="WINDOWS-1252" ?><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfigurations><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <DSConfiguration default="true" name="Configuration1"><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <case_sensitive>no</case_sensitive><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <database_type>Oracle</database_type><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_alias_name1>ODS_OWNER</db_alias_name1><br />28943 3086739136 XML-240304 3/7/07 7:13:23 PM <db_ali>, file <>.<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM |SessionNew_Job1<br />28943 3086739136 XML-240307 3/7/07 7:13:23 PM XML parser failed: See previously displayed error message.</p><p>Any help would be greatly appreciated. It's something to do with my datasource and possibly the codepage but I'm really not sure.</p><p>-m<br /></p>
please export your datastore as ATL and send it to support. Somehow the internal language around configurations got corrupted - never seen before.
-
Need help: String to XML
Hi everyone,
Im looking for some assistance regarding string to xml. I wanted to extract the xml from the field 'sendDataReturn'. Is my xsl script correct?
XML in String
<sendDataResponse xmlns="http://service.aes.cust.mic.at" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<sendDataReturn><b><?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <MicExportResponseMessage xmlns="http://www.mic-cust.com/Webservice/MicExportWS/v1.1"><Connection><connectionID>MICWEBSERVICE</connectionID><partnerID>SAPKLD400</partnerID><dateTime>2008-12-12T09:35:40</dateTime></Connection><Messages><Message><Envelope><messageID>1</messageID><partyID>01</partyID><schemaID>V 1.0 B01</schemaID><sequenceNum>1</sequenceNum><transActionID>970002570-01-TR-V3</transActionID></Envelope><Detail><actionCode><code>ER</code></actionCode><error><errorSource>MIC</errorSource><errorCode>106615</errorCode><errorType>ERR</errorType><errorText>Objekt ist schon in der Datenbank vorhanden</errorText></error></Detail></Message></Messages></MicExportResponseMessage></b></sendDataReturn>
</sendDataResponse>
XSL SCRIPT
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://service.aes.cust.mic.at">
<xsl:template match="/">
<xsl:for-each select="//sendDataReturn">
<xsl:value-of select="." disable-output-escaping="yes"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
ThanksHi
In order to apply an xsl your input needs to be valid xml. In your example this starts at the XML declaration
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<MicExportResponseMessage xmlns="http://www.mic-cust.com/Webservice/MicExportWS/v1.1">
<Connection>
<connectionID>MICWEBSERVICE</connectionID>
<partnerID>SAPKLD400</partnerID>
<dateTime>2008-12-12T09:35:40</dateTime>
</Connection>
<Messages>
<Message>
<Envelope>
<messageID>1</messageID>
<partyID>01</partyID>
<schemaID>V 1.0 B01</schemaID>
<sequenceNum>1</sequenceNum>
<transActionID>970002570-01-TR-V3</transActionID>
</Envelope>
<Detail>
<actionCode>
<code>ER</code>
</actionCode>
<error>
<errorSource>MIC</errorSource>
<errorCode>106615</errorCode>
<errorType>ERR</errorType>
<errorText>Objekt ist schon in der Datenbank vorhanden</errorText>
</error>
</Detail>
</Message>
</Messages>
</MicExportResponseMessage>
To Output all the inpit xml see here use the xsl:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:ns0="http://service.aes.cust.mic.at">
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
It looks like you are trying to extract the xml from a syschronous call response, the xsl above may bot be the entire solution but a atarting point at least to extract data, tags included .. you can eaisly test this in a xsl tool such as xml spy (there is a trial version) .. -
Need help in displaying XML in JSP
Hi there,
i'm a newbi in XML and Java - I have the following prob, think for most of u nothing very difficult (or better thought so, I've posted this question in different forums here, but nobody answers :)
I get an XML response from a search engine, now I want to display the search result in a jsp.
The result is stored in the session [I hope I figured out correctly ;)]
with the following command ->
this.pageContext.getSession().setAttribute(SEARCHRESULT, dSearchResult);
[its from the java class, which generates the result]
Result example ->
<?xml version="1.0" encoding="UTF-8"?>
<FindSearchResult xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xml/SearchResult.xsd">
<Result Hits="2" Name="OfficeLand_en_US">
<Items>
<Item Score="250">
<Field FieldNo="0" Name="ProductID">KqvAqAB1Tq0AAADnFthtpZvC</Field>
<Field FieldNo="1" Name="CatalogCategoryID">gh0KAAFvj3wAAADiW8SMtr6o</Field>
</Item>
<Item Score="250">
<Field FieldNo="0" Name="ProductID">4rwKAAFvtNYAAADiwdCMtr6o</Field>
<Field FieldNo="1" Name="CatalogCategoryID">gh0KAAFvj3wAAADiW8SMtr6o</Field>
</Item>
</Items>
<HitDistribution>
<Hit Hits="75" Score="0"/>
<Hit Hits="2" Score="250"/>
</HitDistribution>
</Result>
</FindSearchResult>
How many 'Field' elements exist, depends on the query.
The result example is a response, which is send to my JSP page. It is stored in an variable under the name SEARCHRESULT (it's the result of a query in a search engine).
My JSP page is the page, which should display the searchresult.
So i need to know, how to programm something in my JSP page to check the SEARCHRESULT to display not the whole xml file. I just want to display all Items (compare with result example) -> The name of each existing FieldNo, the Score and the HitDistribution.
Please help me :)hi there,
first create a xml schema for the xml you will be receiving.
use jaxb or castor with the schema and create a class.
in your jsp unmarshal the xml result you are getting with the class
generated by either jaxb or castor. the class will have methods that return you the required elements.
get to know xml schema better and just a pass thru of jaxb or castor will solve the problem.
vedha_g -
Need help in storing XML data in SQL server using EJB
Hi all...
i have one XML file and i need to store the data of XML in one of the table of SQL server ..i want to do this using EJB..
like this
Example :
Data i XML :
========
<Employee>
<Details>
<empid> 101 </empid>
<name> Ajitha </name>
</Details>
</Employee>
Table i have Created in SQL SERVER:
==============================
Empid || name
Final output should be :
=================
Empid || name
101 || AjithaHI,
Please check your settings as per following.
Goto T code> DC20>Define data carrier type "server, front end"---> Then check the setting as per below
Type Description Path Online
PC give descriptio maintain path Tick
Then Select this entry and click on " Define servers and files or folders"--->Then check the setting as per below
Data Carrier Type Description
DEFAULT PC default
Then Select this entry and click on "Identify front computer"--> Then check the setting as per below
Data Carrrier Type Net. address Description
Default PC DEFAULT Default for local PC
I have explained above so that u can co relate your settings with above..
I hope this will help you.
Thanks
Yogesh -
Need help in inserting XML Documents as XMLType
I am using an XMLType column in one of my tables to store XML messages that come from a B2B application. My insert takes the form of:
insert into mytable values(
'100',
'unvalidated',
'final',
XMLTYPE(
'The XML Message
This has been working fine for the last several weeks. Over the weekend I was working with a new message type and getting ready to enter some test messages for some new validation functions. When I try to insert the row, I get a
ERROR at line 6:
ORA-01704: string literal too long
error message.
In looking it up, the book says that the string literal is over 4000 characters long, which the message is.
I can't find anything in the docs on how to insert an XML doc with over 4000 characters into an XMLType column. I'm OK on record size which is supposed to be 2 GB - my string is just too long.
Please help - I need to be testing this today.
Rick PriceHi Rick,
For a very large string , i am using following proc.
See if it can be of any help.
declare
str clob ;
begin
str := '<?xml version="1.0" ?>
BIG LARGE STRING ';
insert into stylesheet values (1, 'style_name' ,XMLTYPE(str)) ;
commit;
Cheers
Pashabhai
end; -
Need help with table, xml files, click actions and visibility
Hi.
I am new to adobe livecycle and I need some guidance in a problem that I am facing.
I have an XML. The main tag 'employee' has 4 tags in it, name, age, ph# and address.
Address tag has 6 more tags in it.
I have to create a table which has 4 columns initially (all text fields). The rows are populated acccording to the XML.
1. S. No., which increments according to row number.
2. Name from XML.
3. Age from XML.
4. ph# from XML.
When any S. No. is clicked on, it should display the address details below that row, when it is clicked on again, it should hide those details and the original table view should be restored.
I googled a lot but am still not able to get how to do this.
Please help.I created a sample for you with what I think you want. Here is a file and the associated XML that goes with it.
Paul -
Need help in Parsing XML Document in Oracle
Hello Experts,
I urgently need your help. We have xml document on the Web but not on the File System. How can I parse the xml document on the web in Oracle.
Any link, blog or sample code would be appreciated.
Your help would be appreciated.
Kind Regards,
Bhavin
London, UKThis breaks down to two issues
1) Getting the XML into Oracle
2) Parsing the XML inside Oracle
For #1, the first two options that come to my mind are httpuirtype and utl_http. Both can be used to get information from a URL that understands HTTP requests.
For #2, you can treat the XML as a DOMDocument or XMLType to parse it. You also could parse it via a SQL statement using XQuery or XMLTable as well.
Many of those examples can be found on the {forum:id=34} forum or [Marco's blog|http://www.liberidu.com/blog/]. A few parsing examples that I've done can be seen at {message:id=3610259}, make sure to also follow the link I put in there to a previous example before that. -
Need help with simple XML validation
I am new to Spry and need some help creating a simple
validation. There is a form field which must not contain a value
already in the database. I have a script which accepts a parameter
and returns a boolean result. Here is the XML:
<samples>
<sample>
<ISFOUND>0</ISFOUND>
</sample>
</samples>
1. How do I call this script when the form field changes and
pass the form value as the parameter?
2. How do I check the returned value in the XML and throw an
error if true?
I appreciate any help with this. Please let me know if there
is a better way to achieve the same result.
Thanks,
RichI enabled the call to the XML response. However, I am having
trouble identifying when the call is complete so I can parse the
result. How do I run my check after the data load and display the
proper message? -
Newbie:need help to use xml as database
helo experts ,
i am totally new to Xml/java api
i need to develop a application in which my java program interact with a xml file
which will contain product inventory of a online seller store(i means what goods they are selling their price and something) and i ll use this xml file to search by my java program to find a specified product and it's price range,
now i want also a resource so that less educated person can enter their inventory information in xml file(i means less educated person here who have no knowledge about xml like if i use a databse like oracle or simple msaccess,
for this purpose i ll simple provide an interface to the user to enter inforfation without let him knowing about any database detail)
so is it possible what do i want and please give me some guidence to do this task..i am reading about xml but am not understanding is there any special software that provide interface to enter and delete elements in xml file or i have to create it with java language ....shello exzperts
any suggestion .............. -
Need help in developing XML Publisher Report in Multi Language
Hi Tim,
We have requirement to develop XML Publisher report in Multi language.
I know we can upload multiple Templates, one for each language.
Can any one help me in knowing the process other than uploading multiple templates.
Any documents or setup process related to this will be of great help.
I appretiate your help.
Thanks & Regards,
SahooHi,
Lets say you have two smart styles with X and Y, and runtime based on the number of pages, if you would like to modify the style, then check any standard table or structue which holds and responsible for the holding the style value.
If you can trace that, based on the coding we can modify accordingly.
Regards,
Santhosh. -
Need help on parsing xml file...
Hi all,
I need to collect some data from an Xml file using java. I have the following code with me but I am unable to get the required result. I am unable to get the data from the tags belonging to the header and footer elements. Please find the code and the sample xml file below.
Program to parse XML:
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
public class JobLogDetails3{
//No generics
List myJobs;
Document dom;
public JobLogDetails3(){
//create a list to hold the job objects
myJobs = new ArrayList();
public void runJobDetails() {
//parse the xml file and get the dom object
parseXmlFile();
//get each joblog element and create a job object
parseDocument();
//Iterate through the list and print the data
printData();
private void parseXmlFile(){
//get the factory
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
//Using factory get an instance of document builder
DocumentBuilder db = dbf.newDocumentBuilder();
//parse using builder to get DOM representation of the XML file
dom = db.parse("test.xml");
}catch(ParserConfigurationException pce) {
pce.printStackTrace();
}catch(SAXException se) {
se.printStackTrace();
}catch(IOException ioe) {
ioe.printStackTrace();
private void parseDocument(){
//get the root elememt
Element docEle = dom.getDocumentElement();
//get a nodelist of <joblog> elements
NodeList nl = dom.getElementsByTagName("*");
if(nl != null && nl.getLength() > 0) {
for(int i = 0 ; i < nl.getLength();i++) {
//get the joblog element
Element el = (Element)nl.item(i);
//get the joblog object
Job J = getJob(el);
//add it to list
myJobs.add(J);
* I take an joblog element and read the values in, create
* an joblog object and return it
* @param JobEl
* @return
private Job getJob(Element JobEl) {
//for each <joblog> element get text or int values of
//name ,id, age and name
String jobServer = getTextValue(JobEl,"server");
String jobName = getTextValue(JobEl,"name");
String jobClient = getTextValue(JobEl,"machine_name");
String jobStart = getTextValue(JobEl,"start_time");
String jobType = getTextValue(JobEl,"type");
String jobEnd = getTextValue(JobEl,"end_time");
String jobSize = getTextValue(JobEl,"new_processed_bytes");
//Create a new Job with the value read from the xml nodes
Job J = new Job(jobServer,jobName,jobClient,jobStart,jobType,jobEnd,jobSize);
return J;
* I take a xml element and the tag name, look for the tag and get
* the text content
* i.e for <employee><name>John</name></employee> xml snippet if
* the Element points to employee node and tagName is name I will return John
* @param ele
* @param tagName
* @return
private String getTextValue(Element ele, String tagName) {
String textVal = null;
NodeList nl = ele.getElementsByTagName(tagName);
if(nl != null && nl.getLength() > 0) {
Element el = (Element)nl.item(0);
textVal = el.getFirstChild().getNodeValue();
return textVal;
* Calls getTextValue and returns a int value
* @param ele
* @param tagName
* @return
private int getIntValue(Element ele, String tagName) {
//in production application you would catch the exception
return Integer.parseInt(getTextValue(ele,tagName));
* Iterate through the list and print the
* content to console
private void printData(){
System.out.println("No of Jobs '" + myJobs.size() + "'.");
Iterator it = myJobs.iterator();
while(it.hasNext()) {
System.out.println(it.next().toString());
public static void main(String[] args){
//create an instance
JobLogDetails JLD = new JobLogDetails();
//call run example
JLD.runJobDetails();
Job Class
public class Job {
private String jobServer;
private String jobName;
private String jobClient;
private String jobStart;
private String jobType;
private String jobEnd;
private String jobSize;
public Job(){
public Job(String jobServer,String jobName,String jobClient,String jobStart,String jobType,String jobEnd,String jobSize ) {
this.jobServer = jobServer;
this.jobName = jobName;
this.jobClient = jobClient;
this.jobStart = jobStart;
this.jobType = jobType;
this.jobEnd = jobEnd;
this.jobSize = jobSize;
public String getjobServer() {
return jobServer;
public void setjobServer(String jobServer) {
this.jobServer = jobServer;
public String getjobName() {
return jobName;
public void setjobname(String jobName) {
this.jobName = jobName;
public String getjobClient() {
return jobClient;
public void setjobClient(String jobClient) {
this.jobClient = jobClient;
public String getjobStart() {
return jobStart;
public void setjobStart(String jobStart) {
this.jobStart = jobStart;
public String getjobType() {
return jobType;
public void setjobType(String jobType) {
this.jobType = jobType;
public String getjobEnd() {
return jobEnd;
public void setjobEnd(String jobEnd) {
this.jobEnd = jobEnd;
public String getjobSize() {
return jobSize;
public void setjobSize(String jobSize) {
this.jobSize = jobSize;
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append(getjobServer());
sb.append(",");
sb.append(getjobName());
sb.append(",");
sb.append(getjobClient());
sb.append(",");
sb.append(getjobType());
sb.append(",");
sb.append(getjobStart());
sb.append(",");
sb.append(getjobEnd());
sb.append(",");
sb.append(getjobSize());
sb.append(",");
return sb.toString();
Sample XML File:
<?xml version="1.0" encoding="UTF-16" ?>
- <joblog>
<job_log_version version="2.0" />
- <header>
<filler>======================================================================</filler>
<server>Job server: TGBBAK</server>
<name>Job name: TGBSAP4-SQL-SQL DB Servers S2T - High-Weekly Full Backup</name>
<start_time>Job started: 26 September 2011 at 01:00:04</start_time>
<type>Job type: Backup</type>
<log_name>Job Log: GFD_TGBBAK_71887.xml</log_name>
<filler>======================================================================</filler>
</header>
<media_mount_date>Drive and media mount requested: 26/09/2011 01:00:04</media_mount_date>
- <media_drive_and_media_info>
<media_mount_date>Drive and media information from media mount: 26/09/2011 01:00:39</media_mount_date>
<robotic_library_name>Robotic Library Name: HP 1</robotic_library_name>
<drive_name>Drive Name: LTO4_2</drive_name>
<slot>Slot: 43</slot>
<media_label>Media Label: 000059L</media_label>
<media_guid>Media GUID: {a6ca0062-7a6f-4b4b-8144-732ca25f2f9d}</media_guid>
<media_overwrite_date>Overwrite Protected Until: 25/10/2011 19:24:58</media_overwrite_date>
<media_append_date>Appendable Until: 02/10/2011 14:00:30</media_append_date>
<media_set_target>Targeted Media Set Name: Weekly Tape</media_set_target>
</media_drive_and_media_info>
- <backup>
<filler>======================================================================</filler>
<title>Job Operation - Backup</title>
<append_or_overwrite>Media operation - append.</append_or_overwrite>
<compression>Compression Type: Hardware [if available, otherwise none]</compression>
<verify_option>WARNING: The option 'Verify after backup completes' was not selected. Performing a verify operation to make sure that media can be read after the backup has completed is recommended.</verify_option>
<filler>======================================================================</filler>
- <machine>
<machine_name>TGBSAP4.Tetley.Grp</machine_name>
<info>Network control connection is established between 10.22.2.18:3271 <--> 10.22.2.4:10000</info>
<info>Network data connection is established between 10.22.2.18:3301 <--> 10.22.2.4:3094</info>
- <set>
<set_resource_name>TGBSAP4.Tetley.Grp</set_resource_name>
<tape_name>Family Name: "Media created 25/09/2011 13:59:55"</tape_name>
- <volume>
<display_volume>Backup of "TGBSAP4.Tetley.Grp "</display_volume>
</volume>
<description>Backup set #45 on storage media #1 Backup set description: "Weekly Full Backup"</description>
<backup_type>Backup Method: Full - Back up entire database or filegroup</backup_type>
<agent_started>Microsoft SQL Server Agent: Started</agent_started>
<start_time>Backup started on 26/09/2011 at 01:01:45.</start_time>
- <database>
<database>Database PRD</database>
</database>
- <database>
<database>Database master</database>
</database>
- <database>
<database>Database model</database>
</database>
- <database>
<database>Database msdb</database>
</database>
<end_time>Backup completed on 26/09/2011 at 02:42:25.</end_time>
- <summary>
<backed_up_database>Backed up 4 databases</backed_up_database>
<new_processed_bytes>Processed 573363576542 bytes in 1 hour, 40 minutes, and 40 seconds.</new_processed_bytes>
<vlm_hist_rateformat2>Throughput rate: 5432 MB/min</vlm_hist_rateformat2>
</summary>
<filler>----------------------------------------------------------------------</filler>
</set>
</machine>
</backup>
- <footer>
<filler>======================================================================</filler>
<end_time>Job ended: 26 September 2011 at 02:43:12</end_time>
<engine_completion_status>Job completion status: Successful</engine_completion_status>
<filler>======================================================================</filler>
<completeStatus>19</completeStatus>
</footer>
</joblog>1. your code does not compile (in your main method you try to create an instance of a class which does not exist).
2. your XML document is not well formed.
+[Fatal Error] test.xml:34:74: The content of elements must consist of well-formed character data or markup.+
org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
Maybe there are other problems but you can start by fixing these. -
Need help with a xml photo gallery
First, hello to everyone. My name is Tudor , i'm from Romania and i have a flash project which implies building an XML driven scrolling photo galery. Very sorry if my english will slip in some phrases. Well , the question for which i must get an answer is: I already built the gallery, everything works ok.... but ... when i want to make some changes when the pictures load .... well here is the problem. I will print the code and briefly explain and ask at the end....
import com.greensock.TweenLite;
import com.greensock.TweenMax;
import fl.transitions.Tween;
import fl.transitions.easing.*;
import fl.transitions.*;
import fl.containers.UILoader;
var MASK_WIDTH:Number = myMask_mc.width;
var menuHolder:MovieClip = new MovieClip();
//menuHolder.x = myMask_mc.x;
//menuHolder.y = myMask_mc.y;
addChild(menuHolder);
var mouseIsOver:Boolean = false;
var oldX:Number = menuHolder.x;
menuHolder.mask = myMask_mc;
import flash.filters.ColorMatrixFilter;
import fl.motion.AdjustColor;
var color : AdjustColor;
var colorMatrix : ColorMatrixFilter;
var matrix : Array;
var filterBW : Array;
color = new AdjustColor();
color.brightness = 20;
color.contrast = 20;
color.hue = 0;
color.saturation = -100;
matrix = color.CalculateFinalFlatArray();
colorMatrix = new ColorMatrixFilter(matrix);
filterBW = [colorMatrix];
/// HERE i read and parse the XML
var xmlLoader:URLLoader = new URLLoader();
var xmlData:XML = new XML();
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
xmlLoader.load(new URLRequest("C:/Documents and Settings/Sm/Desktop/feteModel.xml"));
function LoadXML(e:Event):void
xmlData = new XML(e.target.data);
ParsePictures(xmlData);
function ParsePictures(input:XML):void
var mainPictures:Array = new Array();
var firstPictures:Array = new Array();
var secondPictures:Array = new Array();
var thirdPictures:Array = new Array();
var forthPictures:Array = new Array();
var dimensiuniArray:Array = new Array();
var heightArray:Array = new Array();
var eyeColorArray:Array = new Array();
var hairColorArray:Array = new Array();
var numeArray:Array = new Array();
var mainPicturesList:XMLList = input.fata.pozaPrincipala;
var firstPicturesList:XMLList = input.fata.poza1;
var secondPicturesList:XMLList = input.fata.poza2;
var thirdPicturesList:XMLList = input.fata.poza3;
var forthPicturesList:XMLList = input.fata.poza4;
var dimensiuniList:XMLList = input.fata.dimensiuni;
var heightList:XMLList = input.fata.inaltime;
var eyeColorList:XMLList = input.fata.culoare_ochi;
var hairColorList:XMLList = input.fata.culoare_par;
var numeList:XMLList = input.fata.nume;
for each (var element1:XML in mainPicturesList)
mainPictures.push(element1);
for each (var element2:XML in numeList)
numeArray.push(element2);
/////////// HERE I LOAD THE PICTURES ...... i must say that menuItem is a mc - exported as a class , which basically has inside a textfield, a UILoader and a preloader - also movieclip. Also i need the pictures to be black and white when they are displayed and when the mouse is over to color
for (var i=0; i < mainPictures.length; i++)
var menuItem:MenuItem;
menuItem = new MenuItem();
menuItem.y = 200;
menuItem.x =(i * (menuItem.width+1))+150;
menuItem.itemLoader.filters = filterBW;
menuItem.itemText.text = numeArray[i];
menuItem.itemLoader.source = mainPictures[i];
menuItem.itemLoader.maintainAspectRatio = false;
menuItem.itemLoader.addEventListener(Event.COMPLETE, completeHandler);
//menuItem.itemLoader.addEventListener(Event.COMPLETE,uiLoaded, false, 0, true);
//menuItem.itemLoader.addEventListener(ProgressEvent.PROGRESS, progressHandler);
//menuItem.itemLoader.load();
//menuItem.preloader_mc.visible = true;
function completeHandler(event:Event)
//trace(menuItem.itemText.text);
menuItem.mouseChildren = false;
menuItem.buttonMode = true;
menuItem.addEventListener(MouseEvent.MOUSE_OVER, mouseOverItem);
menuItem.addEventListener(MouseEvent.MOUSE_OUT, mouseOutItem);
//Add the menuItem to the menuHolder
menuHolder.addChild(menuItem);
menuHolder.addEventListener(MouseEvent.MOUSE_OVER, mouseOverMenu);
menuHolder.addEventListener(MouseEvent.MOUSE_OUT, mouseOutMenu);
function mouseOverMenu(e:Event):void
mouseIsOver = true;
//Calculate the vertical distance of how far the mouse is from
//the topleft of the mask.
var distance:Number = mouseX - myMask_mc.x;
//Calculate the distance in percentages
var percentage:Number = distance / MASK_WIDTH;
//Save the holder's old y coordinate
oldX = menuHolder.x;
var targetX:Number = -((menuHolder.width - MASK_WIDTH +150) * percentage) + myMask_mc.x;
//Tween the menuHolder to the target coordinate
TweenMax.to(menuHolder, 5, {x: Math.round(targetX)});
//This function is called when the mouse is out of the menu
function mouseOutMenu(e:Event):void
mouseIsOver = false;
var tw1:Tween;
var tw2:Tween;
function mouseOverItem(e:Event):void
var item:MenuItem = e.target as MenuItem;
menuHolder.addChild(item);
item.itemLoader.filters = [];
//trace(item.itemText.text);
tw1 = new Tween(item,"scaleX", Strong.easeInOut,1, 1.25,0.25,true);
tw2 = new Tween(item,"scaleY", Strong.easeInOut,1, 1.25,0.25,true);
//This function is called when mouse moves out of the item
function mouseOutItem(e:Event):void
var item:MenuItem = e.target as MenuItem;
item.itemLoader.filters = filterBW;
tw1 = new Tween(item,"scaleX", Strong.easeInOut,1.25, 1,0.25,true);
tw2 = new Tween(item,"scaleY", Strong.easeInOut,1.25, 1,0.25,true);
Now , i want each picture to scale when it fully loads ... i thought it will be enough to put it on the completeHandler function , but here is the problem - it scales only the last picture ..... eg. if there are 5 , it scales only the 5th ..... i tried to trace the name of the picture inside the completeHandler and also , i got 4 identical names - the name of the last picture ...... my question is : why is the completeHandler firing only for the last item? anyone has any idea why this is hapening? and more how can i fix it? PLEASE ... i'm burning my brain here for half a day here .......... THANKS in advance!!!!!!!!!!!!!!!!!!
REGARDS, TudorIf you are using a "for" loop to do the loading, it can process thru the entire set of loops before the first image is loaded. If you want to have control over the loading you should load things sequencially.
So instead of using a for loop, build a pseudo loop using an array of the files to load, a counter variable, a loading function, and a loadComplete function. Have the loading function load just one image using the counter variable to identify which image in the array to load. Have the loadComplete function process the one image that was just kloaded, increment the counter, and call the loading function if the counter value does not equal the length of the array.
Maybe you are looking for
-
I am trying to hook my MacBook Pro to a Sony Bravia TV via DVI to HDMI cable and the TV will not recognize the signal. I have used the same setup with three other TV's, each a different brand with no problem. Any ideas?
-
Where is file button in itunes 11?
I am trying to import playlists from one PC to another. It was easy to export to a USB stick but the instruction from Apple about importing is incorrect. It says, File, Library, Import Playlist but that structure does not exist in itunes 11.
-
How to create dropdown using VO
Hello Everyone, I am using Jdeveloper 11.1.1.4 . I am new to VO and have going to create simple dropdown using VO. We have table called "MyTable" in the database which inclues the columns "First_name","Last_Name","Emp_id"(primary_key) . In my .jspx p
-
Hi, I have a Linux Box in which I have installed the Enterprise Edition of OBIEE and presently there are 2 Instances of it. I have deployed different repositories in each of these instances ( Repositories pointing to different schema) However, I am n
-
Basic interaction 'standalone player' Flash Lite
I am trying to create a simple interactive menu with Flash Lite. (for example a click on a soft key will bring a blue full screen frame....) I am a beginner when it comes to cell phone content, but I understand that it is doable with flash lite. Thin