FU4.1RC2 - "invalid application descriptor" when using AIR 2.5

Folks,
I discovered today when attempting to use AIR 2.5 with FlexUnit4.1 RC2 that you will get the following error when adl.exe is invoked:
[flexunit] Setting up server process ...
[flexunit] Starting server ...
[flexunit] Opening server socket on port [1024].
[flexunit] Waiting for client connection ...
[flexunit] Found AIR version: 2.5
[flexunit] Created application descriptor at [C:\EclipseWorkspace3.5\report.renderer_tests_2\build\flexUnitDescriptor.xml]
[flexunit] Executing 'C:\Flex\AIRSdk2.5\bin\adl.exe' with arguments:
[flexunit] 'C:\EclipseWorkspace3.5\report.renderer_tests_2\build\flexUnitDescriptor.xml'
[flexunit] The ' characters around the executable and arguments are
[flexunit] not part of the command.
[flexunit] invalid application descriptor: versionNumber must have a non-empty value.
From what I can tell, the flexUnitDescriptor.xml file that FlexUnit is producing has this:
      <version>1.0.0</version>
I guess AIR 2.5 changes the element name to <versionNumber>. When I manually changed 'version' to 'versionNumber', I could get adl.exe to launch and run the tests manually from the command line.
Something to be aware of - hopefully you all are aware of this apparent API change.
Regards,
Trevor

Hi Trevor,
This issue has actually been resolved in the RC3 build of FlexUnit.  At least I have applied code to resolve this isssue
Can you please try utilizing the libraries provided in our RC3 build?
http://flexunit.digitalprimates.net:8080/job/FlexUnit4-Flex3.5/lastSuccessfulBuild/artifac t/flexunit-4.1.0_RC3-30-3.5.0.12683.zip
Let me know if you still have issues with this.  Does the fact that this is running now, mean that you made progress on your other post?
Thanks,
simeon

