af media UI component. Programmatically seeking specified playback time.

Hi everybody!
According to business logic, I need to realize playback of audio and video file in my ADF application. I try to use <af media> UI component for this purposes. Everything is fine, but in addition I need to seek specified playback time programmatically (from managed Bean). I try to find out something about it in documentation, but I can't.
Does anybody have programming experience with <af media> UI component?
Thanks in advance!
Emin

Hi everybody!
According to business logic, I need to realize playback of audio and video file in my ADF application. I try to use <af media> UI component for this purposes. Everything is fine, but in addition I need to seek specified playback time programmatically (from managed Bean). I try to find out something about it in documentation, but I can't.
Does anybody have programming experience with <af media> UI component?
Thanks in advance!
Emin

Similar Messages

  • Setting 'source' of Image component programmatically

    How do you change the source of an mx:Image component
    programmatically in ActionScript?
    I have an image like this:
    <mx:Image id="myImage"
    source="@Embed(source='image1.png')" />
    Then I want to change this in my actionscript to image2.png.
    Why does not the following code work?
    myImage.source = "@Embed(source='image1.png')";
    The image won't load, it just displays a small square icon. I
    am sure that the path is correct because it works when I use the
    Embed statement in the component declaration.
    I appreciate your help!

    The line:
    <mx:Image id="myImage"
    source="@Embed(source='image1.png')" />
    embeds the image into your SWF file at compile time. To
    change the source at run time, you'll try something like:
    myImage.source = "images/image1.png";
    Where images is your folder on the root of web application
    context you're in and image1.png is the image to be loaded.
    Here is from image class help from docs:
    The URL, object, class or string name of a class to load as
    the content. The source property takes the following form:
    source="URLOrPathOrClass"
    source="@Embed(source='PathOrClass')"
    ATTA

  • Adding Teradata source component programmatically in SSIS

    Need help to add a Teradata source component programmatically in SSIS . I am able to add the component but the column info and other metadata is not available for subsequent components. Any documentations or suggestion is needed .

    What kind of source is it? ODBC? Column info appears after you set the columns up.
    Arthur My Blog

  • JMediaPlayer - get media duration, current playback time ... etc

    Hello everybody,
    I can't seem to find API calls for the following purposes:
    - get media duration
    - get current playback time
    - set current playback time
    Does anybody know how to get/set those values?
    By the way, I'm embedding the JMediaPlayer within a Swing application, not developing a classic FX tool.
    Thank you in advance,
    r.

    To best learn JavaFX and its API and class of what it can do or not do, do learn to decompile the code into Java. You will find most of your answer there (though you may find it limit in understanding Java class compiled from JavaFX Script source)
    First of all, the decompiled JMediaPlayer show the following code
    package com.sun.media.jmc;
    import com.sun.media.jmcimpl.PlayerControlPanel;
    import java.awt.BorderLayout;
    import java.net.URI;
    import javax.swing.JComponent;
    // Referenced classes of package com.sun.media.jmc:
    // JMediaPane, MediaUnavailableException, MediaUnsupportedException, MediaCorruptedException,
    // MediaInaccessibleException
    public class JMediaPlayer extends JComponent
    public JMediaPlayer()
    mediaPane = new JMediaPane();
    setLayout(new BorderLayout());
    add(mediaPane, "Center");
    add(controlPanel = new PlayerControlPanel(mediaPane), "South");
    controlPanel.setPlayEnabled(false);
    public JMediaPlayer(URI uri)
    throws MediaUnavailableException, MediaUnsupportedException, MediaCorruptedException, MediaInaccessibleException
    mediaPane = new JMediaPane(uri);
    setLayout(new BorderLayout());
    add(mediaPane, "Center");
    add(new PlayerControlPanel(mediaPane), "South");
    public void play()
    mediaPane.play();
    public void stop()
    mediaPane.stop();
    public void pause()
    mediaPane.pause();
    public void setSource(URI uri)
    throws MediaUnsupportedException, MediaUnavailableException, MediaCorruptedException, MediaInaccessibleException
    if(mediaPane != null)
    mediaPane.setSource(uri);
    if(controlPanel != null)
    controlPanel.setPlayEnabled(true);
    public URI getSource()
    return mediaPane.getSource();
    public float setVolume(float f)
    return mediaPane.setVolume(f);
    public float getVolume()
    return mediaPane.getVolume();
    public void setMute(boolean flag)
    mediaPane.setMute(flag);
    public boolean isMute()
    return mediaPane.isMute();
    public void setRepeating(boolean flag)
    if(mediaPane != null)
    mediaPane.setRepeating(flag);
    public boolean isRepeating()
    if(mediaPane != null)
    return mediaPane.isRepeating();
    else
    return false;
    public void setAutoPlay(boolean flag)
    mediaPane.setAutoPlay(flag);
    public boolean isAutoPlay()
    return mediaPane.isAutoPlay();
    private JMediaPane mediaPane;
    private PlayerControlPanel controlPanel;
    The core object is JMediaPane with API to do what you want.
    mediaPane.setMediaTime(_timeSec); // Set media time
    mediaPane.getDuration(); // Get duration
    mediaPane.getMediaTime(); // Get current playback time
    Unfortunately, you cannot simply retrieve JMediaPane reference from JMediaPlayer because it has a private access modifier. Hence the only way is to create your own Player from the reference code above.

  • Invoking popup component programmatically

    Hi
    I am invoking popup component programmatically for that
    i have a link
    i have added a popup componet inside the af|form (for eg:popup id=p3) and bind the popup to a managed bean with name popup
    In the Action property of my commandlink, i have invoked a method in the managed bean( for eg.the method caller() )
    In my bean class i have used:-
    public class classname{
    private RichPopup popup;
    public void setPopup(RichPopup popup) {
    this.popup = popup;
    public RichPopup getPopup() {
    return popup;
    public String caller() {
    showPopup(popup, null);
    return null;
    public static void showPopup(RichPopup popup, UIComponent component) {
    FacesContext context = FacesContext.getCurrentInstance();
    String alignId = (component==null) ? null : component.getClientId(context);
    StringBuilder script = new StringBuilder();
    script.append("var popup = AdfPage.PAGE.findComponent('").append("p3").append("'); ")
    .append("if (!popup.isPopupVisible()) { ")
    .append("var hints = {}; ");
    if (alignId!=null) {
    script.append("hints[AdfRichPopup.HINT_ALIGN_ID] = '").append(alignId).append("'; ")
    .append("hints[AdfRichPopup.HINT_ALIGN] = AdfRichPopup.ALIGN_AFTER_END; ");
    script.append("popup.show(hints);}");
    ExtendedRenderKitService erks = Service.getService(context.getRenderKit(), ExtendedRenderKitService.class);
    erks.addScript(context, script.toString());
    But in my page when i clicked the link it doesnot invoke the popup component....
    am i missing with something......... please help
    Thanks
    sudeep

    yeah i even tried to call the "showPopup(popup, null);" from the actionlistener of the commandlink but no invoke........
    as u suggested http://ifelix.blogspot.com/2010/11/how-to-invoke-popup-component.html i followed this ........
    and my jsff
    <af:column sortProperty="contractFileName" sortable="false" id="c10"
    headerText="Contract File Name" width="166">
    <af:commandLink text="#{row.bindings.contractFileName.inputValue}"
    id="cl2" partialSubmit="true"
    actionListener="#{selContractName.OnClickOfContract}"
    binding="#{selContractName.conName}"
    action="#{selContractName.caller}">
    </af:commandLink>
    </af:column>
    Edited by: SKD on Sep 12, 2011 7:02 PM

  • [svn:osmf:] 15876: Update UnseekableProxyElement example from ExamplePlayer to re-enable seeking after playback completes , so that rewind works.

    Revision: 15876
    Revision: 15876
    Author:   [email protected]
    Date:     2010-05-03 16:54:01 -0700 (Mon, 03 May 2010)
    Log Message:
    Update UnseekableProxyElement example from ExamplePlayer to re-enable seeking after playback completes, so that rewind works.  No framework changes.  Addresses bugs FM-802 and FM-803 (as filed in Galaxy).
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-802
        http://bugs.adobe.com/jira/browse/FM-803
    Modified Paths:
        osmf/trunk/apps/samples/framework/ExamplePlayer/org/osmf/examples/seeking/UnseekableProxy Element.as

    Remember that Arch Arm is a different distribution, but we try to bend the rules and provide limited support for them.  This may or may not be unique to Arch Arm, so you might try asking on their forums as well.

  • Trouble with current playback time on progress bar

    First, some terminology.
    As Adobe Flash Player is preparing to play a video, it displays a spinning icon in the center of the video window.  I have seen web pages which refer to this as the spinning beach ball.  I will refer to this simply as the "spinning icon".
    While Adobe Flash Player is playing a video, when one hovers the cursor over the video window (or moves the cursor while playing the video in full screen mode), one sees a progress bar at the bottom of the window.  To the left of the progress bar is a pause button.
    The progress bar has a pointer representing the current playback time within the video.  The progress bar also has a display of the current playback time and length of the video (eg, 40:37 / 01:12:35, meaning that play back is at 40 minutes and 37 seconds within a video which is 72 minutes and 35 seconds long).
    On my Windows XP system, when Flash Player V10.0.32.18 is playing a streaming video, the video pauses when bandwidth is momentarily insufficient to deliver the video bit stream.  The spinning icon appears in the center of the video window.  The current playback time on the progress bar also pauses, as it should.  But when the video resumes, the current playback time does not begin incrementing again.  It remains stalled at the time the pause occurred, which is irritating because it is no longer possible to tell how much time remains in the video.
    It took me a very long time to discover that once the current playback time has stalled, pressing the pause button will cause the current playback time to refresh to the correct playback time and begin incrementing again.  Yaaayyyyyy!
    Now, perhaps someone can help me with a challenge I have been unable to solve.
    On occasion, I want to back up a few seconds within a video.  But if I use my mouse to grab the pointer within the progress bar and move it backward, moving the pointer only a few seconds is a huge challenge.  Even a slight movement of my mouse moves the pointer back a minute or two.
    Is there a way to move the pointer using a key (eg, an arrow key) so that each key press moves the pointer back only a second or two?
    And how about being able to key in a time and press enter, thereby causing the pointer to move to the specified time? Any way to do that?

    Hi OSW, Thanks, now if the NPSWF (FF) files listed are 10.0.32.18 which I'm sure they are, then your FF Flash files are correct. You can right click on each of those and click Properties to confirm the version numbers. Then you have the SWF that is correct. So you have FF Flash files and the SWF, so you are ok on FF.
    IE is a different story. That FIDbg10c.ocx should not be there, it should be Flash10c.ocx to match the FlashUtil10c.ocx.
    Now as far as doing what you suggested, in a word NO. First of all the plug-in is normally used as referring to FF or other browsers than IE. ActiveX is used for IE. If you ran the uninstall_plug-in.exe, you would be removing your FF add on, so don't do that since all of your related Flash files for FF are intact. (Do not disturb:-)
    Now the proper way to Uninstall is to use the Adobe Uninstaller that is downloaded to your Desktop. Then the IE Flash Player Installer is likewise downloaded to the Desktop. Then the FF Installer is downloaded to your Desktop. That way it seems to work better. Also the following must be taken into consideration. Any Anti-Virus/Spyware/Firewall can block
    the install of the ActiveX Control for IE. You must run in the Administrative mode or be the Administrator to install the
    ActiveX and write to the Windows Registry, which Flash Player does on the Install.
    Keep in mind that an Uninstall will remove Flash Player files and the SWF and the SWO for ALL browsers. Then the IE Installer is used to Install FP and the SWO for IE. Then the FF Installer is used to Install the FP & SWF for FF.
    Trying to update or download the Flash Player latest version does not remove the old versions as some software installs do. The old versions must be removed by the Adobe FP Uninstaller prior to any download of the new version.
    I have to be offline for a time. Will check back in later. Just wanted to give you some info on this. There are a couple of things that can be done, and will explain later. If you are satisfied with FF & IE with how Flash Player is working, you don't have to do anything. Again, the update may not accomplish the progress bar issue either. So it is something to think about.
    Thanks,
    eidnolb

  • Day View in calendar Component showing the next at times not everytime!

    Day View in calendar Component showing the next at times not everytime! My question is when we go to Day view which day does it show? is it Server day where the application reside or the machine time zone day ?

    I think you want to know, days & time picked by which machine, locally or from server? It does take from server where the application is running.

  • Help with exception: A connection could not be obtained in the specified login time of 5 seconds

    Hi Kodo gurus,
    I run into following problem:
    Since I start to use JDOQL queries, the system I am developing start to
    throw Exception saying:
    javax.jdo.JDODataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = 'learningMode1']
    [PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = ?]
    A connection could not be obtained in the specified login time of 5
    seconds. [code=0;state=null]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = 'learningMode1']
    [PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = ?]
    A connection could not be obtained in the specified login time of 5 seconds.
         at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExceptions.java:23)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:732)
         at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:93)
         at com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
         at
    com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
         at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
    It seems it always happens when we are doing a query. I had the
    "javax.jdo.option.MaxPool=20" and for postgresql I have "max_connections
    = 80", the action I am doing at that time is quite simple (and the
    system is just freshly started) and I would not expect it is using more
    than 2 connections since there is only one read and one write going on.
    Do you guys have any clue how could this happen? do I miss something
    obvious? and how are the connections managed for the query?
    thanks a lot!
    Tao

    Hi, Steve,
    Sorry I am late on the responding - was distracted by some other stuff -
    here is the stack trace I got:
    // STATCK TRACE
    //###############################################################javax.jdo.JDODataStoreException:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = 'learningMode3']
    [PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = ?]
    A connection could not be obtained in the specified login time of 5
    seconds. [code=0;state=null]
    NestedThrowables:
    com.solarmetric.kodo.impl.jdbc.sql.SQLExceptionWrapper:
    [SQL=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = 'learningMode3']
    [PRE=SELECT t0.JDOIDX, t0.JDOCLASSX, t0.JDOLOCKX, t0.booldefaultval,
    t0.datatype, t0.name, t0.strdefaultval FROM PROPERTYDEFX t0 WHERE
    t0.name = ?]
    A connection could not be obtained in the specified login time of 5 seconds.
    at
    com.solarmetric.kodo.impl.jdbc.runtime.SQLExceptions.throwDataStore(SQLExceptions.java:23)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:732)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:93)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
    at
    com.cloverworxs.impl.as.profile.PropertyHelperImpl.findPropertyDefByName(PropertyHelperImpl.java:37)
    at
    com.cloverworxs.impl.as.profile.ProfileBase.getStringProperty(ProfileBase.java:103)
    at
    com.cloverworxs.app.struts.handler.ProfileHelper.getLearningModes(ProfileHelper.java:177)
    at
    com.cloverworxs.app.struts.handler.KuarkHandler.handleTree(KuarkHandler.java:106)
    at
    com.cloverworxs.app.struts.handler.MovableKuarkHandler.handleTree(MovableKuarkHandler.java:89)
    at
    com.cloverworxs.app.struts.handler.RecorderKuarkHandler.handle(RecorderKuarkHandler.java:111)
    at
    com.cloverworxs.app.struts.action.RecorderController.detail(RecorderController.java:251)
    at
    com.cloverworxs.app.struts.action.AbstractModelAction.execute(AbstractModelAction.java:118)
    at
    org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
    at
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    at
    com.cloverworxs.app.struts.RequestProcessor.process(RequestProcessor.java:44)
    at
    org.apache.struts.action.ActionServlet.process(ActionServlet.java:1422)
    at
    org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:505)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at
    org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at
    org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
    at
    org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
    at
    org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at
    org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
    at
    org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
    at
    org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
    at
    org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
    at
    org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
    at
    org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:380)
    at
    org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
    at
    org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
    at java.lang.Thread.run(Thread.java:536)
    NestedThrowablesStackTrace:
    java.sql.SQLException: A connection could not be obtained in the
    specified login time of 5 seconds.
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.timeout(DataSourceImpl.java:615)
    at
    com.solarmetric.datasource.DataSourceImpl$AbstractPool.getConnection(DataSourceImpl.java:589)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:326)
    at
    com.solarmetric.datasource.DataSourceImpl.getConnection(DataSourceImpl.java:319)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.DataSourceConnector.getConnection(DataSourceConnector.java:51)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnectionFromFactory(SQLExecutionManagerImpl.java:183)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.getConnection(SQLExecutionManagerImpl.java:142)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.prepareStatementInternal(SQLExecutionManagerImpl.java:807)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executePreparedQueryInternal(SQLExecutionManagerImpl.java:761)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQueryInternal(SQLExecutionManagerImpl.java:691)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:372)
    at
    com.solarmetric.kodo.impl.jdbc.SQLExecutionManagerImpl.executeQuery(SQLExecutionManagerImpl.java:356)
    at
    com.solarmetric.kodo.impl.jdbc.ormapping.ClassMapping.selectPrimaryMappings(ClassMapping.java:1221)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCStoreManager.executeQuery(JDBCStoreManager.java:707)
    at
    com.solarmetric.kodo.impl.jdbc.runtime.JDBCQuery.executeQuery(JDBCQuery.java:93)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithMap(QueryImpl.java:792)
    at
    com.solarmetric.kodo.query.QueryImpl.executeWithArray(QueryImpl.java:668)
    at com.solarmetric.kodo.query.QueryImpl.execute(QueryImpl.java:609)
    at
    com.cloverworxs.impl.as.profile.PropertyHelperImpl.findPropertyDefByName(PropertyHelperImpl.java:37)
    at
    com.cloverworxs.impl.as.profile.ProfileBase.getStringProperty(ProfileBase.java:103)
    at
    com.cloverworxs.app.struts.handler.ProfileHelper.getLearningModes(ProfileHelper.java:177)
    at
    com.cloverworxs.app.struts.handler.KuarkHandler.handleTree(KuarkHandler.java:106)
    at
    com.cloverworxs.app.struts.handler.MovableKuarkHandler.handleTree(MovableKuarkHandler.java:89)
    at
    com.cloverworxs.app.struts.handler.RecorderKuarkHandler.handle(RecorderKuarkHandler.java:111)
    at
    com.cloverworxs.app.struts.action.RecorderController.detail(RecorderController.java:251)
    at
    com.cloverworxs.app.struts.action.AbstractModelAction.execute(AbstractModelAction.java:118)
    at
    org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:465)
    at
    org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
    And following is the code of "findPropertyDefByName" method:
    // SOURCE CODE
    public PropertyDef findPropertyDefByName(String propertyName) {
    Extent propertyExtent = pm.getExtent(PropertyDef.class, true);
    String filter = "name == propertyName";
    Query q = pm.newQuery(propertyExtent, filter);
    q.declareParameters("java.lang.String propertyName");
    Collection c = (Collection) q.execute(propertyName);
    int size = c.size();
    if (size == 0) {
    return null;
    if (size > 1) {
    // bad exception type
    if (logger.isWarnEnabled()) {
    Iterator iter = c.iterator();
    while (iter.hasNext()) {
    Object obj = iter.next();
    logger.warn("result=" + obj);
    throw new RuntimeException(
    "Assertion of Uniqueness of propertyName failed");
    PropertyDef pdef = (PropertyDef) c.iterator().next();
    q.closeAll();
    propertyExtent.closeAll();
    return pdef;
    The transaction is started and committed outside of this call.
    Hope this helps you understanding my problem, and Thanks a lot!
    cheers,
    Tao
    Steve Kim wrote:
    Can you post or send me a test case or the applicable portion of the code?

  • How to write step name and playback time to an output file?

    In OpenScript for Functional Test, I want to create a csv file with just the step name and the playback time for the step. I don't care to carry all the details in my report file. I see that in the Session folder, there is a csv file with all the playback results. How can I either customize this csv file or create another csv file to report only the step name and the play back time for each iteration?

    Hi
    That line of code should do the trick:
         utilities.getFileService().appendStringToFile("pathToFile", getStepResult().getStepName()+ "," +getStepResult().getFinishTime() +"\n");Hope this helps
    Alex

  • How to add video playback time to Finder?

    How do I make Finder show the actual playback time in Finder? It is shown in Quicktime, but can't find a way to show it in Finder.

    In Icon view:
    1. Right Click in Finder (same as Control Click).
    2. Choose "Show View Options" in pop-up.
    3. Make sure "Show item info" is checked.
    Works for .mov and .mp3 (but not .wmv nor .avi nor .flv, etc)

  • "Component name 'ACCOUNT CATEGORY ENTITY TIME RPTCURRENCY DATASRC MEASURES'

    Hello all
    I tried to upload transaction data into the system.
    When i checked the package status i got this error:
    "Component name 'ACCOUNT CATEGORY ENTITY TIME RPTCURRENCY DATASRC MEASURES' of component 2 too long"
    What does it mean?
    Best
    Yuval

    Hello all
    I fixed the transformation file, so the previous message no long pop up.
    Now i have this message : "dimension MEASURES does not exist in the current application".
    Where can i change it?
    best
    Yuval

  • Music playback time

    I have a 4th generation nano (16G). The tech specs say the music playback time is up to 24 hours. I am getting only 4-5 hours after fully charging. Anyone else experiencing this pathetic battery performance?

    I agree, the battery life is considerably shorter than the time on the tech specs. I'm wondering if using the backlight significantly reduces the battery so when changing songs, the battery life is drained considerably??? I'm considering conducting a test to see the actual battery life, and if the ipod fails that then I'll send it back in.

  • 8GB vs 4GB; same playback time

    I am trying to decide on 8GB vs 4GB iPod nano. Anyone know why the Apple specs say the music and video playback times are the same for both (24 hours and 5 hours respectively)?
    Maybe I missed something.
    -TED

    The numbers you are referring to are used as indications of battery capacity. They mean that once fully charged the nano's battery can power the device for 24 hours of continuous audio playback (or 5 hours of video playback). Since both models share the same form factor (and the flash chip most probably has the same dimensions for both) their batteries are of the same size (hence capacity).
    Does it make any more sense now ?

  • Low talk,standby & playback time of x5-01

    In my x5-01there is lower talk,standby & playback time than as  given in product specification,why,Plz give me solution in urgent basis.........
    Solved!
    Go to Solution.

    The battery life in various aspects will probably never be what the manufacturer has said for any device from any manufacturer ever because it depends on various conditions. Music files, apps running in the background, singal strength in the area you live in, screen brightness etc and of course they have probably AFAIK added a few more hours to make it look good.
    However you should be able to get some batterylife out of it, but you haven't told us anything about that.
    If it runs out of battery in just a few hours it might be something wrong with the device - faulty battery or other issues.
    Anyway, have a look here and check if there are anything that you can do to improve the battery life on your device: /t5/Pool-of-Knowledge/Maximize-battery-performance/td-p/431669

Maybe you are looking for

  • Error 1055 occurred at Property node

    Generating the error: "Error 1055 occurred at Property Node in ...   Possible reason(s):  LabVIEW object reference is invalid." when I try to wire the IMAGE OUT output from the IMAQdx Snap vi to the value property of an externally referenced image di

  • Storage for mac and ipad

    is there a storage device that can be shared with the mac and the ipad ? dave

  • Using one counter with FiniteSamps and another with ContSamps

    I am trying to use 2 counters on the USB-6229 (or USB-6259), where one counter is set up for FiniteSamps and another for ContSamps. I have the following MeasurementStudio code: ErrChk DAQmxCreateCOPulseChanTicks(hCnt0, "Dev1/ctr0", "", "20MHzTimebase

  • Just updated, library missing. Article question

    Hi. I just had the issue where you upgrade, and the library goes missing. I read the article for troubleshooting this, but it didn't work. I was a tad confused about dragging the library to the desktop, then finding the previous library, and supposed

  • Running an Executable file

    Hi, Is there a way, using ALBPM 5.7 StandAlone on Windows, to run an executable file (.exe or .cmd or .vbs) from within an automated task? If so, how is it done? Thanks in advance.