Decoding of an object ID

Hi all!
I have the following problem regarding the database table CDPOS in APO: For instance, if the "proposed strategy" of a product is changed in /sapapo/mat1 the database table CDPOS contains the respective change log. In this case the field "OBJECTID" of CDPOS is comprised of a planning version (3 digit), the product number (x digit) and the location number (x digit) without spaces between them (For instance, 001123456VDE50 where "001" represents the version, "123456V" represents the product and "DE50" represents the location). The lengths of product and location numbers might vary - now is there a descent way to decode this ID so as to obtain the material number and the location number separated from each other?
Many thanks in advance
Chris
Edited by: Christopher Lonzius on Nov 2, 2011 1:42 PM
Edited by: Christopher Lonzius on Nov 2, 2011 1:44 PM

Chris
Iam sure you would have figured out the answer by now - but just thought i would reply. Use the table key field (TABKEY) in CDPOS. It has spaces between product number and location number.  There are no spaces between the version and product number . But you can extract the version and product number and eliminate the first 3 characters to get the product number
Thanks
Aparna

Similar Messages

  • XML decoder on multiple objects in one file

    I am reading multiple (unknown amount) of objects from an XML file. This is my (working) code:
    FileInputStream fileIn = null;
              try {
                   fileIn = new FileInputStream(fileName);
              } catch (FileNotFoundException e) {
                   e.printStackTrace();
              XMLDecoder decoder = new XMLDecoder(fileIn);
              boolean stop = false;
              ArrayList<Object> list = new ArrayList<Object>();
              while(!stop){
                   try{
                        list.add(decoder.readObject());
                   }catch(ArrayIndexOutOfBoundsException e){
                        stop = true;
              return list;Is there any way to do this more elegantly (without generating the exception first)? How can I know how many objects to read from the file?

    Hi!, Philm_12: Welcome, to Forum !. This Forum, is exclusive, for HP devices.

  • Cross reference stream

    Hello!
    I'm in real trouble, and I think that the answer is very close to me, but I can't get it by myself...
    Here is my problem:
    I'm currently improving the PDF parser that I've made, adding support for cross reference streams. After a careful reading of the ISO 32000 specification (with PDF 1.7 in background), I've wrote a piece of code that decode the stream and build the corresponding objects (I use Java).
    But the decoded values are meaningless, and I don't understand why!
    The data are like that:
    filter predictor: 12
    encoding : Flate
    fields length : 1 2 1 (this is the W entry values)
    column size : 4
    I assume that there is one color per pixel formed by one byte.
    First, I 'deflate' the data, then 'unfilter' them. Both operations look ok as I've made test for the Flate encoding (ok), and the for the filter I've use it with PDFBox source (and my work unfiltered well what PDFBox filtered...).
    Note that I compared my outputs with those produced by PDFBox, and they are the same... Something may be wrong in the parameters I use, but I no idea now...
    I think I missed out something as I read incorrect data as entry type 18...
    I don't know where to go now, after a whole week of work!
    If any have an idea, I'd be grateful to hear it!

    This is ready algorithm to read PNG predictor styled Cross Reference Stream:
    1. You need to read from PDF three variables: /Columns 5/Predictor 12 and /W[1 3 1] and of course stream
    2. Deflate (encode) stream via zlib (without passing anything more than stream)
    3. Divide encoded stream to rows, but length of each rows must be one bigger than columns variable (in this case is 6) because first value is type xref row
    6. rows without first row go to UNprediction with this algorithm:
    def self.do_png_post_prediction(data, bpp, bpr)
            result = ""
            uprow = thisrow = "\0" * bpr # just zero fill (byte zero - not char zero)
            ncols = data.size / bpr
            ncols.times do |col|    # just for each rows
              line = data[col * bpr, bpr]
              predictor = 10 + line[0]
              for i in (bpp..bpr-1) # just for each values of row without first value
                up = uprow[i]
                left = thisrow[i-bpp]
                upleft = uprow[i-bpp]
                case predictor
                  when PNG_NONE
                    thisrow = line
                  when PNG_SUB
                    thisrow[i] = ((line[i] + left) & 0xFF).chr
                  when PNG_UP
                    thisrow[i] = ((line[i] + up) & 0xFF).chr
                  when PNG_AVERAGE
                    thisrow[i] = ((line[i] + ((left + up) / 2)) & 0xFF).chr
                  when PNG_PAETH
                    p = left + up - upleft
                    pa, pb, pc = (p - left).abs, (p - up).abs, (p - upleft).abs
                    thisrow[i] = ((line[i] +
                      case [ pa, pb, pc ].min
                        when pa then left
                        when pb then up
                        when pc then upleft
                      end
                    ) & 0xFF).chr    # AND 0xFF is very important, without this values growing extremely fast
                else
                  puts "Unknown PNG predictor : #{predictor}"
                  thisrow = line
                end
              end
              result << thisrow[bpp..-1]
              uprow = thisrow
            end
            result
          end
       7. Take bytes from UNpredicted rows, and in this case
       1st byte first byte is type
       2nd byte    
       3rd-5th - is this what You want - offset in decoded PDF to objects (Xref table): offset = 2^9*5th + 2^8*4th + 3rd

  • Can I create other visualization components using OLAPResult from the OLAPQuery on a OLAPCube?

    Hi,
    I have a OLAPCube/ schema defined. I am executing a OLAPQuery on the Cube. With the result from the query execution, I can create OLAP Data Grid. But I want to know if I can draw any chart from the same result. If yes, then please let me know the way we can do so.
    Thank you...

    /** Date:30-05-2012
                         * function decodes the OLAPResult object into arrayCollection and retruns
                         * the arrayCollection instance...
                        public static function decodeOLAPResult(result:OLAPResult):ArrayCollection
                                  var colAxis:ArrayCollection = result.getAxis(OLAPQuery.COLUMN_AXIS).positions as ArrayCollection;
                                  var columnLength:Number = colAxis.length;
                                  var rowAxis:ArrayCollection = result.getAxis(OLAPQuery.ROW_AXIS).positions as ArrayCollection;
                                  var rowLength:Number = rowAxis.length;
                                  var newChartData:ArrayCollection = new ArrayCollection();
                                  var dataObject:Object;
                                  for(var j:int = 0; j < rowLength; j++)
                                            var row:OLAPAxisPosition = rowAxis[j];
                                            var product:String = row.members.toArray().join(",");
                                            if (product.indexOf("(All)") > -1) continue;
                                            for (var i:int=0;i<columnLength;i++)
                                                      dataObject = new Object();
                                                      var tuple:OLAPAxisPosition = colAxis[i];
                                                      var period:String = tuple.members.toArray().join(",");
                                                      if (period.indexOf("(All)") > -1) continue;
                                                      for(var rowCount:int=0; rowCount < row.members.length; rowCount++)
                                                                var fieldName:String = String(getFieldName(row.members[rowCount]).toLocaleLowerCase());
                                                                dataObject[fieldName] = row.members[rowCount].name;
                                                      for(var colCount:int=0; colCount < tuple.members.length; colCount++)
                                                                var field:String = String(getFieldName(tuple.members[colCount]).toLocaleLowerCase());
                                                                dataObject[field] = tuple.members[colCount].name;
                                                      dataObject.revenue = result.getCell(j, i).value;
                                                      newChartData.addItem(dataObject);
                                                      //newChartData.push({dim1:dim1, dim2:dim2, dim3:dim3, dim4:dim4, revenue:result.getCell(j, i).value});
                                  return newChartData;

  • Can't get Preview to work in Xcelsius 2008

    My system crashes everytime I try to reun Preview in Xcelsius 2008.  I am running Windows XP and Office 2007.  I have installed all critical updates.  I have uninstalled and reinstalled Adobe Flashpoint.  When I hit Preview the system starts to generate the SWF and then I get the very polite message - Xcelsius.exe has encountered a problem and needs to close.  Meanwhile the SWF is still trying to generate.  When I "click here" to get more information I get:
    AppName:xcelsius.exe
    AppVer. 1.1.0.3
    ModName: msvcr80.dll
    ModVer: 8.0.50727.1433
    Offset:0008aa0
    If I hit debug my computer goes into never never land and I have to reboot.  If I hit close then Xcelsius closes but then  Excel connection does not.  I either get the message "Problem Assesing Excel:Exiting" or "Excel cannot complete this task with available resources".  If I go to the task manager and exit Excel manually then I can reopen Xcelsius but I still can't run it. 
    The technical details report for the above:
        <MATCHING_FILE NAME="AccordionExtDll.dll" SIZE="66288" CHECKSUM="0x77E64A2C" BIN_FILE_VERSION="1.0.0.1" BIN_PRODUCT_VERSION="1.0.0.1" PRODUCT_VERSION="1, 0, 0, 1" FILE_DESCRIPTION="AccordionExtDll DLL" PRODUCT_NAME="AccordionExtDll Dynamic Link Library" FILE_VERSION="1, 0, 0, 1" ORIGINAL_FILENAME="AccordionExtDll.DLL" INTERNAL_NAME="AccordionExtDll" LEGAL_COPYRIGHT="Copyright (C) 2006" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x107D5" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.1" UPTO_BIN_PRODUCT_VERSION="1.0.0.1" LINK_DATE="03/02/2008 00:34:45" UPTO_LINK_DATE="03/02/2008 00:34:45" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="BCGCBPRO910u80.dll" SIZE="3470072" CHECKSUM="0xB581EEB7" BIN_FILE_VERSION="9.10.0.0" BIN_PRODUCT_VERSION="9.10.0.0" PRODUCT_VERSION="9, 10, 0, 0" FILE_DESCRIPTION="BCGControlBar Professional DLL" COMPANY_NAME="BCGSoft Ltd" PRODUCT_NAME="BCGControlBar Professional Dynamic Link Library" FILE_VERSION="9, 10, 0, 0" ORIGINAL_FILENAME="BCGCBPro.DLL" INTERNAL_NAME="BCGCBPro" LEGAL_COPYRIGHT="Copyright (c) 2000-2006 BCGSoft Ltd. All rights reserved" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x35561A" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="9.10.0.0" UPTO_BIN_PRODUCT_VERSION="9.10.0.0" LINK_DATE="03/02/2008 00:11:12" UPTO_LINK_DATE="03/02/2008 00:11:12" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="icudt38.dll" SIZE="11195120" CHECKSUM="0xE71DAD4D" BIN_FILE_VERSION="3.8.0.0" BIN_PRODUCT_VERSION="3.8.0.0" PRODUCT_VERSION="3, 8, 0, 0" FILE_DESCRIPTION="ICU Data DLL" COMPANY_NAME="IBM Corporation and others" PRODUCT_NAME="International Components for Unicode" FILE_VERSION="3, 8, 0, 0" ORIGINAL_FILENAME="icudt38.dll" LEGAL_COPYRIGHT=" Copyright (C) 2007, International Business Machines Corporation and others. All Rights Reserved. " VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xABBCBD" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="3.8.0.0" UPTO_BIN_PRODUCT_VERSION="3.8.0.0" LINK_DATE="03/02/2008 00:16:54" UPTO_LINK_DATE="03/02/2008 00:16:54" VER_LANGUAGE="Language Neutral " />
        <MATCHING_FILE NAME="icuin38.dll" SIZE="914160" CHECKSUM="0x6C97590E" BIN_FILE_VERSION="3.8.0.0" BIN_PRODUCT_VERSION="3.8.0.0" PRODUCT_VERSION="3, 8, 0, 0" FILE_DESCRIPTION="IBM ICU I18N DLL" COMPANY_NAME="IBM Corporation and others" PRODUCT_NAME="International Components for Unicode" FILE_VERSION="3, 8, 0, 0" ORIGINAL_FILENAME="icuin38.dll" LEGAL_COPYRIGHT=" Copyright (C) 2007, International Business Machines Corporation and others. All Rights Reserved. " VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xEEF22" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="3.8.0.0" UPTO_BIN_PRODUCT_VERSION="3.8.0.0" LINK_DATE="03/02/2008 00:14:13" UPTO_LINK_DATE="03/02/2008 00:14:13" VER_LANGUAGE="Language Neutral " />
        <MATCHING_FILE NAME="icuuc38.dll" SIZE="922352" CHECKSUM="0xBDD34113" BIN_FILE_VERSION="3.8.0.0" BIN_PRODUCT_VERSION="3.8.0.0" PRODUCT_VERSION="3, 8, 0, 0" FILE_DESCRIPTION="IBM ICU Common DLL" COMPANY_NAME="IBM Corporation and others" PRODUCT_NAME="International Components for Unicode" FILE_VERSION="3, 8, 0, 0" ORIGINAL_FILENAME="icuuc38.dll" LEGAL_COPYRIGHT=" Copyright (C) 2007, International Business Machines Corporation and others. All Rights Reserved. " VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xEE322" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="3.8.0.0" UPTO_BIN_PRODUCT_VERSION="3.8.0.0" LINK_DATE="03/02/2008 00:12:48" UPTO_LINK_DATE="03/02/2008 00:12:48" VER_LANGUAGE="Language Neutral " />
        <MATCHING_FILE NAME="keydecoder.dll" SIZE="2499352" CHECKSUM="0x2D11A7B2" BIN_FILE_VERSION="12.0.0.3" BIN_PRODUCT_VERSION="12.0.0.3" PRODUCT_VERSION="12.0.0.3" FILE_DESCRIPTION="Business Objects keycode decoder" COMPANY_NAME="Business Objects" PRODUCT_NAME="Business Objects keycode decoder" FILE_VERSION="12.0.0.3" ORIGINAL_FILENAME="keydecoder.dll" LEGAL_COPYRIGHT="Copyright 1999-2008 Business Objects" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x27205A" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="12.0.0.3" UPTO_BIN_PRODUCT_VERSION="12.0.0.3" LINK_DATE="02/26/2008 23:38:39" UPTO_LINK_DATE="02/26/2008 23:38:39" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="TreeBtnExtDll.dll" SIZE="86768" CHECKSUM="0x1F4B3404" BIN_FILE_VERSION="1.0.0.1" BIN_PRODUCT_VERSION="1.0.0.1" PRODUCT_VERSION="1, 0, 0, 1" FILE_DESCRIPTION="TreeBtnExtDll DLL" PRODUCT_NAME="TreeBtnExtDll Dynamic Link Library" FILE_VERSION="1, 0, 0, 1" ORIGINAL_FILENAME="TreeBtnExtDll.DLL" INTERNAL_NAME="TreeBtnExtDll" LEGAL_COPYRIGHT="Copyright (C) 2006" VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x1C89C" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.0.0.1" UPTO_BIN_PRODUCT_VERSION="1.0.0.1" LINK_DATE="03/02/2008 00:34:47" UPTO_LINK_DATE="03/02/2008 00:34:47" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="Xcelsius.exe" SIZE="3052264" CHECKSUM="0x4EA35699" BIN_FILE_VERSION="1.1.0.3" BIN_PRODUCT_VERSION="5.0.0.99" PRODUCT_VERSION="5.0.0.99" FILE_DESCRIPTION="Xcelsius" COMPANY_NAME="Business Objects" PRODUCT_NAME="Xcelsius" FILE_VERSION="1.0.0.1" ORIGINAL_FILENAME="Xcelsius.exe" INTERNAL_NAME="Xcelsius.exe" LEGAL_COPYRIGHT="Business Objects.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x2EE5F4" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.1.0.3" UPTO_BIN_PRODUCT_VERSION="5.0.0.99" LINK_DATE="03/02/2008 00:41:58" UPTO_LINK_DATE="03/02/2008 00:41:58" VER_LANGUAGE="Language Neutral " />
        <MATCHING_FILE NAME="Xcelsius_en.dll" SIZE="353008" CHECKSUM="0x4D1B276" BIN_FILE_VERSION="1.1.0.3" BIN_PRODUCT_VERSION="5.0.0.99" PRODUCT_VERSION="5.0.0.99" FILE_DESCRIPTION="Xcelsius" COMPANY_NAME="Business Objects" PRODUCT_NAME="Xcelsius" FILE_VERSION="1.0.0.1" ORIGINAL_FILENAME="Xcelsius.exe" INTERNAL_NAME="Xcelsius.exe" LEGAL_COPYRIGHT="Business Objects.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x4" VERFILETYPE="0x1" MODULE_TYPE="WIN32" PE_CHECKSUM="0x580AC" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="1.1.0.3" UPTO_BIN_PRODUCT_VERSION="5.0.0.99" LINK_DATE="03/02/2008 00:42:05" UPTO_LINK_DATE="03/02/2008 00:42:05" VER_LANGUAGE="Language Neutral " />
        <MATCHING_FILE NAME="msvcr80.dll" SIZE="635904" CHECKSUM="0x47E3D63C" BIN_FILE_VERSION="8.0.50727.1433" BIN_PRODUCT_VERSION="8.0.50727.1433" PRODUCT_VERSION="8.00.50727.1433" FILE_DESCRIPTION="Microsoft® C Runtime Library" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Visual Studio® 2005" FILE_VERSION="8.00.50727.1433" ORIGINAL_FILENAME="MSVCR80.DLL" INTERNAL_NAME="MSVCR80.DLL" LEGAL_COPYRIGHT="© Microsoft Corporation.  All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0x9DFC9" LINKER_VERSION="0x0" UPTO_BIN_FILE_VERSION="8.0.50727.1433" UPTO_BIN_PRODUCT_VERSION="8.0.50727.1433" LINK_DATE="10/24/2007 03:02:06" UPTO_LINK_DATE="10/24/2007 03:02:06" VER_LANGUAGE="English (United States) " />
        <MATCHING_FILE NAME="kernel32.dll" SIZE="989696" CHECKSUM="0x7D737C09" BIN_FILE_VERSION="5.1.2600.5512" BIN_PRODUCT_VERSION="5.1.2600.5512" PRODUCT_VERSION="5.1.2600.5512" FILE_DESCRIPTION="Windows NT BASE API Client DLL" COMPANY_NAME="Microsoft Corporation" PRODUCT_NAME="Microsoft® Windows® Operating System" FILE_VERSION="5.1.2600.5512 (xpsp.080413-2111)" ORIGINAL_FILENAME="kernel32" INTERNAL_NAME="kernel32" LEGAL_COPYRIGHT="© Microsoft Corporation. All rights reserved." VERFILEDATEHI="0x0" VERFILEDATELO="0x0" VERFILEOS="0x40004" VERFILETYPE="0x2" MODULE_TYPE="WIN32" PE_CHECKSUM="0xF44A2" LINKER_VERSION="0x50001" UPTO_BIN_FILE_VERSION="5.1.2600.5512" UPTO_BIN_PRODUCT_VERSION="5.1.2600.5512" LINK_DATE="04/14/2008 00:11:24" UPTO_LINK_DATE="04/14/2008 00:11:24" VER_LANGUAGE="English (United States) " />
    </EXE>
    </DATABASE>

    Okay I've tried a couple of things since I posted this original question.  Starting with once again uninstalling and reinstalling Xcelsius and Flashpoint.  Based on your question I tried all the export options - it crashes everytime.  The problem must be in generating the SWF.  If I start with the blank page and blank excel it'll let me go to preview.  If I open one of your example files it'll work.  If I open any of the files I built in 4.5 it crashes.  If I just import in one of my excel files and leave the canvas blank it crashes.  Kind of suggests it's an excel problem or an interface problem.  I do notice it doesn't matter if I'm importing an 2003 .xls file, a 2007 compatible .xls file, or a 2007 .xlsx I get the same incompatibly box before it'll import.
    The spreadsheet I'm wokring off from works fine in 4.5 Professional
    Edited by: Maureen LaComb on Jul 24, 2008 10:56 PM

  • Byte array in JSON reply

    Hi guys,
    I'm exchanging some data between .net webservice and flex
    with JSON. This is a JSON reply:
    <string>
    {"uid":"23","photos":[[255,216,255,224,0,16,74,70,73,70,0,1,1,1,0,72,0,72,0,0,255,219,0,67 ,0,8,6,6,7,6,5,8,7,7,7,9,9,8,10,12,20
    </string>
    It is serialized this class:
    public class UserPhotoBytes
    public string uid;
    public ArrayList photos;
    public UserPhotoBytes()
    Where photos is THE ARRAY OF BYTE ARRAYS. Then in Flex I
    deserialize it with:
    public function
    onPhotoReceived(event:GetUserPhotoResultEvent):void
    var myImg:Image = new Image();
    var rawData:String = String(event.result);
    var userPhoto:Object = JSON.decode(rawData) as Object
    _user.photos = userPhoto.photos as Array;
    myImg.data = _user.photos[0] as ByteArray;
    But I think it cannot convert the string value of byte array
    of JSON object to real byte representation. Or am I missing
    something else ? Thank you very much for the response

    Hi,
    I am opening the file with wordpad.
    when opening the file the output i could see is:
    U
    wU
    w
    which is ASCII value I guess. Pls tell me if my guess is wrong & value is in binary format only.I am somewhat confused :O.
    As per the client requirement he should get the value in the file as binary format and not as ASCII.
    I hope i am not misleading you and hope that now you got what is my problem.
    Neha

  • OpenSSO ldap port has string value of "-1"

    I need some help here! While installing OpenSSO with the Default Configuration Option I get this error message:
    Error setting up Embedded Directory Server: An error occurred while trying to decode the managed object configuration entry cn=LDAP Connection Handler,cn=Connection Handlers,cn=config: The LDAP Connection Handler could not be decoded due to the following reason: The string value "-1" is not a valid value for the "listen-port" property, which must have the following syntax: 1 <= INTEGER <= 65535 (ServerManagementContext.java:786 ServerManagementContext.java:721 ServerManagementContext.java:466 ServerManagedObject.java:395 RootCfgDefn.java:2721 ConnectionHandlerConfigManager.java:298 DirectoryServer.java:3073 DirectoryServer.java:1416 EmbeddedUtils.java:89 EmbeddedOpenDS.java:246 EmbeddedOpenDS.java:179 AMSetupServlet.java:393 AMSetupServlet.java:272 DefaultSummary.java:100 NativeMethodAccessorImpl.java:-2 NativeMethodAccessorImpl.java:57 DelegatingMethodAccessorImpl.java:43 Method.java:616 ClickUtils.java:1393 ActionLink.java:498 ClickServlet.java:555 ...)
    My configuration is Apache Tomcat/6.0.16      1.6.0-b09      Sun Microsystems Inc.      Linux      2.6.25.9-76.fc9.i686      i386

    I was using the OpenSSO build 5 and tried with the build 4.5, but I'm getting a similar error.
    Also tried Glassfish rather than Tomat, and the Sun JRE 1.5.0.15 rather than the OpenJDK 1.6.0.
    OpenSSO built 4.5 with Glassfish and Sun JRE 1.5.0.15 (on Fedora 9 x86) still complains:
    Error setting up Embedded Directory Server: An error occurred while trying to decode the managed object configuration entry cn=LDAP Connection Handler,cn=Connection Handlers,cn=config: The LDAP Connection Handler could not be decoded due to the following reason: The string value "-1" is not a valid value for the "listen-port" property, which must have the following syntax: 1 <= INTEGER <= 65535 (ServerManagementContext.java:786 ServerManagementContext.java:721 ServerManagementContext.java:466 ServerManagedObject.java:395 RootCfgDefn.java:2721 ConnectionHandlerConfigManager.java:298 DirectoryServer.java:3073 DirectoryServer.java:1416 EmbeddedUtils.java:89 EmbeddedOpenDS.java:246 EmbeddedOpenDS.java:179 AMSetupServlet.java:393 AMSetupServlet.java:272 DefaultSummary.java:100 NativeMethodAccessorImpl.java:-2 NativeMethodAccessorImpl.java:57 DelegatingMethodAccessorImpl.java:43 Method.java:616 ClickUtils.java:1393 ActionLink.java:498 ClickServlet.java:555 ...)
    Any hints? Ideas?

  • Not enough bytes in image stream

    Hi
    I'm developing a program that reads/modifies/saves PDF files. I found a strange imagestream in the PDFReference Document:
    2385 0 obj
    <</Length 255/Filter /FlateDecode/Width 155/Height 76/BitsPerComponent 8/ColorSpace 36619 0 R/Type /XObject/Subtype /Image>>
    stream
    [Binary Data]
    endstream
    endobj
    36619 0 obj
    [/Indexed /DeviceCMYK 153 2378 0 R]
    endobj
    2378 0 obj
    <</Length 264/Filter/FlateDecode>>
    stream
    [Binary Data]
    endstream
    endobj
    The decoded stream of object 2385 is 5080 bytes long.
    The decodes stream of object 2378 is 616 bytes long.
    Strange:
    Height/Width*BitsPerComponent = 76*155*8 = 94240 bits = 11780 bytes!
    The length of the stream is only 5080 bytes long.
    Aren´t there to less bytes for the image?
    Or did i misunderstand something?
    PDF viewers can display this PDF correctly, so there must be something I dont know...
    What is the secret?
    Thanks for your help!

    I've found the error now. It was my FlateDecode algorythm which had a too small buffer for some streams, which had a very good compression rate. So they were cut. There aren´t much streams which such a compression rate, so I didn´t realize this a long time.
    Thanks anyway!
    Have a good day!

  • Serialization format

    Hi,
    does anyone know a good reference source for describing how java encodes objects? My problem is that i need to be able to write a program in Perl to decode a simple object created by Java. I can't use XML, i have to read the native serialization format. Tried searching in various places but yet to find something that actually describes the format.
    Thanks

    Thanks! dont know why i couldnt find that - exactly what i needed & i can now do what i need.
    I wonder if there are any open source projects designed to decode serialised objects into perl, probably not but if anyone knows otherwise......

  • Cant get 2013 data base AdminPassword= to work in OSD task sequence

    I'm using the MDT database to consolidate five windows 7 task sequences on five SCCM2007 site servers to one task sequence on one 2012 R2 site server. I got my locations by ip subnet working and most of the settings applied successfully, Join Domain, add 
    a group to the local  admin group, but I can't seem to get the AdminPassword=MyPassword to work.
    I've got an "apply windows settings" step in my task sequence. But the machine keeps getting what ever its password is set to.
    If I leave it bland then I get a blank password etc.. If I run without the "apply windows settings" step then then the task sequence fails and finishes with a mini setup prompting for a computer name. I can see the other values that are collected
    in the Bdd.log:
    Remapping variables.
    Property OSDDomainName is now = My.Domain
    <Message containing password has been suppressed>
    I even tried adding the default setting directly to the customsettings.ini file: AdminPassword=MyPassword. But the workstation still takes its password from the "apply windows step". I'm going to try and enable debug logging and see if the log
    has anything about the local admin password. Anyone have any ideas? What am I doing wrong here?
    [Settings]
    Priority=LSettings, LAdmins,
    [Default]
    OSInstall=Y
    SkipCapture=YES
    SkipAdminPassword=NO
    SkipProductKey=NO
    SkipComputerBackup=YES
     SkipBitLocker=YES

    I wrote\borrowed\modified a powershell script that gets the value of the base 64 encoded AdminPassword variable from the MDTDB, decodes it and applys it to the OSDLocalAdminPassword.
    This runs after the gather step in my OSD task sequence and before the Apply Windows Settings step.
    I never figured out why this was necessary but it works. Here is the power shell script if anyone has a similar problem:
     http://blogs.technet.com/b/mniehaus/archive/2009/09/22/running-powershell-scripts-as-part-of-a-task-sequence.aspx
     http://mylifeismymessage.net/base64-encodeddecode-functions-powershell/
    Function Base64Decode($textBase64In)
        $b  = [System.Convert]::FromBase64String($textBase64In)
        $decoded = [System.Text.Encoding]::UTF8.GetString($b)
        return $decoded
    $tsenv = New-Object -COMObject Microsoft.SMS.TSEnvironment
    $password = $tsenv.Value("AdminPassword")
    $base64out = Base64Decode($password)
    $tsenv.Value("OSDLocalAdminPassword") = $base64out

  • Problem parsing chinese, arabic characters

    My xml file contains the following lines.
    <localedata locale="ja">
    <title>¥¢¥¦¥È¥é¥¤¥ó</title>
    <description></description>
    </localedata>
    <localedata locale="zh">
    <title>´ó¸Ù</title>
    <description></description>
    </localedata>
    <localedata locale="zh_TW">
    <title>݆Àª</title>
    <description></description>
    </localedata>
    I am parsing the xml file and rewriting it to another file, following is the code for creating the Document class object
    public void intializeDocument(String file) throws Exception {
              InputSource is = new InputSource(new FileInputStream(file));
              is.setEncoding("UTF-8");
              doc = parserXML(is);
              mainNode = doc.getDocumentElement();
         public Document parserXML(InputSource file)
              throws SAXException, IOException, ParserConfigurationException {
              return DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(
                   file);
    But the output after doing some updates is as given below
    <localedata locale="ja">
    <title>??????</title>
    <description></description>
    </localedata>
    <localedata locale="zh">
    <title>??</title>
    <description></description>
    </localedata>
    <localedata locale="zh_TW">
    <title>??</title>
    <description></description>
    </localedata>
    Edited by: moiz134 on Jan 29, 2009 3:09 AM
    Please advice what should be done to resolve the issue.

    moiz134 wrote:
    Thank you for your reply, JoachimSauer. I have removed the setEncoding method but during output I set the encoding to UTF-8, which helps me to print the arabic, chinese characters It's still not necessary, if you use the XML API for writing your files.
    >
    TransformerFactory transfac = TransformerFactory.newInstance();
                   Transformer trans = transfac.newTransformer();
                   trans.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
                   trans.setOutputProperty(OutputKeys.INDENT, "yes");
                   StringWriter sw = new StringWriter();
                   StreamResult result = new StreamResult(sw);
                   DOMSource source = new DOMSource(p1.mainNode);
                   trans.transform(source, result);
                   String xmlString = sw.toString();Why would you write your XML to a String when you later want it in a file?
    That only costs memory and introduces another chance to get things wrong. Just use a StreamResult constructed from a File object.
    Is there a better way to identify the encoding type of the input xml file and pass it as parameter while outputting the file.There's no need to do that. Why would you want to?
    Edited by: moiz134 on Jan 29, 2009 6:11 AM
    My xml files first line is as given below
    <?xml version="1.0" encoding="UTF-8"?>
    I am using the below method to get the encoding type of the xml file but it always returns null as output, pleas advice
    InputSource is = new InputSource(new FileInputStream(file));
              System.out.println(is.getEncoding());I don't think that works. The encoding will only be checked when the parsers actually uses your InputSource and then it's only used internall.
    You don't need to know about the encoding, because the Parser will always give you correctly-decoded Java String objects (which have a defined encoding, which is unrelated to the encoding of the data in the original XML).
    My guess is still that you somehow use System.out.println() or a broken XML editor/viewer to verify the content of your XML.

  • JSON to XML

    HI,
    I prefer JSON for my PHP bidirectional flex communications,
    its fast and I don't need to install anything on the back end.
    I do all my post this way really fast and convenient.
    Anyway I have an array thats coming from a third party soap
    services, yes I know soap should be return as XML but this comes as
    a multi-dimensional array. I have no control over this as its third
    party. Any way I want to send this back to my swf file as JSON.
    Once in my flex app I want to decode the jason back to an
    array and then make into an XML suitable for the tree control. Is
    there any built in method for this.
    Thanks in advance
    Dean

    Hey, I am sure there are some methods because when you are
    using webservices the framework decodes and encodes objects to and
    from xml (with the help of the wsdl file), but I think it would be
    quite easier and much faster to write your own
    object-to-xml-decoder.
    cheers

  • Transcoding AMF

    It is my desire to transmit some data encoded in Action
    Message Format (AMF3) over a socket to and from Flash. I need to
    know two things:
    1) How to read AMF3 data off a Flash Socket object. I'm
    assuming it will come through as an array of bytes and that array
    of bytes must be decoded into actual Actionscript
    Strings/Arrays/Objects or whatever.
    2) How to turn Actionscript vars into AMF encoded binary
    strings.
    Surely there is some built-in flash object which can do this?
    AMFPHP encodes data into AMF for transmission and its Actionscript
    client code looks like the attached example.
    That code appears to be AS2 and relies on the remoting and
    rpc classes
    The other example is from Zend_Amf (a framework) that also
    uses AMF and they offer some AS3 code that uses NetConnection and
    Responder objects.
    It would appear that these built-in flash primitives are
    built for Remote Procedure Calls and expect return values to be
    communicated. I don't see any actual transcoding of objects
    from/into AMF which is what I really want. Any help would be much
    appreciated.

    Responses to amf calls get decoded into native objects
    automatically. AMFPHP has as3/amf3 suport as well in recent
    versions.
    But you can also do your own encoding in actionscript.
    Check out the ByteArray class.
    You can set the amf encoding version and use writeObject() to
    encode.
    Encoding is either amf0 (as1 and as2) or amf3 (as3) version

  • Error:"non-MTOM endpoint received a MTOM message"

    Hello,
    Appreciate someone could show right points toward below issue:
    Enviornment: Oracle Weblogic Server /portal10.3.0
    1) We are using Invoking a webservice which is sending some binary content in SOAP 1.2 MTOM
    2) On the basis of published wsdl , I built a own Weblogic ServiceControl (com.bea.controls.ServiceControl) class ...
    3) I could print the response from the web service but when the actual message is decoded to response object...i thinks it's failing...
    weblogic.wsee.codec.CodecException: non-MTOM endpoint received a MTOM message"
    at weblogic.wsee.codec.soap11.SoapCodec.decode (SoapCodec.java:170)
    at weblogic.wsee.ws.dispatch.client.CodecHandler.decodeOutput(CodecHandler.java:127)
    Regards

    Can you test back-end MTOM end point through a route node and see if its working? I doubt the issue has nothing to do with SC but with the MTOM end-point implementation.
    non-MTOM endpoint received a MTOM message") error: hints that the service call out is sending a mtom message but the end-point is not accepting the message
    Manoj
    Edited by: mneelapu on Jun 8, 2009 11:25 AM

  • No audio output on a mpg file

    Hi all,
    i recorded a TV show from a isdb-t signal using a usb stick. The stick comes with a windows software called Blaze DTV 6.0 to scan the digital channels, and to record the shows you are watching.
    The recorded file has an .mpg extension. It plays correctly from inside the software, but so far i couldn't play it anywhere else properly. It shows the video properly, but i can't hear any audio.
    Here's the media info for the file:
    General
    Complete name : /Users/Rodoncho/Desktop/2013-1-24-22-35-25.mpg
    Format : MPEG-PS
    File size : 223 MiB
    Duration : 6mn 28s
    Overall bit rate mode : Variable
    Overall bit rate : 4 827 Kbps
    Video
    ID : 224 (0xE0)
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : [email protected]
    Format settings, CABAC : Yes
    Format settings, ReFrames : 2 frames
    Duration : 6mn 28s
    Bit rate mode : Variable
    Maximum bit rate : 12.0 Mbps
    Width : 720 pixels
    Height : 576 pixels
    Display aspect ratio : 4:3
    Frame rate : 25.000 fps
    Standard : PAL
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : MBAFF
    Color primaries : BT.601 PAL
    Transfer characteristics : BT.470 System B, BT.470 System G
    Matrix coefficients : BT.601
    Audio
    ID : 192 (0xC0)
    Format : AAC
    Format/Info : Advanced Audio Codec
    Format profile : LC
    Muxing mode : LATM
    Duration : 6mn 28s
    Bit rate mode : Variable
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Compression mode : Lossy
    Does anyone has any idea as to how can i play this file properly on my mac? I'm running out of ideas here...
    Thanks.

    Unfortunately... The media app which recorded the file is the only one who is playing the audio correctly... And does not have an option to convert or export to another format. Even all other media apps on windows are unable to play the audio properly, so I'm lost here. I can't believe there isn't an app capable of decode this.
    Object here is to avoid conversion by export but rather to save the audio and video data in its current compressed state to a file type that is compatible with the encoded data if at all possible. I would normally try the VLC player to see it could play the file. If you have already tried that and it didn't work, then I would be reduced to simple trial and error tests. Assuming none worked as you indicate, I would probably move on to conversion apps like HandBrake or FFmpegX/FFmpeg depending on your operating system. Other than that, I am out of ideas.

Maybe you are looking for