Similar Messages

  • AIR ADL invalid application descriptor

    Hi, everyone.
    I have problem with running AIR aplications when installed Ruby under Windows 7.
    If I try to run adl for my program "adl application.xml bin", I get the next result:
    C:\Documents and Settings\User\Desktop\New Project>adl application.xml bin
    NOTE: Gem.cache is deprecated, use Gem::source_index. It will be removed on or after 2011-08-01.
    Gem.cache called from C:/Ruby192/lib/ruby/gems/1.9.1/gems/sprout-0.7.246/lib/sprout.rb:365
    invalid application descriptor: Unknown namespace: http://ns.adobe.com/air/application/3.7
    C:\Documents and Settings\User\Desktop\New Project>
    Similar problem on the two different computers.
    When I uninstalled Ruby AIR applications  worked normally.
    But I need Ruby and I need AIR.
    When I type just "adl" in command promt, I get result:
    Adobe (R) AIR (R) Debug Launcher (ADL)
    Version 3.1.0.4880
    Copyright (c) 2008-2011 Adobe Systems Incorporated. All Rights Reserved.
    application descriptor file not specified
    usage:
    adl ( -runtime <runtime-dir> )? ( -pubid <pubid> )? -nodebug? ( -profile PROFILE )? ( -extdir <extensions-dir> )? ( -screensize SCREEN_SIZE )? <app-
    desc> <root-dir>? ( -- ... )?
    adl -help
    PROFILE : mobileDevice|extendedMobileDevice|desktop|extendedDesktop|tv|extendedTV
    SCREEN_SIZE : ( <width>x<height>:<fullscreen width>x<fullscreen height> )|PREDEFINED_SCREEN_SIZE
    PREDEFINED_SCREEN_SIZE : iPhone|iPhoneRetina|iPod|iPodRetina|iPad|Droid|NexusOne|SamsungGalaxyS|SamsungGalaxyTab|Q VGA|WQVGA|FWQVGA|HVGA|WVGA|FWVGA|108
    0|720|480
    Thank you!

    I haven't seen this reported before and I'm not sure why there's a conflict.  Very odd that doing it without arguments does not cause the error.  Could you please open a bug report on this over at bugbase.adobe.com and let me know the bug number?  I'll follow up internally.
    Thanks,
    Chris

  • Invalid application descriptor: descriptor version does not match runtime version

    Hi.
    I have writen a very simple AIR app. Its not really an app
    just a button on the stage in flex2 as I want to try packaging it
    up as an air app from the command line. When i use adl to do this i
    get the following error.
    invalid application descriptor: descriptor version does not
    match runtime version
    I have just downloaded the latest version of AIR 1.0.1 and
    still have no joy even when i change <application xmlns="
    http://ns.adobe.com/air/application/1.0">
    to <application xmlns="
    http://ns.adobe.com/air/application/1.0.1">
    The code for my app is below, i woudl very much appreciate a
    little advice as to where i am going wrong.
    Many thanks
    Barry.
    test-app.xml (descriptor file)
    <?xml version="1.0" encoding="UTF-8"?>
    <application xmlns="
    http://ns.adobe.com/air/application/1.0.1">
    <!-- Adobe AIR Application Descriptor File Template.
    Specifies parameters for identifying, installing, and
    launching AIR applications.
    See
    http://www.adobe.com/go/air_1.0_application_descriptor
    for complete documentation.
    xmlns - The Adobe AIR namespace:
    http://ns.adobe.com/air/application/1.0
    The last segment of the namespace specifies the version
    of the AIR runtime required for this application to run.
    minimumPatchLevel - The minimum patch level of the AIR
    runtime required to run
    the application. Optional.
    -->
    <!-- The application identifier string, unique to this
    application. Required. -->
    <id>test application</id>
    <!-- Used as the filename for the application. Required.
    -->
    <filename>test</filename>
    <!-- The name that is displayed in the AIR application
    installer. Optional. -->
    <name>test app</name>
    <!-- An application version designator (such as "v1",
    "2.5", or "Alpha 1"). Required. -->
    <version>v1</version>
    <!-- Description, displayed in the AIR application
    installer. Optional. -->
    <!-- <description></description> -->
    <!-- Copyright information. Optional -->
    <!-- <copyright></copyright> -->
    <!-- Settings for the application's initial window.
    Required. -->
    <initialWindow>
    <!-- The main SWF or HTML file of the application.
    Required. -->
    <!-- Note: In Flex Builder, the SWF reference is set
    automatically. -->
    <content>test.swf</content>
    <!-- The title of the main window. Optional. -->
    <!-- <title></title> -->
    <!-- The type of system chrome to use (either "standard"
    or "none"). Optional. Default standard. -->
    <!-- <systemChrome></systemChrome> -->
    <!-- Whether the window is transparent. Only applicable
    when systemChrome is false. Optional. Default false. -->
    <!-- <transparent></transparent> -->
    <!-- Whether the window is initially visible. Optional.
    Default false. -->
    <!-- <visible></visible> -->
    <!-- Whether the user can minimize the window. Optional.
    Default true. -->
    <!-- <minimizable></minimizable> -->
    <!-- Whether the user can maximize the window. Optional.
    Default true. -->
    <!-- <maximizable></maximizable> -->
    <!-- Whether the user can resize the window. Optional.
    Default true. -->
    <!-- <resizable></resizable> -->
    <!-- The window's initial width. Optional. -->
    <!-- <width></width> -->
    <!-- The window's initial height. Optional. -->
    <!-- <height></height> -->
    <!-- The window's initial x position. Optional. -->
    <!-- <x></x> -->
    <!-- The window's initial y position. Optional. -->
    <!-- <y></y> -->
    <!-- The window's minimum size, specified as a
    width/height pair, such as "400 200". Optional. -->
    <!-- <minSize></minSize> -->
    <!-- The window's initial maximum size, specified as a
    width/height pair, such as "1600 1200". Optional. -->
    <!-- <maxSize></maxSize> -->
    </initialWindow>
    <!-- The subpath of the standard default installation
    location to use. Optional. -->
    <!-- <installFolder></installFolder> -->
    <!-- The subpath of the Windows Start/Programs menu to
    use. Optional. -->
    <!-- <programMenuFolder></programMenuFolder>
    -->
    <!-- The icon the system uses for the application. For at
    least one resolution,
    specify the path to a PNG file included in the AIR package.
    Optional. -->
    <!-- <icon>
    <image16x16></image16x16>
    <image32x32></image32x32>
    <image48x48></image48x48>
    <image128x128></image128x128>
    </icon> -->
    <!-- Whether the application handles the update when a
    user double-clicks an update version
    of the AIR file (true), or the default AIR application
    installer handles the update (false).
    Optional. Default false. -->
    <!-- <customUpdateUI></customUpdateUI> -->
    <!-- Whether the application can be launched when the
    user clicks a link in a web browser.
    Optional. Default false. -->
    <!--
    <allowBrowserInvocation></allowBrowserInvocation>
    -->
    <!-- Listing of file types for which the application can
    register. Optional. -->
    <!-- <fileTypes> -->
    <!-- Defines one file type. Optional. -->
    <!-- <fileType> -->
    <!-- The name that the system displays for the registered
    file type. Required. -->
    <!-- <name></name> -->
    <!-- The extension to register. Required. -->
    <!-- <extension></extension> -->
    <!-- The description of the file type. Optional. -->
    <!-- <description></description> -->
    <!-- The MIME type. Optional. -->
    <!-- <contentType></contentType> -->
    <!-- The icon to display for the file type. Optional.
    -->
    <!-- <icon>
    <image16x16></image16x16>
    <image32x32></image32x32>
    <image48x48></image48x48>
    <image128x128></image128x128>
    </icon> -->
    <!-- </fileType> -->
    <!-- </fileTypes> -->
    </application>
    test.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Button x="201" y="167" label="Hello AIR!"/>
    </mx:Application>

    My descriptor version was 1.5.2
    (see line <application xmlns="http://ns.adobe.com/air/application/1.5.2"> in file appName-app.xml)
    My Flex sdk was 3.2 (see Project->Properties->Flex Compiler->Flex SDK Version)
    To support air debugger (adl) version 1.5.2, sdk 3.2 was too old, so i got this same error
    so i switched to sdk 3.4 (free download at adobe.com)
    and the problem was solved

  • HT201335 What causes the TV screen to freeze but sound continue on TV when using Air Play from I Phone?

    What causes TV screen to freeze but sound continue on TV when using Air Play from I Phone 4?

    First try rebooting ATV and router. Beyond that, it's probably something within the network, typically interference.
    To get a report of the network go to istumbler (Mac) or netstumbler (PC). Look for signal strength and noise.
    If on wifi try ethernet.

  • Can i use any wireless printer when using air express

    can i use any wireless printer when using air express

    If you are looking for a new printer, any wireless model will work with the AirPort Express.
    But, since you indicate that you have an iPad, you would want to make sure that the printer you choose is AirPrint compatible. This way, you will be able to print from your iPad....if you need that function.
    See this Apple support document for info on AirPrint and compatible models.
    http://support.apple.com/kb/HT4356

  • Poor sound quality when using air play

    How do I fix poor sound quality when using air play with my Denon receiver?

    I am not too sure if this is affected by BT software stack or RF design...
    iPhone 3G with FW 2.x provides Cisco VPN as well as Email support for corporate usage. However, it's weird that business man wouldn't want to use BT headset and talk to people... We are not asking about new feature support, like A2DP, but reliable, stable BT connection ONLY!!
    I've read that lots folks spent a lot of money on purchasing many different BT headsets and tried to get it work with iPhone 3G. I myself tried: Plantronics 510/815/855, Sony HBH-DS970/980, Nokia BH-903. None of them can work fine with my iPhone 3G ever! And iPhone 3G even cause BH-903 and DS-980 hang up after pairing or finishing call!!
    That's why I don't believe it's just a "SPECIAL CASE". How could a product FOR BUSINESS purpose get this kind of basic function problem?
    I hope we will find this issue could be resolved completely with new F/W, like Safari crash problem before. Other than this BT IOT problem, iPhone 3G is really the phone/companion could provide complete solution fulfill my personal and business needs.

  • HT204291 How does one get full screen when using air play on my tv from my iPad,thanks in advance

    How does one get a full screen when using air play on my tv when I'm mirroring,.? Thanks in advance

    The iPad's display is 4:3, so it cannot fill your TV screen, which is 16:9
    The only way is to change your TV settings and stretch the image.

  • Org.xml.sax.SAXException: Invalid element    error when using code in view project

    I have a SOAP (RPC style) client bundled in a jar. It uses Axis1.4.
    I have created a ADFBC model project with programmatic view & entity objects that uses this soap client for CRUD operations.
    The Model project works fine when I run the Appmodule and a standalone java tester class.
    This model project is then deployed as a library and included in a different ADF web application.
    When running this application, I get the following exception for one method.
    Has anyone faced this issue? Any idea what's going on?
    Surprisingly, "dbAttributes" -the cause of the error is not even in the User class (or any other class in the entire application)!
    I am using JDeveloper 11.1.1.5. Issue occurs in integrated wls.
    AxisFault
    faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
    faultSubcode:
    faultString: org.xml.sax.SAXException: SomeClass - dbAttributes
    faultActor:
    faultNode:
    faultDetail:
      {http://xml.apache.org/axis/}hostname:localhost.localdomain
    org.xml.sax.SAXException: Invalid element in some.package.User - dbAttributes
      at org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)
      at org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)
      at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
      at oracle.xml.parser.v2.NonValidatingParser.parseElement(NonValidatingParser.java:1359)
      at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:376)
      at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:322)
      at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:226)
      at weblogic.xml.jaxp.RegistryXMLReader.parse(RegistryXMLReader.java:173)
      at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
      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:435)
      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:2784)
      at org.apache.axis.client.Call.invoke(Call.java:2767)
      at org.apache.axis.client.Call.invoke(Call.java:2443)
      at org.apache.axis.client.Call.invoke(Call.java:2366)
      at org.apache.axis.client.Call.invoke(Call.java:1812)
      at some.package.ManagerSoapBindingStub.createUser(ManagerSoapBindingStub.java:879)
      at some.package.Proxy.createUser(Proxy.java:294)

    PROBLEM SOLVED.
    org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
    org.xml.sax.SAXException: Invalid element in
    I think this is a very common problem, and the sad thing is there are so many forums with no answers. I was getting this error because I was using client stubs generated by wscompile instead of wsdl2java. Once i used the stubs from wsdl2java, the error vanished****. I think its because the wscompile classes do not have property descriptors for each field in the response class. an example of such descriptors would be:
            typeDesc.setXmlType(new javax.xml.namespace.QName("https://ns.ns.btu", "LoginResponseData"));
            org.apache.axis.description.ElementDesc elemField = new org.apache.axis.description.ElementDesc();
            elemField.setFieldName("sessionID");
            elemField.setXmlName(new javax.xml.namespace.QName("https://ns.ns.btu", "SessionID"));
            elemField.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int"));
            elemField.setNillable(false);
            typeDesc.addFieldDesc(elemField);The wsdl2java classes do have these descriptors for each field.
    Please also look at the following links if you still having problems:
    http://marc.info/?l=axis-user&m=103705794612785&w=2
    http://www.opensubscriber.com/message/[email protected]/1877996.html

  • ORA-20091: Invalid Application ID when importing APEX 4.0 Application

    Hi Folks
    Anyone got a suggestion on this one?
    Scenario:
    1. Perform an APEX 4.0 Export of application ID 10132 from one workspace
    2. Import the application into another APEX 4.0 workspace and change the application ID whilst doing so.
    3a. During the import process, override the application ID to one that exists in the workspace being imported into.
    In APEX 3.2 you got a warning that you were overwriting an existing app
    In APEX 3.2 this would then complete the exercise with your new app replacing the previous one with the same ID
    In APEX 4.0 I received ORA-20091: Invalid Application ID
    3b. Delete the pre-existing application (e.g. app_id 999) completely in the workspace we intend to import into
    Following successful deletion of the application (app_id 999) attempt to import the application export file from the other workspace
    During the import, use the UI to change the application id from 10132 to 999.
    Still receive the ORA-20091: Invalid Application ID error despite APP ID 999 having been deleted
    4. I got this to work by allowing APEX to simply assign a new application ID
    My problem is that, whilst this was not a problem when importing to our UAT environment, our DEV and Production environments share the same APP ID (10132) this is so that when upgrading the production application, users saved Interactive reports are preserved. This was fine in APEX 3.2 but is, as yet, untested by us in 4.0.
    As things stand at the moment, we have APEX 4.0 in DEV and UAT but this would appear to be a block for us in terms of upgrading production to 4.0.
    Any thoughts, comments and suggestions welcome.
    Many thanks
    Kind regards
    Simon Gadd

    We ran into a similar problem. My initial tests showed the following to be a work around.
    Assumption: You want to end up with the same ID as the original so you don't have to give a new link to everyone.
    1. Before copying the app (lets say it's 333) from 3.2 (3.1 in our case) export it and then import it back, still in 3.x with a different app ID, i.e. 99333.
    2. In ApEx 4: Import the app 99333 and install it with app ID 333 (the original app ID). After this process, I was able to make necessary changes to the app on ApEx 4, export it, and then import it again, still as ID 333.
    I know this sounds very round-about, and I can't explain why it worked, but it worked.
    Disclaimer: I certainly may have missed something that would still make it break. This was the result of a few different test scenarios done in a limited time.
    So, it's probably best to wait for 4.0.1 if you can.
    By the way, I tried creating a brand new app. in ApEx 4, export it and then import it as itself, and I still got the same error. Like I said, I don't know why it worked, but when I imported an older app with one ID into ApEx 4 with a new ID, I was able to export it and then import it again with that same new ID.
    Have a great weekend,
    Gregory

  • Application crashes when using JNI with Jdk 1,2, 1.3 and 1.4

    Hi!
    I have this application that has a GUI written in Java and a file parser written in C. JNI is used to connect these parts together. The problem is that the application only works when I am using jdk 1.1.8 but not when using jdk1.2, jdk1.3 or jdk1.4. I am running the application on a Solaris 8 machine.
    I have not written the application myself but I am going to be working with it from now on. But I have today little knowledge with JNI and I have tried different approaches to solve the problem. For example I have tried to used DDD together with GDB to find out what the problem is but with no luck. When I run the application using jdk1.4 I get the following error when the JVM crashes:
    An unexpected exception has been detected in native code outside the VM.
    Unexpected Signal : 10 occurred at PC=0xFA023164
    Function=Java_Bitmap_setDebug+0x1C
    Library=/usr/u/lal/micview/micview2_1_0_beta1/libBitmapImpl.so
    Current Java thread:
    at Bitmap.setDebug(Native Method)
    at DisplayPanel.loadFile(DisplayPanel.java:396)
    at MicPlot.loadFile(MicPlot.java:1452)
    at MicPlot.loadFile(MicPlot.java:1441)
    at MicPlot.miOpen_Action(MicPlot.java:1267)
    at MicPlot$SymAction.actionPerformed(MicPlot.java:1184)
    at java.awt.MenuItem.processActionEvent(MenuItem.java:588)
    at java.awt.MenuItem.processEvent(MenuItem.java:548)
    at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:285)
    at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:273)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:452)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)
    Dynamic libraries:
    0x10000 /opt/java/jdk1.4/bin/java
    0xff360000 /usr/lib/libthread.so.1
    0xff3a0000 /usr/lib/libdl.so.1
    0xff280000 /usr/lib/libc.so.1
    0xff270000 /usr/platform/SUNW,Ultra-4/lib/libc_psr.so.1
    0xfe000000 /opt/java/j2sdk1.4.1/jre/lib/sparc/client/libjvm.so
    0xff220000 /usr/lib/libCrun.so.1
    0xff200000 /usr/lib/libsocket.so.1
    0xff100000 /usr/lib/libnsl.so.1
    0xff1d0000 /usr/lib/libm.so.1
    0xff250000 /usr/lib/libw.so.1
    0xff0e0000 /usr/lib/libmp.so.2
    0xff0b0000 /opt/java/j2sdk1.4.1/jre/lib/sparc/native_threads/libhpi.so
    0xff080000 /opt/java/j2sdk1.4.1/jre/lib/sparc/libverify.so
    0xff030000 /opt/java/j2sdk1.4.1/jre/lib/sparc/libjava.so
    0xfe7e0000 /opt/java/j2sdk1.4.1/jre/lib/sparc/libzip.so
    0xfe4e0000 /usr/lib/locale/en_US.ISO8859-1/en_US.ISO8859-1.so.2
    0xedd00000 /opt/java/j2sdk1.4.1/jre/lib/sparc/libawt.so
    0xfc480000 /opt/java/j2sdk1.4.1/jre/lib/sparc/libmlib_image.so
    0xfc410000 /opt/java/j2sdk1.4.1/jre/lib/sparc/motif21/libmawt.so
    0xeda80000 /usr/dt/lib/libXm.so.4
    0xfa090000 /usr/openwin/lib/libXt.so.4
    0xfa3d0000 /usr/openwin/lib/libXext.so.0
    0xfc7e0000 /usr/openwin/lib/libXtst.so.1
    0xed980000 /usr/openwin/lib/libX11.so.4
    0xfa2a0000 /usr/openwin/lib/libdps.so.5
    0xfa3b0000 /usr/openwin/lib/libSM.so.6
    0xfa1d0000 /usr/openwin/lib/libICE.so.6
    0xed880000 /opt/java/j2sdk1.4.1/jre/lib/sparc/libfontmanager.so
    0xfa390000 /usr/openwin/lib/locale/common/xlibi18n.so.2
    0xfa1b0000 /usr/openwin/lib/locale/iso8859-1/xomEuro.so.2
    0xfa190000 /usr/lib//liblayout.so
    0xfa050000 /usr/openwin/lib/locale/common/ximlocal.so.2
    0xfa010000 /usr/u/lal/micview/micview2_1_0_beta1/libBitmapImpl.so
    Local Time = Thu Oct 3 13:32:47 2002
    Elapsed Time = 35
    # The exception above was detected in native code outside the VM
    # Java VM: Java HotSpot(TM) Client VM (1.4.1-beta-b14 mixed mode)
    # An error report file has been saved as hs_err_pid27692.log.
    # Please refer to the file for further information.
    Abort
    From this information I think that the problem should be in the native method setDebug. But I have tried to set a breakpoint at the beginning of that function in the C part but with no luck. The application crashes before it reaches that position in the C file.
    What could possibly go wrong between the setDebug function in the C part and the function call in the Java part?
    When using GDB, GDB cannot figure out what is wrong it just returns a hex address, no function name.
    I would really appreciate some help. I have tried everything that I can come up with!
    Best regards
    Lars

    I have figured out that the application fails on its first call to the native methods.
    So I have this Bitmap class that contains all the native calls and it is defined shortly as follow:
    public class Bitmap {
    static {
    System.loadLibrary("BitmapImpl");
    native void setDebug(int debuglevel, int statistics);
    There are many more native methods defined in Bitmap, but I only show the setDebug method because that is the first one that is executed and also the one that immediately fails.
    My setDebug C function is defined as follow in BitmapImpl.c
    #include <time.h>
    #include <stdio.h>
    #include <limits.h>
    #include <fcntl.h>
    #include <jni.h>
    #include <math.h>
    #include <errno.h>
    #include "Bitmap.h"
    #include "data.h"
    jint debug = 0;
    jint statistics = 1;
    JNIEXPORT void JNICALL Java_Bitmap_setDebug
    (JNIEnv *jenv, jobject jo, jint d, jint s)
    debug = d;
    statistics = s;
    My libBitmapImpl.so file is compiled using the following Makefile and using GNU gcc:
    JAVAPATH=$(JAVAINCLUDEPATH)
    LMACRO=-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DSOLARIS
    CSOURCE=BitmapImpl.c
    all:
    gcc -O3 -G $(LMACRO) -I$(JAVAPATH) -I$(JAVAPATH)/solaris \
    $(CSOURCE) -o libBitmapImpl.so
    It is still a total mystory why the application fails. I have tried it on a RedHat Linux machine and there it works fine. But not on Solaris. Only if I use the jdk1.1.8 but not a later one.
    Would really appreiciate some help!
    Best regards
    Lars

  • Application hangs when using ProcessStartInfo and Process.WaitForExit.

    I've looked on different threads about this, but all of them uses the Process.RedirectStandardOutput = True, which I don't.
    I'm trying to open a process (console application, not made by me) to make it compile a special .acs file to a .o file. The structure is simple, the only argument is the file you want to compile.
    But on certain files my application hangs when trying to open the process. Here's my code:
    Dim p As New Process
    Dim ps As New ProcessStartInfo
    ps.Arguments = SavePath 'Path example: "C:\Program Files (x86)\Zandronum\File.acs"
    ps.FileName = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory(), "Script Compilers\Zandronum\acc.exe")
    ps.CreateNoWindow = False
    ps.ErrorDialog = False
    ps.UseShellExecute = True
    ps.WindowStyle = ProcessWindowStyle.Hidden
    ps.WorkingDirectory = Path.GetDirectoryName(SavePath)
    Dim ErrorCaptured As Boolean = False
    Try
    p = Process.Start(ps)
    Catch ex As Exception
    ErrorCaptured = True
    End Try
    If ErrorCaptured = False Then
    p.WaitForExit()
    End If
    If ErrorCaptured = True Then
    Exit Sub
    End If
    Thanks!
    //Visual Vincent
    EDIT:
    For starting the process I use pretty much the same code that another guy made in C#. And his code is working perfectly...
    // Setup process info
    processinfo = new ProcessStartInfo();
    processinfo.Arguments = args;
    processinfo.FileName = Path.Combine(this.tempdir.FullName, info.ProgramFile);
    processinfo.CreateNoWindow = false;
    processinfo.ErrorDialog = false;
    processinfo.UseShellExecute = true;
    processinfo.WindowStyle = ProcessWindowStyle.Hidden;
    processinfo.WorkingDirectory = this.workingdir;
    try
    process = Process.Start(processinfo);
    catch(Exception e)
    // Unable to start the compiler
    General.ShowErrorMessage("Unable to start the compiler (" + info.Name + "). " + e.GetType().Name + ": " + e.Message, MessageBoxButtons.OK);
    return false;
    // Wait for compiler to complete
    process.WaitForExit();
    I hope your day has been better than yesterday, but that it's worse than tomorrow...
    Please mark as answer if I solved your problem. :)

    Hi,
     Have you compared the FileNames and Arguments of ones that work and ones that don`t? Is there any difference in them such as the ones that work do not contain blank spaces in the FileName or arguments and the ones that do work don`t contain blank spaces
    in them? If you find that to be the problem then you need to add Quotes to the beginning and end of the FileName or Arguments.
     My first guess is the Arguments needs the Quotes like this because, i see blank spaces in your example of the Arguments.
    ps.Arguments = Chr(34) & SavePath & Chr(34)
    If you say it can`t be done then i`ll try it
    This actually made it. I had forgotten that blank spaces makes it a new argument, silly me. I don't use process arguments that often. ;)
    Thanks alot!
    I hope your day has been better than yesterday, but that it's worse than tomorrow...
    Please mark as answer if I solved your problem. :)

  • Adding a Button in the Application toolbar when using LDB for HR programs

    Hi Experts,
    I have a requirement to add a new button after execute button in the Application tool bar for the HR programs when using LDB PNP.
    Normally when we are using LDB in our program we will get a extra button provided by SAP after the execyte button.          When we are creating a new button for this  by using the table fields sscrfields  with the function key as 2 we are not able to see the new button.
    can any one help me in this issue.

    please post your relevant coding with respect to the button
    A.

  • Seeing pink and green artifacts when using AIR 3.5 beta

    Hi,
    I'm noticing that, when using the 3.5 beta SDK, some display elements are being rendered with strange pink and green artifacts. Below are screenshots of this occurring (most prominently on the spark buttons) on three devices:
    Galaxy Tab (running android version 2.3.3)
    Cropped version (to make the problem more visible, in case the previous image was scaled down):
    Nexus 7 (running 4.1.1)
    Cropped:
    Galaxy Nexus (running 4.1.1)
    Cropped version:
    By contrast, here is a screenshot of the same application running on the Galaxy Nexus, when compiled for 3.4:
    Cropped:
    Any ideas on why this is happening?

    Same here on Galaxy Tab 1 and Galaxy S1 ! And no spark component here, only simple drawings...
    Incredible to see such a "visible" bug in this beta...

  • Applications disappear when using external mouse

    Using windows 7 professional on a brand new T410 (2537-RZ5).
    Happens only when using an external mouse and mouse is stationary for random periods of time (seconds or minutes).
    Problem: all applications (internet explorer, office, etc) will suddenly disappear (sometimes only leaving outside border of application) to reveal desk top - does not matter which application i have open or whether there is one or multiple. Desktop color is correct but instead of solid color it has a diagonal ribbed effect to the color. Applications will reappear moment I move the mouse.
    Happens with variety of external mouse - does not happen if using laptop mousepad (i.e. no plug in). All latest windows and lenovo updates installed as far as I know but has not fixed bug.  Has happened again just while writing this message - quite frustrating.
    Please help if you can.

    I noticed a similar phenomenon and found that my mouse cursor was landing over the sensitive spot on the right side of the task bar which harbors the "Show Desktop" Aero feature.  Check it out.
    W540 20GBCTO, Ultra Dock, W520, 4270CTO, W510, 4318CTO; (2)T500, 2081CTO; Y560, 064657U, Y530, 405166U; T61p, 6465CTO, A31p, and L2461x Multi-touch Monitor, Mini Dock Plus Series 3

  • Invalide identifier error, when use subselect

    Hi all,
    I got "ORA-0094: sp.spriden_pidm invalid identifier "error when runing the following query.
    select (select t.name from
    (select rownum row_number, s.spriden_last_name name
    from spriden s
    where s.spriden_pidm = sp.spriden_pidm) t
    where t.row_number = 1) last_name
    from spriden sp
    where sp.spriden_pidm = 70105;
    Any one has an idea why this is happening?
    Thanks

    Unless I am missing something here, this looks like a straight pivot query to me.
    SQL> with my_test AS (SELECT 1 id, 'June' contact_name FROM dual UNION ALL
      2                   SELECT 1, 'Email' FROM dual UNION ALL
      3                   SELECT 1, 'Mark' FROM dual UNION ALL
      4                   SELECT 2, 'Tom' FROM dual),
      5       my_test_2 AS (SELECT 1 id, trunc(sysdate) act_date FROM dual UNION ALL
      6                     SELECT 1, trunc(sysdate-1) FROM dual UNION ALL
      7                     SELECT 2, trunc(sysdate-1) FROM dual)
      8  SELECT id, act_date,
      9         MAX(DECODE(rn, 1, contact_name)) nc1,
    10         MAX(DECODE(rn, 2, contact_name)) nc2,
    11         MAX(DECODE(rn, 3, contact_name)) nc3
    12  FROM (SELECT m.id, contact_name, act_date,
    13               ROW_NUMBER() OVER (PARTITION BY m.id
    14                                  ORDER BY contact_name) rn
    15        FROM my_test m, my_test_2 m2
    16        WHERE m.id = m2.id and
    17              m2.act_date = trunc(sysdate-1))
    18  GROUP BY id, act_date;
            ID ACT_DATE    NC1   NC2   NC3
             1 11-Sep-2008 Email June  Mark
             2 11-Sep-2008 TomAssuming that you have a known maximum number of possible values in my_test for a given id this should work. You may need to use something other than the contact_name in the order by in the row_number function if you require the values in specific columns, but given your sample data, I have no idea what that might be.
    John

Maybe you are looking for