Problem while executing the web template.

Hi Experts,
       I have created a web template and while executing it, I received the following error message in the BEx Launcher.
ERROR MESSAGE:
" Exception in BI runtime
Log ID: 0002B3510136CE0500000101000001FC00044748C57DB3F0
Initial cause
Message:
Concurrent call. Connection currently used in another thread.
Stack trace:
com.sap.mw.jco.JCO$Exception: (132) JCO_ERROR_CONCURRENT_CALL: Concurrent call. Connection currently used in another thread.
     at com.sap.mw.jco.JCO$Client.execute(JCO.java:3923)
     at com.sap.mw.jco.JCO$Client.execute(JCO.java:3416)
     at com.sap.mw.jco.JCO$Repository.execute(JCO.java:20471)
     at com.sap.mw.jco.JCO$Repository.queryFunctionInterface(JCO.java:20810)
Message:
JCo exception thrown when connecting to system "DB7CLNT800"
Stack trace:
com.sap.ip.bi.base.exception.BIBaseRuntimeException: JCo exception thrown when connecting to system "DB7CLNT800"
     at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Proxy.createFunction(Jco640Proxy.java:88)
     at com.sap.ip.bi.base.application.service.impl.application.ApplicationSettingsService.initializeProperties(ApplicationSettingsService.java:130)
     at com.sap.ip.bi.base.application.service.impl.application.ApplicationSettingsService.initialization(ApplicationSettingsService.java:124).........       "
      Pls help me to solve this problem.
With Regards,
Yokesh Kumar.

There has been quite some patches lately for the java runtime. Please check if you're up to date.
Cheers,
Ron

