Using ExtensibleEnvironment and Command Pattern with 3.7.1 Release

I am trying to port my project 3.6 project to 3.7.1. I am using the Extensible environment from the jar coherence-3.6-common-1.7.3.20019.jar
While starting the cluster I am getting the below errors.
Is there a confguration showing how to configure the Command Pattern and Extensible environment with XSD validation in 3.7.1?
Exception in thread "main" (Wrapped: Failed to load the factory) (Wrapped: Missi
ng or inaccessible constructor "com.oracle.coherence.environment.extensible.Exte
nsibleEnvironment(String)"
<configurable-cache-factory-config>
<class-name>com.oracle.coherence.environment.extensible.ExtensibleEnvironment<
/class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>C:/work/development/workspace/java/Coherence-Rest/cfg/cache-s
erver-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
n
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
cheFactoryBuilder.java:311)
at com.tangosol.net.DefaultCacheFactoryBuilder.getSingletonFactory(Defau
ltCacheFactoryBuilder.java:48)
at com.tangosol.net.DefaultCacheFactoryBuilder.getFactory(DefaultCacheFa
ctoryBuilder.java:121)
at com.tangosol.net.ScopedCacheFactoryBuilder.getConfigurableCacheFactor
y(ScopedCacheFactoryBuilder.java:112)
at com.tangosol.net.CacheFactory.getConfigurableCacheFactory(CacheFactor
y.java:126)
at com.tangosol.net.DefaultCacheServer.getDefaultConfigurableCacheFactor
y(DefaultCacheServer.java:364)
at com.tangosol.net.DefaultCacheServer.main(DefaultCacheServer.java:197)
Caused by: (Wrapped: Missing or inaccessible constructor "com.oracle.coherence.e
nvironment.extensible.ExtensibleEnvironment(String)"
<configurable-cache-factory-config>
<class-name>com.oracle.coherence.environment.extensible.ExtensibleEnvironment<
/class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value>C:/work/development/workspace/java/Coherence-Rest/cfg/cache-s
erver-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>) java.lang.reflect.InvocationTargetExceptio
n
at com.tangosol.util.Base.ensureRuntimeException(Base.java:288)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2652)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2536)
at com.tangosol.net.ScopedCacheFactoryBuilder.getDefaultFactory(ScopedCa
cheFactoryBuilder.java:273)
... 6 more
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at com.tangosol.util.ClassHelper.newInstance(ClassHelper.java:694)
at com.tangosol.run.xml.XmlHelper.createInstance(XmlHelper.java:2611)
... 8 more
Caused by: java.lang.RuntimeException: Can't create a NamespaceContentHandler as
the URI scheme [http] in [http://www.w3.org/2001/XMLSchema-instance] is not sup
ported
at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
xt$Scope.establishNamespaceContentHandlerFor(DefaultConfigurationContext.java:62
5)
at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
xt.ensureNamespaceContentHandler(DefaultConfigurationContext.java:94)
at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
xt.processElement(DefaultConfigurationContext.java:254)
at com.oracle.coherence.environment.extensible.DefaultConfigurationConte
xt.processDocument(DefaultConfigurationContext.java:204)
at com.oracle.coherence.environment.extensible.ExtensibleEnvironment.set
Config(ExtensibleEnvironment.java:438)
at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
urableCacheFactory.java:193)
at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
urableCacheFactory.java:179)
at com.tangosol.net.DefaultConfigurableCacheFactory.<init>(DefaultConfig
urableCacheFactory.java:155)
at com.oracle.coherence.environment.extensible.ExtensibleEnvironment.<in
it>(ExtensibleEnvironment.java:154)
... 14 more

Hi
Is there a reason you are using the 3.6 version of the incubator with Coherence 3.7 and not the latest INC-10 version? I suspect the 3.6 Incubator does not support normal XML schemas.
JK

