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.

Similar Messages

  • 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.

  • Error while executing the code as sys user

    Hi,
    Below is the code that creates a procedure. Though the proc gets created successfully, while trying to execute it, I get the below error
    ORA-01031: insufficient privileges
    ORA-06512: at "SYS.DBMS_SESSION", line 101
    ORA-06512: at "SYS.MY_TEST_PROC", line 20
    ORA-06512: at line 1
    The proc is created by sys and executed by sys too
    create or replace procedure my_test_proc as
    TYPE CUR1 IS REF CURSOR;
    CURSOR c1 is
    select ename from SCOTT.emp where rownum <2;
    v_name varchar2(30);
    MY_CUR CUR1;
    STRQRY VARCHAR2(2000);
    L_PARAM DBMS_SQL.VARCHAR2S;
    CNT NUMBER;
    V_DATA SCOTT.EMP%ROWTYPE;
    BEGIN
    STRQRY := 'SELECT * FROM SCOTT.EMP WHERE 1 =1 and (( 1= 1) ';
    CNT := 0;
    open c1;
    loop
    fetch c1 into v_name;
    exit when c1%notfound;
    CNT := CNT + 1;
    dbms_session.set_context('MY_CTX','ENAME_' || CNT, V_NAME);
    STRQRY := STRQRY || ' OR (ENAME = SYS_CONTEXT(''MY_CTX'',''ENAME_1'')';
    end loop;
    DBMS_OUTPUT.PUT_LINE(STRQRY || ')');
    CLOSE C1;
    END my_test_proc;
    ============================================================
    EXEC my_test_proc;
    Please help.

    >
    STRQRY := 'SELECT * FROM SCOTT.EMP WHERE 1 =1 and (( 1= 1) ';
    >
    The above query won't work because there is a syntax error.
    Count the numbers of left and right parentheses.
    Edit your post and use code tags and tell us which is line #20.
    My guess is that it is this line
    dbms_session.set_context('MY_CTX','ENAME_' || CNT, V_NAME); You don't show any code for the CONTEXT procedure. DBMS_SESSION.SET_CONTEXT in the PL/SQL Packages and Types doc
    See http://docs.oracle.com/cd/B28359_01/appdev.111/b28419/d_sessio.htm#i1010942
    >
    The caller of SET_CONTEXT must be in the calling stack of a procedure that has been associated to the context namespace through a CREATE CONTEXT statement. The checking of the calling stack does not cross a DBMS boundary.

  • Problem While Executing T.CODE DP90

    Hi,
      We have Upgrade our system from 4.6C to ECC6.
      We are facing following problem while executing Resource Related Billing request 
      Through Transaction code DP90.
    Process.
    1.     We are creating Sales Order and system will create Service order automatically as per the configuration.
    2.     In service order we have External as well internal operations ,
    Internal operations will be confirmed through IW41, and External Operations we are creating Purchase Requisition then creating PO and MIRO,
    After all Operations confirmed we will make Service order status as technically completed, then we are executing DP90 for Resource Related Billing, System will determine the material, combination of Cost element and Activity Type (Which is configured in T.Code ODP1) For External Operations System is Considering Activity Type for material determination in 4.6c but it is not considering Activity Type for Material Determination in ECC6 for External Operations.
       Please Help me,
    Edited by: D B on Apr 29, 2008 6:13 PM

    Hi Prashanth,
          Thanks for your reply, but all activity are valid in current period, in our Scenario in the old system for External Operations with combination of Activity type and Cost element system is determining material but where as in the new system for external operations it is not considering the Activity type and system is determining the material in the combination of   Cost element and Blank activity type so, we are getting different material in DP90.

  • 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

  • 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 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

  • 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)

  • Error while running the code using jvm but its working fine with eclipse3.0

    Hi Everyone,
    I have a problem while building xml document.
    I have developed my java files using IBM Eclipse 3.0 and i had no problem while executing the files.
    But while i am trying to execute the same code in jdk/bin, xml document is not working..
    No error encountered while compiling but while executing when i try to print the xml string it just gives the root element name like [root : null]
    Can anyone suggest some solution?Its urgent please....

    since i didnt get any reply when i posted it at http://forum.java.sun.com/thread.jspa?threadID=723865
    i have posted my pbm in the forum.
    Anyways i never got a reply back for neither of my posts.

  • Problems while saving the tax values in a Draft Document to AP Invoice

    Hi All
    I have an interface .net where I use a DIAPI to enter values in B1 2007 B (8.60.039) PL 15.
    I have the following cases:
    First case
    - I create a document type oPurchaseInvoices, where I set the tax values for IRPF, INSS, ISSQN (Brazil).
      When i execute the code that inserts this A/P Invoice in SAP, it works perfectly, including by setting the values of the taxes correctly.
    Second case
    - I create a document type oDrafts, and say that this draft is the type oPurchaseInvoices.
      After that I follow the same steps to launch a note entry, laying the tax values(IRPF, INSS, ISSQN) and everything else.
      When i execute the code that inserts this values in the draft, the tax values are not entered and that everything else works perfectly. 
    You can tell me whether the taxes really are not inserted when I issue a draft or I'm leaving to score some parameter.
    I am in the look of your response
    Regards
    Luis Felipe

    Hi Gordon.
    You can see below the part of the code to add the Draft Document.
    oAPInvoice = oCompany.SapCommand.GetBusinessObject(BoObjectTypes.oDrafts)
    oAPInvoice.DocObjectCode = BoObjectTypes.oPurchaseInvoices
    With oAPInvoice
        .Lines.TaxLiable = BoYesNoEnum.tYES
        .Lines.ItemCode = Itemcode
        .Lines.Quantity = Quantity
        .Lines.UnitPrice = Unitprice
        .Lines.TaxCode = Taxcode
        .Lines.WTLiable = BoYesNoEnum.tNO
        .Lines.Usage = "Consumo"
        If oDTO.IRRF > 0 Or oDTO.INSS > 0 Or oDTO.ISSQN > 0 Then
            If oDTO.WtLiable = "Y" Then .Lines.WTLiable = BoYesNoEnum.tYES
            Add tax values
            For i As Int16 = 1 To 3
                vlrImposto = 0
                addTax = False
                If IRRF > 0 And Not addIR Then
                    codImposto = CodeIRRF   (tax code)
                    vlrImposto = IRRF             (tax value)
                    addIR = True
                    addTax = True
                ElseIf INSS > 0 And Not addINSS Then
                    codImposto = "F501"  (tax code)
                    vlrImposto = INSS       (tax value)
                    addINSS = True
                    addTax = True
                ElseIf ISSQN > 0 And Not addISSQN Then
                    codImposto = CodeISSQN  (tax code)
                    vlrImposto = ISSQN            (tax value)
                    addISSQN = True
                    addTax = True
                End If
                If addTax Then
                    (If include more one tax then add line)
                    If i > 1 And vlrImposto > 0 Then .Lines.WithholdingTaxLines.Add()
                    .Lines.WithholdingTaxLines.WTCode = codImposto                     (tax code)
                    .Lines.WithholdingTaxLines.TaxableAmount = Unitprice              (base value calculation)
                    .Lines.WithholdingTaxLines.WTAmount = vlrImposto                   (tax value)
                End If
            Next
        End If
        .CardCode = Cardcode
        .CardName = Cardname
        .HandWritten = BoYesNoEnum.tNO
        .DocDueDate = DueDate
        .DocDate = DocDate
        .TaxDate = TaxDate
        .SequenceCode = -2      '-1=Manual  -2=External
        .SeriesString = "RCB"
        .SequenceModel = 37
        lRetCode = .Add()
    End With
    Regards
    Luis Felipe

  • Database Alert Macros issue while executing the macros in Background

    Hi All,
    I am facing some problems while executing the Database alert macros in Background/Process Chain.
    There are two macros for which the problem exists.
    1.Excess Projected Inventory above Max
    The logic here is, the alert should work for Only Fixed Lot size Procedure.
    If the Stock on hand (projected EA) > (Safety Stock (EA) + Full SOQ (EA)) then alert = "Projected inventory is XX% above MAX".
    XX is the Percent above Max. 
    Note: SOQ => fixed lot size.
    2.Excess Actual Days of Supply
    The Logic here is, the alert should work for all Lot size Procedures except for "Fixed lot size".
    Actual Days Supply >=180 days. (current -> future buckets)
    -  For every receipt cell check the Actual Days Supply - if >= 180 days.
    The macros are working perfectly as expected.

    Hi Abhi,
    Hope you are doing good.
    Yes exactly, the macros are working in foreground/Interactively but not in the Background via Process chain. Let me send the details again.
    Issue :
    I am facing some problems while executing the Database alert macros in Background/Process Chain.
    There are two macros for which the problem exists.
    1.Excess Projected Inventory above Max
    The logic here is, the alert should work for Only Fixed Lot size Procedure. But in Background the alerts are getting created for Lot for Lot and other Planning procedures..
    If the Stock on hand (projected EA) > (Safety Stock (EA) + Full SOQ (EA)) then alert = "Projected inventory is XX% above MAX".
    XX is the Percent above Max. 
    Note: SOQ => fixed lot size.
    2.Excess Actual Days of Supply
    The Logic here is, the alert should work for all Lot size Procedures except for "Fixed lot size". But in Background the alerts are getting created for the Fixed Lot size procedures too..
    Actual Days Supply >=180 days. (current -> future buckets)
    -  For every receipt cell check the Actual Days Supply - if >= 180 days.
    The macros are working perfectly as expected in Foreground/Interactively but the samething is not happening while executing the macro in Background/Process Chain.
    I have tried running these macros in different sequences(Default/Start/Macro) but couldn't able to resolve the issue.
    Thanks in Advance,
    Jay.

  • Not calling the event S-O-S while executing the program using T-Code

    Hi All,
    I've a strange problem here in my Quality environment.
    Well,
    The issue is when a program is getting executed from SA38/SE38, its working perfectly as expected. Whereas while calling the same program using the T-Code attached to that then the program is not getting executed.
    While looking at the code through debugger, the start of selection event is getting triggered while executing the program through SA38/SE38 where as the S-O-S event is not getting triggered if its through the T-Code. And this is happening ONLY with Quality environment.(In Dev and in Prod its working perfectly either through T-Code or thru SA38).
    I tried activating all the objects again for that program(Including the T-Code) through SE80, Still no luck.
    Please thow some light on it to eradicate this error in Quality Env.
    Thanks for all your help.
    Regards,
    -Shankar.

    Hi Shankar,
    please check the transaction definition and make sure you defined a [report transaction|http://help.sap.com/saphelp_nw73/helpdata/en/43/132f9803d76f40e10000000a422035/frameset.htm]
    If you noticed a difference between Quality, Dev and and Prod environment, probably the transaction definition or the program is not the same.
    Check version history for all objects involved.
    Regards,
    Clemens

  • While executing the t-code OMT3R getting error

    Hi,
       I am a basis consultant, one of my user getting the following error.
    while executing the t-code OMT3R, he is getting the error "Do not make any changes (SAP entry)" (Message no. SV117).
    His system configuration is :
    SAP ECC6.0
    SAP_ABA              700                     0011     SAPKA70011
    SAP_BASIS      700        0011     SAPKB70011     
    ST-PI     2005_1_700     0002     SAPKITLQI2     
    PI_BASIS     2005_1_700     0011     SAPKIPYJ7B
    SAP_BW     700     0012     SAPKW70012
    SAP_AP     700     0008     SAPKNA7008     
    LCAPPS     2005_700     0001     SAPKIBHD01     
    (LCAPPS) 2005_700
    SAP_APPL     600     0008     SAPKH60008     
    can anybody tell me the cause of the problem. please give me a solution to the issue.
    Thanks
    Madhuri.

    Dear All,
    The Issue has resoloved  for Referec look in to the SAP_Note- SAP Note 162991
    Thanks a lot for your great support on this issue.

  • Error while executing the payroll through transaction code PC00_M40_CALC

    Dear Sir/ Madam,
    While executing the payroll through the transaction code PC00_M40_CALC , i am getting the error as mentioned below :
    "Division by zero not performed "
    Calculation rule X0133****5            RTE = ISDIVP DIVID ARR ZERO=A   ADD
    I am not able to resolve this error. So request to guide me on this.
    Thanks & regards,
    vijaya.s.c.
    Moderator message: wrong forum, please have a look in the (I guess) ERP HCM forums.
    Edited by: Thomas Zloch on Jan 24, 2012

    Hi,
    Maintain have you changed any x013 rule?
    If not, just maintain attendance/time events then process the payroll.

Maybe you are looking for

  • Open a file within a class and be able to access it?

    hi, would like to reduce the code sitting in my main within a class. My problem is not full understanding how i can do this! I've been thinking along the lines of declaring the fileinputstream & Bufferstream variables as Private class variables and h

  • Putting a speaker nexto to the cinema display

    Hi, I have a 27" thunderbolt apple cinema display which is hooked up with my macbook pro; I also have a wireless speaker which is always on my dek next to the display and I use it whe music; so I want to know if magnets in the speaker can damage the

  • What's new app keep showing "updated"

    Hi support team, Whenever I press the "Refresh " button of Software Update function, there's always prompt "What's new updated " message even I already uploaded the app. Tried to clear its cache and force stop and reinstall the app but still the same

  • Is this tiling possible?

    Please take a look at this mock-up. Is is a screen shot of the CS canvas and I pasted 4 pictures into it. The pictures are 10in x 8in at 240 DPI- Arange Tile produces scrollbars which is unacceptable for my purpose which is: Event Photography. I want

  • SQLPlus.exe - returns error when "cl scr" issued

    Hi, I have installed Oracle 10g (Rel 2) on Windows XP OS (Service Pack 2). Though there were no installation issues, whenever i invoke sqlplus.exe and issue the "cl scr" statement, a system error is raised and the application is aborted. Is this an O