Managed Beans out of sync

I cancelled some old pages but navigation.xml and managed-bean.xml are out of sync. IMHO this is very bad for source maintenance and for renaming new page version. Have I to delete them manually from files? Is there some other file out of sync?
Thanks
Nicola Grippaldi

Hi Nicola,
Is everything ok now?
Cheers
Giri

Similar Messages

  • Multiple instances of the same entity bean out of sync

    Env: NT4.0SP6/jdk build 1.3.1-b24/oc4j 1.0.2.2.1
    Scenario:
    A) Session Bean(SB) 1 loads Entity Bean (EB) 1.
    B) Another Session Bean, SB2, loads the same EB1 (same pk).
    (It turns out that oc4j loads 2 instances of the same EB1.)
    C) SB1 changes data of EB1, and shows the data. All ok. The data
    is there in database, shows up fine on the screen.
    NOTE: the second instance of EB1 which is referenced by SB2 does
    not receive any ejbLoad/... etc calls at this time.
    D) Now SB2 tries to load the same EB with a different pk(EB2),
    immediately causing oc4j to issue ejbStore to the 2nd instance
    of EB1 (referenced by SB2), making it overwrite the changes made
    by the EB1 referenced by SB1 (step C above).
    I tried exclusive-write-access=false setting in orion-ejb-
    jar.xml,
    and it solved the above problem by making only one instance of
    the EB with the same pk, and making sure ejbLoad/Store was
    called around each biz. method.
    However, I don't see any reason to turn off the exclusive-write-
    access flag, as no one is writing into the database behind
    oc4j's back.
    Does anyone else see this behaviour (which looks like a major
    bug as the container
    must ensure that the instances of the same EB with same PK are
    in sync)?
    Thanks,
    - nik.

    yes, i have a similar problem with the 2.0.0 technology preview.
    i added some kind of 'code' which demonstrates my problem at the
    end of this message.
    Description: It seems that different instances are not
    synchronized correctly. I set a CMPfield and when I call getXY()
    on this CMPfield from within a different instance of this ejb
    (for example use a finder method to return a remote interface
    for the same pk), then this getter of the CMP field returns an
    old and wrong value.
    bad bug, i guess.
    suggestions?
    Greetings from munich, /thomas
    public TestBean
    public abstract void setCMPField( int i );
    public abstract int getCMPField();
    void testMethod()
    //set the cmpfield
    setCMPField( 5 );
    //call getXY() on 'this'
    System.out.println( getCMPField
    () ); //correct value 5 is returned
    //now get a remote reference of 'this' and call getXY()
    there
    TestBeanRemote rem1 = ejbContext.getEJBObject();
    System.out.println( rem.getCMPField
    () ); //correct value 5 is returned
    //now call a finder and call getXY() on the returned
    remote
    TestBeanRemote rem = ejbContext.getEJBHome
    ().findByPrimaryKey( ejbContext.getEJBObject().getPrimaryKey() );
    System.out.println( rem.getCMPField
    () ); //PROBLEM!! OLD VALUE RETUNRED!!!!!!

  • When I use media manager to upres clip audio goes out of sync

    I captured a clip and put it in DVNTSC 48kHz timeline at OfflineRT NTSC (Photo JPEG) then used the media manager to create a new sequence at full DV NTSC 48kHz res. I choose "Create offline", "set sequences to DV NTSC 48 kHz", and check all the boxes. I save a new project, open the new timeline and recapture the clip. The video looks great--it recaptures in full DVNTSC 48kHz res. But the audio is out of sync (by about 28 frames it looks like). What am I doing wrong? (This is the first time I'm trying this offline-then-online-process.) thanks.

    Try exporting the iMovie project as a single full quality dv format quicktime file.
    I use iMovie6 HD and this is my usual procedure that works well.
    Make the movie in iMovie, will involve many separate clips. When finished, export (share) as a single full quality dv format quick time file. When I have an hours worth of smaller projects, I create a new iMovie project and import all of the quicktime .dv files for each separate short project. I add chapter markers in this project, then share with iDVD. I then burn an hours worth of stuff at best quality and distribute to family and friends.
    iDVD seems to work better with iMovie source that has fewer clips.
    BTW: Are you having problems with standard def or hi def iMovie source. Another part of my procedure is that I take the raw tapes and download the entire thing into one iMovie project. I don't edit or change the footage at all, just want to archive to DVD for posterity. In this case, I want to share the iMovie project with iDVD directly. This has worked OK for standard def projects, but my first hi def project (1080i) that I tried, the sound was out of sync. To fix this, I had to create a regular DV widescreen iMovie project, and drag all the clips into it from the HD project. It took over an hour for my humble mac mini to convert the files, but I was then able to share with iDVD and the finished DVD worked ok.
    Hope this helps.

  • CPI2.x Configuration Management and avoiding out-of-sync configs

    Hi,
    I did'nt found an option to can save the configs after deployment as in LMS neither as a global setting nor as a deployment task setting.
    Aside letting changes unsaved is not a good network operation practice, it bring the configs in out-of-sync state at the archive.
    Also "System Settings => Inventory => Enable Syslog and Traps on device" does not save the configs and bring everything into out-of-sync state in the archive.
    Q1: Is it necessary to write this to all your templates, if you need to globaly enable "config save after deployment" with a "nice" scaleability?
    #MODE_ENABLE
    write memory
    #MODE_END_ENABLE
    Q2: Why are system CLI templates copy&paste protected in its content?
    thx for answers,
    Steffen

    Had to raise as an SR

  • Error while opening a popup from managed bean

    Hi,
    I am trying to open a popup from bean, after another popup is closed. When I open the second popup either through ActionListener(on first popup button) or DialogListener(on first popup), I am getting the below error on browser status bar(!); and the second popup doesn't open. There is no error in the log.
    *'AdfPage.PAGE.findComponent(...)' is null or not an object.*
    Although the popup id is there on the jspx page.
    <af:popup id="confirmationStatus" binding="#{MyBean1.confirmationStatus}">
    <af:dialog cancelVisible="false"
    closeIconVisible="false" binding="#{MyBean1.d2}"
    title="Appointment Confirmation Status">
    <af:outputText value="Appointment is successfully confirmed"/>
    </af:dialog>
    </af:popup>
    public void confirmAppointment_dialogListener(DialogEvent dialogEvent) {
    FacesContext context = FacesContext.getCurrentInstance();
    ExtendedRenderKitService service = Service.getRenderKitService(context, ExtendedRenderKitService.class);
    String popupId = "confirmationStatus";
    service.addScript(context,"AdfPage.PAGE.findComponent('" + popupId + "').show();");
    Please tell me why my popup is not getting open from the managed bean and I am getting an error in below line.
    service.addScript(context,"AdfPage.PAGE.findComponent('" + popupId + "').show();");

    To find out the right address of a component related to an other component, open your page select the component you want to add a partial trigger, go to the partial trigger property, select the down arrow at the right end and select 'Edit'. Now look for the popup in the component tree shown on the left side. When you have found the popup shuffle it the the selected side and click OK. The string you see in the field is the full address of the popup related to he component you've selected. Try the string you see there in your bean code. Remove the string from the partial trigger property, it's just to get the correct path.
    One other thing to check is that your popup has the ClientComponent property set to true.
    Next thing to try, is to use AdfPage.PAGE.findComponentByAbsoluteId(...)
    Timo

  • Flash Player doesn't play smoothly and out of sync in full screen

    Hello! Everyone
    The flash player (11.2.202.235) does not play smoothly and in full screen audio and vidoe is out of sync.  I didn't use to have any problem at all, it only started about two weeks ago and since then despite trying various things (i.e. disabling hardware excelration, uninstalling & reinstalling, trying various browsers etc.) has not resolved the issue.  I don't know why it has suddenly stopped playing smoothly as I have not installed any software recently which might have cuased this. 
    I am using Windows XP (service pack3) and have dual partion with dual operating system (both XP).  There is the same problem on both operarting system and flash player won't run smoothly on either of them.  Although my computer and graphics card is quite old but the downloaded movies/DVD playback is fine even in full screen.  It runs smoothly and audio&video is in sync so I don't think it could my the graphics card. 
    As I mentioned I have tried all the browsers but without any luck.  The BBC iplayer plays ok most of the time if not in full screen but as soon as you make it full screen the vidoe is more like a slide show and very jittery and audio&video gets out of sync.  Same with youtube vidoes, they play ok when not in full screen but the video in full screen does not play smoothly and audio&vidoes gets out of sync.  However the ITV player & Channel 4 content on 4OD does not even play smoothly when not in full screen and the video&audio is out of sync all the time. 
    It would be really helpful if anyone can suggest anything to resolve this issue as I have not been able to find anything on the internet to solve the problem and its driving me up the wall.  Although I have tried to include as much details as I could think of so please let me know if I have missed any details that could be crucial in order to identify the problem.
    Thank you very much for reading this and taking the time to reply and your feedback. 
    Below is the DxDiag report for my laptop:
    Time of this report: 4/22/2012, 00:15:58      
    Machine name: TIMES-LAPTOP   
    Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.111025-1629)           
    Language: English (Regional Setting: English)
    System Manufacturer: TimeComputers       
    System Model: VT8372               
    BIOS: Insyde Software MobilePRO BIOS Version 4.00.01          
    Processor: mobile AMD Athlon(tm) XP 2000+,  MMX,  3DNow, ~1.7GHz             
    Memory: 1248MB RAM          
    Page File: 809MB used, 2790MB available        
    Windows Dir: C:\WINDOWS    
    DirectX Version: DirectX 9.0c (4.09.0000.0904) DX
    Setup Parameters: Not found     
    DxDiag Version: 5.03.2600.5512 32bit Unicode 
    ------------ DxDiag Notes ------------  
    DirectX Files Tab: No problems found.      
    Display Tab 1: No problems found.        
    Sound Tab 1: No problems found.          
    Music Tab: No problems found.          
    Input Tab: No problems found.        
    Network Tab: No problems found. 
    -------------------- DirectX Debug Levels --------------------
    Direct3D:    0/4 (n/a)
    DirectDraw:  0/4 (retail)
    DirectInput: 0/5 (n/a)
    DirectMusic: 0/5 (n/a)
    DirectPlay:  0/9 (retail)
    DirectSound: 0/5 (retail)
    DirectShow:  0/6 (retail) 
    --------------- Display Devices ---------------        
    Card name: S3 Graphics ProSavageDDR               
    Manufacturer: S3 Graphics Co., Ltd.        
    Chip type: S3 ProSavage DDR         
    DAC type: S3 SDAC       
    Device Key: Enum\PCI\VEN_5333&DEV_8D04&SUBSYS_83751071&REV_00   
    Display Memory: 32.0 MB     
    Current Mode: 1024 x 768 (32 bit) (60Hz)          
    Monitor: Digital Flat Panel (1024x768)   Monitor Max Res:       
    Driver Name: s3gnb.dll   
    Driver Version: 6.14.0010.0025 (English)      
    DDI Version: 9 (or higher)
    Driver Attributes: Final Retail 
    Driver Date/Size: 3/2/2004 14:02:26, 402048 bytes      
    WHQL Logo'd: Yes   WHQL Date Stamp: n/a              
    VDD: n/a         
    Mini VDD: s3gnbm.sys    
    Mini VDD Date: 3/2/2004 14:02:30, 167040 bytes
    Device Identifier: {D7B75DD3-CE44-11CF-D873-7FA3A1C2CB35}        
    Vendor ID: 0x5333        
    Device ID: 0x8D04        
    SubSys ID: 0x83751071      
    Revision ID: 0x0000      
    Revision ID: 0x0000      
    Video Accel: ModeMPEG2_C ModeMPEG2_A ModeMPEG2_D  
    Deinterlace Caps: n/a         
    Registry: OK     
    DDraw Status: Enabled       
    D3D Status: Enabled       
    AGP Status: Enabled DDraw
    Test Result: Not run 
    D3D7 Test Result: Not run 
    D3D8 Test Result: Not run 
    D3D9 Test Result: Not run 
    ------------- Sound Devices -------------            
    Description: Vinyl AC'97 Audio (WAVE) 
    Default Sound Playback: Yes 
    Default Voice Playback: Yes            
    Hardware ID: PCI\VEN_1106&DEV_3059&SUBSYS_83751071&REV_50        
    Manufacturer ID: 1             
    Product ID: 100                   
    Type: WDM            
    Driver Name: vinyl97.sys         
    Driver Version: 6.14.0001.4170 (English)      
    Driver Attributes: Final Retail            
    WHQL Logo'd: Yes          
    Date and Size: 8/10/2006 07:32:14, 204672 bytes            
    Other Files:         
    Driver Provider: VIA Technologies, Inc.         
    HW Accel Level: Full              
    Cap Flags: 0xF5F    
    Min/Max Sample Rate: 8000, 48000 Static/Strm
    HW Mix Bufs: 1, 0  Static/Strm
    HW 3D Bufs: 0, 0              
    HW Memory: 0       
    Voice Management: No  EAX(tm) 2.0
    Listen/Src: No, No    I3DL2(tm)
    Listen/Src: No, No Sensaura(tm)
    ZoomFX(tm): No               
    Registry: OK      
    Sound Test Result: Not run 
    --------------------- Sound Capture Devices ---------------------            
    Description: Vinyl AC'97 Audio (WAVE)  
    Default Sound Capture: Yes  
    Default Voice Capture: Yes            
    Driver Name: vinyl97.sys         
    Driver Version: 6.14.0001.4170 (English)      
    Driver Attributes: Final Retail          
    Date and Size: 8/10/2006 07:32:14, 204672 bytes              
    Cap Flags: 0x41           
    Format Flags: 0xFFF 
    ----------- DirectMusic -----------        
    DLS Path: C:\WINDOWS\SYSTEM32\drivers\GM.DLS     
    DLS Version: 1.00.0016.0002    
    Acceleration: n/a           
    Ports: Microsoft Synthesizer, Software (Not Kernel Mode), Output, DLS, Internal, Default Port                  
    Vinyl AC'97 Audio (WAVE), Software (Kernel Mode), Output, DLS, Internal                  
    Microsoft MIDI Mapper [Emulated], Hardware (Not Kernel Mode), Output, No DLS, Internal                  
    Microsoft GS Wavetable SW Synth [Emulated], Hardware (Not Kernel Mode), Output, No DLS, Internal        
    Registry: OK     
    Test Result: Not run 
    ------------------- DirectInput Devices -------------------      
    Device Name: Mouse         
    Attached: 1    
    Controller ID: n/a
    Vendor/Product ID: n/a        
    FF Driver: n/a       
    Device Name: Keyboard         
    Attached: 1    
    Controller ID: n/a
    Vendor/Product ID: n/a        
    FF Driver: n/a 
    Poll w/ Interrupt: No         
    Registry: OK 
    ----------- USB Devices -----------
    + USB Root Hub |
    Vendor/Product ID: 0x1106, 0x3038 |
    Matching Device ID: usb\root_hub |
    Service: usbhub |
    Driver: usbhub.sys, 4/13/2008 19:45:37, 59520 bytes |
    Driver: usbd.sys, 8/23/2001 13:00:00, 4736 bytes

    Would you mind opening a new bug on this at bugbase.adobe.com?  Please include your dxdiag report, a specific URL and a link to this forum thread.
    In the meantime, you might want to try our 11.3 beta or rollback to a previous version of the player to see if that resolves the problem.
    Thanks,
    Chris

  • How can we contrrol the focus of an form Object  from the Managed bean??

    I am getting the following script error...
    Can't move the focus to the control because it is invisible or not enabled or of the type that does not accept the focus...
    I have a button whose action is mapped to a function in the Managed bean.
    In the managed bean
    I am making the button Invisible along with some other components.
    Can any one help me out....

    @BalusC
    You were proposing the following solution in other thread..
    <html>
    <head>
    </head>
    <body>
    <f:verbatim>
    <script>
    setFocus('</f:verbatim><h:outputText value="#{myBean.focusId}" /><f:verbatim>');
    </script>
    </f:verbatim>
    </body>
    </html>
    But it is giving the following error
    javax.faces.FacesException: org.apache.jasper.JasperException: /EducationDetails.jsp(97,29) The element type "script" must be terminated by the matching end-tag "</script>".

  • Error calling Method on Managed Bean from another Managed Bean

    Hi
    (Jdev 11.1.1.2.0)
    Help please:
    I have a managed bean (page flow scope) which is used by my main page for dynamic region flow navigation:
    *public class RegionNavigationBean implements Serializable{*+
    private String dynamicTaskFlowId = "/WEB-INF/home-task-flow-definition.xml#home-task-flow-definition";+
    *public RegionNavigationBean() {*+
    *public TaskFlowId getDynamicTaskFlowId() {*+
    return TaskFlowId.parse(dynamicTaskFlowId);+
    *public void setDynamicTaskFlowId(String taskFlowId) {*+
    this.dynamicTaskFlowId = taskFlowId;+
    taskFlowId property on main page def is set to +*${pageFlowScope.regionNavigationBean.dynamicTaskFlowId}*+
    In a DB table (i.e. View Object on my model layer) I store a menu ID and a corresponding task_flow_id.
    Then I have created an action listener class (RegionNavigationListener - page flow scope) which I link to my menu items on my main page (action listener property on menu item = +*#{pageFlowScope.regionNavigationAction.processAction}*+ )
    In this action listener (processAction method), I retrieve the row set from the menu VO and find the record which matches my menu ID which caused the action event, thereby retrieving the task_flow_id which must be navigated to.
    I then try to retrieve the instance of the RegionNavigationBean with the following statement: RegionNavigationBean regNav = (RegionNavigationBean)JSFUtils.getManagedBeanValue("regionNavigationBean");+
    This seems to work fine, but as soon as I try and use this I get NullPointerException error, e.g.:
    regNav.setDynamicTaskFlowId(menusRow.gettaskFlowId());+
    or even:
    System.out.println("%%% " + regNav.toString());+
    This is all quite new to me... any help would be appreciated!
    Thanks
    Mario

    Hi Mario,
    I think JSFUtils.getManagedBeanValue(String) has difficult to evaluate the "regionNavigationBean" managed bean.
    What JSFUtils.getManagedBeanValue(String) do is important. I remember that "JSF scoped" bean can be found by JSF style find method, such as requestScope, sessionScope, applicationScope. For a managed bean put in these scope, scope prefix is not needed, for example: using #{beanName} to locate a requestScope bean. The #{requestScope} prefix is not needed.
    But pageFlowScope is different. If a bean is put in the pageFlowScope, you must use #{pageFlowScope.beanName} to locate it.
    Say, ManagedBean is the java class of your manged bean.
    FacesContext ctx = FacesContext.getCurrentInstance();
    Application app = ctx.getApplication();
    ManagedBean mb = (ManagedBean)app.evaluateExpressionGet(ctx, "#{pageFlowScope.managedBeanName}", ManagedBean.class);
    Hope it helps.
    Todd
    Edited by: Todd Bao on Nov 26, 2009 9:58 PM

  • Invoking Web Service from JSF Managed Bean

    Hi all,
    I am trying to invoke a webservice from Managed Bean and getting an exception.
    Server : WAS 6.1.0.2
    Version :JSF 1.2
    Type of WS Invocation : JAX-WS web services
    IDE : RAD 7.0.0
    I have set up the class path correctly and added relevant WS Client in EAR ....
    Following is the exception am receiving :
    [8/31/11 7:59:25:335 EDT] 0000002d WebApp E [Servlet Error]-[Faces Servlet]: javax.faces.el.EvaluationException: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:170)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:123)
    at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
    at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:84)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:204)
    at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeEnd(HtmlBasicRenderer.java:171)
    at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:754)
    at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:627)
    at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:550)
    at com.sun.faces.taglib.html_basic.InputTextareaTag.doEndTag(InputTextareaTag.java:651)
    at com.ibm._jsp._sample._jspx_meth_h_inputTextarea_0(_sample.java:107)
    at com.ibm._jsp._sample._jspx_meth_h_form_0(_sample.java:149)
    at com.ibm._jsp._sample._jspx_meth_f_view_0(_sample.java:180)
    at com.ibm._jsp._sample._jspService(_sample.java:77)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:85)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    at com.ibm.wsspi.webcontainer.servlet.GenericServletWrapper.handleRequest(GenericServletWrapper.java:115)
    at com.ibm.ws.jsp.webcontainerext.AbstractJSPExtensionServletWrapper.handleRequest(AbstractJSPExtensionServletWrapper.java:168)
    at com.ibm.ws.webcontainer.webapp.WebAppRequestDispatcher.forward(WebAppRequestDispatcher.java:308)
    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:325)
    at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:249)
    at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
    at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:239)
    at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:118)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:972)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:478)
    at com.ibm.ws.wswebcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:463)
    at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3129)
    at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:238)
    at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:811)
    at com.ibm.ws.wswebcontainer.WebContainer.handleRequest(WebContainer.java:1433)
    at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:93)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:465)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:394)
    at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:274)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminators(NewConnectionInitialReadCallback.java:214)
    at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:113)
    at com.ibm.ws.tcp.channel.impl.AioReadCompletionListener.futureCompleted(AioReadCompletionListener.java:152)
    at com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
    at com.ibm.io.async.AbstractAsyncFuture.fireCompletionActions(AbstractAsyncFuture.java:195)
    at com.ibm.io.async.AsyncFuture.completed(AsyncFuture.java:136)
    at com.ibm.io.async.ResultHandler.complete(ResultHandler.java:194)
    at com.ibm.io.async.ResultHandler.runEventProcessingLoop(ResultHandler.java:741)
    at com.ibm.io.async.ResultHandler$2.run(ResultHandler.java:863)
    at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1510)
    Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType
    at java.lang.J9VMInternals.verifyImpl(Native Method)
    at java.lang.J9VMInternals.verify(J9VMInternals.java:59)
    at java.lang.J9VMInternals.initialize(J9VMInternals.java:120)
    at java.lang.Class.newInstanceImpl(Native Method)
    at java.lang.Class.newInstance(Class.java:1263)
    at java.beans.Beans.instantiate(Beans.java:219)
    at java.beans.Beans.instantiate(Beans.java:63)
    at com.sun.faces.config.ManagedBeanFactory.newInstance(ManagedBeanFactory.java:226)
    at com.sun.faces.application.ApplicationAssociate.createAndMaybeStoreManagedBeans(ApplicationAssociate.java:291)
    at com.sun.faces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:81)
    at com.sun.faces.el.impl.NamedValue.evaluate(NamedValue.java:125)
    at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:146)
    at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:249)
    at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:140)
    Thanks in advance ..
    Steve Bob

    No you haven't, because
    Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType a relevant class can still not be found and Java really is not going to lie to you; this class is not on your application's classpath so it is either missing or put in the wrong place. Note that missing classes can be caused by you forgetting to properly redeploying your application - its usually something silly like that. Figure out what you did wrong and correct your mistake.
    The fact that you have to mention that you "setup the classpath" is questionable; in web applications you don't touch the classpath at all. So what exactly did you do?

  • Creation of a Managed Bean in Request Scope?

    Is there an easy way to create an instance of a managed bean (configured in faces-config.xml) that was configured to be in the Request scope?
    If a JSP refers to it by id, then it will be there.
    However, when the JSP does not refer to it, it will not be in the request. I find I need to generate it anyway to use it from within another Managed Bean. I can extract out the faces-config information from the application map (available from FacesContext) and build it manually -- but this ties me to a particular JSF implementation (and probably version, too).
    Is there a more standardized way to do this?
    Thanks,
    ken

    BTW -- I mean to do this from within Java code (not jsp), and the page being rendered does not have a direct reference to the request-scoped managed bean via value binding.

  • H.264 Audio Out Of Sync in Media Encoder. Help Needed.

    I use Adobe Premiere Pro CS3 and I find that the best way to get a good video with low file size is by Exporting to Media Encoder and using
    the H.264 codec. Note, this is the codec by itself NOT the one used with the Quicktime preset.
    Here's the problem : When I export these files, they always end up a few frames slower than what I have on the timeline and the audio is always
    out of sync by just less than a second. Although it's a very small difference, timing is crucial in editing when it comes to dialogue as I'm sure anyone who uses Premiere understands.
    I have tried tweaking with the settings. I've used VBR 1 Pass, 2 Pass, CBR, Progressive Scan, Upper and Lower fields first, all of that.
    Has anyone else had this problem, and if so how was it solved?
    IF not, can anyone give me a good solution as to how I can get good video quality + low file size. The benchmark is a 45second video takes a maximum of 5MB, Quicktime video. Any suggestions or any methods you find better? Any ideas on how the guys at Apple Trailers manage to do the job so well?
    All the help is appreciated. Thanks, guys!

    Hi Jeff, I've experimented with a bunch of formats to find the root of the problem, but for this conversation I'll use a Quicktime (.mov) example.
    Source Footage Settings :
    Video : 640x268, Millions of colors. FPS : 23.98 Data Rate : 1.15mbits/sec
    Audio : AAC, Stereo (L R), 44.100 kHz
    Sequence Settings :
    Video : Quicktime Movie, Pixel Depth : 640, Frame Rate : 23.976
    Audio : Source Audio Format : 44100 Hz - 16bit Stereo. Project Audio Format : 44100 Hz - 32bit floating point - Stereo
    Average Data Rate : 141KB / second
    Pixel Aspect Ratio : 1.0 (Square Pixels)
    Export Settings :
    Main Concept H.264 Video, Custom Preset.
    Video : Frame width & height is same as source. Frame Rate : 23.976. Field Order : None (Progressive) Pixel Aspect Ratio : Square Pixels
               Profile : High. Level : 3.0. Encoding : VBR, 1 Pass. Target Bitrate [Mbps] : 1.3. Maximum Bitrate [Mbps] : 1.5
    Audio : AAC, Stereo, 44.1 kHz. Audio Quality : High. Bitrate [kbps] : 192. Precedence : Bitrate
    Multiplexer : MP4. Stream Compatibility : Standard
    NOTE : I have done the same with .avi files as well with the same audio lag issues. As for the file above, it's a trailer off Apple Trailers which also uses the H.264 encoding. To prove that there is a lag, I imported the 'rendered' file back into Premiere, placed it on a seperate layer on top of the original footage in the timeline and pressed play. As expected, there was a difference in audio playback and video was about a frame late.
    Any ideas? Thanks!

  • How am I able to use an injected EJB in a Managed Bean Constructor?

    JSF 1.2
    EJB 3.0
    Glassfish v1
    Summary:
    Managed bean injected EJB is null when referencing EJB var in constructor.
    Details:
    In my managed bean, I have a constructor that tries to reference an injected EJB, such as:
    public class CustomerBean implements Serializable {
    @EJB private CustomerSessionRemote customerSessionRemote;
    public CustomerBean() {
    List<CustomerRow> results = customerSessionRemote.getCustomerList();
    }The call within the constructor to customerSessionRemote is null - I've double checked this in Netbeans 5.5.
    How am I able to use an injected EJB in a Managed Bean Constructor?
    Thanks,
    --Todd                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    OK, I was reading the article Web Tier to Go With Java EE 5: A Look at Resource Injection and I understand your statement too.
    Is there any way possible to Inject the EJB prior to the bean instance creation at all?
    Maybe, I need to approach it with the old fashion Java EE 1.4 route and using JNDI in the PostConstruct annotated method to reference the EJB in the managed bean.
    This had to been thought out before, I don't understand why a manged bean's life cycle places any injections at the end of the bean creation.
    Also, now that I understand that the @PostConstruct annotated method will be called by the container after the bean has been constructed and before any business methods of the bean are executed.
    I am trying to reference my EJB as part of the creation of the managed bean.
    What happens: the JSF page loads the managed bean and I need to populate a listbox component with data from an EJB.
    When I try to make the call to the EJB in the listbox setter method, the EJB reference is null.
    Now, I'm not for sure if the @PostConstruct annotation is going to work... hmmmm.
    ** Figured it out. ** I just needed to move the EJB logic that was still in the setter of the component I wanted to populate into the annotated PostConstruct method.

  • DVD encoded video and audio progressively get out of sync

    Hi Compressor professionados,
    I've been trying to finalise a DVD I’m creating but keep having the same show-stopping problem where I just can't get the timing of the audio and video right after encoding it to MPEG-2/ac3 for DVD Studio Pro. When I lay it into the track in DVDSPro it plays fine at the start of the track but as the clip gets longer the audio and video gets further and further out of sync, by a few seconds (eg. for over 1 hour length footage).
    I've seen similar posts online about timing issues with Compressor but nothing I saw has hit the nail on the head for me. I also posted my problem on Creative Cow but didn't get the help I needed to fix my problem.
    Here's the specs:
    FCPro X 10.1.4
    Video project: 1080i (@ 25i)
    Audio 44.1 kHz
    Render: Apple ProRes 422
    Length: 01:13:05:02
    Compressor 4.1.3
    MPEG-2 Setting (only what I think is important... or I don't know)
    Format: Elementary Stream
    Stream Usage: DVD
    Retiming: Set duration to: 100% (shows 01:13:05:02)
    Video Frame Rate: Auto (25fps)
    Field Order: Same as Source
    GOP: greyed out at 12
    ac3:
    Sample rate: 48kHz (the only choice)
    Data rate: 224 kbps
    DVD Studio Pro 4.2.1
    PAL DVD-9 project
    From FCP I send my project to Compressor and when I drop both a DVD Audio and Video codec onto it they both show as Retiming 100% (and the length looks the same) but the results are still unsynchronised at the end of the clip when they are placed into the Track in DVDSPro. I've also tried changing different settings, like MPEG-2 Retiming duration to "So source frames play at 25 fps", but I'm still having troubles.
    At one point I managed to get the A/V timing right for my track and I then ran what I thought was the same settings for all my other tracks in the DVD but they ended up with a similar outa-sync problem so I deleted everything to try again and realised I'd deleted my good files. And I just can't seem to replicate it again. I’m not sure if it was an accidental mistake that worked or I hit on the right settings. Either way, it shouldn’t be this hard to get it right, for heaven's sake!!!
    Also, strangely, when I open the MPEG-2 file in QuickTime Player (10.4) it shows 01:10:30 long but if I open the same file in QuickTime Pro 7 it shows as the correct 1:13:05. And DVD Studio Pro shows 01:13:05:02 for both the audio & video assets but their sync is still out at the end.
    This problem stopped me from producing the DVD last Christmas and I tried to pick it up again to give it to the family for this Christmas but ended up having to bail yet again - not impressed!!!
    I'm hoping it's a simple solution of getting the settings right but it may also be a bug! Apparently, my bro-in-law has had similar problems and has ditched the DVD route altogether. I already have all of my menus etc. set up and I'd hate to have to ditch all that hard work.
    Thanks in anticipation,
    Brett

    Thanks so much Russ & Tom!
    It was as easy as changing the sample rate in the FCP project from 44.1 to 48 and sending it to Compressor again. I think it was set to 44.1 because I had the project set to automatically assign the parameters from the first video dropped into it. I haven't checked yet but the audio from my camera is likely 44.1.
    It would be nice if Compressor produced a warning message when you set the codec up for DVD audio that the original is set to a different sample rate & may cause timing problems when resampled to 48kHz.
    Anyway, again THANKS lads for solving what has been a year long problem for me and now I can complete my Christmas project, albeit late!
    Virtual chocolates to you both!!!

  • Audio video out of sync?

    Every movie I have rented and purchased the audio is out of sync with the video. If I pause the movie sometimes it goes back into sync but doesn't last long before it goes out of sync again. I have been trying to resolve this issue for the past week. I have turned off everything on the computer that manages audio, made sure all drivers and software is up to date. I have uninstalled itunes and reinstalled. I've set itunes and windows bit rate the exact same and nothing seems to fix the problem. I am running Windows 8 on a new Samsung laptop, previously I was using a Gateway laptop with no problems. From my reasearch the past couple days i see this has been on on going problem with itunes users and I hope someone has a fix. I just rented a movie from Xbox Video and it worked perfectly. I think I am going to have to make the switch to Xbox but I have movies I have downloaded to itunes and would like to watch them.
    Any help would be appreicated.

    Hello bjwilson22,
    I was researching the symptom you describe and reocmmend this article named Troubleshooting iTunes for Windows Vista or Windows 7 video playback performance issues found here http://support.apple.com/kb/ts1718
    It is pretty length, but also thorough and I feel has the best advice to help troubleshoot the issue.
    All the very best,
    Sterling

  • A/V stream out of sync with when playing audio on SourceDataLine

    Hi,
    I'm receiving a video and an audio stream via RTP and try to play them synchronized (audio synchron with lip movement).
    I'm using a DataSourceReader in order to read from a datasource and play on a JavaSound SourceDataLine. This works pretty good but unfortunately the audio is played with a delay of approx 1 second.
    else if (evt instanceof NewReceiveStreamEvent) {               
         try {
              stream = ((NewReceiveStreamEvent)evt).getReceiveStream();
              DataSource ds = stream.getDataSource();
              Format format = null;
              // Find out the formats.
              RTPControl ctl = (RTPControl)ds.getControl("javax.media.rtp.RTPControl");
              if (ctl != null) {
                   format = ctl.getFormat();
                   log.info("Received new RTP stream: " + format);
              else
                   log.info("Received new RTP stream");
              if (format != null && format instanceof VideoFormat) {
                   Player video = javax.media.Manager.createRealizedPlayer(ds);
                   video.start();
                   this.video_player = video;                         
              else if (format != null && format instanceof AudioFormat) {
                   JavaSoundDataSourceReader dsr = new JavaSoundDataSourceReader();
                   Player audio = dsr.open(ds);
                   audio.start();
                   this.audio_player = audio;
              }          I already tried to synchronize them with
    videoPlayer.addController(audio_player);
    audio_player.start();but this is throwing an Exception:
    javax.media.IncompatibleTimeBaseException
         at com.sun.media.multiplexer.RawBufferMux.setTimeBase(RawBufferMux.java:377)
         at com.sun.media.BasicSinkModule.setTimeBase(BasicSinkModule.java:52)
         at com.sun.media.PlaybackEngine.setTimeBase(PlaybackEngine.java:1672)
         at com.sun.media.BasicPlayer.setTimeBase(BasicPlayer.java:272)
         at com.sun.media.BasicPlayer.addController(BasicPlayer.java:1043)
         at VideoPlayback.update(VideoPlayback.java:281)Line 281 of VidePlayback.java is the "videoPlayer.addController(audio_player);" line.
    My guess is that it should rather use RawSyncBufferMux instead of RawBufferMux but I don't know how to change this. Maybe directly as a processor option?
    Please help as I've no clue how to improve this.

    chummer wrote:
    it should also be synchronized with the video :-)The problem with getting it synchronized is that Javasound & your sound card have internal buffering, so there is some delay between writing to them and hearing the sound come out...
    Normally, JMF handles this internally somehow by aligning things to a timebase, which can be syncronized, and allowing Processors to fill up their internal buffers ahead of time during the prefetching phase so that everything that needs to play together can have an instant start time. As it goes along, presumably adjustments are made as things get out of sync.
    My best advise to you would be to implement your Javasound stuff inside of a Renderer class, instead of a DataSink class. DataSinks are designed to take in data and write it out as fast as they can... whereas Renderers are given data at "real-time" intervals and are designed to be played.
    When implementing your Renderer class, JMF should handle the syncronization for you. IE, it'll give you data as it should be played by calling the Process function, so you'll just need to write the data to your TDL as it comes in. I believe that "Process" may be called before "Start" to allow you to prebuffer some information, but you'll need to test that as I've never actually tried it.

Maybe you are looking for