Setting javac -source 5 in ktoolbar.

Hi, I'm trying to compile a midlet that uses Java 5 (AKA Java 1.5 AKA Java 2 AKA Java <--right?) features such as enums and generics.
I've been using the ktoolbar program to do this, but when I run it is says I must use -source 5 or higher to enable enums, generics, et al. The javac man page says this is the default, and I can't find anywhere in ktoolbar to set javac command line options. Argh!
How do I fix this? It's driving me mad...

You won't be able to use Java 5, enums etc because devices only support < java 1.4

Similar Messages

  • How do I set javac to compile for older versions of java?

    I need to compile a ".java" file for version 1.4.0 of java in order to run it on Nintendo DS. However, my version of java is 1.6.0.
    In resume, I need to set javac to compile for version 1.4.0, but I haven't had much success figuring it out myself, so if anyone knows this, please?

    WalterLaan wrote:
    Note that you want to compile against the 1.4 libraries (rt.jar) as well to avoid NoSuchClass/MethodsErrors with the [ -bootclasspath option|http://java.sun.com/j2se/1.4.2/docs/tooldocs/windows/javac.html#crosscomp-options]
    ++++ that.
    Using the -source/-target options are not a guarantee that the specified JRE will have the required classes, methods and attributes available. Those options only ensure the classes have a format that is 'reabable' by the target JRE.
    Using the -bootclasspath option guarantees the classes are not only readable, but that the VM will not throw 'NoSuchMethodError's or equivalent, at run-time.

  • How to set image source path in formsweb.cfg file in forms 11g

    Hi,
    I had written HTML code in the formsweb.cfg file in forms 11g. In the below code i am unable to retrive image file(i.e., .gif, .jpeg) from the server or local machine.
    In the below HTML code i set image source in the image tag as below:
    <img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF"
    Is this correct path to fetch the images from the server or local machine .
    Please help me out how to set path for image in html or is there any alternate process to retrive images.
    Here is the code :
    [INDIVIDUALUAT]
    workingDirectory=D:\Aims10dev\Work
    form=LMstartup.fmx
    userid=rmenu/rmenu@RLIFEQA64
    codebase=/forms/java
    imageBase=codebase
    width=1005
    height=750
    WebUtilArchive=/forms/java/frmwebutil.jar,/forms/webutil/jacob.jar
    WebUtilLogging=off
    WebUtilLoggingDetail=normal
    WebUtilErrorMode=Alert
    WebUtilDispatchMonitorInterval=5
    WebUtilTrustInternal=true
    WebUtilMaxTransferSize=16384
    baseHTMLjinitiator=webutiljini.htm
    baseHTMLjpi=webutiljpi.htm
    archive_jini=frmall_jinit.jar,life-icons-round.jar,Agilis_Icon.jar,life_Icon.jar,personalize.jar,hyperlink.jar,amazingbutton.jar
    archive=frmall.jar
    separateFrame=False
    lookandfeel=Generic
    EndUserMonitoringURL=True
    usesdi=yes
    #HTMLbeforeForm= <table width="1005" border="0" cellspacing="0" cellpadding="0"><tr><td width="200"><img src="/forms/html/agilis-life-logo.gif" width="200" height="80" /></td><td width="10"><img src="/forms/html/agilis-life-new11_02.gif" width="36" height="80" /></td><td width="805" valign="top" background="/forms/html/agilis-life-new11_03.gif"></td></tr></td></tr></table>
    HTMLbeforeForm=<body topmargin="0" leftmargin="0" > <table width="1005" height="100" border="0" cellspacing="0" cellpadding="0"><tr><td width="200" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-logo.gif" width="200" height="80" /></td><td width="10" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_02.gif" width="36" height="80" /></td><td width="550" valign="bottom" ><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_03.gif" width="550" height="80" /></td><td valign="bottom"><table width="219" height="90" border="0" cellspacing="0" cellpadding="0"><tr><td height="36" valign="bottom" align="center"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agile-logo.jpg" height="36"></td></tr><tr><td height="10" valign="bottom"> <div align="right"><span style="font-family:Arial, Helvetica, sans-serif; font-size:12px; font-weight:bold; text-decoration:none; color:#00000; " >Home | Change Password | Logout</span></div></td></tr><tr><td colspan="3" valign="bottom"><img src="E:\Oracle\Middleware\Oracle_FRHome1\tools\web\html\agilis-life-new11_04.GIF" width="100%" height="39" /></td></tr></table></td></tr></td></tr></table></body>

    AFAIK, this is not the correct way to set the image location.
    We call the working directory as context, so inside the context root along with WEB-INF, maintain a folder with name img and put all the images in that directory.
    You can use either .\<image_folder> or the optimum way would be (if you are using JSPs) to use getContext() method and traverse accordingly.
    FYI,,, using getContext() will give you context root directory, from there it is as simple as accessing any other folder.
    Hope this answers your question.
    Cheers,
    Jeets.

  • Flex 4.5.1 Setting VideoPlayer source to null when it is already null results in a runtime error

    I moved my project from Flex 4.1 to Flex 4.5.1 and I noticed that setting VideoPlayer source to null when it is already null results in a runtime error. The same thing applies to the case where you specified as a source url some invalid location (no video found there) and then you try to set the source to null.
    Here is the error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at spark.components::VideoDisplay/cleanUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src \spark\components\VideoDisplay.as:1956]
        at spark.components::VideoDisplay/setUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src\s park\components\VideoDisplay.as:1609]
        at spark.components::VideoDisplay/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoDisplay.as:1073 ]
        at spark.components::VideoPlayer/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoPlayer.as:1362]
    The problem is that in the VideoDisplay cleanUpSource function, in some of the cases there properties on the videoObject are modified like this:
    videoPlayer.displayObject.visible = true;
    without checking if displayObject is null which is done in the rest of the videoDisplay functions.
    So when it reaches this line: videoPlayer.displayObject.visible = true; it results in a runtime error.
    Is this supposed to work this way now ? I didn't have this problem on Flex 4.1. Not sure if it is a bug, but if it is please report it, I don't have the time right now to be checking in on this.
    I fixed it by checking if the source is set, of course... (that won't help me in cases where I provide a wrong or missing video url by mistake.. so it is important to be fixed!)
    F

    Hi
    I found the same error displaying video on flex !
    in my simple code, i have :
    videoInfoDataVideo.source = videoName;
    the full error is :
    TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
              at spark.components::VideoDisplay/cleanUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src \spark\components\VideoDisplay.as:1956]
              at spark.components::VideoDisplay/setUpSource()[E:\dev\4.5.1\frameworks\projects\spark\src\s park\components\VideoDisplay.as:1609]
              at spark.components::VideoDisplay/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoDisplay.as:1073 ]
              at spark.components::VideoPlayer/set source()[E:\dev\4.5.1\frameworks\projects\spark\src\spark\components\VideoPlayer.as:1362]
              at Function/item/private:updateVideo/anonymous/resultGetVideo()[C:\Users\randev\Adobe Flash Builder 4.5\visurbaCMS\src\item.mxml:800]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at HTTPOperation/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\http\HTTPService.as:993]
              at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::resultHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:318]
              at mx.rpc::Responder/result()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\Responder.as:5 6]
              at mx.rpc::AsyncRequest/acknowledge()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\rpc\AsyncR equest.as:84]
              at DirectHTTPMessageResponder/completeHandler()[E:\dev\4.5.1\frameworks\projects\rpc\src\mx\ messaging\channels\DirectHTTPChannel.as:451]
              at flash.events::EventDispatcher/dispatchEventFunction()
              at flash.events::EventDispatcher/dispatchEvent()
              at flash.net::URLLoader/onComplete()
    did you solve the problem or someone else?
    Thanks

  • Set Paper Source by Page Size for multi files

    I have over 500 pdf files. How can I batch set "Paper Source by Page Size" in Print Dialog Preset for these files.
    Thanks!

    Hi Andrew,
    Apple made some pretty significant changes to the way that printers function when they released 10.6.
    The setting you're looking for is completely controlled by the OS.
    Choose Apple > System Preferences > Print & Fax.
    Click on your printer and use the drop-down menu to change the default page size for your printer.
    -David

  • How to set the source property of image control dynamically?

    Hi,
      I have different fxg files which I want to display in a list. For each row in the List, I define which fxg file to be displayed in my database.
    I need to know how to set the image1.source = (the fxg path) as a string from database?
    Is there any conversion needed in this case? If so, can you please help me how to do this?

    Hi,
      Thank you for your response. I am new to Adobe Flash Builder, Flex and action script. I don't get your answer straight away.
    What I basically need is, I need to set image1.source = strFXG. Right now, this does not show the image. I don't understand fxgObject.pathid.source => how to give this?
    Moreover, when I did google search, there is somethink like fxg converter which converts the fxg to a component. I thought this is a very simple problem on how to convert the fxg string to an object format. But now, it looks like it might be a big problem. Can anyone help me in this?
    import spark.components.Image;
                                  protected function view1_creationCompleteHandler(event:FlexEvent):void
      // TODO Auto-generated method stub
      var strFXG:String = 'assets.DB_Actief_Graphics';
                                            var image1:Image = new Image();
                                            image1.x = 100;
                                            image1.y = 100;
                                            image1.source = strFXG;
                                            addElement(image1);
    Regards,
    Chella

  • Question about javac -source -target

    Hello:
    I am using JDK 1.8.0-ea and I want to compile my sources for 1.7 (compatibility with previous VM: 1.7 is the latest official release)
    C:\Users\admin>javac -target 1.7 prg.java
    javac: target release 1.7 conflicts with default source release 1.8
    C:\Users\admin>javac -source 1.8 -target 1.7 prg.java
    javac: source release 1.8 requires target release 1.8
    Is there some way I could compile for previous VM or will 1.8 classes NOT be compatible  with previous VMs?

    Thanks: Actually the code was compiled for JDK7, (it can be compiled even with jdk6).
    Huh? I read your post to mean that you can NOT compile it for JDK7 using JDK8. But my point was that if you use JDK8-specific features then the code isn't backward compatible.
    The main problem is that when JRE 8 is available for public,  many systems will still have older JREs, thus JDK8 bytecode would not run in them.
    Although I can compile it with JDK7 tools, I thought that JDK8 could compile for backwards compatibility, if new features were not used in code.
    Normally new versions support some limited number of previous versions using the -target and -source parameters.
    You may have found a bug - you can report it using the 'Report Bugs' link on the JDK8 download page.
    https://jdk8.java.net/download.html

  • Set Image source programmatically

    I am working on a use case, where I have to set image source programmatically based on an input value. Eg: When I have a value of 'House1' in a form field, I have to display House1.png picture from a folder in file system. How can I do this?

    Thanks Timo.
    JDev Ver: 11.1.2.3
    I used the easy solution to have the images in a sub directory under root and accessing them using EL language. It is working fine. I have another question, as to the process to be implemented if I have to update the images. The application that I am working on has a need to update the images frequently. What is the best way to do it? I am thinking of creating a jar file for images and deploying it to web logic server Ishared library). If I have to add a new image, I can just make a jar file and re-deploy it again. I am new to ADF, so I am not sure if my approach is correct. Please advise.
    And, thanks for your blog. It was helpful.
    -Ashok

  • AccessViolationException occurs while setting data source to a datatable

    Dear All,
    I have recently encountered problem while generating Crystal Report (version 11.5) in my VB.NET project and see if you can help to provide a solution for that. In particular, the following access violation exception occurs when setting data source of a report object to a datatable:
    "Attempted to read or write protected memory. This is often an indication that other memory is corrupt."
    Then if i press F10 to step over in VS2008, the exception won't occur again and the report can be printed successfully with data from datatable. So it does not fail all the time but only the first time...
    My code is rather simple and it looks something like this where ds is declared as a dataset filled with data:
    Dim crApp As CRAXDDRT.Application
    Dim crRpt As CRAXDDRT.Report
    crApp = New CRAXDDRT.Application
    crRpt = New CRAXDDRT.Report
    crRpt = crApp.OpenReport("C:\some.rpt")
    crRpt.DisplayProgressDialog = False
    crRpt.DiscardSavedData()
    crRpt.Database.Tables(1).SetDataSource(ds.Tables(0), 3)  <--- exception occurs at this line
    crRpt.PrintOut(False)
    Also, from the exception details, the problem appears to be thrown from the driver crdb_adoplus.dll which I have installed the latest version (11.5.11.1470) with CR XI R2 SP5.
    Kindly reply if you know what's going on... Thx!
    Stephen

    Hi Stephen,
    As I said, craxddrt, embeddable designer control, is not for your use other than designing reports within the .NET IDE. You CAN NOT distribute this dll and it's dependencies. You are NOT licensed to use use it in a runtime application.
    As you say it may possibly work but it is not supported other than designing reports in the IDE and again you are NOT licensed to distribute it.
    Next issue is the RDC ( Either craxdrt.dll or craxddrt.dll ) in version XI R2 ( 11.5 ) is still supported but again only supported in Visual Basic 6. The RDC is COM and was never designed to work in .NET.
    COM and .NET are two completely separate code streams, there is no direct convert from the RDC to .NET. Same functional API's but completely different way of implimenting them.
    For more info on how to use and for sample applications click on this link:
    http://www.sdn.sap.com/irj/boc/samples?rid=/webcontent/uuid/80774579-b086-2b10-db91-ed58c4dda375 [original link is broken]
    So even though it may be partially working there is no point in continuing this post concerning the RDC, it's simply not supported for what you are doing and you are not licensed to deploy it.
    Thanks again
    Don

  • Different EAR file size for 2 exactly the same set of source codes

    Hi All,
    I have 2 exactly the same sets of source codes for my application that were compiled in 2 different environment (say SIT and UAT; both using the same jdk versions), is it possible that the EAR files after build will be different in size too?
    Can you suggest any online reading materials that I can read regarding this?
    Thank you very much
    Eddie

    Hi Arun,
    Thanks for the answer.
    I already did a comparison of the 2 application, they are exactly the same (i only copied the source including the jars from PROD to UAT). I also did a comparison between the 2 EAR files generated (exploded the EAR file and compare each of the files), they are the same. My aim actually is to compile the application in Machine1 and deploy it in Machine2, I am just puzzled why the 2 EAR files generated by the 2 machines are different in size. Does it has something to do with the compression and compiling?
    Thanks,
    Eddie

  • How can I set up source IP routing

    This is on a recent Macbook Pro, OSX 10.8 Mountain Lion. Maybe the question really belongs in a "networking" or "operating system" subforum.
    A Linux example is:
    ip rule add priority 32700 from 10.45.37.70 table 240  
    ip route add default via 10.45.37.69 table 240  
    ip route flush cache  
    It routes all packets with source address 10.45.37.70 via 10.45.37.69 as default gateway, regardless of destination address.
    Why is this needed? --->
    I have a few physically tiny Wifi routers. They can only act as NAT routers, and even block connections between internally connected devices. No problem, if I need a device to act as a server (VNC, sendmail, samba, webserver...) I set up a vtun (actually any VPN would do) between the device and a VPN server on my LAN. This way, the device gets an IP address that is reachable from my entire LAN. I can walk away and access the laptop from a smartphone, for example. And I can move data between 2 laptops while on wlan.
    Outgoing connections should continue to use the normal wlan gateway. If everything would use the vtun gateway, that would cause a lot of unnecessary load on the  server.
    The source IP routing affects only reply packets to connections that come in via vtun VPN. The replies have the above mentioned source address that triggers the special routing. Without the special routing, the replies would be mangled by the NAT router.
    I have, on a different VPN (lets call it "VPN2"), seen an alternative. This different VPN sets an additional default address, and according to a forum post I found, related to Snow Leopard, this would automatically select the best route based on source address and local links. This does not work well for me in the case of my VPN2 (everything goes down VPN2, it shouldn't), but maybe it will help in the vtun problem? Are multiple default gateways ordered in some way that affects routing?

    Yes, you can SPAN multiple ports, or multiple VLANs. This will SPAN ports 5/1 through 5/5. The spaces on either side of the dash are necessary.
    monitor session 1 source interface fastethernet 5/1 - 5/5
    http://www.cisco.com/en/US/products/hw/switches/ps4324/products_configuration_guide_chapter09186a008023401a.html
    Please rate helpful posts.

  • Contract automatically set as source of supply for PR/PO

    Hello MM experts,
    I am thinking about implementing the following scenario and I have 4 questions
    PM service order  that creates a Purchase requisition automatically.
    I will have in the system a MM contract for that material / vendor / plant
    It is possible in SAP that the contract is set automatically as a source of supply in the automatically created purchase requisition?
    If it’s not possible in the PR it’s is possible at the time of PO creation?
    What configuration is needed in the system for this?
    It is possible to automatically create a PO from a PR with no steps for the  user?
    Thanks a lot for your valuable help and regards.

    Dear,
    Here you need to consider two parameters.
    Contract  : Its an yearly or monthly contract with a desired vendor on Quantity(Quantity Contract) or Value(Value contract) based.
    But if you are creating a service P.R using maintenance order for that particular maintenance service.Here system considers the account assignment as "F".
    If you want to capture the service cost of contract,
    Create an AMC for the services of that vendor and create P.O with account assignment as "U-Unknown". At the time of service required by maintenance department, They will create a maintenance order and do service entry with respect to "Maintenance Order". So actual cost will update in maintenance order.
    You can create a "Automatic P.O "with respect to P.R as our friend Jurgen said for supply.This can be done by activating the check box in material master of "Purchasing" view.
    You have an option of assigning the agreement in 'Maintenance Order"At the time of creating a P.R through it.But If your contract "Account assignment" and P.R "Account assignment" Creating through maintenance order will be different.So system will populate an error message as" Account assignment in agreement and Requisition incompatible"
    Regards,
    Pardhu

  • Setting the source-interface in a tcl script for email.

    So once again I am trying to figure this out and failing miserably. The only thin I can think of at the moment is that I need to tell it to source from a specific vrf interface. I've tried looking through possible enviornment variables. Hoping I could set it that way but have yet to find one. I have read varios settings for source-interface and attempted them. But fail every time with:
    vpn_failure.tcl: smtp_send_email: error connecting to mail server:
    EEM Version:
    sho event manager version
    Embedded Event Manager Version 4.00
    Component Versions:
    eem: (rel4)1.0.4
    eem-gold: (rel1)1.0.2
    eem-call-home: (rel2)1.0.0
    Below is the stock format for sending the email from the script. If someone could guide me in the correct way to set this up to source the interface that would be awesome.
    # create mail form
      action_syslog msg "Creating mail header for vpn_failure.tcl script..."
      set body [format "Mailservername: %s" "$_email_server"]
      set body [format "%s\nFrom: %s" "$body" "$_email_from"]
      set body [format "%s\nTo: %s" "$body" "$_email_to"]
      set _email_cc ""
      set body [format "%s\nCc: %s" "$body" ""]
      set body [format "%s\nSubject: %s\n" "$body" "VPN Failure Detected: Router $routername Crypto tunnel is DOWN. Peer $remote_peer"]
      set body [format "%s\n%s" "$body" "Report Summary:"]
      set body [format "%s\n%s" "$body" "   - syslog message"]
      set body [format "%s\n%s" "$body" "   - summary of interface(s) in an up/down state"]
      set body [format "%s\n%s" "$body" "   - show ip route $remote_peer"]
      set body [format "%s\n%s" "$body" "   - show crypto isakmp sa"]
      set body [format "%s\n%s" "$body" "   - show crypto session detail"]
      set body [format "%s\n%s" "$body" "   - show crypto engine connection active"]
      set body [format "%s\n%s" "$body" "   - show ip nhrp detail (DMVPN only)"]
      set body [format "%s\n%s" "$body" "   - show log"]
      set body [format "%s\n\n%s" "$body" "---------- syslog message ----------"]
      set body [format "%s\n%s" "$body" "$syslog_msg"]
      set body [format "%s\n\n%s" "$body" "---------- summary of interface(s) in an up/down state ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_interface_brief_up_down"]
      set body [format "%s\n\n%s" "$body" "---------- show ip route $remote_peer ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_route"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto isakmp sa ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_isakmp_sa"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto session detail ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_session_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto engine connection active ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_engine_connection_active"]
      set body [format "%s\n\n%s" "$body" "---------- show ip nhrp detail (DMVPN only) ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_nhrp_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show log ----------"]
      set body [format "%s\n\n%s" "$body" "$show_log"]
      if [catch {smtp_send_email $body} result] {
        action_syslog msg "smtp_send_email: $result"

    I got this far, saw the MAXRUN error, bumped that out and then turned on debugging. I am still not connecting to the mail server. So I don't think I am reaching the mail server yet. I don't think it is using the sourceinterface. In debugging everyting in the script works except for the mail portion.
    Jul 29 16:01:00.334: %HA_EM-6-LOG: vpn_failure.tcl: Creating mail header for vpn_failure.tcl script...
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: Process Forced Exit- MAXRUN timer expired.
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     while executing
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "action_syslog msg "smtp_send_email: $result""
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     invoked from within
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "$slave eval $Contents"
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     (procedure "eval_script" line 7)
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     invoked from within
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "eval_script slave $scriptname"
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     invoked from within
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: "if {$security_level == 1} {       #untrusted script
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:      interp create -safe slave
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:      interp share {} stdin slave
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:      interp share {} stdout slave
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl: ..."
    Jul 29 16:02:36.464: %HA_EM-6-LOG: vpn_failure.tcl:     (file "tmpsys:/lib/tcl/base.tcl" line 50)
    Jul 29 16:02:36.465: %HA_EM-6-LOG: vpn_failure.tcl: Tcl policy execute failed:
    Jul 29 16:02:36.465: %HA_EM-6-LOG: vpn_failure.tcl: Process Forced Exit- MAXRUN timer expired.
    Debugging On:
    Jul 29 16:28:51.471: [fh_smtp_debug_cmd]
    Jul 29 16:28:51.472: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 2
    Jul 29 16:29:24.473: [fh_smtp_debug_cmd]
    Jul 29 16:29:24.473: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 3
    Jul 29 16:29:57.475: [fh_smtp_debug_cmd]
    Jul 29 16:29:57.475: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 4
    Jul 29 16:30:30.478: [fh_smtp_debug_cmd]
    Jul 29 16:30:30.479: %HA_EM-6-LOG: vpn_failure.tcl : DEBUG(smtp_lib) : smtp_connect : attempt 5
    Jul 29 16:31:00.482: %HA_EM-6-LOG: vpn_failure.tcl: smtp_send_email: error connecting to mail server:
    cannot connect to all the candidate mail servers
    Jul 29 16:31:00.483: %HA_EM-6-LOG: vpn_failure.tcl: vpn_failure.tcl script completed
    event manager environment _email_server 10.79.1.126
    event manager environment _email_from [email protected]
    event manager environment _email_to [email protected]
    interface Port-channel1.101
    description MGMT-1
    encapsulation dot1Q 101
    vrf forwarding MGMT-1
    ip address 10.79.1.252 255.255.255.0
    ip nat inside
    ip virtual-reassembly
    redundancy rii 101
    redundancy group 2 ip 10.79.1.254 exclusive decrement 10
    end
    #----------------------- send mail ----------------------
    # create mail form
      action_syslog msg "Creating mail header for vpn_failure.tcl script..."
      set body [format "Mailservername: %s" "$_email_server"]
      set body [format "%s\nFrom: %s" "$body" "$_email_from"]
      set body [format "%s\nTo: %s" "$body" "$_email_to"]
      set _email_cc ""
      set body [format "%s\nCc: %s" "$body" "[email protected]"]
      set body [format "%s\nSourceintf: %s" "$body" "port-channel1.101"]
      set body [format "%s\nSubject: %s\n" "$body" "VPN Failure Detected: Router $routername Crypto tunnel is DOWN. Peer $remote_peer"]
      set body [format "%s\n%s" "$body" "Report Summary:"]
      set body [format "%s\n%s" "$body" "   - syslog message"]
      set body [format "%s\n%s" "$body" "   - summary of interface(s) in an up/down state"]
      set body [format "%s\n%s" "$body" "   - show ip route $remote_peer"]
      set body [format "%s\n%s" "$body" "   - show crypto isakmp sa"]
      set body [format "%s\n%s" "$body" "   - show crypto session detail"]
      set body [format "%s\n%s" "$body" "   - show crypto engine connection active"]
      set body [format "%s\n%s" "$body" "   - show ip nhrp detail (DMVPN only)"]
      set body [format "%s\n%s" "$body" "   - show log"]
      set body [format "%s\n\n%s" "$body" "---------- syslog message ----------"]
      set body [format "%s\n%s" "$body" "$syslog_msg"]
      set body [format "%s\n\n%s" "$body" "---------- summary of interface(s) in an up/down state ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_interface_brief_up_down"]
      set body [format "%s\n\n%s" "$body" "---------- show ip route $remote_peer ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_route"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto isakmp sa ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_isakmp_sa"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto session detail ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_session_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show crypto engine connection active ----------"]
      set body [format "%s\n\n%s" "$body" "$show_crypto_engine_connection_active"]
      set body [format "%s\n\n%s" "$body" "---------- show ip nhrp detail (DMVPN only) ----------"]
      set body [format "%s\n\n%s" "$body" "$show_ip_nhrp_detail"]
      set body [format "%s\n\n%s" "$body" "---------- show log ----------"]
      set body [format "%s\n\n%s" "$body" "$show_log"]
      if [catch {smtp_send_email $body} result] {
        action_syslog msg "smtp_send_email: $result"
      action_syslog msg "vpn_failure.tcl script completed"
    #------------------ end of send mail --------------------

  • JMF set video source to S-video/Tuner/Composite during runtime

    Does anyone know how to change Video Source from Video Tuner to Video Composite or S-Video?
    I'm using LifeView card. I can get them to work manually. However, I have no clue how to set them at runtime. I want to have buttons to swith from Tuner to Composite to S-Video at will.
    10 dukees to anyone who answers it!
    Thanks,
    Hiren

    If your code was an SSCCE*, I could run it
    against some images that I have successfully
    used to create MOV's (using my own variant of
    JPEGImagesToMovie).
    It isn't, so I can't.
    The only thing I can suggest (off the top of
    my head) is that the images need to be all
    the same size/width, and the same as
    specified for the MOV, otherwise a corrupted
    MOV will be written.
    * http://www.physci.org/codes/sscce/

  • Setting BitmapImage source inside the skin

    Hi all
    As a Flex 4 newbie, I've been banging my head for two days trying do to something that could seem pretty trivial to you (and to me as well at first sight) but lefted me completely clueless...
    I want to design a fairly simple custom component using the Gumbo architecture. My component falls into 2 parts:
    * a logo picture on the left side
    * a buttonbar next on the right side
    My component must be designed to be quite generic, that is to say the source of the logo image is a property of the component as well as the items of the ButtonBar.
    So here is what I did so far:
    I wrote an AS class describing the behavior of my component "MapToolBar.as":
    package nova.style
        import spark.components.ButtonBar;
        import spark.components.supportClasses.SkinnableComponent;
        import spark.primitives.BitmapImage;
        [SkinState("normal")]
        [SkinState("disabled")]
        public class MapToolBar extends SkinnableComponent
            // Define skin parts
            [SkinPart(required="false")]
            public var clientLogo:BitmapImage;
            [SkinPart(required="true")]
            public var tools:ButtonBar;
            // Define component data
            private var _logoSrc:String;
            public function set logoSrc(src:String):void {
                _logoSrc=src;
            [Bindable]
            public function get logoSrc():String {
                return _logoSrc;
            private var _toolsItems:Array;
            public function set toolsItems(items:Array):void {
                _toolsItems=items;
            [Bindable]
            public function get toolsItems():Array {
                return _toolsItems;
            public function MapToolBar()
                super();
            override protected function getCurrentSkinState():String {
                if (enabled) {
                    return "normal";
                } else {
                    return "disabled";
    And the associated skin mxml class:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/halo">
        <fx:Declarations>
            <!-- Place non-visual elements (e.g., services, value objects) here -->
        </fx:Declarations>
        <fx:Script>
            <![CDATA[
                import mx.collections.ArrayList;
                import nova.style.skins.ToolBarSkin;
                // Initialise les données des skinparts après leur création.
                private function handleCreationComplete(event:Event):void {
                    clientLogo.source = hostComponent.logoSrc;
                    tools.dataProvider = new ArrayList(hostComponent.toolsItems);
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="disabled"/>
            <s:State name="normal"/>
        </s:states>
        <!-- host component -->
        <fx:Metadata>
            [HostComponent("nova.style.MapToolBar")]
        </fx:Metadata>
        <s:layout>
            <s:BasicLayout />
        </s:layout>
        <s:HGroup creationComplete="handleCreationComplete(event);">
            <s:BitmapImage id="clientLogo"/>
            <s:ButtonBar id="tools" skinClass="nova.style.skins.ToolBarSkin"/>
        </s:HGroup>
    </s:SparkSkin>
    As you can notice, my inner ButtonBar has got its own skinClass has well. This is because I'm trying to divide my application in as many reusable bricks as possible. So here's ToolBarSkin:
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" alpha.disabled="0.5" xmlns:mx="library://ns.adobe.com/flex/halo">
        <!-- host component -->
        <fx:Metadata>
            <![CDATA[
             * @copy spark.skins.spark.ApplicationSkin#hostComponent
            [HostComponent("spark.components.ButtonBar")]
            ]]>
        </fx:Metadata>
        <s:states>
            <s:State name="normal"/>
            <s:State name="disabled"/>
        </s:states>
        <fx:Declarations>
            <!---
                 Specifies the skin class for the middle button(s) on the ButtonBar.
                 @default spark.skins.spark.ButtonBarMiddleButtonSkin
            -->
            <fx:Component id="middleButton">
                <s:ButtonBarButton skinClass="nova.style.skins.ToolBarButtonSkin"/>
            </fx:Component>
        </fx:Declarations>
        <s:Rect x="-5" alpha="0.8" left="1" right="1" top="1" bottom="1" radiusX="10" radiusY="10">
            <s:fill>
                <s:LinearGradient rotation="-90">
                    <s:GradientEntry color="#040303" ratio="0"/>
                    <s:GradientEntry color="#858584" ratio="1"/>
                </s:LinearGradient>
            </s:fill>
        </s:Rect>
        <!---
             @copy spark.components.SkinnableDataContainer#dataGroup
        -->
        <s:DataGroup id="dataGroup" top="5" left="10" right="5" bottom="5">
            <s:layout>
                <s:HorizontalLayout gap="12" />
            </s:layout>
        </s:DataGroup>
    </s:SparkSkin>
    And yes, the ButtonBarButton skin is also customized, 'cause I want to display an icon on them... Here it is :
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                 xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:mx="library://ns.adobe.com/flex/halo" xmlns:d="http://ns.adobe.com/fxg/2008/dt" xmlns:ai="http://ns.adobe.com/ai/2008" minWidth="21" minHeight="21" alpha.disabledStates="0.5">
        <!-- states -->
        <s:states>
            <s:State name="up" />
            <s:State name="over" stateGroups="overStates" />
            <s:State name="down" stateGroups="downStates" />
            <s:State name="disabled" stateGroups="disabledStates" />
            <s:State name="upAndSelected" stateGroups="selectedStates, selectedUpStates" />
            <s:State name="overAndSelected" stateGroups="overStates, selectedStates" />
            <s:State name="downAndSelected" stateGroups="downStates, selectedStates" />
            <s:State name="disabledAndSelected" stateGroups="selectedUpStates, disabledStates, selectedStates" />
        </s:states>
        <!-- host component -->
        <fx:Metadata>
            <![CDATA[
            [HostComponent("spark.components.ButtonBarButton")]
            ]]>
        </fx:Metadata>
        <fx:Script>
            /* Define the skin elements that should not be colorized.
            For toggle button, the graphics are colorized but the label is not. */
            static private const exclusions:Array = ["labelDisplay"];
            override public function get colorizeExclusions():Array {return exclusions;}
        </fx:Script>
        <s:Group d:id="2" d:type="layer" d:userLabel="Calque 1">
            <s:Group x="1" y="1" d:id="3">
                <s:Path alpha="0.7" winding="nonZero" ai:knockout="0" data="M2 30C0.896484 30 0 29.1016 0 28L0 2C0 0.896484 0.896484 0 2 0L28 0C29.1025 0 30 0.896484 30 2L30 28C30 29.1016 29.1025 30 28 30L2 30Z" >
                    <s:fill>
                        <s:LinearGradient x="15.0005" y="30" scaleX="29.9995" rotation="-90">
                            <s:GradientEntry color="#d9d9d9" ratio="0"/>
                            <s:GradientEntry color="#f2f2f2" ratio="1"/>
                        </s:LinearGradient>
                    </s:fill>
                </s:Path>
            </s:Group>
        </s:Group>
        <!-- Icone embarquée -->
        <s:HGroup horizontalCenter="0" verticalCenter="0"
                  creationComplete="img.source = hostComponent.data;">
            <!-- layer 8: icon -->
            <s:BitmapImage id="img" />
        </s:HGroup> 
    </s:SparkSkin>
    Finally, in my main application I invoke my component like this :
    <nova:MapToolBar logoSrc="@Embed(source='/assets/img/clients/ge.png')" skinClass="nova.style.MapToolBarSkin">
            <nova:toolsItems>
                <s:ButtonBarButton id="redBtn"
                                   label="Red"
                                   data="@Embed(source='/assets/img/crown.png')"
                                   />
                <s:ButtonBarButton id="orangeBtn"
                                   label="Orange"
                                   data="@Embed(source='/assets/img/disk.png')"
                                   />
                <s:ButtonBarButton id="yelloyBtn"
                                   label="Yellow"
                                   data="@Embed(source='/assets/img/nuclear.png')"
                                   />
            </nova:toolsItems>
        </nova:MapToolBar>
    Unfortunately,I get the following at runtime:
    * the logo image is never displayed - yet the path is correct and the step-by-step debug confirms that the handleCreationComplete() method gets called with correct values being assigned to my parts !
    * each buttonbarbutton throws this stackexception, and of course my button icons aren't displayed either, only buttons' backgrounds show up:
    ArgumentError: Error #2015: BitmapData non valide.
         at flash.display::BitmapData()
         at spark.primitives::BitmapImage/set source()[E:\dev\gumbo_beta2\frameworks\projects\spark\src\spark\primitives\BitmapImage.as:269]
         at nova.style.skins::ToolBarButtonSkin/___ToolBarButtonSkin_HGroup1_creationComplete()[C:\EnvDevEclipse\Workspace-Head\novacom-flex-proto-customcomp\src\nova\style\skins\ToolBarButtonSkin.mxml:56]
         at flash.events::EventDispatcher/dispatchEventFunction()
         at flash.events::EventDispatcher/dispatchEvent()
         at mx.core::UIComponent/dispatchEvent()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:11749]
         at mx.core::UIComponent/set initialized()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\core\UIComponent.as:1525]
         at mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:759]
         at mx.managers::LayoutManager/doPhasedInstantiationCallback()[E:\dev\gumbo_beta2\frameworks\projects\framework\src\mx\managers\LayoutManager.as:1069]
    Any help would be really much appreciated
    Thanks
    Matt

    Well, I've already solved one of the two issues
    In order to display the icons on my buttonbar buttons, I just needed to point at {hostComponent.data.data} instead of {hostComponent.data}. I'm not sure why, but {hostComponent.data} in my skin class is a handle on my instance of ButtonBarButton, not its "data" property. Any explanation is welcomed
    I still have got the first issue though. Oddly enough my design works if I put an mx Image instead of the spark BitmapImage for the client logo. That will do the trick for the moment but I'd prefer to deliver a 100% pure spark component in my prototype, and I can see no reason why BitmapImage works inside my ButtonBarButtons and doesn't otherwise...

Maybe you are looking for

  • I can´t donwgrade my icloud storage plan

    Hello, I bought a new storage plan for my phone, but it never worked, I could never back up my phone to my iCloud! And yes I followed all the instructions on your site, like plugging to a source and connecting with the Wi-Fi network. Besides all of t

  • Feathers TextInput with AIR 3.9

    With the latest 3.9 Beta I'm seeing the Feathers TextInput field unmasked when it's set to 'password'. Has anyone else seen this? It worked fine under 3.8. It's possible it's a Feathers issue in combination with recent 3.9 updates.

  • Sending Mail to Multiple To addresses

    Hi! I want to know how to send mail to multiple mail addresses. Thanks!

  • SP in delete/insert/modify trigger

    I have created a trigger which sends a notification email on deletes.inserts, or updates on a particular table.  Trigger works great.  While testing, I did a delete all - and sure enough the trigger fired on every row that was deleted and I got over

  • PC Suite does not startup

    Background: Nokia PC Suite worked correctly and about 2 weeks ago it stopped working. I can't identify anything that started this behaviour. Problem Behaviour: When I run PCSuite (via PCSuite.exe or via a link to PCSuite.exe) the "hour glass icon" ap