Similar Messages

  • Chain of responsabilities and command patterns

    Hi,
    I'm working on a desktop application with and I'm trying to apply some refactorings to assure a certain level of modularity. I'd like to know if someone had already used the chain of responsabilities and commands pattern to handle users actions for this purpose:
    1 - Transform Action to Request
    2 - use a HandlerManger to make a chain of handlers to handle this request
    3 - transform the resulting Request to a Command
    4 - execute the command on a background process (using SwingWorker), it will be interesting to use also a kind of observer(a progress bar) to follow the execution
    5 - finally update the UI
    Ramzi from Paris.

    Unless you have a really good reason to go to all that effort, you are probably going to add more overhead that it is worth. It will depend on the application. Usually it is just easier to have a user action (Action subclass) go directly to a command that is run on a separate thread, no need usually to have all the request handlers. That is really what the listeners are anyway. All the in between activity really wouldn't make sense for a "Print" request by the user for example. You would just create a print Action, use that action to create various buttons, menu items, etc. Your action class would then contain all the necessary logic to perform the action, do something via swing worker, etc.
    In general, don't over architect your application. Keep it simple unless there is a really compelling user requirement to do otherwise.
    I hate getting into someone's code and find it burdened with all sorts of unneeded abstraction / modularity. Take the patterns to heart, but only use the bits that make the most sense for your problem.

  • MacBook will not start. I have restarted with original CD. I have used Utilities and "no problem" with hard drive. I have reset PRAM. I have tried safe boot. Nothing is work. Gray screen with Apple logo and rotating wheel. Thanks for any suggestions!

    MacBook will not start. I have restarted with original CD. I have used Utilities and "no problem" with hard drive. I have reset PRAM. I have tried safe boot. Nothing is work. Gray screen with Apple logo and rotating wheel. Thanks for any suggestions!

    Snow Leopard is a Mac OS X version. You say that it's the version you have in your Mac (10.6.8). Do a back up of your files, format the hard drive (using Disk Utility) and reinstall again

  • Feedback on use of incubator command pattern

    Hi,
    We are currently prototyping some different solutions using coherence incubator (namely command pattern) and are looking for some feedback as to the viability and potential improvements to the solution.
    h3. Summary of Prototype
    The prototype does the following (i have a nice sequence diagram for this but don't see a way to attach it :():
    + client (e.g. through coherence extend) calls local api to save a "message" for a particular account (e.g. Account id = 1234). This calls namedcache.put and inserts an entry into the cache.
    + BackingMapListener is configured for the cache into which the client indirectly inserts. In the prototype this is a spring bean that extends AbstractMultiplexingBackingMapListener - which is fully "loaded" with all the required dependencies for the processing of the message (services, etc.).
    + The listener then registers a new context (using ContextManager) using a "grouping" id based on the sequence/ordering requirements. For example, say that each message against an account needs to be processed in order. The context would get instantiated with name = "1234", so that subsequent requests for account 1234 will get queued against the context with the same name whilst the previous request(s) are still processing. Messages for other accounts would register a different context name so they will get simultaneously processed.
    NB: The functionality of this listener can be paralleled to the sample in CommandPatternExample for one submission. I am not entirely clear where command submissions typically "tie-in" but I am planning to kick them off from a backingmaplistener. I briefly explored using the 'com.oracle.coherence.common.events.dispatching.listeners.DelegatingBackingMapListener' to dispatch the commands but not entirely how this would tie in. As I understand it the delegating backingmaplistener is used within the 'liveobjects' context and dispatches entries that implement the LifecycleAwareEntry but not sure how we would create "custom-contexts" as we require (i.e. the identifier is not for the key of the cache entry but rather a subset of that -e.g. account id versus account message id).
    + A command is then created to process the account message, which is comprised of
    - the Account which needs processed (the value of the backing map listener contains the Account itself)
    - Any components that are required during processing (services, daos, etc - service might itself be injected with daos, etc.)
    + The newly instantiated command is then then submitted to the CommandSubmitter for the appropriate contextIdentifer (the one returned by 1234 in our example).
    From some basic tests, the prototype is behaving as I desire - i.e. it queues and "synchronizes" the commands for the same context and also simultaneously processes commands assigned to different contexts asynchronously. That's great.
    However, there are a number of things I am exploring for the actual implementation. I believe most of these are typical concerns so I wonder if Oracle or anyone can provide some feedback from past experience/proposed recommendations:
    h3. Questions
    h4. 1. Grid/server-side Business Logic Deployment
    One of the things that has occurred to us is that ideally we would like to store the business processing logic (i.e. the heart of the processing within the command) either inside the grid or within a coherence node (i.e. made available through the classpath of the node startup).
    In our case we have a few different "processing models", but ideally the processor/command will simply determine the appropriate control flow (i.e. within the command - or maybe the appropriate lifecycle if we end up using that) and associated business logic off the attributes of the object to be processed. I am not sure if our use case is typical, but to be clear we have a fair bit of business logic to be performed within the 'command', each in separate modules. In implementation, most modules will be interacting with the grid for lookups, etc. but ideally that will be abstracted from the Processor/Command which will only know that it is using an 'accountService' - for e.g.
    Currently the business logic is "loaded" into the listener and "passed on" to the command through composition. Ideally we ant the command would be light-weight and the various "processing models" would either:
    a) be deployed to each node and somehow "available" to the command during execution. Would need to work out how this would be come available to the execution environment; perhaps each 'Context' would wrap the processing details. However, even this is a bit too granular as likely a processing model will apply to many contexts.
    b) Perhaps the business logic/processing components are deployed to the cache itself. Then within the command attributes on the object would be consulted to determine which processing model to "apply" and a simple lookup could return the appropriate control flow/processor(s).
    c) Perhpaps the different logic/flow is embedded in a different "lifecycle" for the event processing and the appropriate lifecycle is detected by the listener and appropirately applied. Even with such a model we'd still like the various processing for each phase to be maintained in the server if possible.
    Has anyone else done something like this and/or are there any thoughts about deploying the business logic to the grid this way? I see advantages/disadvantages with the different solutions, and some of them seem better for upgrades. For example if you upgrade the processing logic whilst requests are still coming in (clearly you would attempt to avoid this) and it is embedded into each node, what would happen if one node has been upgraded and a request comes to that node. Say one of the business logic modules performs a query against the cache which needs to consult another node (e.g. assuming you're using partitioned data) and that node has not received the upgrade and there's a conflict. In that regard perhaps deploying the different processing logic to a replicated cache makes more sense because once updated it should get pushed immediately to all nodes?
    Are these known concerns? I'm new to grid-side processing concepts so just correct me if there's an obvious issue with tis.
    h4. 2. Cleanup/Management of contexts
    One thing I noticed on my prototype is that the context's that I create don't really go away. We are envisioning creating Many context per day (let's just say a few hundred million to be safe)
    so ...
    a) how do people normally remove the contexts? Does the command framework sort this out behind the scenes? I can see the 'stop' method on the CommandExecutor removing the context, but from a quick follow-through the only scenario which seems to potentially call this is if the context version number has changed. Is there some way to change the version when we submit additional commands to the same context?
    b) Is there an issue with creating this many Contexts? As per earlier mention, to reduce overhead ideally the context will not be too heavy but any thoughts on our intended usage? We could use something like a hashing scheme to "bucket" the requests to contexts to reduce the total number of Contexts if required but this is not ideal.
    h4. 3. Creation of new Command Every time.
    In our scenario, each command needs to act upon a given object (e.g. one account). As I see it, this requires us to create a new Command for each message, because I do not see a way to 'pass in' the object to the execute method. Setting it to the context does not work either because we need to queue a few requests to each given context; I played with wrapping the object with GenericContext and setting the value but in reality we're submitting the commands whilst others are currently being processed so I don't see how this could work.
    Any thoughts on this? Do you agree we'll have to create a new command for every message to be processed? We'll likely have millions of Commands per day so this will make a difference for us (although if we eliminate the logic from q#1 or the dependencies are singletons it's not a big deal)
    h4. 4. Concurrency guarantees with the commandpattern
    I also want to confirm my understanding of concurrency controls around the command pattern. Unlike an entry processor which controls updates to the entry upon which it was invoked, the command pattern only guarantees concurrency against processing occuring within the context of the currently operating command. Commands submitted to the same context will be processed synchronously but any entries which may have had a listener which spawned the command submission are in no way guarded. This latter point is pretty obvious I believe since there's no real link but I just want to make sure my assumptions are correct.
    NB: in the scenario I am describing we do NOT need to update the original cache entry into which the account message was submitted. Instead other caches will be updated with results from additional processing logic so this is not that much of an issue for us.
    h4. 5. Confirmation of concerns with "straight" entry processor
    If we were to use a "straight" entry processor (versus command pattern which uses entry processor) which gets kicked off from a threadpool on a backing map listener (for example on insert or update), is it true that if a node were to go down, we would have issues with failover? NB: The reason we would kick off the entry processor from a threadpool would be to "simulate" asynchronous processing. As I see it, if we kicked off a thread on the listener and returned back to the client, nothing would "re-submit" the request if a node goes down. Is that correct?
    ALTERNATIVELY, As I understand it, with an entry processor invoked from a client, it is the client coherence jar that receives the exception when a node goes down mid-process and the coherence jar takes care of "re-sending" the request to another node. So - if the threadpool is managed by the client and the client kicks off an invoke in one of the threads - then I believe the client WILL re-submit the entry processor requests if the node goes down - through the coherence jar/extend - not sure on the details but my point is that the client application does not have to provide any code for the "failover" but the coherence client jar performs this.
    h4. 6. Lifecycle
    I have not explored the "lifecycle" functionality available within the incubator - but as I understand it the main thing it could offer is that if we have many phases of the processing (as we do in most our use cases) - that the processing can be managed with the different lifecycles. NB: To be clear I am referring to 'live objects' with their own series of processing steps - not 100% if Lifecycle directly relates to 'live objects'. If a node goes down and is in the midst of processing 200,000 commands - the entire processing doesn't need to start over.. each request will need to go back to the previous completed phase of the lifecycle but may well avoid duplicated processing. All processing will need to be idempotent regardless, but lifecycles could avoid re-processing that was already complete.
    Is this correct?
    Other benefits?
    (e.g. configurable processing logic as alluded to in Q#1).
    Thanks very much
    Edited by: 822486 on 21-Dec-2010 16:23
    Edited by: 822486 on 21-Dec-2010 16:59

    Hi User 822486,
    When delving into a detailed prototype like the one you have below it's often useful to understand the use cases and business requirements before jumping into a solution. I think it may be best for you to reach out to the Coherence organization within oracle to further discuss these questions in detail so we can better guide you in the different ways to solve problems with Coherence and the incubator. I'll do my best to comment on your prototype and address the questions that you currently have:
    NB: The functionality of this listener can be paralleled to the sample in CommandPatternExample for one submission. I am not entirely clear where command submissions typically "tie-in" but I am planning to kick them off from a backingmaplistener. I briefly explored using the 'com.oracle.coherence.common.events.dispatching.listeners.DelegatingBackingMapListener' to dispatch the commands but not entirely how this would tie in. As I understand it the delegating backingmaplistener is used within the 'liveobjects' context and dispatches entries that implement the LifecycleAwareEntry but not sure how we would create "custom-contexts" as we require (i.e. the identifier is not for the key of the cache entry but rather a subset of that -e.g. account id versus account message id).
    Command submissions are just that, submissions to the command pattern for execution and they can be triggered from anywhere since they run asynchronously. The DelegatingBackingMapListener and the associated eventing model provides you with the foundations for building an Event Driven Architecture on top of coherence. It's used by both the Push Replication Pattern as well as the Messaging Pattern which you could use as references if you wanted to go down the path of using the eventing model as well. It really comes down to your use case (which I don't have a lot of details on at the moment). An Entry that is a LifecycleAwareEntry can basically take action when it's state is changed (an event occurs). As a completely bogus example you could have a AccountMessageDispatcher object in a cache with a DelegatingBackingMapListener configured and you could submit EntryProcessors to this dispatcher that gives it a set of messages to perform for a set of accounts. The Dispatcher could then every time it's updated submit commands for execution. In essence it's formalizing an approach to responding to events on entries - or server side event driven programming.
    h2. Grid/server-side business logic deployment
    Have you looked at the processing pattern at all? It's a framework for building compute grids on top of Coherence and may have more plumbing in place for you to achieve what you're looking for. I think it may be best for us to discuss your use case in more detail to understand the pros and cons of each approach before commenting further on a solution for you.
    h2. Cleanup and Management of contexts
    Contexts are marker interfaces so they can be incredibly lightweight which should allow you to create as many of them as you need. The biggest concern is ensuring that you have enough processing power in your grid to handle the volume of work you want to manage. This should be a simple matter of figuring out your load and sizing your cluster appropriately. The initial design of the command pattern was to have a set of well established contexts that would be used repeatedly. Given that the Command Pattern is primarily an example, you could extend the DefaultContextsManager to have an unregisterContext method.
    h2. Creation of new command every time
    I'm a little confused by your requirement here. Are you saying that you have a set of pre-defined operations that you want to apply to an account for example incrementAccountBalancyBy1? If so, I don't understand why you couldn't submit the same command instance to a context multiple times. While I wouldn't recommend using statics you could have a CommandFactory that returned the same command each time you call getCommand once it was instantiated once. Usually however we expect that you'll have some additional data unique to each message that the command must execute. This could be handled by having a setter on your command for these properties.
    h2. Concurrency Guarantees
    The Command Pattern Guaranteees that for a given context commands are processed synchronously in the order they are received. If you have multiple submitters sending commands to the same context, then the order of when the commands are processed will be based on the order in which they arrive at the node where the Context resides. A context is the control point that gives commands their ordering.
    h2. Confirmation of concerns with "straight" entry processor
    I'm not sure if I follow your question here. EntryProcessors are guaranteed to execute, even in the failure scenario (this is why they're backed up and why they must be idempotent). If you're referring to processing events based on a backing map listener rather than submitting commands, it handles your processing then it's a matter of wether you're asynchronously processing the events or not. If you are synchronously processing things and your node dies while the BML is executing you're right a node failure at that point will result in "nothing happening" and the client will re-try. If however you're asynchronously handling the events from your BML, then you could lose state. This is why we use entries the way we do in the common event layer, we persist state on an entry that we can't lose when a node fails. This allows us to asynchronously process the data after the node has been updated.
    h2. Lifecycle
    With respect to lifecycle if you're referring to LifeCycleAwareEntry - this is a way of designating that an Entry in the cache can process events when modified/mutated. This may be better discussed by phone or in person.

  • Want to use MSword and excel docs with OS X10.8.5

    I need to work on my MSword and excel documents.
    I should have done something about that and acturally planned to handle that problem but them I saw "Update to OS X 10.8.5" and did it without daeling my problem of updating MS word and excel.
    Please let me know what I could do, hopelyfully with less cost.
    Thanks!

    Drag them to the OpenOffice icon in the Dock, or use the Open command from within OpenOffice, or select a document in the Finder, choose Get Info from the File menu, click on Open With, select the desired application, and press the Change All button.
    (92743)

  • Using Functions and/or Graphs with Custom Cell Formats in Numbers

    I am attempting to use the AVERAGE function or create a graph in Numbers for cells with a custom format, however, I keep receiving an error message telling me that "Numbers can't be divided by Zero" or an empty graph.
    The format I am using is for a split time for a certain distance, as in time it takes a runner to go around a track: minute:seconds.milliseconds i.e. 1:56.4
    Is there a solution to the formatting or another way to accomplish having the correctly formatted cell and still be able to use functions and graphs.

    Hi nich.lee,
    You can't chart Duration formatted data without first converting it to another format. Also, you will get an error if you attempt to use the AVERAGE function on an empty range.
    Here's an example of charting Duration data by using a conversion...
    Best regards,
    Jerry

  • Cannot burn DVD (using iDVD, and iMac G5 with Superdrive)

    Hi. I'm trying to burn an iMovie onto a DVD-R (16x). I have an iMac G5 w/ Superdrive (PIONEER DVD-RW DVR-K04F). I have plenty of available disc space. iDVD goes through the entire burn process, then at the very end it spits out the disc with these errors:
    The recording device reported the error #8: No additional sense information. (0x00, 0x00.)
    The recording device reported the media error: Power calibration area error. (0x73, 0x03.)
    Can someone PLEASE help me? What am I doing wrong?
    THANK YOU!

    Could be the brand of media you are using. Most users here find the most reliable to be Verbatim DVD-R.
    Also, try burning at a lower speed.
    Using 16x DVD media is fine - in fact it is difficult to buy any other - but there is a consensus in the Apple Support Forums that a slower burn is a better burn and that the most reliable brands are Verbatim, Maxell and Fuji, all DVD-R, burned at 2x or 4x (slow burns are better burns!). I always use Toast for burning.
    I generally use Verbatim and when I can't get those, Fuji, and have never had a coaster from either.
    Plenty of coasters in the early days from Sony, TDK and a few others.
    The term "Best" means the fastest speed that the drive told Toast it can write to a specific disc. The drive's firmware and info on the disc decide what speed burns are available. When you press the speed setting button in Toast (after inserting a disc) you'll likely see some speeds in italics and some in bold face. The ones in bold face are supported by that media on that drive. The fastest one is what Toast calls Best.
    Audio CDs in particular should be burned at the lowest supported speed.
    Verification is a good indicator the disc is burned okay. However, other DVD players can still have problems with the disc. Media problems with various drives is not uncommon. Slower burning may reduce the chance of those problems, and is one of the reasons why RW (read/write) media is always rated slower than DVD-R.
    There are some interesting facts here:
    http://www.osta.org/technology/dvdqa/dvdqa4.htm and here:
    http://www.osta.org/technology/dvdqa/dvdqa4.htm
    But many will tell you that the 'slower burn is best' theory is outdated. Who really knows? At the end of the day, if your home-made DVD was verified by Toast and will play anywhere on anybody's DVD player, then that is the result we are all after!

  • Is it possible to use fullscreen and exclusive mode with a jfilechooser?

    is there a way to use them together? while in fullscreen exclusive mode the jfilechooser doesn't attach to fullscreen window and it halts the program.. I've tried setting the parent frame as the fullscreen frame but it's all glitched.. am I missing something?
    thank you,
    best regards,
    Jacopo

    For reference, the cross-post can be found here:
    Is it possible to use network devices (cDAQ-9188) with a PXI Real Time system?
    Jayme W.
    Applications Engineer
    National Instruments

  • Applescript app to batch files using ffmpeg and command

    i'm not a technical person and i hoping that i can get a help to create a custom applescript app. i'd like to create an applescript app to run video files from any folder to encode (using ffmpeg) and save the re-encoded version in a new folder inside the current file folder. i found the script that i need to run inside the applescript:
    ffmpeg -i ORG-FILENAME -c:v libx264 -crf 27 -c:a libfaac -q:a 100 -map_metadata 0 NEW-FOLDER/ORG-FILENAME && touch -r ORG-FILENAME NEW-FOLDER/ORG-FILENAME
    i searched through the forum and found something that might work but my limited knowledge can't get this to work:
    on run
        tell application "Finder"
            set theFolder to (choose folder)
        end tell
        proceed(theFolder)
    end run
    on open theFolder
        proceed(theFolder as alias)
    end open
    on proceed(theFolder)
        tell application "Finder"
            set parentFolder to parent of theFolder as string
            if not (exists parentFolder & "A") then
                make new folder at parent of theFolder with properties {name:"A"}
            end if
        end tell
        tell application "Terminal"
            do script "for f in " & quoted form of POSIX path of theFolder & " do ffmpeg -i \"$f\" -c:v libx264 -crf 27 -c:a libfaac -q:a 100 -map_metadata 0 " & quoted form of (POSIX path of (parentFolder & "A")) & " \"$f\"
    done"
        end tell
    end proceed
    when i run this i get:
    for f in '/Users/admin/Pictures/0/1/' do ffmpeg -i "$f" -c:v libx264 -crf 27 -c:a libfaac -q:a 100 -map_metadata 0 '/Users/admin/Pictures/0/A' "$f"
    done
    macbookpro-7:~ admin$ for f in '/Users/admin/Pictures/0/1/' do ffmpeg -i "$f" -c:v libx264 -crf 27 -c:a libfaac -q:a 100 -map_metadata 0 '/Users/admin/Pictures/0/A' "$f"
    > done
    -bash: syntax error near unexpected token `done'
    can anyone help me please

    You are missing a ";"  after your path argument.
    for f in '/Users/admin/Pictures/0/1/'; do

  • Using generics and J2SE together with JSF

    Hi
    Has anybody experience with using JSF together with J2SE 1.5? Especially generics? I would like to use generics and other improvements from J2SE in the model objects.
    Thnaks in advance ... Rick

    JSF 1.1 is specified for J2SE 5, and the new specification (JSF 1.2 and JSP 2.1) does not include generics.
    If you are talking in terms of ValueBindings or MethodBindings, there really isn't any point since the implementation could only make the cast for you; and it would still not be able to garuantee type safety (the only reason to use generics).
    That's not to say you couldn't use generics in your own development, but I don't think you will see generics incorporated into the specification any time soon.
    Jacob Hookom (JSR-252 EG)

  • IPod Touch upgrade to use iMessage and it syncs with Dad's iPhone info!!! Using family pack Mobile Me. HELP???

    I have three children that use iPod Touches. They are all iOS5 capable. I upgraded the first one this morning and it synced with my iPhone profile on iCloud. It asked for the iTunes account information which is what I believe caused this. We use Mobile Me Family Pack and each of the children have a unique @me.com account. How do I fix this problem so that each iPod has it's own unique login so that iMessage will work? I don't really want to open them up to any further exposure  on the Web though... . As it stands I am able "micromanage" their contact list via Mobile Me. Is there any way to make the iPods behave correctly and still maintain parental control as well as allow them to keep their unique profiles and contact lists???
    ...and for some reason, after upgrading my son's iPod Touch... his apps all disappeared from the device??? Strange, as this worked perfectly when I upgraded my iPhone yesterday.
    PS. All my upgrades are current. iOS5 on iPhone 4, iTunes 10.5 on MBP.

    I spent about 2 hours on the phone with Apple Support... had to restore both devices! Arrrgggghhh!!! Thankfully the iPhone had a Backup from yesterday. The iPod wasn't too tough to get back up and running either... although we had to completely reload it as if it were new. Then we found out that Apple won't let the device login with my son's @me.com email because he's too young (10). Quick work-around for now until Apple fixes this was to lie about his age in the setup. I don't like the work around, but it worked.

  • My pavilion g6 does not have a number pad and i need to use the + and - that come with it?

    I have a pavilion g6 and it doesnt have a number pad it also doesnt have any sort of num lock light but i really need to be able to use the + and - keys that come with the num pad as the other ones that are just below the f11 and f12 keys do not work for what i need and i would therefore like to know if there is any way to press a number pad plus and minus on my keyboard

    Troubleshooting iMessage activation:
    http://support.apple.com/kb/TS4268

  • Using dcmctl and enterprise manager with OracleAS 10.1.2.0.2

    Hi
    I know that in OracleAS 9.0.2 there were problems when you tried to use dcmctl and Enterprise Manager at the same time. Does OracleAS 10.1.2.0.2 has the same problem.

    hello,
    somewhere (i really don't remember where, but it was in the oracle documentation) i'm sure i read that already in 9.0.4 you could use dcmctl when enterprise manager was up. but i've never experienced it and i prefer not to try!!!
    fabrizio

  • How to create store procedure using cursor, and looping condition with exce

    Hi,
    I am new in pl/sql development , please help me for follwoing
    1. I have select query by joining few tables which returns lets say 100 records.
    2. I want to insert records into another table(lets say table name is tbl_sale).
    3. If first record is inserted into tbl_sale,and for next record if value is same as first then update into tbl_sale else
    insert new row
    4. I want to achieve this using store procedure.
    Please help me how to do looping,how to use cursor and all other necessary thing to achieve this.

    DECLARE
       b   NUMBER;
    BEGIN
       UPDATE tbl_sale
          SET a = b
        WHERE a = 1;
       IF SQL%ROWCOUNT = 0
       THEN
          INSERT INTO tbl_sale
                      (a
               VALUES (b
       END IF;
    END;note : handle exceptions where ever needed
    Regards,
    friend
    Edited by: most wanted!!!! on Mar 18, 2013 12:06 AM

  • REP-0713 error when using r25run32 and command line

    Help,
    I have what seems to be a very strange problem. I have the following
    command line saved as a batch file called Test.bat. If I double-click on it
    or run it from the command prompt, it works fine - it runs a report and
    prints it.
    d:\orant\bin\r25run32.exe report=test1.rep userid=user1/user1@testdb
    paramform=no destype=printer desname="HP" desformat=dflt printjob=no
    However, if I use a program scheduler, it crashes with the error:
    "REP-0713: Invalid printer name 'HP' specified by parameter name DESNAME"
    I have tried Norton Scheduler, NT AT command, as well as a couple other
    shareware programs. All crash with this error. If I use background=yes,
    again it works if I run it, but when a scheduler starts it, the Report
    Server crashes. Instead, if I use batch=yes, it just crashes after a few
    seconds.
    If I use printjob=yes, the printer dialog pops up, I press OK, and it works
    fine. I have tried outputting to a PDF file, but again, it works if I run
    the batch file, but not when a scheduler does.
    I am using Reports 2.5, Oracle 7.1, NT4 SP6. I have also tried the Reports
    3.0 runtime (r30run32) with the same results. I just need to run/print a
    report automatically every day.
    Any ideas are greatly appreciated, Thanks.
    Jason
    null

    I just concatenate them , for example if my key fields of the table are document number and item number , i concatenate them and put it in the key_column.
    How do i read them in my oninputprocessing.
    data: tv type ref to cl_htmlb_tableview.
      tv ?= cl_htmlb_manager=>get_data(
                              request      = runtime->server->request
                              name         = 'tableView'
                              id           = 'test' ).
      if tv is not initial.
        data: tv_data type ref to cl_htmlb_event_tableview.
        tv_data = tv->data.
    <document no.> = tv_data->selectedrowkey+0(10) .
    <item no.>   = tv_data->selectedrowkey+10(5) .
    if i need more info then i read the itab with key document number = <document no.> and
    item number     = <item no.>
    Hope this is clear.
    Regards
    Raja

Maybe you are looking for

  • CS2 Interactive frames

    Not getting much response at the InDesign Forum so I thought I would take a shot here...... CS2 4.0.5 OSX 10.4.11 Power PC G5 I am building a catalog for pdf output web & CD, a page has 4 book publications on it. Each has a picture/button of the cove

  • How can i create absolute symbolic links

    The question is simply the Thread Topic, I want to create an Absolute Symlink, I have found some Apple Scripts that i think create relative Symlinks. I am not that familiar with Terminal, so any recomendations to go that route nned to be fully explai

  • Error7 occured at open/create/replace file

    Helo The vi attached is supposed to log current vs power.im supposed to see current changes on the front panel under the current(A) string but it remains zero even when the current setting is not zero.another problem is when i run the vi i get the er

  • Problems with Driver update =( Any advi

    I recently was advised that I had to update my soundcard drivers in order for an application to run correctly. I was directed to www.creativelabs.com to download the proper drivers. after I downloaded the drivers and launched the update I promptly re

  • I joined apple support communities today and I have 110 e-mails.  How can I turn this off.

    I joined apple support communities today and I have 110 e-mails from the community. How can I stop receiving these email that are not related to my problem?