Maven built swf throwing strange error
Hi all,
I built my flex project (sdk 4.1) using maven(maven -e -X install). When i tried to run the generated swf, it throws a strange error:
VerifyError: Error #1014: Class spark.components::Application could not be found.
When i run the flash builder generated swf, it runs without any problems. I guess there is something i missed to include in the pom.xml.
Please let me know how to handle it. My project basically is built in flex sdk 4.1.
Please check my pom.xml below:
Thanks.
pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>abc-application</artifactId>
<groupId>com.abcd.abc</groupId>
<version>2.50.6.a</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.visualiq.iq</groupId>
<artifactId>CW</artifactId>
<version>2.50.6.a</version>
<packaging>swf</packaging>
<name>CW</name>
<repositories>
<repository>
<id>flexmojos</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</repository>
<repository>
<id>maven2-repository.dev.maven.org</id>
<name>Maven.org Repository for Maven</name>
<url>http://repo1.maven.org/maven2/</url>
<layout>default</layout>
</repository>
</repositories>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<pluginRepositories>
<pluginRepository>
<id>flexmojos-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</pluginRepository>
<pluginRepository>
<id>flexpmd.opensource.adobe</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<name>FlexPMD repository on opensource.adobe.com</name>
<url>http://opensource.adobe.com/svn/opensource/flexpmd/maven-repository/release/</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<finalName>Collaboration</finalName>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.9</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.1.0.16076</version>
<type>pom</type>
</dependency>
</dependencies>
<executions>
<execution>
<id>GroupDetachedView</id>
<goals>
<goal>compile-swf</goal>
</goals>
<phase>compile</phase>
<configuration>
<sourceFile>GroupDetachedView.mxml</sourceFile>
<output>target/CW/GroupDetachedView.swf</output>
</configuration>
</execution>
<execution>
<id>main</id>
<goals>
<goal>compile-swf</goal>
</goals>
<phase>compile</phase>
<configuration>
<sourceFile>main.css</sourceFile>
<output>target/CW/main.swf</output>
</configuration>
</execution>
<execution>
<id>wrapper generation</id>
<goals>
<goal>wrapper</goal>
</goals>
<configuration>
<outputDirectory>target/CW</outputDirectory>
</configuration>
</execution>
</executions>
<configuration>
<sourceFile>Coll.mxml</sourceFile>
<output>target/CW/Coll.swf</output>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0-beta-3</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.1.0.16076</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.1.0.16076</version>
<classifier>10.1</classifier>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>4.0-beta-2</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>datavisualization</artifactId>
<version>4.1.0.16076</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<type>swc</type>
<scope>external</scope>
<version>4.1.0.16076</version>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>as3corelib</artifactId>
<version>1.0</version><!-- provided swc version here need to check if
the right thing to do is to specify flex framework version -->
<type>swc</type>
</dependency>
<dependency>
<groupId>com.abcd.abc</groupId>
<artifactId>CollabSWC</artifactId>
<version>2.50.6.a</version>
<type>swc</type>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<groupId>com.adobe.ac</groupId>
<artifactId>flex-pmd-maven-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-beta-7</version>
<reportSets>
<reportSet>
<id>flex-reports</id>
<reports>
<report>asdoc-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
<outputDirectory>${project.build.directory}/../../target/site/CW</outputDirecto ry>
</reporting>
</project>
Hi harUI,
Thasnk for your reply...
I ve tried to change the scope of some dependencies to 'external'. Still i get some errors. I ve added a few more dependencies now. Everytime i change the scope i get a different error. Pleaswe go through my updated pom.xml below:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>abc-application</artifactId>
<groupId>com.abcd.abc</groupId>
<version>2.50.6.a</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<groupId>com.abcd.abc</groupId>
<artifactId>CW</artifactId>
<version>2.50.6.a</version>
<packaging>swf</packaging>
<name>CW</name>
<repositories>
<repository>
<id>flexmojos</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</repository>
<repository>
<id>maven2-repository.dev.maven.org</id>
<name>Maven.org Repository for Maven</name>
<url>http://repo1.maven.org/maven2/</url>
<layout>default</layout>
</repository>
</repositories>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<pluginRepositories>
<pluginRepository>
<id>flexmojos-repository</id>
<url>http://repository.sonatype.org/content/groups/flexgroup/</url>
</pluginRepository>
<pluginRepository>
<id>flexpmd.opensource.adobe</id>
<releases>
<enabled>true</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
<name>FlexPMD repository on opensource.adobe.com</name>
<url>http://opensource.adobe.com/svn/opensource/flexpmd/maven-repository/release/</url>
</pluginRepository>
</pluginRepositories>
<build>
<sourceDirectory>src/main/flex</sourceDirectory>
<testSourceDirectory>src/test/flex</testSourceDirectory>
<finalName>Collaboration</finalName>
<plugins>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>3.9</version>
<extensions>true</extensions>
<dependencies>
<dependency>
<groupId>com.adobe.flex</groupId>
<artifactId>compiler</artifactId>
<version>4.1.0.16076</version>
<type>pom</type>
</dependency>
</dependencies>
<executions>
<execution>
<id>GroupDetachedView</id>
<goals>
<goal>compile-swf</goal>
</goals>
<phase>compile</phase>
<configuration>
<sourceFile>GroupDetachedView.mxml</sourceFile>
<output>target/CW/GroupDetachedView.swf</output>
</configuration>
</execution>
<execution>
<id>main</id>
<goals>
<goal>compile-swf</goal>
</goals>
<phase>compile</phase>
<configuration>
<sourceFile>main.css</sourceFile>
<output>target/CW/main.swf</output>
</configuration>
</execution>
<execution>
<id>wrapper generation</id>
<goals>
<goal>wrapper</goal>
</goals>
<configuration>
<outputDirectory>target/CW</outputDirectory>
</configuration>
</execution>
</executions>
<configuration>
<sourceFile>abc.mxml</sourceFile>
<output>target/CW/abc.swf</output>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-site-plugin</artifactId>
<version>3.0-beta-3</version>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.1.0.16076</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>playerglobal</artifactId>
<version>4.1.0.16076</version>
<classifier>10.1</classifier>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flexunit</groupId>
<artifactId>flexunit</artifactId>
<version>4.0-beta-2</version>
<type>swc</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>textLayout</artifactId>
<version>4.1.0.16076</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>framework</artifactId>
<version>4.1.0.16076</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>datavisualization</artifactId>
<version>4.1.0.16076</version>
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>textLayout</artifactId>
<version>4.1.0.16076</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>spark</artifactId>
<type>swc</type>
<scope>caching</scope>
<version>4.1.0.16076</version>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>sparkskins</artifactId>
<version>4.1.0.16076</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>as3corelib</artifactId>
<version>1.0</version><!-- provided swc version here need to check if
the right thing to do is to specify flex framework version -->
<type>swc</type>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>rpc</artifactId>
<version>4.1.0.16076</version>
<type>swc</type>
<scope>caching</scope>
</dependency>
<dependency>
<groupId>com.adobe.flex.framework</groupId>
<artifactId>flex-framework</artifactId>
<version>4.1.0.16076</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>com.visualiq.iq</groupId>
<artifactId>CollaborationSWC</artifactId>
<version>2.50.6.a</version>
<type>swc</type>
</dependency>
</dependencies>
<reporting>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-project-info-reports-plugin</artifactId>
<version>2.3.1</version>
</plugin>
<plugin>
<groupId>com.adobe.ac</groupId>
<artifactId>flex-pmd-maven-plugin</artifactId>
<version>1.2</version>
</plugin>
<plugin>
<groupId>org.sonatype.flexmojos</groupId>
<artifactId>flexmojos-maven-plugin</artifactId>
<version>4.0-beta-7</version>
<reportSets>
<reportSet>
<id>flex-reports</id>
<reports>
<report>asdoc-report</report>
</reports>
</reportSet>
</reportSets>
</plugin>
</plugins>
<outputDirectory>${project.build.directory}/../../target/site/CW</outputDirecto ry>
</reporting>
</project>
Similar Messages
-
Webservice being called multiple times throws strange error
This is something that just started occurring and doesn't make much sense to me.
Using JDK 1.7 and doing the following:
FlashlineRegistryTr registry = new FlashlineRegistryTrServiceLocator().getFlashlineRegistryTr(lUrl);
((Stub)registry).setMaintainSession(true);
I can call registry.authTokenCreate(USERNAME, CREDENTIAL); ONCE and it works fine. When I immediately call it again, same command, it fails with the exception below.
The issue has to do with setting the Maintain Session to true. If I remove that line it works fine, however I need that in there.
Any thoughts on where to even begin to look?
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:
faultString: Tried to invoke method public com.flashline.cmee.openapi.databeans.AuthTokenBean com.flashline.cmee.openapi.service.FlashlineRegistry.authTokenCreate(java.lang.String,java.lang.String) throws com.flashline.framework.exception.OpenAPIException with arguments java.lang.String,java.lang.String. The arguments do not match the signature.; nested exception is:
java.lang.IllegalArgumentException: object is not an instance of declaring class
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}hostname:slc03rii.us.oracle.com
Tried to invoke method public com.flashline.cmee.openapi.databeans.AuthTokenBean com.flashline.cmee.openapi.service.FlashlineRegistry.authTokenCreate(java.lang.String,java.lang.String) throws com.flashline.framework.exception.OpenAPIException with arguments java.lang.String,java.lang.String. The arguments do not match the signature.; nested exception is:
java.lang.IllegalArgumentException: object is not an instance of declaring class
at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:221)
at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:128)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:392)
at org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:424)
at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)
at com.flashline.registry.openapi.service.v300.FlashlineRegistryTrSoapBindingStub.authTokenCreate(FlashlineRegistryTrSoapBindingStub.java:7676)
at com.flashline.registry.openapi.MikeTest.setUp(MikeTest.java:131)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:131)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)One possible solution is store the LOV values in some scope while retrieving it first time from the web service.
Next time whenever LOV is called then return the LOV values from the scope instead of calling the web service.
psedo code:
if (ADFContext.getCurrent() != null &&
ADFContext.getCurrent().getSessionScope().containsKey("LOV_LIST")) {
LOVList =
(List<SelectItem>)ADFContext.getCurrent().getSessionScope().get("LOV_LIST");
} else {
LOVList = this.populateVendorListFromWS();
ADFContext.getCurrent().getSessionScope().put("LOV_LIST",
LOVList );
}Hope it helps. -
Maven2 and axistools-maven-plugin - strange error
Hi all,
I am using maven2 for the build proccess and I get this strange error message while compiling.
=========
[INFO] Scanning for projects...
[INFO] ----------------------------------------------------------------------------
[INFO] Building Maven Quick Start Archetype
[INFO] task-segment: [compile]
[INFO] ----------------------------------------------------------------------------
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] The plugin 'org.codehaus.mojo:axistools-maven-plugin' does not exist or no valid version could be found
[INFO] ----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 1 second
[INFO] Finished at: Mon Jan 30 08:45:42 GMT+02:00 2006
[INFO] Final Memory: 1M/3M
[INFO] ----------------------------------------------------------------------------
=========
The plugin defined in pom.xml is:
==========
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>axistools-maven-plugin</artifactId>
<configuration> <fileNStoPkg>${srcdir}/properties/namespaces2packages.properties</fileNStoPkg>
<serverSide>true</serverSide>
</configuration>
<executions>
<execution>
<goals>
<goal>wsdl2java</goal>
</goals>
</execution>
</executions>
</plugin>
==========
Any ideas guys?Sorry, forgot to paste the trace. Here it is now:
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: The plugin 'org.codehaus.mojo:axistools-maven-plugin' does not e
xist or no valid version could be found
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1203)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.bindPluginToLifecycle(DefaultLifecycleExecutor.java:1139)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.constructLifecycleMappings(DefaultLifecycleExecutor.java:
948)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:450)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
a:303)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:270)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:139)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
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:324)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.version.PluginVersionNotFoundException: The plugin 'org.codehaus.mojo:axistools-maven
-plugin' does not exist or no valid version could be found
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
java:225)
at org.apache.maven.plugin.version.DefaultPluginVersionManager.resolvePluginVersion(DefaultPluginVersionManager.
java:87)
at org.apache.maven.plugin.DefaultPluginManager.verifyPlugin(DefaultPluginManager.java:177)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.verifyPlugin(DefaultLifecycleExecutor.java:1174)
... 17 more
[INFO] ---------------------------------------------------------------------------- -
Flash Builder 4 Beta 2 throwing security error on every run
I just installed the beta 2 version of flash builder, but every time I try to actually run anything built on the 4.0 SDK, it throws a security runtime error when trying to access the 4.0 sdk swf.
SecurityError: Error #2148: SWF file ......../Test.swf cannot access local resource ....../Test/bin-debug/framework_4.0.0.10485.swf. Only local-with-filesystem and trusted local SWF files may access local resources.
at flash.net::URLStream/load()
at flash.net::URLLoader/load()
at mx.core::CrossDomainRSLItem/load()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\m x\core\CrossDomainRSLItem.as:235]
at mx.core::RSLListLoader/loadNext()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx \core\RSLListLoader.as:184]
at mx.core::RSLListLoader/load()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\cor e\RSLListLoader.as:156]
at mx.preloaders::Preloader/initialize()[E:\dev\gumbo_beta2\frameworks\projects\framework\sr c\mx\preloaders\Preloader.as:279]
at mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::initialize()[E:\dev\gumbo_beta2\frameworks\pro jects\framework\src\mx\managers\SystemManager.as:1923]
at mx.managers::SystemManager/initHandler()[E:\dev\gumbo_beta2\frameworks\projects\framework \src\mx\managers\SystemManager.as:2412]
I'm running eclipse galileo (carbon) on OS X. If I create a 3.4 project, everything is fine.
Any ideas?Hi Mike,
It seems that part of my problem is due to an error in .actionScriptProperties (which file doesn't show up in the package explorer): the "mainApplicationPath" refers to a non existent file "StockQuotesExample.mxml" (see screen copy below):
So I manually modified the property to replace it with the correct file name:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<actionScriptProperties mainApplicationPath="StockQuoteExampleWebService.mxml" projectUUID="2376e773-57bd-4f6a-9034-7911cb1df6d8" version="6">
<compiler additionalCompilerArguments="-locale fr_FR" autoRSLOrdering="true" copyDependentFiles="true" generateAccessible="false" htmlExpressInstall="true" htmlGenerate="true" htmlHistoryManagement="true" htmlPlayerVersionCheck="true" includeNetmonSwc="false" outputFolderPath="bin-debug" sourceFolderPath="src" strict="true" targetPlayerVersion="0.0.0" useApolloConfig="false" useDebugRSLSwfs="true" verifyDigests="true" warn="true">
<compilerSourcePath/>
<libraryPath defaultLinkType="0">
<libraryPathEntry kind="4" path="">
<modifiedEntries>
<libraryPathEntry index="2" kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/framework.swc" useDefaultLinkType="false"/>
<libraryPathEntry index="4" kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/rpc.swc" useDefaultLinkType="false"/>
<libraryPathEntry index="3" kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/spark.swc" useDefaultLinkType="false"/>
<libraryPathEntry index="1" kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/textLayout.swc" useDefaultLinkType="false"/>
</modifiedEntries>
<excludedEntries>
<libraryPathEntry kind="3" linkType="1" path="${PROJECT_FRAMEWORKS}/libs/flex.swc" useDefaultLinkType="false"/>
</excludedEntries>
</libraryPathEntry>
<libraryPathEntry kind="1" linkType="1" path="libs"/>
<libraryPathEntry kind="3" linkType="1" path="G:/Program Files/Adobe/Mate/libs/Mate_07_8.swc" useDefaultLinkType="false"/>
</libraryPath>
<sourceAttachmentPath/>
</compiler>
<applications/>
<modules/>
<buildCSSFiles/>
</actionScriptProperties>
Unfortunately, I still get the same error message in the Flex Compiler settings page, in the project's Properties. Indeed, the message looks for the file in the wrong path: "G:\Program Files\Adobe\Mate\src\src", when it's really in "G:\Program Files\Adobe\Mate\src"... The screen shot below shows my directory structure:
This is an example application that I downloaded to test the Mate framework; maybe it set it up wrong. Also, I created an SWC file with their new made-for-Flex 4 library, but that didn't solve my problem.
Thanks for your help,
Chris. -
Hi everybody,
Trying to start BEA Server, I got a strange error : java.net.UnknownHostException : sproerp07: sproerp07 where sproerp07 is my hostname.
I work on AIX 5.1 with WL 8.1. Can you help me.
I suppose this is a java error.
But how to resolve it? I don't know. It seems that My hostname is written twice.
Help Me .... For me, Everything is ok. Hostname : ok. hosts file Ok, but Error in starting the server
===============================================
extract of my error:
The WebLogic Server did not start up properly.
java.net.UnknownHostException: sproerp07: sproerp07
at java.net.InetAddress.getLocalHost(InetAddress.java:1199)
at weblogic.rjvm.JVMID.setLocalID(JVMID.java:122)
at weblogic.rjvm.JVMID.localID(JVMID.java:102)
at weblogic.protocol.configuration.NetworkChannel.<init>(NetworkChannel.java:350)
at weblogic.protocol.configuration.NetworkChannelGroup.<init>(NetworkChannelGroup.java:141)
at weblogic.server.Server.initNetWorkChannels(Server.java:49)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:773)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
--------------- nested within: ------------------
weblogic.utils.NestedError: Local host not known?! - with nested exception:
[java.net.UnknownHostException: sproerp07: sproerp07]
at weblogic.rjvm.JVMID.setLocalID(JVMID.java:126)
at weblogic.rjvm.JVMID.localID(JVMID.java:102)
at weblogic.protocol.configuration.NetworkChannel.<init>(NetworkChannel.java:350)
at weblogic.protocol.configuration.NetworkChannelGroup.<init>(NetworkChannelGroup.java:141)
at weblogic.server.Server.initNetWorkChannels(Server.java:49)
at weblogic.t3.srvr.T3Srvr.initializeHere(T3Srvr.java:773)
at weblogic.t3.srvr.T3Srvr.initialize(T3Srvr.java:664)
at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:342)
at weblogic.Server.main(Server.java:32)
Reason: Local host not known?!I'm seeing this same issue as well. The only difference is that I have WebLogic 8.1 running on Windows 2003. I can start up the server fine as long as I'm connected to the network. When I do not have a connection, weblogic throws an UnknownHostException stating that it cannot find my server.
Any help is greatly appreciated.
Thanks,
George -
Strange error in SUM function in XI
Hi geeks,
We are encountering a strange issue in SUM functionality in XI.
The Scenario is :
We have a pipe delimited source file and INVOIC01 idoc as target. each line in the source file will create a segment E1EDP01 in the target IDOC.
All the values given in the file should be summed and mapped to E1EDS01 segment in the idoc.
In one such strange case the sum of the values generated by the SUM function in XI is 2 cents lesser what we manually calculate using Calculator or Excel . There are about 100+ items in the file. This not the case always it happens once in a while.
Have any of you faced such strange errors. If yes please throw some light on the solution for this issue.
Thanks,
NoorulHi folks,
Thanks for your help. I solved this by writing my own code
double sum = 0;
String value;
for (int i= 0; i< a.length; i++)
sum = sum + Double.parseDouble(a<i>);
value = Double.toString(sum);
BigDecimal bg1 = new BigDecimal(value);
BigDecimal bg2 = bg1.setScale(2, BigDecimal.ROUND_HALF_DOWN);
result.addValue(bg2.toString()); -
Strange error: COMPUTE_BCD_OVERFLOW
Hi everyone,
i have a very very strange error/exception trying to divide 2 Numbers:
The source code looks like this:
lv_alt_koeff = ABS( lv_alt_wrbtr_delta / ( lv_alt_wrbtr_h - lv_alt_wrbtr_s ) ).
Values are:
lv_alt_wrbtr_delta = 119201.40
lv_alt_wrbtr_h = 0.00
lv_alt_wrbtr_s = 4124.05
Can you please explain me what i'm doing wrong and how to get off this error.
Thank you very much in advance.
AndreyCheck the data declaration of the variable which holds this value. If the resultant value is too large then the ABAP throws this exception.
You may handle this using CATCH ENDCATCH statement.
Check this e.g.:
PARAMETERS fact TYPE i.
DATA: fact_save TYPE i,
res(16) TYPE p.
ARITHMETIC_ERRORS contains COMPUTE_BCD_OVERFLOW ***
CATCH SYSTEM-EXCEPTIONS ARITHMETIC_ERRORS = 5.
res = fact_save = fact.
SUBTRACT 1 FROM fact.
DO fact TIMES.
MULTIPLY res BY fact. "<- COMPUTE_BCD_OVERFLOW
SUBTRACT 1 FROM fact.
ENDDO.
ENDCATCH.
IF sy-subrc = 5.
WRITE: / 'Overflow! Factorial of', fact_save,
'can not be calculated.'.
ELSE.
WRITE: / 'Factorial of', fact_save, 'gives', res.
ENDIF.
Thanks,
SKJ -
Next / Previous button throwing an error. Please help
I wrote this next previous button code and it is throwing an
error. I don't understand why or what I am missing.
I want it to show 4 records for a page. Here is my code and
the error.
Code:
<cfset CurrentPage=GetFileFromPath(GetTemplatePath())>
<cfquery name="feat" datasource="#sitedatasource#"
username="#siteUserID#" password="#sitePassword#" maxRows=4>
SELECT feature.title AS ViewField1, feature.MYFile AS
ViewField2, feature.ID AS ID
FROM feature
</cfquery>
<cflock timeout="2" scope="application"
type="READONLY">
<cfset application.feat=feat>
</cflock>
<cfset MaxRows_feat=4>
<cfset
StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
<cfset
EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
<cfset
TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
<cfset QueryString_feat=Iif(CGI.QUERY_STRING NEQ
"",DE("&"&CGI.QUERY_STRING),DE(""))>
<cfset
tempPos=ListContainsNoCase(QueryString_feat,"PageNum_feat=","&")>
<cfif tempPos NEQ 0>
<cfset
QueryString_feat=ListDeleteAt(QueryString_feat,tempPos,"&")>
</cfif>
<cflock timeout="2" scope="application"
type="READONLY"><cfoutput query="feat"
maxrows="4">#ViewField1#</cfoutput></cflock>
<cfif PageNum_feat GT 1>
<a
href="#CurrentPage#?PageNum_feat=#Max(DecrementValue(PageNum_feat),1)##QueryString_feat#"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('Previous','','../img/previous-over.gif',1)"><img
src="../img/previous.gif" alt="Previous Records" name="Previous"
width="96" height="27" border="0" id="Previous" /></a>
<cfif PageNum_feat LT TotalPages_feat>
<a
href="#CurrentPage#?PageNum_feat=#Min(IncrementValue(PageNum_feat),TotalPages_feat)##Quer yString_feat#"
onmouseout="MM_swapImgRestore()"
onmouseover="MM_swapImage('next','','../img/next-over.gif',1)"><img
src="../img/next.gif" alt="Next Record" name="next" width="96"
height="27" border="0" id="next" /></a>
The Error:
Variable PAGENUM_FEAT is undefined.
The error occurred in
C:\Websites\x9vdzd\feature\featured.cfm: line 8
6 : </cfquery>
7 : <cfset MaxRows_feat=4>
8 : <cfset
StartRow_feat=Min((PageNum_feat-1)*MaxRows_feat+1,Max(feat.RecordCount,1))>
9 : <cfset
EndRow_feat=Min(StartRow_feat+MaxRows_feat-1,feat.RecordCount)>
10 : <cfset
TotalPages_feat=Ceiling(feat.RecordCount/MaxRows_feat)>
I thought I had it defined! What am I missing?
Thanks
Phoenixthat is strange... it should work fine - it does in my tests.
here is somewhat updated & modified code to try. i have
included
comments to try and explain what is being done.
basic logic is as follows:
-form is submitted
-check if file has been selected
-try uploading new file
-if new file upload succeeds, delete old file if it exists
(as part of
updating existing record, as new records obviously would not
have any
old image)
-update/insert record data as necessary
here's the code:
<cfif isdefined("form.feat_OK")><!--- form submitted
--->
<!--- set file uploading vars --->
<cfparam name="fileuploaded" type="boolean"
default="false">
<cfparam name="uploadedfile" default="">
<cfset pathToFile = "c:\websites\x9vdzd\img\feature\">
<!--- --->
<cfif len(trim(form.MYFile))><!--- if a file has
been selected --->
<!--- try uploading new file --->
<cftry>
<cffile Action="upload" filefield="MYFile"
accept="image/gif,
image/jpg, image/jpeg, image/pjpeg"
destination="#pathToFile" nameconflict="MAKEUNIQUE">
<cfset fileuploaded = true>
<cfset uploadedfile = cffile.serverfile>
<cfcatch type="any">
<!--- if upload did not suceed, reset file uploading vars
--->
<cfset fileuploaded = false>
<cfset uploadedfile = "">
<!--- this can be further enhanced by setting some var to
hold error
message and return it to user --->
</cfcatch>
</cftry>
</cfif>
<cfif form.id gt 0><!--- we are updating an
existing record --->
<!--- if new file upload was successful and the feature
has an image
associated with it - delete old image --->
<cfif fileuploaded is true AND
len(trim(form.oldimage))>
<cfif FileExists(pathToFile & form.oldimage)>
<cffile action="delete" file="#pathToFile &
form.oldimage#">
</cfif>
</cfif>
<cfquery datasource="#sitedatasource#"
username="#siteUserID#"
password="#sitePassword#">
UPDATE feature
SET
feature.title=<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.title#">,
feature.Body=<cfqueryparam cfsqltype="cf_sql_longvarchar"
value="#form.PDSeditor#">,
feature.MYFile=<cfqueryparam cfsqltype="cf_sql_varchar"
value="#uploadedfile#" null="#NOT fileuploaded#">
WHERE ID = <cfqueryparam value="#form.ID#"
cfsqlType="CF_SQL_INTEGER">
</cfquery>
<cfelse><!--- we are inserting a new record --->
<cfquery datasource="#sitedatasource#"
username="#siteUserID#"
password="#sitePassword#">
INSERT INTO feature
(title, body, MYFile)
VALUES
(<cfqueryparam cfsqltype="cf_sql_varchar"
value="#form.title#">,
<cfqueryparam cfsqltype="cf_sql_longvarchar"
value="#form.PDSeditor#">,
<cfqueryparam cfsqltype="cf_sql_varchar"
value="#uploadedfile#"
null="#NOT fileuploaded#">)
</cfquery>
</cfif>
<!--- relocate user to previous page after insert/update
--->
<cflocation url="feature-manager.cfm">
</cfif>
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com -
Very strange error in text properties - AI CS6
Hello Everyone,
This morning I found very very STRANGE error in Adobe CS6 about text properties. Here you go.
In the picture one text 'ei and mosterd' was bold.
But after copy to new string the bold characters are changed to 'ig and mosterdz'.
This is very strange error I have seen ever.
Do you guys have any reason why CS6 act like this?
also do you have any option to fix this issue?
For your information:
I just done copy past. Nothing else.
All the properties are same for both.
No difference except the text string size
I tried the same file in different machines for check. But I still see the same error in all the machines.
System properties:
Mac os x: 10.8.5
Processor 2,8 Ghz Intel Core i5
Memory: 8 GB
Software: Adobe CS6
Regards,
FroQWow, this is absolutely incredible... you try to parse an empty String to an int and it throws an exception... I'd never have thought.
-
Compiling producing inconsistent SWF and causes errors with embedded PNGs/GIFs
I'm not sure if this question is better asked in this forum than here: http://forums.adobe.com/message/4685405
In short, whenever I compile and run my Flex project, sometimes the SWF throws the following error or similar:
Error:
ReferenceError: Error #1065: Variable ItemDetails__embed_mxml_assets_printer_gif_1274103970 is not defined.
at ItemDetails()
at mx.managers::PopUpManagerImpl/createPopUp()
at mx.managers::PopUpManager$/createPopUp()
at MyProject/btnPrintClick()
at MyProject/__btnPrint
I thought is was related to the image but it's not and rather simply recompiling may cause it to work the next time. It seems sometimes images are left out and other times included. The error only shows for icons in my popup window and not the main app. I'm converted my Flex 3 app to Flex 4, so it uses the legacy MX tags. I compile to 4.5.1a. I'm using FB 4.6 on Mac OS.
The closest I've found to an explanation is this: http://kachurovskiy.com/2010/storing-icons-in-external-zip-and-seamless-work-with-composit e-icons/
Please advise.
Thanks,
code_away -
Calling labview 8.2 Vi from teststand 3.5 throws an error
calling labview-8.2 vi in teststand-3.5 throws the following error.
In the development environment, where Teststand 3.5 and LabVIEW 8.2 are installed, teststand file doesnt throw any error. However when the same sequence is deployed in a machine that doesnt have teststand and labview. (Both Teststand runtime engine and Labview runtime engine) are installed in the end machine.
Trying the execute the sequence in the end machine throws the following error
"Error loading step 'Call LabVIEW measurement module for amplitude imbalance' of sequence 'MainSequence' in file 'TSG06-Amplitude Imbalance.seq'.
LabVIEW: VI version is later than the current LabVIEW version."
Attachments:
Error.JPG 26 KBHi,
Should have also asked this question before.
What is your LabVIEW Adaptor set too on the target system. Use ActiveX Runtime Server or LabVIEW RTE. If its set to use the LaBVIEW ActiveX Runtime Server which can be either the Operator Interface or the seperate ActiveX Server, then these are probably built with an early labVIEW.
If so you would need to rebuild the server you are using.
Regards
Ray Farmer
Regards
Ray Farmer -
Strange Error Message at start up of FCE
Hello all. I've got a strange error message at the Startup of FCE 3.5.1 on a MacBook Pro 2.33 C2D.
It's this--
"Unable to locate the following External devices:
"Built-in Audio
But FCE runs fine. I'm not sure what it's asking for. Any suggestions?
MacBook Pro 2.33 C2D with 2GB of RAM Mac OS X (10.4.9) FCE 3.5.1, attached to LaCie 500GB drive and using Sony A1P cameraTry uninstalling your MobileMe control panel.
-
Help- Components Throwing Compile Errors
Thank you for reading my issue. I am using Flash CS3.
Recently, all my projects began throwing compile errors for
standard component AS3 code.
UI Component, FLVPlayback.
I have uninstalled and reinstalled Flash CS3, but to no
avail. Problem persists
I keep getting errors involving "QNAN", which I think
involves trapping for a non-numeric value, or something.
As a test, I created a new Flash doc, placed an instance of
FLVPlayback on the stage, pointed it to a .FLV file in the same
directory.
Errors on compile:
1093: Syntax error.
1084: Syntax error: expecting rightparen before QNAN.
1093: Syntax error.
1084: Syntax error: expecting rightparen before QNAN.
And so on, I get 5 sets of the same errors for different
functions.
The first offending function above reads:
function queueCmd(param1:VideoPlayerState, param2:Number,
param3:Number = 1.#QNAN) : void
if (param1.cmdQueue == null)
param1.cmdQueue = new Array();
}// end if
param1.cmdQueue.push(new QueuedCommand(param2, null, false,
param3));
return;
}// end function
I get similar errors from my UI component AS3 as well.
I have not touched the shipped AS3 for these components. What
gives?
Any ideas?
Thanks
TimThanks, by the way to everyone who has offered thoughts so
far.
xchanin - I've encountered issues with the FLVPlayback
component as well as various of the UI components.
I tried some example applications (from the web) not too long
ago and this issue popped up shortly there after.
But, I'm having issues with even a simple Flash with a single
FLVPlayback instance and one .flv.
There is nothing in the class path for my test file and the
root .as files open from the Flash install when I click the compile
errors in the output window.
So, it really looks like I somehow corrupted those files. I
read a post somewhere that someone had "strange invisible
characters" show up in their .as that were throwing errors.
I thought a clean install would do the trick.
I may completely isolate the example files I was using and
try another reinstall... that's about all I can think of at the
moment.
This has been a couple week search for a solution. I have a
real project coming up an need to solve this.
Thanks for any input! (I assume I can't call Adobe for an
assist as I'm still on CS3 ;)
Tim -
Throwing TypeError: Error #1009
Here is the zipped flash file, including necessary XMLs. ~30kb
Currently working on a game... and it's functioning as a game as it is.
But it's throwing some errors and cancels the creation of the words on occassion, more regularly as more words are on screen.
Here it is in it's current (but accellerated) state...
http://www.x1.ltd.uk/brooks_website/flashstuff/output/TextType2.3.1.swf
Looking at the bottom left hand corner after the game is started, you can see how many words are on screen.
As the word count gets higher, the speed the words are created at should also increase.
But, due to the errors, the opposite is currently true.
I believe that this is the code that is throwing the errors, as the more words that are on screen, the more likely that the random word has a letter currently already on screen, and so the loop will have to try again.
Any help on why the errors are being thrown would be appreciated.
Here is the zipped flash file, including necessary XMLs. ~30kbIt only throws every now and again... not every time.
More often the moer words there are on the screen..
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at TextType2_fla::MainTimeline/testWord()[TextType2_fla.MainTimeline::frame1:215]
at TextType2_fla::MainTimeline/newWord()[TextType2_fla.MainTimeline::frame1:209]
at TextType2_fla::MainTimeline/countFrames()[TextType2_fla.MainTimeline::frame1:162]
line 215 - chooseWord = Math.random()*fromXML.word.length();
Setting chooseWord, an integer variable created at run-time.
The XML was also loaded before the game is allowed to start.
line 209 - testWord();
Calling a function
line 162 - newWord();
Calling a function -
This seems silly that I'm unsure about this...but, what the right way for me to throw an error in my SubVI? Is there a built-in VI I can use to modifity the error cluster to add my error? Would it be prudent to not throw my error if a previous error already exists? Hrmm... do I just make up my own code and source?
You can use the cluster tools to modify the incoming error cluster. You set the status to true, set an error number (NI has a series of numbers they recommend you use), and the name of the VI (or further description). You can create error descriptions within the LabVIEW interface so when the error pop-up occurs, it gives your reason for the error. I have tended to shy away from this approach, as the file sits in your LabVIEW directory, and not with your code.
I have NEVER run into a circumstance where it is advisable to replace an existing error in the error cluster. Think of it this way: Is the error in your VI the result of the incoming error? Your code indicates an error in your VI even though the source of the error may not have anything to do with your VI. The error cluster, in my opinion, should always indicate the first error that occurred.
In most cases, your code should probably not even run if an error occurs. This can be solved by putting a case structure around your entires subVI's code and wiring the error cluster into the case selector. If no error occurs, your code runs. If an error occurs, you do nothing but pass the incoming error to your outoing error. There are some cases where you do want the VI to run regardless of error state (closing a reference, for example). In this case you should use the Merge Error.vi with the incoming error being wired to error #1, and your subVI's error into error #2. This way, if an incoming error occurs, your VI still executes and does what it is supposed to do, but the Merge Error returns the incoming error first (even if your code generates an error). If there is no incoming error, then your code runs and if it generates an error, the Merge Error will pass out your error.
Maybe you are looking for
-
MacBook Pro does not wake from sleep in Lion
A lot of people are reporting that their MBP freezes (which happens to me, too) but this concerns a totally different issue. About 5-10% of the time, when I return to my MBP after it has initiated sleep, I cannot get the system to respond. Keyboard s
-
I'm a professional photographer shooting RAW who currently uses Adobe Bridge, ACR and Photoshop CS2. I've spent about ten hours with the Lightroom trial, and so far I'm sorry to say that it doesn't look like it would save me any time over my current
-
Do we need a Inbound Inteface in a Proxy to File scenario
Hi, In Proxy To File Scenario, please let me know whether we have to create inbound Message Interface or not ? 1) If it not required to create inbound Message Interface in Proxy To File Scenario, then what is the procedure to pick the Inbound Interfa
-
Status Check on Table of Contents
My status checks work fine for all of my slides, except when I have my "Next" button jump to a slide later down the line. For some reason I'm not getting a checkmark on the TOB for that particular slide. Also, on that particular slide, the duration
-
hi in UK HRMS responsibility when we do ctrl L ,we get an LOV ,in this LOV when E is pressed ,the form for element entry associated with an employee opens for some employee there will be element entry for Food allowance set when it is clicked it show