Exception: Method not found: 'SAPbobsCOM.Document_SpecialLines...........

I am getting this exception when I'm adding a Sales Order with the DI API:
Method not found: 'SAPbobsCOM.Document_SpecialLines SAPbobsCOM.IDocuments.get_SpecialLines()'
I am not using this interface in any of my code so I'm not understanding from where this error is coming, the same code works well with other companies, I have this problem only with 1 of my clients.
Any Idea??/

Dear Yuval,
Please do remember to check the DI version and check if it matches the B1 version.
Also try removing the folder "SM_OBD_DLL" which stores the temporary DI files.
If it does not help, please let us know the exact B1 version and the DI version and also the code with which you are able to reproduce the issue.
Regards
ARshdeep

Similar Messages

  • In VS 2012 , ReportClass.Export(Exportoptions) throwing Exception "Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'".

    Hi  Team,
    Problem : we are getting below exception on vs-2012  "Method not found: 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag CrystalDecisions.ReportAppServer.ReportDefModel.ISCRExportOptions.get_ExportOptionsEx()'"
    Could you please help me why we are getting this Error?
    Note : Im not using  Exportstream method , just using only Export method (refer code sample) for exporting Crystal report.
    EnvironMent Details :
    Crystal Report Version : CRforVS_13_0_5.exe
    (SAP Crystal Reports runtime engine for >net Framework (64-bit)
    SAP crystal Reports ,version for Microsoft Visual studio)
    OS -Windows 7 -64 BIT
    RAM : 16 GB
    code where i Got the Exception
                   dfdoFile.DiskFileName = Path.Combine(reportPath, reportFileName);
                    expOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                    expOptions.ExportFormatType = ExportFormatType.CrystalReport;
                    expOptions.DestinationOptions = dfdoFile;
                    objReport.Export(expOptions);
    below is stack trace :
       at CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
       at CrystalDecisions.CrystalReports.Engine.ReportDocument.Export(ExportOptions options)
       at Medtech.BaseObjects.Report.CreatePDF(ReportClass objReport, DataView objRptDataView, String printerName, PrinterPaperOrientation
    i have attached Screenshot for your reference ,

    Hi Sandeep
    You are using Service Pack 5 (Crystal Report Version : CRforVS_13_0_5.exe). I'd like you to update your install to SP 13:
    SAP Crystal Reports, developer version for Microsoft Visual Studio: Updates & Runtime Downloads
    and test.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
      Follow me on Twitter

  • SOAP Fault Exception: method not found

    Hi,
    I've tried to consume a web service (written in Java) in ABAP using a generated client proxy with logical port. I receive return code 500 and a fault exception like "method for requestMethod was not found".
    Has anyone a hint?
    Thanks in advance,
    Daniel

    I have not seen that error before, but my first suggestion would be to state the obvious - check your logical port definition and make sure that the settings are correct, i.e., that they match the WSDL document.  You'll want to check that the SOAP Action on the Operations tab is correct and that the URL for the web service is correct on the Call Parameters tab.

  • ICompanyService.GetGeneralService(System.String) Method Not found error

    Hi,
    When I am running my code in SAP 2007, I am getting following on calling of UDO.
    Method not found: 'SAPbobsCOM.GeneralService SAPbobsCOM.ICompanyService.GetGeneralService(System.String)'
    I could not understand why this error is occuring, although same code in running very well in SAP 8.8 and 8.81.
    Please suggest me a solutions.

    Hi
    sorry it is mistake from me. Check this SAP note regarding GeneralService it is available from SAP Business One 2007 A SP00 PL46 onwards . Please check you PL version
    How to use the GeneralService functionality to access UDOs via DI API.
    Solution
    The GeneralService allows access to User-Defined Objects (UDOs) via the DI API. Using the GeneralService, you can add, update and delete UDOs. This feature was added in SAP Business One 2007 A SP00 PL46.
    The following is an example of how to add data to a UDO. This example relates to a UDO with the following properties:
    Type = Document
    Unique ID = "Ex_1"
    Name = "EX_DOC"
    User-Defined Field = "Field1"
    Child Object Name = "EX_DOC_LINE"
    User-Defined Field (Child Object) = "Property1"
    Use this (VB.NET) code to add data to the UDO:
               Dim oGeneralService As SAPbobsCOM.GeneralService
               Dim oGeneralData As SAPbobsCOM.GeneralData
               Dim oGeneralDataChild As SAPbobsCOM.GeneralData
                 'Get the UDO by referencing the Unique ID (using the CompanyService Object)
               oGeneralService = oCompanyService. GetGeneralService("EX_1")
                         'Create data for new row in UDO - (Document Table)
               oGeneralData = oGeneralService.GetDataInterface(SAPbobsCOM. GeneralServiceDataInterfaces.gsGeneralData)
               oGeneralData.SetProperty("U_Field1", "A")
               'Create data for new row in the UDO Child - (Document Row Table)
          oGeneralDataChild = oGeneralData.Child("EX_DOC_LINE"). Add()
               oGeneralDataChild.SetProperty("U_Property1", "B")
               oGeneralService.Add(oGeneralData)
    See the following Blog for more information and another example:
               "UDO Access via DI API (in PL46)"
               http://www.sdn.sap. com/irj/scn/weblogs?blog=/pub/wlg/13008
    Regards
    Arun

  • Method Not Found Exception - createinstance

    Hi,
    I am new to ADF. I add the Iterator to the executables and add the action "createInstance" onto the page data binding definition at the Method call in the unbounded task flow (adf-config.xml). However, everytime, when the flow is upto the method call, it will throw the exception "javax.el.MethodNotFoundException: Method not found: view_adfc_config__methodCall1PageDef.CreateInsert()". I saw the createinsert in the Page data binding definition xml.
    Please help, I tried to learn the binding in ADF.

    Hi,
    the method call activity would need to have a PageDef file with this method defined. It is not sufficient to have the method defined in the Pagedef file of a view.
    Frank

  • Method not found exception

    Getting exception on javax.net.ssl.SSLsession.getPeerCertificates method not found.
    The exception is being thrown from sun.net.www.protocol.https.HttpsClient.b
    Project built with JBuilder version 8.
    Using Jakarta Tomcat 4.0.4 and J2sdk1.4.0_01
    JBuilder does not show the getPeerCertificates method either.
    Any idea where the incompatiblity with javax is coming from, and how I might remedy this?
    Any help would be appreciated.

    probably the ssl implementation from apache is old, go to their site and look for the most recent. www.apache.org
    Will

  • Method not found when displaying report in viewer CR Basic for VS 2008

    I searched and couldn't find anything regarding this.  When I try to display a report in the CrystalReportViewer, I get the following error message:
    method not found: 'Void CrystalDecisions.Shared.PageRender.set_ExceptionWindowTitle(System.String)'
    If I call PrintToPrinter for the report, it prints exactly as expected with no errors.  The report viewer control is on a separate generic form (since I have many different reports) and the report is passed to that form after it has been generated.
    I can't find any information regarding this error either on these support forums, or anywhere else on the internet.  I've tried installing the latest service pack and also removing and re-adding teh crystal reports references to my project without any change.
    Thanks for any help you can provide.

    Ok, I tried a completely fresh install of Visual Studio 2008 on a brand new Windows XP machine, same result.  I tried to do this on another developer's machine (who also has Visual Studio 2008 Professional), which resulted in this error when trying to load the ReportViewer (sorry for the long text).  It mentions something about redirecting to version 12 of crystal reports in the error message, which is strange because my project references 10.5, and I don't have crystal reports 12, which as I understand is the full retail version of Crystal reports 2008.  Any ideas?
    A first chance exception of type 'System.IO.FileNotFoundException' occurred in ICE.exe
    System.Transactions Critical: 0 : <TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"><TraceIdentifier>http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled</TraceIdentifier><Description>Unhandled exception</Description><AppDomain>ICE.exe</AppDomain><Exception><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
    at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81</StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' ---&amp;gt; System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    === Pre-bind state information ===
    LOG: User = SAGENET\aingraham
    LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    (Fully-specified)
    LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
    LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
    at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
    at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs) in C:\_ICEDOTNET\ICE\Forms\frmPO.vb:line 2545
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at ICE.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
    </ExceptionString><InnerException><ExceptionType>System.IO.FileNotFoundException, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType><Message>Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.</Message><StackTrace> at ICE.basRpt.rpt_showPurchaseOrder(Int64 lngAuto, String strNothing, String strReportTitle, Boolean blnShow, Boolean blnExport, Boolean blnEmail, Int32 numAttachments)
    at ICE.frmPO.mnuPrintPO_Click(Object eventSender, EventArgs eventArgs)
    at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
    at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
    at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
    at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
    at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
    at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp; m, MouseButtons button, Int32 clicks)
    at System.Windows.Forms.Control.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ScrollableControl.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStrip.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.ToolStripDropDown.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message&amp;amp; m)
    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message&amp;amp; m)
    at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp; msg)
    at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
    at System.Windows.Forms.Application.Run(ApplicationContext context)
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
    at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
    at ICE.My.MyApplication.Main(String[] Args)
    </StackTrace><ExceptionString>System.IO.FileNotFoundException: Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified.
    File name: 'CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304'
    === Pre-bind state information ===
    LOG: User = SAGENET\aingraham
    LOG: DisplayName = CrystalDecisions.CrystalReports.Engine, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    (Fully-specified)
    LOG: Appbase = file:///C:/_ICEDOTNET/ICE/bin/Debug/
    LOG: Initial PrivatePath = NULL
    Calling assembly : ICE, Version=1.0.0.40, Culture=neutral, PublicKeyToken=null.
    ===
    LOG: This bind starts in default load context.
    LOG: Using application configuration file: C:\_ICEDOTNET\ICE\bin\Debug\ICE.exe.Config
    LOG: Using machine configuration file from C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\config\machine.config.
    LOG: Redirect found in application configuration file: 10.5.3700.0 redirected to 12.0.2000.0.
    LOG: Post-policy reference: CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.DLL.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine.EXE.
    LOG: Attempting download of new URL file:///C:/_ICEDOTNET/ICE/bin/Debug/CrystalDecisions.CrystalReports.Engine/CrystalDecisions.CrystalReports.Engine.EXE.
    </ExceptionString></InnerException></Exception></TraceRecord>

  • Method not found: 'Void Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration.set_DataCacheServiceAccountType('...

    After install SharePoint 2013 SP 1, I have a broken list Workflows.
    The logs contants the following error:
    05/13/2014 14:49:03.86  w3wp.exe (0x2FB4)                               0x0774  SharePoint Foundation      
        DistributedCache                air4g
    Monitorable     Token Cache: Failed to initialize SPDistributedSecurityTokenCache  Exception: 'System.MissingMethodException: Method not found: 'Void Microsoft.ApplicationServer.Caching.DataCacheFactoryConfiguration.set_DataCacheServiceAccountType(Microsoft.ApplicationServer.Caching.DataCacheServiceAc
    countType)'.    
    at Microsoft.SharePoint.DistributedCaching.SPDistributedCachePointerWrapper.InitializeDataCacheFactory()    
    at Microsoft.SharePoint.DistributedCaching.SPDistributedCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encryptData)    
    at
     Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCache..ctor(String name, TimeSpan timeToLive, SPDistributedCacheContainerType containerType, Boolean encrptyData, TimeSpan minimumTokenExpirationWindow)
    at Microsoft.SharePoint.IdentityModel.SPDistributedSecurityTokenCacheInitializer.Init(Object state)'. 
    As I understand, I have to install some update in the system, but windows update don't show any available updates.
    Any ideas?

    Hi,
    According to your post, my understanding is that you got a broken list Workflows after install SharePoint 2013 SP1.
    I recommend to check is that your cachecluster is up and running through:
    Get-CacheHostConfig -ComputerName $env:computername -CachePort 22233
    when your cache is up and running, run the following 2 commands:
    Remove-SPDistributedCacheServiceInstance
    Add-SPDistributedCacheServiceInstance
    For more information, you can refer to:
    Distrubited Cache in SharePoint 2013
    SharePoint 2013 - Distributed Cache: ErrorCode ERRCA0017 SubStatus ES0006 e ES0001
    Replacing missing named caches to a SharePoint Distributed Cache cluster
    Thanks,
    Linda Li                
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Linda Li
    TechNet Community Support

  • Method not found:Next.execute(javax.faces.event.ActionEvent)ADF11.1.1

    Hi ,
    I created simple app in ADF11g production version.this is working fine in Jdev IDE.
    In my application two pages are there.in first page just ADF ROF is there.there youcan see the rows in a dept table thru navigation contrlos.and a submit button to navigate to next page.in second page ,i have createinsert button,delete,commit,rollback buttons.and abutton to navigate to first page.
    I deployed the EAR successfully to Extervnal WLS10.3while testing it from Browser,
    First i got first row in my table along with Navigation contrlos and submit button of first page in the browser.when i am clicking on next button(to move to next row) it is giving the following error in information box.
    Method not found: Next.execute(javax.faces.event.ActionEvent).
    And the WLS server domain error log is:
         Oct 31, 2008 10:00:09 AM EDT     netuix     Warning     BEA-423420     Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22AdminServer%3BDomainLog%22%29.
         Oct 31, 2008 10:00:41 AM EDT     oracle.adfinternal.controller.faces.lifecycle.JSFLifecycleImpl     Warning     ADFC-54008     ADFc: Replacing the ADF Page Lifecycle implementation with 'oracle.adfinternal.controller.application.model.JSFDataBindingLifecycleContextBuilder'.
         Oct 31, 2008 10:00:44 AM EDT     HTTP     Error     BEA-101017     [weblogic.servlet.internal.WebAppServletContext@2767c8 - appName: 'sailu', name: 'department_Application-viewcontroller-context-root', context-path: '/department_Application-viewcontroller-context-root', spec-version: '2.5', request: weblogic.servlet.internal.ServletRequestImpl@1f9449a[ GET /department_Application-viewcontroller-context-root/faces/Depvue1.jspx HTTP/1.1 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-US; rv:1.8.1.17) Gecko/20080829 Firefox/2.0.0.17 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Cookie: ADMINCONSOLESESSION=G65pJLNKGrn9cqWKT2MYJNQThDyGwPhbTyhYv6G0JWf5GpbTyWB2!590494889 ]] Root cause of ServletException. java.lang.IllegalStateException: Cannot forward a response that is already committed at weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:122) at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44) at org.apache.myfaces.trinidadinternal.context.FacesContextFactoryImpl$OverrideDispatch.dispatch(FacesContextFactoryImpl.java:267) at com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:475) at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:143) at javax.faces.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:189) at org.apache.myfaces.trinidadinternal.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:188) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._renderResponse(LifecycleImpl.java:652) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:243) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:203) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:266) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         Oct 31, 2008 10:00:46 AM EDT     oracle.adf.share.security     Warning     BEA-000000     Unable to locate the credential for key Connection1 in F:\oracleWls\user_projects\domains\sailubase_domain\config\oracle.
         Oct 31, 2008 10:00:46 AM EDT     oracle.adf.share.jndi.ReferenceStoreHelper     Warning     BEA-000000     Incomplete connection information
         Oct 31, 2008 10:00:52 AM EDT     oracle.adfinternal.view.faces.config.rich.RegistrationConfigurator     Error     BEA-000000     Server Exception during PPR, #1 javax.servlet.ServletException: Method not found: Next.execute(javax.faces.event.ActionEvent) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:270) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173) javax.faces.el.EvaluationException: Method not found: Next.execute(javax.faces.event.ActionEvent) at org.apache.myfaces.trinidadinternal.taglib.util.MethodExpressionMethodBinding.invoke(MethodExpressionMethodBinding.java:58) at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodBinding(UIXComponentBase.java:1226) at org.apache.myfaces.trinidad.component.UIXCommand.broadcast(UIXCommand.java:183) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:458) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:763) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._invokeApplication(LifecycleImpl.java:640) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:275) at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:278) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:238) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:195) at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:138) at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:102) at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(Unknown Source) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
         Oct 31, 2008 10:01:32 AM EDT     netuix     Warning     BEA-423420     Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=DiagnosticsViewDomainLogTablePage&DiagnosticsViewDomainLogTablePortlethandle=com.bea.console.handles.LogDispatchHandle%28%22AdminServer%3BDomainLog%22%29.
    And in this page when i am clicking on submit button to navigate to second page,it is not going to second page .it is in first page only.
    Can you tell me about this error and any changes to do for my code to get run my app on browser.
    I appreciate your help and time.

    Hi Frank,
    now my problem solved .just i created one more application newly and deployed it on External WLS.
    Now i am able to see all the rows in my DEPT table in my first page of app thru navigation contrlos.
    In the same way i am able to see all rows in second page also.and also able to edit the rows thru commit,delete buttons.and able to insert the rows also in second page.
    But the submit button to go from page1 to page2 is not working.and also the submit button from page 2 to page1 not working.
    I am giving the following in my URL:
    http://localhost:7001/Dep1wlsApplication1-ViewController-context-root/faces/view1.jspx
    http://localhost:7001/Dep1wlsApplication1-ViewController-context-root/faces/view2.jspx
    What i have to do in order to go from first page to second and second to first.in my IDE i am able to go.
    Is anything i have to change in my URL>
    Plz suggest me.

  • Method not found: 'Void National Instruments.LabVIEW.Interop.LV Runtime.throw MissingDependencyException()'.

    Method not found: 'Void National Instruments.LabVIEW.Interop.LV Runtime.throw MissingDependencyException()'.
    My colleague created a Labview DLL for me to use in .NET.
    I have tried getting this DLL to work in 3.5 framework however it only worked on framework 2.0. 
    I recently tried again and now it will not work in framework 2.0 or any available frameworks.
    He is using Labview 2011. 
    I am a little baffled as to how the application just stopped working. The National Instruments Runtime I am using is Labview 2011, version 1.1.0.0. The labview dll he gave me is using 1.1.0.0 as well. I have tried using 1.0.0.0 and I get an error saying there is a mismatch.
    In addition, for some reason I was never successful in making this work in 3.5, and now I can't make it work in 2.0 either.
    Any help is greatly appreciated. I have tried re-installing the runtime engine, tried different versions like labview 2013 but no luck... 
    Everything works except when I call the dll procedure:
    LabVIEWExports.AxBClusterArrays(out ERR, out OUTDLL, INDLL);
    My Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Text;
    using System.Windows.Forms;
    using NationalInstruments.LabVIEW.Interop;
    using InteropAssembly;
    namespace WindowsFormsApplication1
    public partial class Form1 : Form
    public Form1()
    InitializeComponent();
    private void Form1_Load(object sender, EventArgs e)
    InteropAssembly.LVCluster_1 OUTDLL = new InteropAssembly.LVCluster_1();
    InteropAssembly.LVCluster_2 INDLL = new InteropAssembly.LVCluster_2();
    double[] TestA = new double[1];
    double[] TestB = new double[1];
    for (int runs = 0; runs < 1; runs++)
    TestA[runs] = 1;
    TestB[runs] = 1;
    INDLL.A = TestA;
    INDLL.B = TestB;
    NationalInstruments.LabVIEW.Interop.ErrorCluster ERR = new NationalInstruments.LabVIEW.Interop.ErrorCluster();
    MessageBox.Show(NationalInstruments.LabVIEW.Interop.FrameworkVersion.Fx35.ToString());
    try
    //LabVIEWExports LVE = new LabVIEWExports()
    LabVIEWExports.AxBClusterArrays(out ERR, out OUTDLL, INDLL);
    catch (Exception f)
    MessageBox.Show(f.Message.ToString());

    Figured it out, I thought we where using Labview 2011, however it was Labview 2011 SP1. 
    Thus i had to install the runtime envioment 2011 SP1.
    Regards,
    ADL

  • Method not found: 'Int32 Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.get_IEVersion()'.

    I am trying to use Coded UI record and play back for a web application. If I create a new solution and a project and record and play back, it works fine.
     But when I try to add a new Coded UI project to an existing solution and try to the record and play back, the play back fails with the following error:
     Test Name: Login1
     Test FullName: Test.LoginNS.Login1
     Test Source: c:\CodedUITestProject1\Test\Login.cs : line 29
     Test Outcome: Failed
     Test Duration: 0:00:06.0481823
     Result Message:
     Test method TestWebUI.LoginNS.Login1 threw exception:
     System.MissingMethodException: Method not found: 'Int32 Microsoft.VisualStudio.TestTools.UITest.Extension.UITestUtilities.get_IEVersion()'.
     I looked at the version of the dll "Microsoft.VisualStudio.TestTools.UITest.Extension" and its 11.0.
     Any pointers or help would be really appreciated.

    Hi singhguru87,
    Thanks for posting in the MSDN forum.
    >>If I create a new solution and a project and record and play back, it works fine.
    >>But when I try to add a new Coded UI project to an existing solution and try to the record and play back, the play back fails...
    The real issue is that whether there are other projects in your existing solution, if so, how about unloading the other projects one by one? So we could know that whether other projects impact this coded UI test project.
    Or you could take a backup for your solution , and then copy other projects from existing one to your new solution which works well, how about the results?
    Please compare the new coded UI test code with the previous new one, do you make sure that they have the same code?
    Please also compare the project property like .NET Framework version and Platform target (Any CPU/X86/X64).
    If still no help, please collect the detailed coded UI test log, maybe you could get more useful information.
    https://msdn.microsoft.com/en-us/library/jj159363.aspx?f=255&MSPPError=-2147217396
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • SetJPEGEncodeParam method not found in JPEGImageEncoder jdk 1.5 and jdk 1.6

    Hi,
    We are group of students working on college project.
    We want to capture webcam and show stream on screen.
    We are using JMF and class JPEGImageEncoder.
    Here we are getting setJPEGEncodeParam method not found error.
    Please see detail error message and source code attached below.
    Thanks in advance.
    Regards,
    Vinayak & Surendra
    // Error and Warnings
    SwingCapture.java:125: warning: com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and may be removed in a future release
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    ^
    SwingCapture.java:125: warning: com.sun.image.codec.jpeg.JPEGCodec is Sun proprietary API and may be removed in a future release
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    ^
    SwingCapture.java:126: warning: com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and may be removed in a future release
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
    ^
    SwingCapture.java:128: cannot find symbol
    symbol : method setJPEGEncodeParam(com.sun.image.codec.jpeg.JPEGEncodeParam)
    location: class com.sun.image.codec.jpeg.JPEGImageEncoder
         encoder.setJPEGEncodeParam(param);
    ^
    1 error
    3 warnings
    // Source code
    import javax.swing.*;
    import javax.swing.event.*;
    import java.io.*;
    import javax.media.*;
    import javax.media.format.*;
    import javax.media.util.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import java.util.*;
    import java.awt.*;
    import java.awt.image.*;
    import java.awt.event.*;
    import com.sun.image.codec.jpeg.*;
    public class SwingCapture extends Panel implements ActionListener
    public static Player player = null;
    public CaptureDeviceInfo di = null;
    public MediaLocator ml = null;
    public JButton capture = null;
    public Buffer buf = null;
    public Image img = null;
    public VideoFormat vf = null;
    public BufferToImage btoi = null;
    public ImagePanel imgpanel = null;
    public SwingCapture()
    setLayout(new BorderLayout());
    setSize(320,550);
    imgpanel = new ImagePanel();
    capture = new JButton("Capture");
    capture.addActionListener(this);
    String str1 = "vfw:Logitech USB Video Camera:0";
    String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
    di = CaptureDeviceManager.getDevice(str2);
    ml = di.getLocator();
    try
    player = Manager.createRealizedPlayer(ml);
    player.start();
    Component comp;
    if ((comp = player.getVisualComponent()) != null)
    add(comp,BorderLayout.NORTH);
    add(capture,BorderLayout.CENTER);
    add(imgpanel,BorderLayout.SOUTH);
    catch (Exception e)
    e.printStackTrace();
    public static void main(String[] args)
    Frame f = new Frame("SwingCapture");
    SwingCapture cf = new SwingCapture();
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    playerclose();
    System.exit(0);}});
    f.add("Center",cf);
    f.pack();
    f.setSize(new Dimension(320,550));
    f.setVisible(true);
    public static void playerclose()
    player.close();
    player.deallocate();
    public void actionPerformed(ActionEvent e)
    JComponent c = (JComponent) e.getSource();
    if (c == capture)
    // Grab a frame
    FrameGrabbingControl fgc = (FrameGrabbingControl)
    player.getControl("javax.media.control.FrameGrabbingControl");
    buf = fgc.grabFrame();
    // Convert it to an image
    btoi = new BufferToImage((VideoFormat)buf.getFormat());
    img = btoi.createImage(buf);
    // show the image
    imgpanel.setImage(img);
    // save image
    saveJPG(img,"c:\\test.jpg");
    class ImagePanel extends Panel
    public Image myimg = null;
    public ImagePanel()
    setLayout(null);
    setSize(320,240);
    public void setImage(Image img)
    this.myimg = img;
    repaint();
    public void paint(Graphics g)
    if (myimg != null)
    g.drawImage(myimg, 0, 0, this);
    public static void saveJPG(Image img, String s)
    BufferedImage bi = new BufferedImage(img.getWidth(null),
    img.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = bi.createGraphics();
    g2.drawImage(img, null, null);
    FileOutputStream out = null;
    try
    out = new FileOutputStream(s);
    catch (java.io.FileNotFoundException io)
    System.out.println("File Not Found");
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
    param.setQuality(0.5f,false);
    encoder.setJPEGEncodeParam(param);
    try
    encoder.encode(bi);
    out.close();
    catch (java.io.IOException io)
    System.out.println("IOException");

    JPEGImageEncoder isn't a JMF class...so this isn't a JMF question. You need to go to the appropriate forum, which would be Java2D, I believe.
    Also, is there a specific reason you're not just capturing from your web camera directly?

  • JSF newbie question - ServletException - Method not found

    I just started learning JSF (and JSP) by following the tutorial:
    JSF for nonbelievers: Clearing the FUD about JSF
    http://www-128.ibm.com/developerworks/library/j-jsf1/
    I'm getting a ServletException and I'm not sure why. Instead of starting the tutorial over, I'd like to learn what I'm doing wrong.
    The exception is:
    exception
    javax.servlet.ServletException: Method not found: [email protected]()
    root cause
    javax.el.MethodNotFoundException: Method not found: [email protected]()In the calculator.jsp page (a simple page with two form fields), I noticed that when I type CalcBean., my IDE (NetBeans) only autocompletes the class variables and neither of the methods (add and multiply). I quickly searched and someone suggested restarting the server. This did not fix my problem. I must be doing something completely wrong or I missed something in the tutorial. If you don't mind, please read the simple files below and see if you can spot anything wrong. Please keep in mind this is my first time using JSF (and JSP for that matter). If you can suggest a better newbie tutorial, please do! Thanks
    web.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
        <context-param>
            <param-name>com.sun.faces.verifyObjects</param-name>
            <param-value>false</param-value>
        </context-param>
        <context-param>
            <param-name>com.sun.faces.validateXml</param-name>
            <param-value>true</param-value>
        </context-param>
        <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>client</param-value>
        </context-param>
        <servlet>
            <servlet-name>Faces Servlet</servlet-name>
            <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
            <load-on-startup>1</load-on-startup>
            </servlet>
        <servlet-mapping>
            <servlet-name>Faces Servlet</servlet-name>
            <url-pattern>/faces/*</url-pattern>
        </servlet-mapping>
        <session-config>
            <session-timeout>
                30
            </session-timeout>
        </session-config>
        <welcome-file-list>
         <welcome-file>
                index.jsp
            </welcome-file>
        </welcome-file-list>
    </web-app>
    faces-config.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!-- =========== FULL CONFIGURATION FILE ================================== -->
    <faces-config version="1.2" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
      <managed-bean>
        <description>
                    The "backing file" bean that backs up the calculator webapp
                </description>
        <managed-bean-name>CalcBean</managed-bean-name>
        <managed-bean-class>secondapp.controller.CalcBean</managed-bean-class>
        <managed-bean-scope>session</managed-bean-scope>
      </managed-bean>
      <navigation-rule>
        <from-view-id>/calculator.jsp</from-view-id>
        <navigation-case>
          <from-outcome>success</from-outcome>
          <to-view-id>/results.jsp</to-view-id>
        </navigation-case>
      </navigation-rule>
    </faces-config>
    secondapp.controller.CalcBean.java
    package secondapp.controller;
    import secondapp.model.Calculator;
    * @author Jonathan
    public class CalcBean {
        private int firstNumber;
        private int secondNumber;
        private int result;
        private Calculator calculator;
        /** Creates a new instance of CalcBean */
        public CalcBean() {
            setFirstNumber(0);
            setSecondNumber(0);
            result = 0;
            setCalculator(new Calculator());
        public String add(int a, int b) {
            result = calculator.add(a,b);
            return "success";
        public String multiply(int a, int b) {
            result = calculator.multiply(a,b);
            return "success";
        // <editor-fold desc=" Accessors/Mutators ">
        public int getFirstNumber() {
            return firstNumber;
        public void setFirstNumber(int firstNumber) {
            this.firstNumber = firstNumber;
        public int getSecondNumber() {
            return secondNumber;
        public void setSecondNumber(int secondNumber) {
            this.secondNumber = secondNumber;
        public int getResult() {
            return result;
        public void setCalculator(Calculator calculator) {
            this.calculator = calculator;
        // </editor-fold>
    secondapp.model.Calculator
    package secondapp.model;
    * @author Jonathan
    public class Calculator {
        /** Creates a new instance of Calculator */
        public Calculator() {
        public int add(int a, int b) {
            return a+b;
        public int multiply(int a, int b) {
            return a*b;
    calculator.jsp
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <html>
        <head><title>Calculator Test</title></head>
        <body bgcolor="white">
            <h2>My Calculator</h2>
            <f:view>
                <h:form id="calcForm">
                    <h:panelGrid columns="3">
                        <h:outputLabel value="First Number" for="firstNumber" />
                        <h:inputText id="firstNumber" value="#{CalcBean.firstNumber}" required="true" />
                        <h:message for="firstNumber" />
                        <h:outputLabel value="Second Number" for="secondNumber" />
                        <h:inputText id="secondNumber" value="#{CalcBean.secondNumber}" required="true" />
                        <h:message for="secondNumber" />
                    </h:panelGrid>
                    <h:panelGroup>
                        <h:commandButton id="submitAdd" action="#{CalcBean.add}" value="Add" />
                        <h:commandButton id="submitMultiply" action="#{CalcBean.multiply}" value="Multiply" />
                    </h:panelGroup>
                </h:form>
            </f:view>
        </body>
    </html>

    In the future, please add some line breaks so I don't have to scroll horizontally to read your post.
    The problem is that the CalcBean.add/.multiply method is requiring two parameters. This method should be parameter-less. When talking about action methods, they should return String and not take any parameters.
    So, remove the parameters. You collect a firstNumber and a secondNumber from the user. These are the numbers you want to add (or multiply). Use those values (instead of the parameters) to calculate the result.
    The code changes aren't too complicated. I'd write them out for you, but you seem interested in learning (which is great by the way!). Let me know if you need more help on this.
    CowKing
    ps - I see more problems with the code, and I haven't given you all the answers. I know, I'm mean. You'll learn better if you try to fix things on your own first. I've just given you enough info to overcome the immediate issue. =)

  • SetJPEGEncodeParam method not found

    Hi,
    We are group of students working on college project.
    We want to capture webcam and show stream on screen.
    We are using JMF and class JPEGImageEncoder.
    Here we are getting setJPEGEncodeParam method not found error.
    Please see detail error message and source code attached below.
    Thanks in advance.
    Regards,
    Vinayak & Surendra
    // Error and Warnings
    SwingCapture.java:125: warning:
    com.sun.image.codec.jpeg.JPEGImageEncoder is Sun proprietary API and
    may be removed in a future release
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    ^
    SwingCapture.java:125: warning: com.sun.image.codec.jpeg.JPEGCodec is
    Sun proprietary API and may be removed in a future release
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    ^
    SwingCapture.java:126: warning:
    com.sun.image.codec.jpeg.JPEGEncodeParam is Sun proprietary API and
    may be removed in a future release
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
    ^
    SwingCapture.java:128: cannot find symbol
    symbol : method setJPEGEncodeParam
    (com.sun.image.codec.jpeg.JPEGEncodeParam)
    location: class com.sun.image.codec.jpeg.JPEGImageEncoder
    encoder.setJPEGEncodeParam(param);
    ^
    1 error
    3 warnings
    // Source code
    import javax.swing.;
    import javax.swing.event.;
    import java.io.;
    import javax.media.;
    import javax.media.format.;
    import javax.media.util.;
    import javax.media.control.;
    import javax.media.protocol.;
    import java.util.;
    import java.awt.;
    import java.awt.image.;
    import java.awt.event.;
    import com.sun.image.codec.jpeg.*;
    public class SwingCapture extends Panel implements ActionListener
    public static Player player = null;
    public CaptureDeviceInfo di = null;
    public MediaLocator ml = null;
    public JButton capture = null;
    public Buffer buf = null;
    public Image img = null;
    public VideoFormat vf = null;
    public BufferToImage btoi = null;
    public ImagePanel imgpanel = null;
    public SwingCapture()
    setLayout(new BorderLayout());
    setSize(320,550);
    imgpanel = new ImagePanel();
    capture = new JButton("Capture");
    capture.addActionListener(this);
    String str1 = "vfw:Logitech USB Video Camera:0";
    String str2 = "vfw:Microsoft WDM Image Capture (Win32):0";
    di = CaptureDeviceManager.getDevice(str2);
    ml = di.getLocator();
    try
    player = Manager.createRealizedPlayer(ml);
    player.start();
    Component comp;
    if ((comp = player.getVisualComponent()) != null)
    add(comp,BorderLayout.NORTH);
    add(capture,BorderLayout.CENTER);
    add(imgpanel,BorderLayout.SOUTH);
    catch (Exception e)
    e.printStackTrace();
    public static void main(String[] args)
    Frame f = new Frame("SwingCapture");
    SwingCapture cf = new SwingCapture();
    f.addWindowListener(new WindowAdapter() {
    public void windowClosing(WindowEvent e) {
    playerclose();
    System.exit(0);}});
    f.add("Center",cf);
    f.pack();
    f.setSize(new Dimension(320,550));
    f.setVisible(true);
    public static void playerclose()
    player.close();
    player.deallocate();
    public void actionPerformed(ActionEvent e)
    JComponent c = (JComponent) e.getSource();
    if (c == capture)
    // Grab a frame
    FrameGrabbingControl fgc = (FrameGrabbingControl)
    player.getControl("javax.media.control.FrameGrabbingControl");
    buf = fgc.grabFrame();
    // Convert it to an image
    btoi = new BufferToImage((VideoFormat)buf.getFormat());
    img = btoi.createImage(buf);
    // show the image
    imgpanel.setImage(img);
    // save image
    saveJPG(img,"c:\\test.jpg");
    class ImagePanel extends Panel
    public Image myimg = null;
    public ImagePanel()
    setLayout(null);
    setSize(320,240);
    public void setImage(Image img)
    this.myimg = img;
    repaint();
    public void paint(Graphics g)
    if (myimg != null)
    g.drawImage(myimg, 0, 0, this);
    public static void saveJPG(Image img, String s)
    BufferedImage bi = new BufferedImage(img.getWidth(null),
    img.getHeight(null), BufferedImage.TYPE_INT_RGB);
    Graphics2D g2 = bi.createGraphics();
    g2.drawImage(img, null, null);
    FileOutputStream out = null;
    try
    out = new FileOutputStream(s);
    catch (java.io.FileNotFoundException io)
    System.out.println("File Not Found");
    JPEGImageEncoder encoder = JPEGCodec.createJPEGEncoder(out);
    JPEGEncodeParam param = encoder.getDefaultJPEGEncodeParam(bi);
    param.setQuality(0.5f,false);
    encoder.setJPEGEncodeParam(param);
    try
    encoder.encode(bi);
    out.close();
    catch (java.io.IOException io)
    System.out.println("IOException");
    }

    look at: javax.imageio.ImageIO
    File myFile = new File(myFileName);
    myFile.createNewFile();
    ImageIO.write(myImage, "JPEG", myFile);also post your code with code tags--otherwise the forum software will alter your code, using some of it as formatting sequences.

  • UnmarshalException - Method not found

    I am using weblogic 7. The server and client are separate machines. When I ran
    the client, the following error appeared:
    Start server side stack trace:
    java.rmi.UnmarshalException: Could not unmarshal method ID; nested exception is:
    java.rmi.UnmarshalException: Method not found: 'calculateRate(Lcom.Transporter;)'
    at weblogic.rmi.internal.MethodDescriptor.init(MethodDescriptor.java:157)
    at weblogic.rmi.internal.BasicServerRef.dispatch(BasicServerRef.java:220)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:272)
    at weblogic.rjvm.RJVMImpl.dispatchRequest(RJVMImpl.java:724)
    at weblogic.rjvm.RJVMImpl.dispatch(RJVMImpl.java:655)
    at weblogic.rjvm.ConnectionManagerServer.handleRJVM(ConnectionManagerServer.java:194)
    at weblogic.rjvm.ConnectionManager.dispatch(ConnectionManager.java:777)
    at weblogic.rjvm.t3.T3JVMConnection.dispatch(T3JVMConnection.java:495)
    at weblogic.socket.NTSocketMuxer.processSockets(NTSocketMuxer.java:664)
    at weblogic.socket.SocketReaderRequest.execute(SocketReaderRequest.java:23)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
    End server side stack trace
    Could anyone suggest any possible solutions to fix this problem?

    I am using Spring to inject the bean to my test code.
    @RunWith(SpringJUnit4ClassRunner.class)
    @ContextConfiguration(
            locations = {"/WEB-INF/applicationContext-ejb.xml"})
    public class ServiceTest extends AbstractDependencyInjectionSpringContextTests {
        @Autowired
        private TestServiceRemote testServiceRemote;
        @Test
        public void testDeneme(){
            List<String> strings = new ArrayList<String>();
            list.add("test1");
            list.add("test2");
            testServiceRemote,testMethod(strings)
    }Thanks and Best Regards.

Maybe you are looking for

  • How can you make your OWN text slides on imovie

    What i mean by this is, is there any other way to make text slides in imovie other than the options they already give you? I want to make my own, i'm not a fan of the ones they give

  • Where can I find a tutorial on creating interfaces?

    I think an interface is what I need for the program I am working on, although I haven't found any tutorial on how to create these on the Java Tutorial... Anyone could point me somewhere else where I might learn without bothering anyone? :)

  • How to configure RBE in order to get data from a SAP System

    Dear all, I downloaded the last version of RBE in order to install it and evaluate the concept of Reverse Business Engineering. After installing it on my laptop, I try to access with no exit. It appears a log on screen. Someone can help me by explain

  • JNI_CreateJavaVM trouble; returns -4

    Hello all, Has anyone seen a problem with the JNI_CreateJavaVM function returning a -4? This problem is happening on one our client machines that has Windows Server 2003, SP1 installed. This problem only shows up when using a web client. Console appl

  • Motion 3 Crashes despite Reinstall

    Process: Motion [3091] Path: /Applications/Motion.app/Contents/MacOS/Motion Identifier: com.apple.motion Version: 3.0 (3.0) Build Info: Motion-2001400~2 Code Type: X86 (Native) Parent Process: launchd [493] Date/Time: 2009-06-24 15:55:44.614 -0400 OS