Similar Messages

  • Error while loading the Web template "0ANALYSIS_PATTERN" (return value "4")

    I activated all 0* objects in BTMP  and checked that they are all activated, but I found errors when opening the BEx Web Analyzer
    Error messages :
    Error while loading the Web template "0ANALYSIS_PATTERN" (return value "4")
    ERROR: Command type SWITCH_AXES of object not recognized
    ERROR: Parameter GENERAL_TEXT_ELEMENT not recognized; check your metadata
    So I ran RS_TEMPLATE_MAINTAIN_70 (0ANALYSIS_PATTERN) version D report to check and choose validate.
    Error messages :
    Template Include Item HEADER_TEMPLATE unresolved or empty. Close and reopen template.     
    Template Include Item FOOTER_TEMPLATE unresolved or empty. Close and reopen template.          
    Width of object item:GROUP_ITEM:GROUP_ITEM_1 is very small (1amp;1)          
    Query  does not exist in the BI System (Object QU )
    Cannot instantiate data provider
    I also ran RS_TEMPLATE_MAINTAIN_70 (0ANALYSIS_PATTERN) version A and got the following errors:
    Command type SWITCH_AXES of object  not recognized
    Command type SWITCH_AXES of object  not recognized
    Command type SWITCH_AXES of object  not recognized
    Parameter GENERAL_TEXT_ELEMENT not recognized; check your metadata
    Parameter GENERAL_TEXT_ELEMENT of object item:GROUP_ITEM:GROUP_ITEM_1 not recognized
    Command type SWITCH_AXES of object item:GROUP_ITEM:GROUP_ITEM_1 not recognized
    Command type SWITCH_AXES of object item:GROUP_ITEM:GROUP_ITEM_1 not recognized
    Command type SWITCH_AXES of object item:GROUP_ITEM:GROUP_ITEM_1 not recognized
    Command SWITCH_AXES cannot be located in parameter ACTION
    Command SWITCH_AXES cannot be located in parameter ACTION
    Command SWITCH_AXES cannot be located in parameter ACTION
    Parameter GENERIC_TEXT_BINDING of object item:GROUP_ITEM:GROUP_ITEM_1 cannot be higher-level node of GENERAL_TEXT_ELEMENT
    Item item:GROUP_ITEM:GROUP_ITEM_1 of type DROPDOWN_ITEM cannot be a parent node of DATA_PROVIDER_REF
    Item item:GROUP_ITEM:GROUP_ITEM_1 of type CHART_ITEM cannot be a parent node of VISIBLE
    Item item:GROUP_ITEM:GROUP_ITEM_1 of type CHART_ITEM cannot be a parent node of LEGEND_POSITION
    Item item:GROUP_ITEM:GROUP_ITEM_1 of type CHART_ITEM cannot be a parent node of LEGEND_VISIBLE
    Item item:GROUP_ITEM:GROUP_ITEM_1 of type CHART_ITEM cannot be a parent node of LEGEND_ONLY
    Invalid parameter value  for parameter ACTION in object item:GROUP_ITEM:GROUP_ITEM_1
    Invalid parameter value  for parameter ACTION in object item:GROUP_ITEM:GROUP_ITEM_1
    Invalid parameter value  for parameter ACTION in object item:GROUP_ITEM:GROUP_ITEM_1
    bi-Tag bi:item has unknown attribute key. Please check your spelling
    bi-Tag bi:item has unknown attribute key. Please check your spelling
    bi-Tag bi:item has unknown attribute key. Please check your spelling
    bi-Tag bi:item has unknown attribute key. Please check your spelling
    What could be the problem?

    hi,
      Please look into this note let me it helps...url=https://websmp202.sap-ag.de/~form/handler?_APP=01100107900000000342&_EVENT=REDIR&_NNUM=917950&_NLANG=E]Note 917950 - SAP NetWeaver 2004s: Setting Up BEx Web[/url]
    check this link as well for [<a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/ca6de811-0c01-0010-43b2-c64584eef943">Bex Web Configuration</a>
    wht is the SP Level?
    Nagesh Ganisetti.

  • Problem while executing the transaction code FMBV (Reconstruct)

    We are facing a problem while executing the transaction code FMBV
    (Reconstruct Availability Control in Funds Management) in it when we
    execute this transaction system only updates the expenditure which is
    made before technical upgrade from 4.6c to ECC6 EHP6, against the
    Assigned Budget (KBFC budget type) in the Annual Budget Table (BPJA)
    and
    the expenditure which we made after the upgrade, the program just
    ignore
    it. We can also see the expenditure in the standard FBL3N report.
    Please guide us.
    Thanks and Best Regards,

    Dear Abrar
    In your description, you refer to missing update after an upgrade. First of all, see if table FMIT is consistent, as it is the basis for calculating the assigned values during AVC reconstruction.
    Refer to this note:
    977016 FMIT: Missing totals records in Funds Management  And perform following steps:
    1.- Run program RGZZGLUX
    2.- Run program RFFMRC04 to match totals table with line items. A test run after a successful effective run should not find inconsistencies.
    3.- If RFFMRC04 does not show more inconsistencies, run FMBV as final step.
    Note that this reconstruction must be done without any other budgeting/posting activities at the same time, otherwise you may cause  other inconsistencies.
    Please let me know the results.
    Best regards,
    977016 - FMIT: Missing totals records in Funds Management
    Symptom
    After the upgrade to ERP 2004 or higher you realize that the FMIT totals table is no longer updated in Funds Management. You start the RFFMRC04 report to reconstruct the totals, but the report still displays the missing totals after an update run.
    Other Terms
    FMIT, EA-PS, ECC 5.00, ECC 6.00, ECC 7.00
    Reason and Prerequisites
    This problem occurs due to a generation error.
    Solution
    Start the RGZZGLUX report to generate missing source code in FI-SL. Then start the RFFMRC04 report to reconstruct the totals, now another run of the report should no longer display any errors.

  • I am getting a error while executing the Web Dynpro Application Page.

    Hi All,
    I am getting a Error while executing a web dynpro application ::: 
    : Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered. Component: Z_WEP_PERSONAL_DATA, View: OVERVIEW, Window: Z_XXP_PERSONAL_DATA
    I have checked this error description in ST22  :
    What happened?
        The exception 'CX_WDR_RT_EXCEPTION' was raised, but it was not caught anywhere
         along
        the call hierarchy.
        Since exceptions represent error situations and this error was not
        adequately responded to, the running ABAP program
         'CL_WDR_CLIENT_APPLICATION=====CP' has to be
        terminated.
    Error analysis
        An exception occurred which is explained in detail below.
        The exception, which is assigned to class 'CX_WDR_RT_EXCEPTION', was not caught
         and
        therefore caused a runtime error.
        The reason for the exception is:
        Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered. Component:
        Z_XXP_PERSONAL_DATA, View: OVERVIEW, Window: Z_XXP_PERSONAL_DATA
    Can u plz help me regarding this error.
    Thanks,
    Deepika

    >Navigation in Phase WDDOMODIFYVIEW Cannot Be Triggered
    Looks to me like you are trying to fire a navigation plug within WDDOMODIFYVIEW. According to the rules of the WD Phase Model this is not allowed.

  • Error while executing a web template in browser

    Hi experts,
    I am facing an issue when I am creating copy of an existing web template and executing it.
    As per the query inserted in the web template, it should show the 'variable entry' screen, but its showing a page with lots of junk characters (looks like chinese to me).
    When I execute the already existing template, its showing the correct screen.
    Can anyone help me in fixing this issue?
    Regards,
    Uday.

    You are not alone - Looks like SAP is also looking into this.
    Web Application Designer Appearing in Unicode (UTF-8)

  • Java Error while executing the excel template in the BIP 10g report server

    Hello Gurus,
    While we are executing the excel template we are getting the following java error and the report cannot be rendered to user who triggers the report. Where as the same excel template is generating output when user run it against the same data locally.
    "oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:652] Document file to deliver not found : C:\Oracle\bipublisher\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\xdo\tmp\xmlp3307tmp
    at oracle.apps.xdo.servlet.scheduler.XDOJob.deliver(XDOJob.java:1172)
    at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:495)
    at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
    at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)"
    We have tried with designing the .rtf template for this report and we are able to generate the report form the server. Please let us know the cause for this error in the server and way to rectify the exception from the report server.
    Thanks,
    Kamath.

    "oracle.apps.xdo.servlet.scheduler.ProcessingException: [ID:652] Document file to deliver not found : C:\Oracle\bipublisher\oc4j_bi\j2ee\home\applications\xmlpserver\xmlpserver\xdo\tmp\xmlp3307tmp
    imho it's about empty result file
    Data are there
    may be yes but is some data from all for report itself ?
    in other words data can be in output ( in xml ) but report can filters data and so report doesn't have appropriate data to representation ( it's assumption for error )
    Data are there, when we are using rtf template, it is generating the output.
    if you sure about data for report and on this data report works fine by bip desktop, so no ideas, only SR
    btw you can first check my assumption and try to catch "no data found" in template
    also you can check data itself, is it well-formed xml

  • Problem while executing the package

    Hi Guys,
    I am getting the problem while executin the package for 1 of the interface named PRE_SYNC_EX_ARMY_VEH_DEL.
    The source tables are EX_ARMY_VEH_TMP and CONTROL_DEL & target table is CONTROL_DEL
    All the three tables are in the same schema named RTO_STAGE.
    I am looking in the operator as at the first session is in the process(running mode) with "DROP FLOW TABLE" as the message while all other sessions are in the waiting mode related to that interface PRE_SYNC_EX_ARMY_VEH_DEL.The previous interface before it ie PRE_SYNC_AXLE_DEL & PRE_SYNC_AXLE_DELNR is running okk(with all succesful session).
    **In one statement I can summerize that execution of package is halting/stopped at one interface & not showing error in operator(showing running)**
    what would be the problem?
    Thanx
    Edited by: user8849294 on Mar 1, 2010 10:17 PM
    Edited by: user8849294 on Mar 2, 2010 9:36 PM
    Edited by: user8849294 on Mar 2, 2010 9:43 PM

    Hi,
    You didn't mention the exact error.
    Did you check if your interface succeeds outside the Package?
    If yes, have you included any odiFileWait event which's why other tasks are kept in Wait mode?
    In any case, if there's an error, the task with the red-colored icon shows the one with problem. Double-click it & go to the Execution tab to get the exact error

  • Problem while executing the query

    Hi,
    I have a query when iam trying to execute the query it is giving following error
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
         Select a valid Date (OR) Fiscal Period (OR) Calendar Month         
    com.sap.mw.jco.JCO$Exception: (104) RFC_ERROR_SYSTEM_FAILURE:      Select a valid Date (OR) Fiscal Period (OR) Calendar Month         
    at com.sap.mw.jco.MiddlewareJRfc.generateJCoException(MiddlewareJRfc.java:455)
    at com.sap.mw.jco.MiddlewareJRfc$Client.execute(MiddlewareJRfc.java:1452)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3979)
    at com.sap.mw.jco.JCO$Client.execute(JCO.java:3416)
    at com.sap.ip.bi.base.application.service.rfcproxy.impl.jco640.Jco640Proxy.executeFunction(Jco640Proxy.java:267)
    Iam not sure why i could not able to execute this query.I could able to execute and run other queries.
    Please help me..
    thanks in advance

    Hi,
    Please check if you have used any formulae or function modules to derive the fiscal period/month from calday. Maybe the date being assigned is not of the same format as expected due to which the error (input valid date or calmonth or fiscal period) is being generated.
    Regards,
    Manoj

  • Authorization issue while executing a Web Template in SAP BI

    Hello All,
    I am facing an issue while executing a webtemplate .
    I have a webtemplate which is being executed by end user, upon execution user must be able to fill in the value for data and submit. The query uses a characteristic KPI identifier ,SBU,BU,product, Region,Affiliate etc . All the mentioned charcaterisitics in Analysis authorization have * value except  KPI identifier and SBU. And Activity 02,03 is provided for the infoprovider.
    When a single value (Ex:KPI01) is provided in KPI identifier the webtemplate works fine in change mode. But when additonal value (Ex KPI02) is being added to the characterstic KPI identifier the webtemplate opens only in display mode. There is no authorization failure as well in the RSEC trace.
    Actually we created two separate roles for each KPI identifier earlier but when two roles provided to a user in combination it was behaving the way i mentioned above. So we tried to create a single role with two values of KPI Identifier in single analysis authorization and it is still the same.
    Please suggest what might be the reason for this behavior. Thank you
    Regards,
    Mohammed Ghouse

    Hi Brian,
    Thanks for your reply
    RSECADMIN does not show any missing authorizations when checked , but what is observed is that the check happens only on display
    These are the characteristics being checked by the query
    Characteristic      Content in SQL format
    OTCACTVT         GRI_IC005 IN ('KPI054','KPI055')
    GRI_IC005          AND GRI_IC007 = 'MFE'
                                AND 0TCAACTVT = '02'
    GRI_IC007
    Comparison with Following Authorized Set
    Characteristic      Content in SQL format
    0TCAACTVT      I CP *
    GRI_IC005        I EQ KPI054
                               I EQ KPI055
    GRI_IC007          I EQ MFE
    And it says its authorized. But still the screen is in display mode. What might be the reason for this behavior.

  • Error while executing the BW  template from Enterprise portal.

    HI all,
    i need a help in resolving the  issue. when i am trying  to run the template(WAD) from Enterprise portal i am facing an error.
    the error message is as follows
    cannot load query ''query name'' (data provider "DP_1":)
    Notification Number RSBOLAP 013 
    please help me out in resolving the issue.

    Hi Ganesh,
    actually it the scenario is some this like this i have created an WAD with email as an button up on click on the button it will execute the BI Broad Casting Functionality
    He have published the template on to portal, the template is executing fine in Enterprise portal but upon button click we are perfectly invoking the broadcasting functionality but i am unable to send mail when i am click on Execute button.
    The functionality is working fine from BW system .please help me out in resolving the issue.
    regards,
    santosh

  • Strange problem while executing the Query.......

    Hi,
    I have created a new query and I am facing the strange behaviour.
    When I execute it , it works fine but when one of my colleague execute it , it does not return any value for one of the Price variable.
    It works fine with most of the people I have checked except one.
    Can somebody let me know the reason.....?
    Thanks , Jeetu

    Hello,
    If it is authorization problem go to transaction st01 and mark the first check for authorization. Under filter insert the user. Click Trace On.
    Execute the query with that user and just after the lack of authorization message click trace off.
    Read the trace.
    Do the same with your user and compare the log of the two.
    You'll see what is missing.
    Assign points if helpful.
    Diogo.

  • Problem while opening the Web Service Homepage

    Hi All,
    I have created a Web Service and in Tcode WSADMIN , I am trying to open the Web Service Homepage (Ctrl+F8) and getting an error message "Could not determine WSDL Address(ICF Error)".
    Please suggest...
    Regards
    Pravesh

    Hi,
    In transaction SICF
    <b>/sap/bc/bsp/sap/learning_map</b>
    Choose Activate Service from the context menu.
    Also refer this thread.
    Solution Manager Learning Map http error 403
    Regards,
    Sarvesh

  • Error while executing the web service

    Hi All,
    I have created a Offline interactive Adobe Form using blog:
    BLOG URL:  http://www.sdn.sap.com/irj/scn/weblogs;jsessionid=(J2EE3414900)ID0483890350DB20045892361770696350End?blog=/pub/wlg/7588
    FIrst I created it, It worked fine. I got thee pop up fot authentication.
    Then wrote some logic then tried, It stopped executing.
    Then removed all logic. Just the three lines of the code as ahown below:
      var cURL = enter the WSDL url generated in the first step;
         var service = SOAP.connect(cURL);
         xfa.connectionSet.name of your custom data connection.execute(0);
    But now, when I click on the button, it does not connect to Web service but throws exception.
    I am not understanding what is the error. It throws at the line :
    xfa.connectionSet.name of your custom data connection.execute(0);
    Your help needed urgently!!!
    Regards,
    Aditya Deshpande
    Edited by: Aditya Deshpande on Oct 22, 2009 10:17 AM

    HI,
    RFc is not called becuase:
    1. we tried RFC debuggin with proper user. it never stopped at break point.
    2. TCODE: sxmb_moni in PI did not show any entry for incoming messages.
    The import bindings are proper. We tried using .execute(1) , nothing happened.
    We are able execute freely avaliable Web service but not the one exposed from PI.
    Hence we feel their is problem between PDF and PI itself.
    The user we put in the pop up is SERVICE USER. The PI consultant uses the same user and is able to execute but from PDF we are not able to execute.
    We also tried with a DIALOG USER with same roles and authhorizations as the SERVICE USER. BUt still it did not execute.
    Thanks and Regards,
    Aditya Deshpande
    Edited by: Aditya Deshpande on Nov 16, 2009 1:00 PM

  • Problem while executing the code( that covert jpeg images to movie)

    http://java.sun.com/products/java-media/jmf/2.1.1/solutions/JpegImagesToMovie.html
    here is the code:
    * @(#)JpegImagesToMovie.java     1.3 01/03/13
    * Copyright (c) 1999-2001 Sun Microsystems, Inc. All Rights Reserved.
    * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
    * modify and redistribute this software in source and binary code form,
    * provided that i) this copyright notice and license appear on all copies of
    * the software; and ii) Licensee does not utilize the software in a manner
    * which is disparaging to Sun.
    * This software is provided "AS IS," without a warranty of any kind. ALL
    * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
    * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
    * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
    * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
    * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
    * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
    * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
    * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
    * POSSIBILITY OF SUCH DAMAGES.
    * This software is not designed or intended for use in on-line control of
    * aircraft, air traffic, aircraft navigation or aircraft communications; or in
    * the design, construction, operation or maintenance of any nuclear
    * facility. Licensee represents and warrants that it will not use or
    * redistribute the Software for such purposes.
    import java.io.*;
    import java.util.*;
    import java.awt.Dimension;
    import javax.media.*;
    import javax.media.control.*;
    import javax.media.protocol.*;
    import javax.media.protocol.DataSource;
    import javax.media.datasink.*;
    import javax.media.format.VideoFormat;
    * This program takes a list of JPEG image files and convert them into
    * a QuickTime movie.
    public class JpegImagesToMovie3 implements ControllerListener, DataSinkListener {
    public boolean doIt(int width, int height, int frameRate, Vector inFiles, MediaLocator outML) {
         ImageDataSource ids = new ImageDataSource(width, height, frameRate, inFiles);
         Processor p;
         try {
         System.err.println("- create processor for the image datasource ...");
         p = Manager.createProcessor(ids);
         } catch (Exception e) {
         System.err.println("Yikes! Cannot create a processor from the data source.");
         return false;
         p.addControllerListener(this);
         // Put the Processor into configured state so we can set
         // some processing options on the processor.
         p.configure();
         if (!waitForState(p, p.Configured)) {
         System.err.println("Failed to configure the processor.");
         return false;
         // Set the output content descriptor to QuickTime.
         p.setContentDescriptor(new ContentDescriptor(FileTypeDescriptor.QUICKTIME));
         // Query for the processor for supported formats.
         // Then set it on the processor.
         TrackControl tcs[] = p.getTrackControls();
         Format f[] = tcs[0].getSupportedFormats();
         if (f == null || f.length <= 0) {
         System.err.println("The mux does not support the input format: " + tcs[0].getFormat());
         return false;
         tcs[0].setFormat(f[0]);
         System.err.println("Setting the track format to: " + f[0]);
         // We are done with programming the processor. Let's just
         // realize it.
         p.realize();
         if (!waitForState(p, p.Realized)) {
         System.err.println("Failed to realize the processor.");
         return false;
         // Now, we'll need to create a DataSink.
         DataSink dsink;
         if ((dsink = createDataSink(p, outML)) == null) {
         System.err.println("Failed to create a DataSink for the given output MediaLocator: " + outML);
         return false;
         dsink.addDataSinkListener(this);
         fileDone = false;
         System.err.println("start processing...");
         // OK, we can now start the actual transcoding.
         try {
         p.start();
         dsink.start();
         } catch (IOException e) {
         System.err.println("IO error during processing");
         return false;
         // Wait for EndOfStream event.
         waitForFileDone();
         // Cleanup.
         try {
         dsink.close();
         } catch (Exception e) {}
         p.removeControllerListener(this);
         System.err.println("...done processing.");
         return true;
    * Create the DataSink.
    DataSink createDataSink(Processor p, MediaLocator outML) {
         DataSource ds;
         if ((ds = p.getDataOutput()) == null) {
         System.err.println("Something is really wrong: the processor does not have an output DataSource");
         return null;
         DataSink dsink;
         try {
         System.err.println("- create DataSink for: " + outML);
         dsink = Manager.createDataSink(ds, outML);
         dsink.open();
         } catch (Exception e) {
         System.err.println("Cannot create the DataSink: " + e);
         return null;
         return dsink;
    Object waitSync = new Object();
    boolean stateTransitionOK = true;
    * Block until the processor has transitioned to the given state.
    * Return false if the transition failed.
    boolean waitForState(Processor p, int state) {
         synchronized (waitSync) {
         try {
              while (p.getState() < state && stateTransitionOK)
              waitSync.wait();
         } catch (Exception e) {}
         return stateTransitionOK;
    * Controller Listener.
    public void controllerUpdate(ControllerEvent evt) {
         if (evt instanceof ConfigureCompleteEvent ||
         evt instanceof RealizeCompleteEvent ||
         evt instanceof PrefetchCompleteEvent) {
         synchronized (waitSync) {
              stateTransitionOK = true;
              waitSync.notifyAll();
         } else if (evt instanceof ResourceUnavailableEvent) {
         synchronized (waitSync) {
              stateTransitionOK = false;
              waitSync.notifyAll();
         } else if (evt instanceof EndOfMediaEvent) {
         evt.getSourceController().stop();
         evt.getSourceController().close();
    Object waitFileSync = new Object();
    boolean fileDone = false;
    boolean fileSuccess = true;
    * Block until file writing is done.
    boolean waitForFileDone() {
         synchronized (waitFileSync) {
         try {
              while (!fileDone)
              waitFileSync.wait();
         } catch (Exception e) {}
         return fileSuccess;
    * Event handler for the file writer.
    public void dataSinkUpdate(DataSinkEvent evt) {
         if (evt instanceof EndOfStreamEvent) {
         synchronized (waitFileSync) {
              fileDone = true;
              waitFileSync.notifyAll();
         } else if (evt instanceof DataSinkErrorEvent) {
         synchronized (waitFileSync) {
              fileDone = true;
              fileSuccess = false;
              waitFileSync.notifyAll();
    public static void main(String args[]) {
         if (args.length == 0)
         prUsage();
         // Parse the arguments.
         int i = 0;
         int width = -1, height = -1, frameRate = 1;
         Vector inputFiles = new Vector();
         String outputURL = null;
         while (i < args.length) {
         if (args.equals("-w")) {
              i++;
              if (i >= args.length)
              prUsage();
              width = new Integer(args[i]).intValue();
         } else if (args[i].equals("-h")) {
              i++;
              if (i >= args.length)
              prUsage();
              height = new Integer(args[i]).intValue();
         } else if (args[i].equals("-f")) {
              i++;
              if (i >= args.length)
              prUsage();
              frameRate = new Integer(args[i]).intValue();
         } else if (args[i].equals("-o")) {
              i++;
              if (i >= args.length)
              prUsage();
              outputURL = args[i];
         } else {
              inputFiles.addElement(args[i]);
         i++;
         if (outputURL == null || inputFiles.size() == 0)
         prUsage();
         // Check for output file extension.
         if (!outputURL.endsWith(".mov") && !outputURL.endsWith(".MOV")) {
         System.err.println("The output file extension should end with a .mov extension");
         prUsage();
         if (width < 0 || height < 0) {
         System.err.println("Please specify the correct image size.");
         prUsage();
         // Check the frame rate.
         if (frameRate < 1)
         frameRate = 1;
         // Generate the output media locators.
         MediaLocator oml;
         if ((oml = createMediaLocator(outputURL)) == null) {
         System.err.println("Cannot build media locator from: " + outputURL);
         System.exit(0);
         JpegImagesToMovie3 imageToMovie3 = new JpegImagesToMovie3();
         imageToMovie3.doIt(width, height, frameRate, inputFiles, oml);
         System.exit(0);
    static void prUsage() {
         System.err.println("Usage: java JpegImagesToMovie -w <width> -h <height> -f <frame rate> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...");
         System.exit(-1);
    * Create a media locator from the given string.
    static MediaLocator createMediaLocator(String url) {
         MediaLocator ml;
         if (url.indexOf(":") > 0 && (ml = new MediaLocator(url)) != null)
         return ml;
         if (url.startsWith(File.separator)) {
         if ((ml = new MediaLocator("file:" + url)) != null)
              return ml;
         } else {
         String file = "file:" + System.getProperty("user.dir") + File.separator + url;
         if ((ml = new MediaLocator(file)) != null)
              return ml;
         return null;
    // Inner classes.
    * A DataSource to read from a list of JPEG image files and
    * turn that into a stream of JMF buffers.
    * The DataSource is not seekable or positionable.
    class ImageDataSource extends PullBufferDataSource {
         ImageSourceStream streams[];
         ImageDataSource(int width, int height, int frameRate, Vector images) {
         streams = new ImageSourceStream[1];
         streams[0] = new ImageSourceStream(width, height, frameRate, images);
         public void setLocator(MediaLocator source) {
         public MediaLocator getLocator() {
         return null;
         * Content type is of RAW since we are sending buffers of video
         * frames without a container format.
         public String getContentType() {
         return ContentDescriptor.RAW;
         public void connect() {
         public void disconnect() {
         public void start() {
         public void stop() {
         * Return the ImageSourceStreams.
         public PullBufferStream[] getStreams() {
         return streams;
         * We could have derived the duration from the number of
         * frames and frame rate. But for the purpose of this program,
         * it's not necessary.
         public Time getDuration() {
         return DURATION_UNKNOWN;
         public Object[] getControls() {
         return new Object[0];
         public Object getControl(String type) {
         return null;
    * The source stream to go along with ImageDataSource.
    class ImageSourceStream implements PullBufferStream {
         Vector images;
         int width, height;
         VideoFormat format;
         int nextImage = 0;     // index of the next image to be read.
         boolean ended = false;
         public ImageSourceStream(int width, int height, int frameRate, Vector images) {
         this.width = width;
         this.height = height;
         this.images = images;
         format = new VideoFormat(VideoFormat.JPEG,
                        new Dimension(width, height),
                        Format.NOT_SPECIFIED,
                        Format.byteArray,
                        (float)frameRate);
         * We should never need to block assuming data are read from files.
         public boolean willReadBlock() {
         return false;
         * This is called from the Processor to read a frame worth
         * of video data.
         public void read(Buffer buf) throws IOException {
         // Check if we've finished all the frames.
         if (nextImage >= images.size()) {
              // We are done. Set EndOfMedia.
              System.err.println("Done reading all images.");
              buf.setEOM(true);
              buf.setOffset(0);
              buf.setLength(0);
              ended = true;
              return;
         String imageFile = (String)images.elementAt(nextImage);
         nextImage++;
         System.err.println(" - reading image file: " + imageFile);
         // Open a random access file for the next image.
         RandomAccessFile raFile;
         raFile = new RandomAccessFile(imageFile, "r");
         byte data[] = null;
         // Check the input buffer type & size.
         if (buf.getData() instanceof byte[])
              data = (byte[])buf.getData();
         // Check to see the given buffer is big enough for the frame.
         if (data == null || data.length < raFile.length()) {
              data = new byte[(int)raFile.length()];
              buf.setData(data);
         // Read the entire JPEG image from the file.
         raFile.readFully(data, 0, (int)raFile.length());
         System.err.println(" read " + raFile.length() + " bytes.");
         buf.setOffset(0);
         buf.setLength((int)raFile.length());
         buf.setFormat(format);
         buf.setFlags(buf.getFlags() | buf.FLAG_KEY_FRAME);
         // Close the random access file.
         raFile.close();
         * Return the format of each video frame. That will be JPEG.
         public Format getFormat() {
         return format;
         public ContentDescriptor getContentDescriptor() {
         return new ContentDescriptor(ContentDescriptor.RAW);
         public long getContentLength() {
         return 0;
         public boolean endOfStream() {
         return ended;
         public Object[] getControls() {
         return new Object[0];
         public Object getControl(String type) {
         return null;
    on executing with the command:
    java JpegImagesToMovie -w <width> -h <height> -f <frame rate per sec.> -o <output URL> <input JPEG file 1> <input JPEG file 2> ...
    comes this......
    Exception in thread"JMF thread:SendEventQueue:com.sun.media.processor.unknown Handler" java.lang.NullPointerException"
    plz help

    Don't forget to use the "Code Formatting Tags",
    see http://forum.java.sun.com/help.jspa?sec=formatting,
    so the posted code retains its original formatting.

  • Facing the problem while executing the Servlet on Jserv Unix box

    Requirement : To Upload the CSV file from client machine to the database
    server's UTL file directory path and load the
    contents of the file in to table by using PLSQL procedure.
    Followed Process : 1> JSP page is used to take the CSV file as Input for
    transferring to the Database server's UTL file directory
    path.
    2> SERVLET is called by above mentioned JSP which
    transfers the input CSV file to the database server UTL
    path.
    It also called the PLSQL procedure which load the contents
    of the file in the table.
    File Transfer Method: Multi-part/Form-data
    Web-server : Apache-Jserv
    Operating System : Unix
    Problem     : After trying to upload the file from JSP, I am getting the INTERNAL SERVER ERROR.
    Note          : The above process has been tested successfully on TOMCAT5 server on Windows XP.
    After checking the error log file ..I am getting the follwing error
    02/06/2005 09:56:08:350] (ERROR) balance: continuing session to bbebapp.balfourbeatty.com : 16600
    [02/06/2005 09:56:19:391] (ERROR) balance: continuing session to bbebapp.balfourbeatty.com : 16600
    [02/06/2005 09:56:19:397] (ERROR) ajp12: Servlet Error: java.lang.NoSuchMethodError: null
    [02/06/2005 09:56:19:397] (ERROR) an error returned handling request via protocol "ajpv12"
    [02/06/2005 09:56:19:397] (ERROR) balance: 10204 internal servlet error in server bbebapp.balfourbeatty.com:16600
    [02/06/2005 09:56:19:397] (ERROR) an error returned handling request via protocol "balance"

    Hi Pavan,
    In the below WLST command please provide a "Space" between every comma ( , )...like following
    wls:/base_domain/serverConfig> reassociateSecurityStore(domain="base_domain", admin="cn=orcladmin", password="welcome1", ldapurl="ldap://<hoistname>:389", servertype="OID", jpsroot="cn=jpsroot_idm_idm1")
    like there is a Space before servertype="OID" same password="welcome1" there is a Space before password...
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

Maybe you are looking for