XML Loader Exception
I get the following exception whenever I run the XMLLoader class.
Error loading stylesheet file:/C:/Documents and Settings/mfortner/jbproject/MedlineXMLLoader/medline.xslt
oracle.xml.parser.v2.XSLException: XSL-1009: Attribute 'xsl:version' not found in 'INSERT'.
at oracle.xml.parser.v2.XSLStylesheet.error(XSLStylesheet.java:1403)
at oracle.xml.parser.v2.XSLStylesheet.processResult(XSLStylesheet.java:615)
at oracle.xml.parser.v2.XSLStylesheet.initStylesheet(XSLStylesheet.java:421)
at oracle.xml.parser.v2.XSLStylesheet.<init>(XSLStylesheet.java:217)
at XMLLoader.main(XMLLoader.java:21)
00001: Inserted.
Processed 1Documents
I've tried moving the xsl:version attribute, putting it in it's own <?xsl-stylesheet ?> tag didn't work either. I've tried removing it, same problem. I've tried switching xmlparserv2.jar files (there are two files with different file sizes that come in the xdk) -- that didn't work either.
I'm running the XMLLoader with the following parameters:
-file sampmed2.xml -connName medline -transform medline.xslt -docTag MedlineCitationSet
Any suggestions????
The XSLT I'm using looks like this.
<?xml version="1.0"?>
<INSERT xsl:version="1.0" xmlns:xsl="http://www.w3.org/XSL/Transform">
<!-- Process Medline Records -->
<ROWSET table="medline_records">
<xsl:for-each select="MedlineCitation">
<ROW>
<MedlineID><xsl:value-of select="MedlineID"/></MedlineID>
<PMID><xsl:value-of select="PMID"/></PMID>
<DateCreated><xsl:apply-templates select="DateCreated" mode="processDateCreated"/></DateCreated>
<DateCompleted><xsl:apply-templates select="DateCompleted" mode="processDateCompleted"/></DateCompleted>
<DateRevised><xsl:apply-templates select="DateRevised" mode="processDateRevised"/></DateRevised>
<Journal><xsl:apply-templates select="Journal" mode="processJournal"/></Journal>
<ArticleTitle><xsl:value-of select="ArticleTitle"/></ArticleTitle>
<AuthorList><xsl:value-of select="AuthorList"/></AuthorList>
<Country><xsl:value-of select="MedlineJournalInfo"/></Country>
<MedlineTA><xsl:value-of select="MedlineJournalInfo/MedlineTA"/></MedlineTA>
<MedlineCode><xsl:value-of select="MedlineJournalInfo/MedlineCode"/></MedlineCode>
<NlmUniqueID><xsl:value-of select="MedlineJournalInfo/NlmUniqueID"/></NlmUniqueID>
<CitationSubset><xsl:value-of select="CitationSubset"/></CitationSubset>
</ROW>
</xsl:for-each>
</ROWSET>
<!-- Process Date Elements (DateCreated, DateCompleted, and DateRevised -->
<xsl:template select="DateCreated" mode="processDateCreated">
<xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
</xsl:template>
<xsl:template select="DateCompleted" mode="processDateCompleted">
<xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
</xsl:template>
<xsl:template select="DateRevised" mode="processDateRevised">
<xsl:value-of select="YEAR"/>-<xsl:value-of select="MONTH"/>-<xsl:value-of select="DAY"/>
</xsl:template>
<!-- Process Journal Elements -->
<xsl:template select="JOURNAL" mode="processJournal">
ISSN<xsl:value-of select="ISSN"/> VOLUME<xsl:value-of select="Volume"/> PAGES<xsl:value-of select=""/>
</xsl:template>
<!-- Process Medline Abstract Records -->
<ROWSET table="medline_abstracts">
<xsl:for-each select="MedlineCitation">
<MedlineID><xsl:value-of select="MedlineID"/></MedlineID>
<Abstract><xsl:value-of select="AbstractText"/></Abstract>
</xsl:for-each>
</ROWSET>
</INSERT>
And the XML I'm loading looks like this:
<MedlineCitationSet>
<MedlineCitation>
<MedlineID>96264942</MedlineID>
<PMID>8655018</PMID>
<DateCreated>
<Year>1996</Year>
<Month>07</Month>
<Day>30</Day>
</DateCreated>
<DateCompleted>
<Year>1996</Year>
<Month>07</Month>
<Day>30</Day>
</DateCompleted>
<DateRevised>
<Year>2000</Year>
<Month>12</Month>
<Day>18</Day>
</DateRevised>
<Article>
<Journal>
<ISSN>0017-0011</ISSN>
<JournalIssue>
<Volume>67</Volume>
<Issue>1</Issue>
<PubDate>
<Year>1996</Year>
<Month>Jan</Month>
</PubDate>
</JournalIssue>
</Journal>
<ArticleTitle>[Effect of fetal and neonatal growth on the occurrence of some diseases in adults]</ArticleTitle>
<Pagination>
<MedlinePgn>34-6</MedlinePgn>
</Pagination>
<Abstract>
<AbstractText>The findings of many authors show that reduced fetal growth is followed by increased mortality from cardiovascular disease in adult life. They are further evidence that cardiovascular disease originates, among other risk factors, through programming of the bodies structure and metabolism during fetal and early post-natal life. Wrong maternal nutrition may have an important influence on programming.</AbstractText>
</Abstract>
<Affiliation>Katedry i ZakEadu Chemii i Analizy LekC3w, AM w Katowicach.</Affiliation>
<AuthorList>
<Author>
<LastName>Jendryczko</LastName>
<FirstName>A</FirstName>
<Initials>A</Initials>
</Author>
<Author>
<LastName>Poreba</LastName>
<FirstName>R</FirstName>
<Initials>R</Initials>
</Author>
</AuthorList>
<Language>pol</Language>
<PublicationTypeList>
<PublicationType>Journal Article</PublicationType>
<PublicationType>Retracted Publication</PublicationType>
<PublicationType>Review</PublicationType>
<PublicationType>Review, Tutorial</PublicationType>
</PublicationTypeList>
<VernacularTitle>WpEyw przebiegu rozwoju pEodu i noworodka na ujawnienie sie niektC3rych chorC3b okresu dorosEego.</VernacularTitle>
</Article>
<MedlineJournalInfo>
<Country>POLAND</Country>
<MedlineTA>Ginekol Pol</MedlineTA>
<MedlineCode>FR3</MedlineCode>
<NlmUniqueID>0374641</NlmUniqueID>
</MedlineJournalInfo>
<CitationSubset>IM</CitationSubset>
<CommentsCorrections>
<CommentIn>
<RefSource>Ginekol Pol. 1998 Jul;69(7):561</RefSource>
</CommentIn>
<RetractionIn>
<RefSource>Ginekol Pol 1998 Jul;69(7):559-60</RefSource>
</RetractionIn>
</CommentsCorrections>
<MeshHeadingList>
<MeshHeading>
<Descriptor>Adult</Descriptor>
</MeshHeading>
<MeshHeading>
<Descriptor>Cardiovascular Diseases</Descriptor>
<SubHeading>etiology</SubHeading>
<SubHeading MajorTopicYN="Y">mortality</SubHeading>
</MeshHeading>
<MeshHeading>
<Descriptor>Child Development</Descriptor>
<SubHeading MajorTopicYN="Y">physiology</SubHeading>
</MeshHeading>
<MeshHeading>
<Descriptor>English Abstract</Descriptor>
</MeshHeading>
<MeshHeading>
<Descriptor>Fetal Development</Descriptor>
<SubHeading MajorTopicYN="Y">physiology</SubHeading>
</MeshHeading>
<MeshHeading>
<Descriptor>Fetal Growth Retardation</Descriptor>
<SubHeading>complications</SubHeading>
<SubHeading MajorTopicYN="Y">physiopathology</SubHeading>
</MeshHeading>
<MeshHeading>
<Descriptor>Human</Descri ptor>
</MeshHeading>
<MeshHeading>
<Descriptor>Infant, Newborn</Descriptor>
</MeshHeading>
<MeshHeading>
<Descriptor>Nutrition</Descriptor>
</MeshHeading>
<MeshHeading>
<Descriptor>Risk Factors</Descriptor>
</MeshHeading>
<MeshHeading>
<Descriptor>Survival Rate</Descriptor>
</MeshHeading>
</MeshHeadingList>
<NumberOfReferences>11</NumberOfReferences>
</MedlineCitation>
<MedlineCitation>...</MedlineCitation>
</MedlineCitationSet>
You have a typo in your namespace declaration:
xmlns:xsl="http://www.w3.org/XSL/Transform"
should be
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Similar Messages
-
XML loader and UTF-16 - throws Content is not allowed in prolog
Hi,
Our ECC system is updated to unicode system recently. Now the iDoc downloaded from ECC is having a tag <?xml version="1.0" encoding="utf-16"?>.
The XML Loader in the transaction throws an exception "Cannot perform action on XML document Content is not allowed in prolog. Exception: [Content is not allowed in prolog.]". If I change the encoding manually as "utf-8" and executing the transaction, it is working fine.
Please let me know how to solve the issue.
Thanks,
Raman NWhere should I enhance the webservice to make it able to handle zipped XML documents? Shouldn't take the AXIS library take care of this automatically?
This is the web.xml document I use.
<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>
NDW2</display-name>
<servlet>
<display-name>
Apache-Axis Servlet</display-name>
<servlet-name>AxisServlet</servlet-name>
<servlet-class>
org.apache.axis.transport.http.AxisServlet</servlet-class>
</servlet>
<servlet>
<display-name>
Axis Admin Servlet</display-name>
<servlet-name>AdminServlet</servlet-name>
<servlet-class>
org.apache.axis.transport.http.AdminServlet</servlet-class>
<load-on-startup>100</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/servlet/AxisServlet</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>*.jws</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AxisServlet</servlet-name>
<url-pattern>/services/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>AdminServlet</servlet-name>
<url-pattern>/servlet/AdminServlet</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.html</welcome-file>
<welcome-file>index.htm</welcome-file>
<welcome-file>index.jsp</welcome-file>
<welcome-file>default.html</welcome-file>
<welcome-file>default.htm</welcome-file>
<welcome-file>default.jsp</welcome-file>
</welcome-file-list>
</web-app> -
SEVERE: Servlet threw load() exception
I am trying to load servlet in Tomcat 5.5 . It is throwing an exception as follows. The LicenseAuthentication class exists in WEB-INF/Class directory. So it is not the problem.
1. In lib folder there is no servlet.jar. If I put that I am getting different exception.
2. In my servlet In init(), doPost() and doGet method implementation.
3. In web.xml I had put the <load-on-start> parameter as 1.
Can someone help immediately ? I am stuck with this issue for long time ?
Thanks
Murali
=================================================
<servlet>
<servlet-name>License</servlet-name>
<servlet-class>LicenseAuthentication</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>License</servlet-name>
<url-pattern>/License</url-pattern>
</servlet-mapping>
=======================================================
SEVERE: Servlet threw load() exception
java.lang.NoClassDefFoundError: LicenseAuthentication$1
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:2389)
at java.lang.Class.getConstructor0(Class.java:2699)
at java.lang.Class.newInstance0(Class.java:326)
at java.lang.Class.newInstance(Class.java:308)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1089)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)This is just Java 101. The NoClassDefFoundError simply means that the mentioned class is missing in the runtime classpath (while it was available in the classpath during compilation, this is the key difference with ClassNotFoundException).
In the future, please start a new topic for each independent question instead of resurrecting old topics or hijacking other's topics. -
How do I script SWF files instead of JPG files in XML loader?
I have a SWF loader (greensock.com platform) and a thumbnail image scroll underneath it made of small image buttons. Each image button has a link which loads a new SWF file into the SWF loader above. Here is the code for each button which loads the bigger SWF file into the loader above:
Button3.addEventListener(MouseEvent.CLICK, Button3_PlayPopUp);
function Button3_PlayPopUp(event:MouseEvent): void {
//setting the sourceVar
sourceVar="3.swf";
//making the SWFLoader load
//as setting the soureVar after the SWFLoader is created won't do anything unlesss
//I also re-create the SWFLoader with the new sourceVar when the button is clicked
loader_howToLoader2.url = sourceVar;
loader_howToLoader2.load(true);
Then I decided to load all button via XML loader. I followed the tutorial on XML loaders which deals with loading jpg images and assigning URL links to them in the following manner first in XML file:
<image src="appThmb_imgs/appThmb_imgs117x175/A-illuminatorUpLit_117x175.jpg" title="UpDownGlowingVase" url="http://www.888acolyte.com"/>
and then in AS3 like this:
var xmlLoader:URLLoader = new URLLoader();
thisOne.link = imageList[item].attribute("url");
function clickScrollerItem(e:MouseEvent):void {
//trace("clicked item " + e.currentTarget.itemNum + " - visit url: " + e.currentTarget.link);
var urlRequest:URLRequest = new URLRequest(e.currentTarget.link);
try {
navigateToURL(urlRequest);
catch (e:Error) {
// handle error here
trace(e);
My question is: How do I apply the code to each individual small thumbnail button to load a bigger image into the SWF loader above? Do I have to add something to XML file or this way it will never work with jpg images? Can url in XML file set the source var (//setting the sourceVar), since they are all individual and then somehow apply the making SWL loader to load part (//making the SWFLoader load) as a standard somewhere in the AS3 code?O.K. Here is my COMPLETE function.
xmlLoader.addEventListener(Event.COMPLETE, LoadXML);
function LoadXML(e:Event):void {
trace("xml load complete");
xmlData = new XML(e.target.data);
//trace(xmlData.image); //we'll see each image xml element listed in the output panel with this xmlList
buildScroller(xmlData.image); //rather than trace the xmlList, we send it to our buildScroller function
//build scroller from xml
function buildScroller(imageList:XMLList):void{
trace("build Scroller");
//var scroller_x:int=0;
for (var item:uint = 0; item<imageList.length();item++) {
var thisOne:MovieClip = new MovieClip();
//thisOne.img_width=imageList[item].attribute("width");
//outline
var blackBox:Sprite = new Sprite();
blackBox.graphics.beginFill(0xFFFFFF);
blackBox.graphics.drawRect(-1, -1, 86, 128);//-1,-1 places rectangle 1px left and up.86, 128 draws rectangle 1px wider on all sides of placed image dimenstions of 84x126
thisOne.addChild(blackBox);
//scroller_x += thisOne.img_width + 20;
//var currentX = currentImageWidth+spaceBetween;//modified line to adjust variable thumb widths
thisOne.x = (84 + padding) *item;//84 is the width of the loaded images and 15 (which was before paddign var) is the padding
//thisOne.x = scroller_x;//modified line to adjust variable thumb widths
thisOne.itemNum = item;
thisOne.title = imageList[item].attribute("title");
thisOne.link = imageList[item].attribute("url");
thisOne.src = imageList[item].attribute("src");
thisOne.alpha = 0;//makes all thumb images at alpha=0 before they are fully loaded
//trace(thisOne.itemNum, thisOne.title, thisOne.link, thisOne.src);
//Loading and Adding the Images
//image container
var thisThumb:MovieClip = new MovieClip();
//add image
var ldr:Loader = new Loader();
//var url:String = imageList[item].attribute("src");
var urlReq:URLRequest = new URLRequest(thisOne.src);
trace("loading thumbnail "+item+" into Scroller: " + thisOne.src);//url
ldr.load(urlReq);
//assign event listeners for Loader
ldr.contentLoaderInfo.addEventListener(Event.COMPLETE,completeHandler);//tells us when the loading is complete
ldr.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR, errorHandler);//tells us if there are any typo errors when the loading is complete
thisThumb.addChild(ldr);
thisOne.addChild(thisThumb);
//create listeners for this thumb
thisOne.buttonMode = true;//makes boxes act as buttons
thisOne.addEventListener(MouseEvent.CLICK, clickScrollerItem);//makes boxes act as buttons
thisOne.addEventListener(MouseEvent.MOUSE_OVER, overScrollerItem);//traces the title when the mouse is over the bounding box in the Output Panel
thisOne.addEventListener(MouseEvent.MOUSE_OUT, outScrollerItem);//traces the title when the mouse is out the bounding box in the Output Panel
//add item
scroller.addChild(thisOne);
But I am not sure if I expressed myself clearly. All what you have indicated happens. Images are being loaded and url strings are working. I can not figure out how to tweek the code so instead of url specified in xml file I can load swf image into the SWF loader on the same screen? -
Error in loading Exceptions panel
Hi all
I'm trying to apply an exception on a worksheet (abs % err > 20 %) to see what items have a inacurate forecast.
And I'm faceing the next problem:
I set the exception conditions, hit ok, rerun and the worksheet is the same, when I try to go back to the exception window, the window is empty and stuck, the only buttons available is OK & Cancel if I hit OK -> ERROR Check connection to server.
When I checked the Java Console the following Error occurred:
2009-10-26 14:06:41,234 [DataLoaderThread] ERROR collaborator.querywizard.wizard :: Error in loading Exceptions panel
java.lang.IllegalArgumentException: Malformed pattern "#.##0"
at java.text.DecimalFormat.applyPattern(Unknown Source)
at java.text.DecimalFormat.applyPattern(Unknown Source)
at com.demantra.common.utils.StringUtility.getLocalizedFormat(StringUtility.java:730)
at com.demantra.portal.querywizard.ExceptionsPanel.getTextFieldStyle(ExceptionsPanel.java:755)
at com.demantra.portal.querywizard.ExceptionsPanel.showExceptionsTable(ExceptionsPanel.java:434)
at com.demantra.portal.querywizard.ExceptionsPanel.setInitialContext(ExceptionsPanel.java:383)
at com.demantra.portal.querywizard.ExceptionsPanel.run(ExceptionsPanel.java:202)
at com.demantra.portal.querywizard.ExceptionsPanel.<init>(ExceptionsPanel.java:193)
at com.demantra.portal.querywizard.WizardManager.getPanelById(WizardManager.java:258)
at com.demantra.portal.querywizard.WizardManager$DataLoaderThread.run(WizardManager.java:1081)
If someone is willing and able to help I'm waiting for their suggestions.
Thx
AllThis is the lo from Java Console when adding exception Adjusted history > 40 reruning the worksheet and trying to reopen the exception window and stopped working:
2009-10-27 10:49:38,328 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window Logging Started...
2009-10-27 10:49:38,328 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window is started in Online mode.
2009-10-27 10:49:38,421 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window Applet codebase : http://localhost:8080/demantra/portal/
2009-10-27 10:49:38,484 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO tunnel.general :: No proxy selected
2009-10-27 10:49:38,812 [thread applet-com.demantra.partner.client.main.PartnerApplet.class] INFO dpweb.general :: Worksheets Window is using Server Time Zone Europe/Bucharest
2009-10-27 10:49:52,750 [Keep_Session_Alive_Thread] INFO dpweb.connection :: Connectivity status is: 'Connected'
2009-10-27 10:50:00,234 [Get_Meta_Data_Thread] INFO dpweb.query.data :: Note: Query test3 loaded, contains 5142 combinations
java.lang.NullPointerException
at com.klg.jclass.chart.JCChartLegendManager.drawLegendItemSymbol(JCChartLegendManager.java:555)
at com.klg.jclass.util.legend.JCLegend.drawLegendItem(JCLegend.java:548)
at com.klg.jclass.util.legend.JCLegend.paintComponent(JCLegend.java:437)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JComponent.paintChildren(Unknown Source)
at com.klg.jclass.chart.JCChart.paintChildren(JCChart.java:820)
at javax.swing.JComponent.paint(Unknown Source)
at com.klg.jclass.chart.JCChart.paint(JCChart.java:716)
at javax.swing.JComponent.paintChildren(Unknown Source)
at javax.swing.JComponent.paint(Unknown Source)
at javax.swing.JViewport.paint(Unknown Source)
at javax.swing.JComponent.paintWithOffscreenBuffer(Unknown Source)
at javax.swing.JComponent.paintDoubleBuffered(Unknown Source)
at javax.swing.JComponent._paintImmediately(Unknown Source)
at javax.swing.JComponent.paintImmediately(Unknown Source)
at javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(Unknown Source)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
2009-10-27 10:51:19,281 [DataLoaderThread] ERROR collaborator.querywizard.wizard :: Error in loading Exceptions panel
java.lang.IllegalArgumentException: Malformed pattern "#.##0"
at java.text.DecimalFormat.applyPattern(Unknown Source)
at java.text.DecimalFormat.applyPattern(Unknown Source)
at com.demantra.common.utils.StringUtility.getLocalizedFormat(StringUtility.java:730)
at com.demantra.portal.querywizard.ExceptionsPanel.getTextFieldStyle(ExceptionsPanel.java:755)
at com.demantra.portal.querywizard.ExceptionsPanel.showExceptionsTable(ExceptionsPanel.java:434)
at com.demantra.portal.querywizard.ExceptionsPanel.setInitialContext(ExceptionsPanel.java:383)
at com.demantra.portal.querywizard.ExceptionsPanel.run(ExceptionsPanel.java:202)
at com.demantra.portal.querywizard.ExceptionsPanel.<init>(ExceptionsPanel.java:193)
at com.demantra.portal.querywizard.WizardManager.getPanelById(WizardManager.java:258)
at com.demantra.portal.querywizard.WizardManager$DataLoaderThread.run(WizardManager.java:1081) -
I am attempting to install AIA Foundation Pack on a SOA domain and continually encounter an XML parsing exception error as the installer is attempting to install WSM security policies. Here are the key details:
AIA version = 11.1.1.5
SOA Suite = 11.1.1.5
WebLogic = 10.3.5
Operating System = Fedora14 (a home lab machine but I don't think this is an OS issue)
The error is encountered about 17 minutes into the lengthy process. Just before the error appears in the installation log, the following message appears indicating roughly what step is being performed:
[zip] Building zip: /opt/oraclemw/aia11115/aia_instances/dev1/tmp/aia_security_policies.zip
The core error messages are:
[exec] SEVERE: WSM-01605 XML parser exception
[exec] oracle.xml.parser.v2.XMLParseException: Expected 'EOF'.
[exec] at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
The python modules being executed by the WLST scripting tool at the time of the failure are:
[exec] Problem invoking WLST - Traceback (innermost last):
[exec] File "/opt/oraclemw/aia11115/Infrastructure/Install/AID/lib/py/importpolicy.py", line 29, in ?
[exec] File "/opt/oraclemw/oracle_common/common/wlst/wsmManage.py", line 719, in importRepository
[exec] File "/opt/oraclemw/oracle_common/common/wlst/lib/ora_util.py", line 51, in raiseScriptingException
[exec] OracleScriptingException: None
Finally, the outer XML files being used as input for the deployer that seems to be running at the time are:
/opt/oraclemw/aia11115/Infrastructure/Install/AID/AIAExecuteDriver.xml
with references to lines 221 and 64.
The problem occurs whether I try to use Java JDK 16.0.20 or JRockit R28.2.0 as the JRE when running the AIA installer. (The WebLogic domain is configured to use JRockit).
Any suggestions? Is there a library conflict being picked up between different releases of XercesImpl? I would hope there isn't actually a bad XML file in the AIA artifacts or WSM (Web Service Management) policies being deployed.HI
How this issue was resolved? Please explain in detail. I am facing the same issue.
Regards
Arun -
Data Services Fix Pack 12.2.1.2 issued to resolve XML loader problem
We've had a few customers contacting us about the following error message:
"The message type for datastore <my_ds> has not been set". Please notify Customer Support"
Note that the text "<my_ds> will be the name of the XML loader you have in your dataflow. This error occurs when you are adding a new loader to a dataflow that is an XML type.
The customers that have reported this issue were all building real-time jobs and the loader type was XML Message Target.
In order to address this issue you will need to download and install the latest update which is 12.2.1.2. The above issue was introduced in 12.2.1.1 (3.2 SP1). You will ONLY have to install the client components (Designer) in order to address this issue. no updates are necessary to the server side of the application to address this problem.
An SAP Note has also been written up on this issue: [1423045|https://bosap-support.wdf.sap.corp/sap/support/notes/1423045]
Thanks,
Ryanthere is a connection timeout when trying to contact the laptop.the last lines it shows are:
PCI: setting IRQ 0 as level-triggered
ALI15X3: not 100% native mode: will probe irqs later
ide0: BM-DMA at 0x8080-0x8087, BIOS settings: hda: DMA, hdb:pio
ide1: BM-DMA at 0x8088-0x808f, BIOS settings: hdc: pio, hdd: pio
hda: IC25N060ATMR04-0, ATA DISK drive -
XML Load Document in EXE does not run
LV 8.0 (or 8.01).
This has got to be a trivial installation problem. I wrote a simple VI that reads in an XML file using the XML Load Document vi. It runs like a charm. I then built an exe. Loading the exe results in the following set of errors:
Unable to Locate Component
This application has failed to start because xerces-c_2_2_0.dll was not found. Re-installing the application may fix this problem.
This is then followed by:
LabVIEW: Resource File not found
The file 'DOMUserDefRef.dll' is not a valid LabVIEW file
As it turns out, I just received my 8.01 CDs, so why not? I installed the upgrade, repaired the internet toolkit, sprinkled some distilled water on my keyboard, but the problem did not go away. I then un-installed ALL of LabView, re-installed 8.00, did the hokey pokey, problem is still there.
Am I missing some vital step? If so, I would love to find out where this is documented.
I've reduced the problem to just having the XML Load Document vi connected to the Close Reference VI. See the attached VI.
Thanks,
fredb.
Attachments:
XMLBug.vi 13 KBHi Casey;
The XML Load Document is part of the XML ToolKit - that comes with the Internet Toolkit from NI. I'm not sure how I can post NI's toolkits here. They are available in the Toolkit CD (part of the Professional Suite). (I tried to get a screen shot in here - can't even do that!).
I'll attach a sample XML Doc I've created. It is created by parsing the LVPROJ file in order to find all the dynamic VI's. I'll build one based on a very simple demo project and attach it here. I was able to parse most of it by using the get tag method, but when I went to use the get value - that would always return a blank string - so I gave up, found an example using the internet toolkit - and off I went.
I do have a workaround (not too elegant) - I create a simple text file each time I write the XML file. I then read the txt file from within the EXE.
Thanks for looking into this. I did get a pointer from my excellent field engineer (Lesley Yu) who suggested I take a look at...
http://digital.ni.com/public.nsf/websearch/694A29DC644542BC86256E29007CCAC1?OpenDocument
This recommends I explicitly register the dll. I have not had a chance to try this. I did completely uninstall LV and re-install it. That wasn't it.
Thanks again,
fredb.
Attachments:
Demo.zip 1 KB -
Hello, do LoadVars, XML.load(), or WebService support HTTPS-based endpoints, Yes or No?
BACKGROUND
============
I've been trying to get a LoadVars to actually make a call to an HTTPS endpoint. There is nothing in the documentation that says it can't. I know that there's also XML.load() and WebService class, but from the looks of it they don't do HTTPS.
During my tests I have absolutely no issues with making calls to the same service over HTTP. When I change it to HTTPS I don't see HTTPStatus or even failures. Also, netstat on my server will show a connection being established with the endpoint when using HTTP but not when using HTTPS. I've also tried setting SSLVerifyCertificate to "false" in my Server.xml and after a restart of AMS it doesn't help, same symptom.
I've also googled and looked through all Adobe forum posts that I can find:
https://forums.adobe.com/message/4938426#4938426
https://forums.adobe.com/thread/1661461
https://forums.adobe.com/thread/782037
https://forums.adobe.com/message/74981
https://forums.adobe.com/message/5107735#5107735
https://forums.adobe.com/message/7815#7815
https://forums.adobe.com/message/53870#53870
https://forums.adobe.com/message/87797#87797
WebService Class - http://stackoverflow.com/questions/5619776/webservice-and-fms
The best I found from the posts above is a non-commital answer from adobe staff at https://forums.adobe.com/message/4938426#4938426 and a 3rd party person saying that Webservice doesn't work at http://stackoverflow.com/questions/5619776/webservice-and-fms.
All I need is an official supported/not-supported from the Adobe staff. Shouldn't be to hard after 5 years or so of ignoring the questions in the forum right?Adobe, please provide some details to your current and possibly potential customers, in at least one of the many unanswered posts about making HTTPS requests from AMS.
P.S.
realeyes_jun,
RealEyes Media has been an inspiration to me for many years, and I would like to thank them for their efforts to better the media streaming community.
Also, would it be possible to please release the source to REDbug? -
V15 XML Loader Access To Path Not Allowed
We are just starting to test our V15 sandbox system that has just been upgraded. We have a transaction that works fine in our older environment (V12.2) but the same transaction fails in V15. The first sequence in the transaction is an XML Loader that tries to load and XML configuration file from the local MII server where the transaction is running. The action fails with a Access to path /directoryNameHere/fileNameHere.xml is not allowed error.
As far as we can tell, all of the filesystem/OS level permissions (Linux in our case) are the same as they are in our old environment.
Other than file/directory permissions, any ideas why this might fail? Has anything changed in V15 that would potentially impact this?
We are not specifying a Credential Store alias (listed as optional).
Thank you,
MikeAt some point a 'Default File Path' parameter was added as a system property and it's value may be causing your issue.
System Properties - SAP Manufacturing Integration and Intelligence - SAP Library
Default File Path
DefaultFilePath
The path on the file system (along with the subfolders) used to store files that need to be accessed by the following workbench actions for read/write operations:
File I/O
CreateDirectory
CreateZipArchive
DeleteFile
GetFileList
WriteFile
FTPInput
FTPOutput
ADS Printing
E-Mail
Send Mail
Read Mail
LoggingXML Tracer
Web
HTMLSaver
XMLSaver
TextSaver
ImageSaver
HTMLLoader
XMLLoader
TextLoader
ImageLoader
Note
Access to the files under the previous path (and the subfolders) will be lost if the path is changed.
If the path is empty, you can access the file system, provided the file system provides read/write permissions. The same holds good for prior releases. -
Hi all,
Any help you can offer on this would be much appreciated...
I'm tearing my hair out here.
I'm trying to make a quick little function to load XML data
from an individual url when called, and want to define:
- The XML's url.
- The variable to put the XML into.
- The function to run after it is loaded.
Have a look:
<mx:Script>
<![CDATA[
//Alert class...
import mx.controls.Alert;
//Remote events class...
import mx.rpc.events.*;
//Remote http class...
import mx.rpc.http.HTTPService;
//New http service object...
private var xmlService:HTTPService;
[Bindable]
//System configuration XML and variables...
public var configXml:XML = new XML();
public var ownerName:String = new String();
//Load XML function (url to load from, function to run when
loaded, error code to display)...
public function loadXml(url:String, output:String,
next:Function):void {
//Create new http service...
xmlService = new HTTPService();
//Define the url to load XML from...
xmlService.url = url;
//Define the use of a proxy...
xmlService.useProxy = false;
//Format of the returned data...
xmlService.resultFormat = "xml";
//What to do when the data has loaded...
xmlService.addEventListener("result",
function(event:ResultEvent):void{
//Put the loaded xml into the dynamic variable sent by the
click function...
this[output] = XML(event.result);
//Run the next function...
next();
xmlService.send();
public function showXml():void{
Alert.show(configXml, "Configuration");
]]>
</mx:Script>
Which is then called by something like:
<mx:Button click="loadXml('configuration.xml', 'configXml',
showXml);" />
It works fine on using a dynamic function name (next - >
showXml) but not on a dynamic variable name (output ->
configXml)... however I don't think this is the problem, the
problem comes in when it tries to write back to the configXMl
variable, the scope of it is wrong, I have tried "this[output]",
"[output]" and as many AS ways i can think of, but any suggestions
would be great...
FYI - The XML loads in fine, it just doesn't move from the
"output" variable to the "configXml" variable.
I would like to be able to define the variable the xml is
outputted to from the function attached to the button.
Any help is very much appreciated.
Thanks
OzOne XMLLoader that I know about is the example program that we build in Chapter 12 of my "Building Oracle XML Applications" book.
Steve Muench
Development Lead, Oracle XSQL Pages Framework
Lead Product Manager for BC4J and Lead XML Evangelist, Oracle Corp
Author, Building Oracle XML Applications
null -
XML loader in custom Scrollpane
I'm working on my first website, and have mostly been using tutorials on Lynda.com which has been hugely helpful. I need several different scrollpanes in the site, one of which is a typical thumbnail gallery that uses XML to load the thumbnail images and displays full-size images & text when thumbnails are clicked. With a Lynda tutorial I was able to write the appropriate code and use the canned scrollpane in Flash, but even after changing some of the properties I really don't like how it looks. I found another tutorial (http://www.developphp.com/Flash_tutorials/show_tutorial.php?tid=265) that shows a scrollpane I like better (after some modifications), and I've got it working perfectly elsewhere on the site.. but I'm wondering if/how I can integrate the XML code I've already written into this new scrollpane so I can replace the canned one? If anyone has any tips or can give me any advice I'd really appreciate it..
Thank you!
I'm using Flash CS4/AS3
Macbook Pro
This is the code for the canned one with all the XML:
var titleArray:Array = new Array();
var descriptionArray:Array = new Array();
var largeimageArray:Array = new Array();
var thumbimageArray:Array = new Array();
var imageNum:Number=0;
var totalImages:Number;
//xml
//load xml
var XMLURLLoader:URLLoader = new URLLoader();
XMLURLLoader.load(new URLRequest("insituportfolio/mainInSituGallery.xml"));
XMLURLLoader.addEventListener(Event.COMPLETE, processXML);
function processXML(event:Event):void {
var theXMLData:XML=new XML(XMLURLLoader.data);
totalImages=theXMLData.title.length();
for (var i:Number = 0; i < totalImages; i++) {
titleArray.push(theXMLData.title[i]);
descriptionArray.push(theXMLData.description[i]);
largeimageArray.push(theXMLData.largeimage[i]);
thumbimageArray.push(theXMLData.thumbimage[i]);
loadThumbnail();
mainScrollPane.source=thumbsMain;
// load thumbs
function loadThumbnail():void {
trace(imageNum);
var thumbLoader:Loader = new Loader();
thumbLoader.load(new URLRequest(thumbimageArray[imageNum]));
thumbLoader.y = 100*imageNum;
var thislargeimage:String = largeimageArray[imageNum];
var thistitle:String = titleArray[imageNum];
var thisdescription:String = descriptionArray[imageNum];
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, thumbLoaded);
function thumbLoaded(event:Event):void {
thumbsMain.addChild(thumbLoader);
thumbsMain.buttonMode=true;
mainScrollPane.update();
thumbLoader.addEventListener(MouseEvent.CLICK,loadMainImage1);
function loadMainImage1(event:MouseEvent):void {
largeUILoader.source=thislargeimage;
selectedTitle.text=thistitle;
selectedDescrip.text=thisdescription;
//add to imageNum (1);
imageNum++;
if (imageNum<totalImages){
loadThumbnail();
And this is the code for the Scrollpane I'd like to use:
// Scroll My Content function - AS3
function scrollMyContent () {
// Cache the TextField as a bitmap to improve performance.
content_mc.cacheAsBitmap = true;
// Event Listeners
scrollDragger.addEventListener(MouseEvent.MOUSE_DOWN, scrollDraggerPress);
stage.addEventListener(MouseEvent.MOUSE_UP, mouseUpOnStage);
// Set variables
var scrollbarHeight:Number = scrollbarBG.height;
var contentHeight:Number = content_mc.height;
var scrollDraggerHeight:Number = scrollDragger.height;
var maskHeight:Number = contentMask.height;
var scrollAmout:Number = (contentHeight-maskHeight)/(scrollbarHeight-scrollDraggerHeight);
var topBound:Number = scrollbarBG.y;
var bottomBound:Number = scrollbarBG.height-scrollDraggerHeight+scrollbarBG.y;
var startPos:Number = content_mc.y;
var leftBound:Number = scrollbarBG.x;
var absNumSet:Number = 0;
// When scrollDragger gets pressed we do this
function scrollDraggerPress(event:MouseEvent):void {
// Set bounds using some of the scroller BG properties claimed above
var bounds:Rectangle = new Rectangle(leftBound, topBound, 0, bottomBound);
scrollDragger.startDrag(false, bounds);
stage.addEventListener(MouseEvent.MOUSE_MOVE, reportStageMouse);
function reportStageMouse(event:MouseEvent):void {
absNumSet = Math.abs(scrollbarBG.y - scrollDragger.y);
content_mc.y = Math.round(absNumSet * - 1 * scrollAmout + startPos);
// When mouse is released while dragging we do this
function mouseUpOnStage(event:MouseEvent):void {
stopDrag();
scrollMyContent();Thank you, that's helpful... so if I just swap the source, do I just drop in the code for the xml after? Or should it go elsewhere?
I'm sorry, I realize this is probably a very basic question. -
XML Loader action URL via global properties with no drive letter
Trying to use the XML Loader action. If we hard code the URL as "c:\Inetpub\wwwroot\Camstar\Errors\logDetails.xml" it works fine. We want to use several global properties to construct the URL as follows.
Resulting in:
10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml.
This does not work in the XML Loader action configuration but will work in IE every time. The XML Loader action throws the following errors.
[ERROR]: Unable to complete requested action on XML document.
10.40.4.78\Inetpub\wwwroot\Camstar\Errors\logDetails.xml (Access is denied)
[ERROR]: ACTION FAILED: End Action XmlLoader_LogDetails : ()
Does anyone know how to resolve this issue?Tim,
Ron is right about IE using the Microsoft magic of switching between Windows Explorer and Internet Explorer to locate the file.
Your best bet would be to construct a true http formatted string such as: http://localhost/Camstar/Errors/logDetails.xml
This would of course be only good for files on the local server, but would also be very upgrade friendly for version 12.0 migration. UNC paths would not work to other servers or network shares either.
If the xml files are in the IllumDoc Rowsets/Rowset/Row format you could just as easily use and XMLQuery action block instead of the XMLLoader, which might make it easier you to use the [Param.x] tokens in the template, etc.
Regards,
Jeremy -
Just updated my iPad 2 via iTunes to iOS 7.0.2. So far everything loaded except for sent mail. Is there anyway to recover the sent mail?
You'll get a variety of earlier versions of iTunes here: Old iTunes for Mac
-
Help needed to STOP xml loading
Hi there,
I'm pretty new to the action script side of things, have had some help on here already and have also been pulled up for asking for too much help.
Well I'm kind of getting the hang of it now, but am having one major problem with the site I'm making, basically I've been following a tutorial for an xml based website, just about got my head round it but I need one line of code to stop the xml movie clip playing when I load a new one (eg when you navigate to a new page.
this is the current code, if anyone can help I'd be massively thankful, this project has been doing my head in for weeks now - fingers crossed folks D
// onLoad XML function
function loadXML(success) {
if (success) {
// If the XML loads successfully, count how many projects there are in the file.
_root.projectCount = this.firstChild.childNodes.length; // PROJECT node in XML file
// Then run a function that builds arrays out of the XML data.
SS_Arrays();
} else {
// If the xml data did not load, show message on stage by populating the description field.
_root.description = "Error: Could not load XML";
function SS_Arrays() {
for (var count = 0; count < _root.projectCount; count++) {
var nodeObj = objXML.firstChild.childNodes[count];
namesArray[count] = nodeObj.attributes.name;
descriptionsArray[count] = nodeObj.attributes.description;
linksArray[count] = nodeObj.attributes.link;
filesArray[count] = nodeObj.attributes.file;
// run the function to create the thumbnail and list view buttons
SS_createButtons();
function SS_createButtons() {
// First of all we want to hide the master button on the stage (btn_projects_main)
// because we'll be making duplicates of it in the next part of the function
_root.btn_projects_main._visible = 0;
// Work out the X and Y positions of the main button so our new buttons start in the same place
// (Which means where ever you position the main button is where the navigation will start).
btn_xPos = _root.btn_projects_main._x;
btn_yPos = _root.btn_projects_main._y;
// Set the distances between your buttons and the number of rows
btn_xDistance = 140;
btn_yDistance = 19;
btn_numOfRows = 5;
// This figure is used to work out when to start a new column of buttons
btn_yMax = btn_yPos + ((btn_numOfRows - 1) * btn_yDistance);
// Loop through the projects array and create a button for each one by duplicating the original.
for (count = 0; count < _root.projectCount; count++) {
duplicateMovieClip(_root.btn_projects_main, "btn_projects" + count, count);
// As the button is created, set it's X, Y & text properties
_root["btn_projects" + count]._x = btn_xPos;
_root["btn_projects" + count]._y = btn_yPos;
_root["btn_projects" + count].text = namesArray[count];
// set the X position for the next button
if(btn_yPos == btn_yMax){
// if the last buttons was the last row in the column (based on it's Y position) then start a new column
// by resetting the Y position and adding 140px (btn_xDistance) to the the X position.
btn_xPos = btn_xPos + btn_xDistance;
btn_yPos = _root.btn_projects_main._y;
} else {
// if it's not the last one in a row, simply move it along the Y axis.
btn_yPos = btn_yPos + btn_yDistance;
// Load the first project (number 0) to avoid an empty screen
SS_load_project(0);
// Make the first project button highlighted
tellTarget(_root.btn_projects0){
gotoAndPlay(3);
// Set the current button variable so we know which button to switch off when another one is pressed
_root.curButton = "0";
function SS_load_project(arrayNumber){Hi,
In DBMS_JOBS_RUNNING you can find the sid of the session.
Use this sid to identify the session in v$session and kill the session with:
'alter system kill session 'sid,serial#';'
Don't forget to mark the job as broken or remove it from the job queue.
OR
Before 10g, if you want to stop all jobs, you can simply set JOB_QUEUE_PROCESSES to zero.
In 10g, Oracle intrduced scheduler_job with many advanced features.
In this post I do not want to deal with different features of scheduler_jobs.
In 10g, it is possible to schedule job either in dba_jobs or dba_scheduler_jobs.
Setting JOB_QUEUE_PROCESSES to zero stops only jobs in dba_jobs which means that jobs in scheduler are still running .
In order to disable jobs in dba_scheduler_job, the following script should be run for each job in scheduler.
BEGIN
sys.dbms_scheduler.disable( '"schema?"."job name?"' );
END;
Regards,
Tom
http://asktom.cz
Maybe you are looking for
-
OAM- "You do not have sufficient access rights" message with Master Admin
Customer has configured the OAM system to have both the primary and the secondary side for failover purposes. The back end directory server on both systems are in sync. The primary side of the systems works well as far as this issue is concerned. On
-
XI 7.0 (PI 7.0) PDF Guides
Does any of you have or know where to get the new documentation (How to...) on the lastest XI release? We are planning to implement XI on NW2004s version, and are doing research on the subject. I am interested in the architecture planning, installat
-
Activity Universe + Audit / Creating a new report
Hello. We are using the audit & Activity universe reports, but some user have asked to make a new report that is not in the packaged reports in the Audit folder. He needs for all exisitng reports : - report name - date of the last refresh - author of
-
Destination NAT with a specific origin ASA 8.2
Hello Everyone, I need configure destination NAT in my ASA 8.2 version only for a specific origin. Today, the network 10.84.25.0/24 access the web server with IP 172.17.3.150, i need nat the IP 172.17.3.150 to 10.96.202.10 only for 10.84.25.0/24 netw
-
Hi All, We have some infoobjects (A) created with referencing objects (B). In our production system we noticed that the referncing object is not correct. We have been loading the data since a year. This issue was noticed recently. We need to modify a