Issue using JSON.stringify on object

I have the following code, which attempts to stringify the member1 object
try {
    var member1:Object = {
      mediaId: meterEvent.mediaId,
      publisherId: meterEvent.publisherId
   var val:String = JSON.stringify(member1);
} catch (err:Error) {
/// exception is called
but this throws an exception " ReferenceError: Error #1065". I have trying to get this going for several hours but cannot seem to find a solution. I am using Falsh Builder 4.7 and the Air SDK 3.4 to compile and build the swf. I suspect that maybe the issue is that the flash player where the code is running on maybe not be compatible. The version of the Flash Player is 12,0,0,70
Any idea of where to go from here. The larger context is that i am using URLRequest and URLLoader to formulate a HTTP POST with a JSON body
cheers
</jima>

Hi,
documentation on the Scripting API is available at ftp://ftp.sap.com/pub/sapgui/win/640/scripting/docs/
This API is a replacement of the existing, obsolete COM interfaces.
Best regards,
Christian

Similar Messages

  • Paging issues using a dynamic view object...

    I am working on an application that uses JAG to generate JSP pages, i had the requirement to use dynamic view objects where the view object query is generated at runtime. The rest of the application is more or less the same... I used the defult functionality provided by TableScrollButtons.jsp file for paging. Now the problem im facing is that while the '>' and '<' buttons are working fine, i cant seem to navigate to the pages using the drop down...
    With the default handler, whenever i select the range the range displayed remains the same ie 1-10, 10 being the rangesize, but the rows are refreshed with values from the next page. Also, if the next page is the last and is incomplete, then the rows are pushed in from the bottom, so that the last page is always full...I tried the tuning panel in the view object edit dialogue and all settings are fine (i think)...could anyone please tell me what i am doing wrong??

    could it be because i am using a dynamic view object with dynamic bindings? i am using the preparemodel() method in the action as follows...
    protected void prepareModel(DataActionContext ctx) throws Exception {
    inferRangeBindingIfUnset(ctx);
    ctx.getBindingContainer().setEnableTokenValidation(false);
    String sql = ctx.getHttpServletRequest().getParameter("sql");
    String cost=ctx.getHttpServletRequest().getParameter("CostCostCent");
    String event=ctx.getHttpServletRequest().getParameter("event");
    if (sql != null && event == null) {
    setupDynamicQueryAndDynamicBindings(ctx,sql.substring(1),cost);
    if (retrieveOnlyCurrentPageFromDatabase()) {
    ViewObject vo = getIterForPaging(ctx).getViewObject();
    if (vo.getAccessMode() != ViewObject.RANGE_PAGING) {
    vo.setAccessMode(ViewObject.RANGE_PAGING);
    // if(event==null)
    super.prepareModel(ctx);
    ctx.getBindingContainer().setEnableTokenValidation(true);
    if (ctx.getEvents() == null || ctx.getEvents().size() ==0) {
    setPage(ctx,1);
    setLastPage(ctx,getIterForPaging(ctx).getRowSetIterator().getEstimatedRangePageCount());
    else if(event.equals("setRangeStart")) {
    setPageFromRequest(ctx);
    }

  • When I try to open an embedded PDF file I get an error "The program used to create this object is AcroExch.exe.

    When I try to open an embedded PDF file (Word doc) I get an error "The program used to create this object is AcroExch.exe. That program is either not installed on your computer, or is corrupt..."  I've tried  about everything from unchecking
    protected mode at startup to removing & reinstalling Adobe.  Nothing seems to fix this issue.  Any other ideas?
    This is happening on Adobe reader 9, 10 & 11 with MS Word 2010 & 2013.  I've uninstalled, cleaned & reinstalled Reader 9, 10 & 11, as well as Acrobat 10 Pro & 11 Standard.  Removed "Protected mode at startup, and changed
    the default program for viewing from reader to Acrobat.  This will not go away.  It is affecting production at our company.

    " Help > Troubleshooting Information > Profile Directory: Open Containing Folder" . i can't find open containing folder in profile directory. it does give me the option to open the places.sqlite file using graphic converter. when i try that, graphic converter gives me a window saying that it can't be opened because it is corrupted or is not a file type supported by graphic converter.
    i appreciate your help with a workaround to get the old bookmarks. that works. however, the problem has morphed from that concern to why adobe reader [the default app.] won't open firefox .sqlite files. is the problem in adobe reader or firefox? also, how can i tell if the places.sqlite file is corrupt?
    i'm getting in over my head here and do appreciate your help.

  • I have an issue using Lighting Effects in Adobe Photoshop CC 2014

    Hello everyone,
    I am having issues using Lighting Effects in Adobe Photoshop CC 2014. I created a duplicate layer that I want to do the effects on, converted it to a smart object and on that same layer went to Filter>Render>Lighting Effects  to get to the Lighting Effects screen. When adjusting the parameters (drag/reshape the lights) for either the spotlight or point light, I don't see any changes. Can someone tell me what could be the issue or if I'm doing the steps wrong to apply the effects?
    Here are my specs:
    Operating System: Windows 7 Home Premium 64-bit (6.1, Build 7601) Service Pack 1 (7601.win7sp1_gdr.140303-2144)
    Processor: Intel(R) Core(TM) i7-2600S CPU @ 2.80GHz (8 CPUs), ~2.8GHz
    Memory: 8192MB RAM
    Available OS Memory: 8174MB RAM
    Card name: AMD Radeon HD 6570   
    Manufacturer: ATI Technologies Inc.
    Display Memory: 743 MB
    Dedicated Memory: 1008 MB
    Shared Memory: 3831 MB 

    I am experiencing flickering issues as well. However my issues are with the Fast Color Corrector and the Three Way Color Corrector. It seems as if the color correction tools are causing intermittent flickering on some people's systems.
    Additionally when I converted some old PPCC 7.2.2 projects which had the Three Way Color Corrector applied, some clips in sequences would come up as a green screen in the program monitor. If I turned the TWCC off the footage would display correctly in the program window. If I turn the TWCC back on it would display the green screen again.
    I haven't found a solution to the flickering but to solve the green screen issue I have to remove the effect, then re apply it. I guess for whatever reason, the 2014 version of PP has issues with 7.2.2 projects where the TWCC was applied.
    I'm hoping Adobe will address this soon with an update for the various bugs that have been reported.
    PPCC 2014 8.0.1
    Win 7 Pro

  • An issue using the COM components supplied with SAP GUI 6.2 or 6.4

    We are having an issue using the COM components supplied with SAP GUI 6.2 or 6.4.  We used to have SAP 4.6c and now we have 5.0.  When we were on 4.6c, we used these COM components to logon and execute RFC calls and we had much success.  Now that we are on 5.0, we can’t seem to instance any SAP functions that have something to do with SAP Workflow.  We have experienced this problem when using VB6 or .NET, but our existing code that always worked is in VB 6.0.
    SAP Components used:
    o     SAP Logon Control
    o     SAP Function Control
    o     Librfc32.dll
    o     Other supporting C DLLs and/or COM object supplied with the SAP GUI installation.
    For example, if we want to call the RFC ARCHIV_CONNECTION_INSERT, this code fails in VB6 when the “Set objworkflow = objFuncCtrl.Add(strFunction)” line of code executes.  Instead of returning an instance of the object ARCHIV_CONNECTION_INSERT function, no object is created.  In 6.2, SAP raises no errors, but the object we are trying to create is still “Nothing”.  If we use 6.4, SAP raises an error “SAP data type not supported” via a message box and then the object is still = Nothing.  Interestingly enough, the 6.2 GUI COM controls don’t display the error dialog.  The message box that is shown comes from the SAP Function COM Object "SAP.Functions" (wdtfuncs.ocx).
    Now, what is interesting is if we use the same code to call a standard function or custom function that doesn’t have anything to do with SAP Workflow, then the code works fine.  Again, all of our code used to work just fine on an SAP 4.6 system.
    Here is the code that fails:
        'SAP Logon control - object for creating connections to an SAP system
        Dim objSAPLogonCtrl As Object
        'SAP connection object
        Dim objConnection As Object
        'Object that will represent the SAP function called
        Dim objSAP As Object
        'SAP function control object - object factory for creating other SAP function objects
        Dim objFuncCtrl As Object
        'Create instance of an SAP logon conrol
        Set objSAPLogonCtrl = CreateObject("SAP.Logoncontrol.1")
        'Create a connection object
        Set objConnection = objSAPLogonCtrl.NewConnection
        'Define connecion parameters
        objConnection.ApplicationServer = "sapvm"
        objConnection.SystemNumber = "00"
        objConnection.Client = "800"
        objConnection.User = "iissap"
        objConnection.Password = "tstadm"
        objConnection.Language = "E"
        objConnection.TraceLevel = 10
        'call the logon method of the connection object
        If objConnection.Logon(0, True) = False Then
            MsgBox Error
            Exit Sub
        End If
        'Create an instance of the SAP Function control object
        Set objFuncCtrl = CreateObject("SAP.Functions")
        'Set the function control connection object
        Set objFuncCtrl.Connection = objConnection
        'Function name to be generated and called
        Dim strFunction As String
        strFunction = <b>"ARCHIV_PROCESS_RFCINPUT"</b>
        'Create an instance of the function defined in strFunction
        Set objworkflow = objFuncCtrl.Add(strFunction)
        If objworkflow Is Nothing Then
            MsgBox "Could not create object " & strFunction
        Else
            MsgBox strFunction & " object created."
        End If
    If anyone has seen anything like this or has any ideas, please help!
    Mike and Hameed
    <b></b>

    Hi,
    documentation on the Scripting API is available at ftp://ftp.sap.com/pub/sapgui/win/640/scripting/docs/
    This API is a replacement of the existing, obsolete COM interfaces.
    Best regards,
    Christian

  • Help with Video Performance Issues using Flash

    Asking on behalf of a customer who has been unable to get any answers so far - are you able to help?
    Background:
    We have a port of our Game Development Kit which allows us to recompile all our games using Crossbridge (http://adobe-flash.github.io/crossbridge/) into SWF without any code modifications.
    Overview:
    Our framework is using OpenGL for rendering and we have successfully ported it along with the audio and video to run in Flash.
    We are experiencing performance issues using Video. We cannot use image sequence as some of the video animations are too long and would increase the download to an unacceptable size.  Assets vary between 256x256 - 1024x1024 videos.

    Here's the rest of the story.  Let me know if you can see any resolution, and I will connect him to the forums.  Thank you.
    Current Video Solution:
    We create an instance of NetConnection, NetStream, and Video according to most samples out there, and invoke draw to rasterize the Video DisplayObject into a BitmapData instance.
    The BitmapData instance has a fixed color component layout which is not compatible with Stage3D texture and is therefore has to be reformatted before uploaded to Stage3D Texture (See Code Listing below).
    Our Problems:
    Performance issues with RGBA conversion (either using copyChannel or manually reformatting is not fast enough) natively in as3; this required for stage3d texture.Copying each channel individual using bitmapdata.Copychannel seems faster, but not significantly faster.
    Cannot detect when video frame has been updated, therefore we may copy pixels that are not needed in enterframe (processpixel).
    Looping video, our current solution uses the NET_STATUS event Buffer empty; Is there a better way to loop videos than checking buffer and seeking to 0.
    Stepping video, loading FLV or MP4 side by side assets from HTTP or embedded does not support stepping? Is there another way?
    ActionScript Code Listing:
    video_nc = new NetConnection();
    video_nc.addEventListener(NetStatusEvent.NET_STATUS , onConnect);
    video_nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR , trace);
    video_nc.connect(null);
    // OnConnect Event:
    this.ns = new NetStream(e.target as NetConnection);
    eventclient = new Object();
    eventclient.onMetaData = onMetaData;
    this.ns.client = eventclient;
    ns.play(flvfile);
    ns.pause();
    //onMetaData event:
    this.width = infoObject.width;
    this.height = infoObject.height;
    this.textureWidth = NextPowerOfTwo(this.width);
    this.textureHeight = NextPowerOfTwo(this.height);
    cliprect = new Rectangle(0, 0, this.width ,this.height);
    cliprect.x = 0;
    cliprect.y = 0;
    cliprect.width = this.textureWidth;
    cliprect.height = this.textureHeight;
    totalFrames = infoObject.duration * infoObject.fps;
    this.hasAlpha = true;
    if(infoObject.videocodecid == 5)
    this.hasAlpha = true;
    this.bitmapData = new BitmapData(this.textureWidth, this.textureHeight, hasAlpha, 0xff000000);
    this.video = new Video(this.width, this.height);
    this.video.attachNetStream(ns);
    this.video.addEventListener(Event.ENTER_FRAME, processPixels);
    // processPixel method:
    BitmapData.draw(video);
    GLAPI.instance.glBindTexture(GLAPI.GL_TEXTURE_2D,this.textureId);
    var fmt:uint = GLAPI.GL_ARGB;
    // converting pixels using copychannel or loop through pixels
    GLAPI.instance.glBindTexture(GLAPI.GL_TEXTURE_2D,this.textureId);
    GLAPI.instance.glTexImage2D(GLAPI.GL_TEXTURE_2D, 0, fmt, this.textureWidth, this.textureHeight, 0,fmt, GLAPI.GL_UNSIGNED_BYTE, 0, convBitmapData.getPixels(cliprect));

  • Issue Using C# to Get RTF Text From Clipboard to Outlook With Formatting and Without Encoding Tags

    I have created a little application that gathers data from various text boxes and then combines the data into a formatted richTextBox.  A person using the tool asked if I could then add a button that would allow that text (with formatting) to be copied
    and pasted into an Outlook Email.  When I do this, I can get the text into an email, but I either strip out the formatting or I get all the RTF encoding tags to come along with it. 
    I have tested to see that the copy of the data from the richTextBox has indeed made it to the clipboard correctly.  This has been verified by the fact that I can manually press "ctrl" + "v" and I can past the text with proper
    formatting into the mail body.
    I do know that I can brute force things by trying to manually wrap HTML tags around my textBox fields and then pipe that into an HTMLBody property.  In fact I can get a lot of things to work with the HTMLBody property, but while it is nice that will
    work, I feel that I must be missing something really simple while trying to work with RTF.
    I currently am pasting (using the Clipboard.GetText(TestDataFormat.RTF)) the RTF data into the Body property of the mail item.  This is bringing in all the RTF encoding tags.  I have tried to paste this directly into the RTFBody of the mail item,
    yet an execption gets thrown when executed.  Oddly, though, if I change RTFBody to HTMLBody, I do not get the exception, but I still have the RTF encoding tags in it.  Though if I feed the HTMLBody property straight, HTML text with the encoding tags,
    it will render properly.
    This has me confused then why if I feed HTMLBody HTML text with the encoding tags that it will render, but if I try and do the same for RTFBody and feed it RTF text with encoding tags it still throws an exception.  Any help in the matter would be greatly
    appreciated.  I have included the code snippet below for sending the richTextBox information to the clipboard and then attempting to retrieve it and paste it into an Outlook email.
    Thanks for the help.
    Some pertinent information:
    Blend for Visual Studio 2015 CTP6 (I switched from VS2012 as intellisense was added to Blend in 2015)
    Because of this Systems.Windows.Forms is not in use
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    myNewMailIoI.To = " "; //An attempt to ensure that the focus moves down to the body field
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Pasting data into body of email
    myNewMailIoI.Body = Clipboard.GetText(TextDataFormat.Rtf); //This will past the text with encoding tags into email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This stinks!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>different font and color</p>";
    myNewMailIoI.Display(); //Allow for window to be minimized
    myNewMailIoI.Display(true);

    Ok, I found the solution.  Part of the issue was caused by the confusion of the HTML body property acting as a text encoder for HTML text when a string is passed in vs the RTF Body property needing to have a plain text file taken and encoded into a
    byte stream.  Even though the RTF text is in readable text (albeit with the RTF Encoding Tags) it needs to be reencoded into a series of bytes. 
    This is where I failed to understand the previous answers.  I knew that RTF Body needed to have a array of bytes, and the previous answers seemed to indicate that the data in the clipboard was already in this byte format (this may have just been my
    misunderstanding) and that I needed to somehow take this byte array and do something with it.  My misunderstanding was that all the methods for getting values from the clipboard returned strings and not bytes.
    after some digging last night and with the few hints that were offered before, I came across a post on CodeProject (apparently I cannot post links, so I will try and include this so that you can find the postcodeproject(DOTCOM)/Questions/766917/How-to-convert-richtextbox-output-into-bytearray). 
    This showed that I needed to take the raw, RTF text with its RTF encoding tags from the clipboard and and encode it to a byte array and then pass this into the RTF Body property.  Included below is the final code such that I hope that it helps some other
    person as there seem to be a lot of searches for this on the web, but not a lot of direct answers.
    using System.Text;
    using Outlook = Microsoft.Office.Interop.Outlook;
    private void buttonEmail_Click(object sender, RoutedEventArgs e)
    //Copy richTextBox information to Clipboard
    Clipboard.Clear();
    richTextBox.SelectAll();
    richTextBox.Copy();
    //Get current date to add to email subject line
    DateTime myNewDate = new DateTime();
    myNewDate = DateTime.Now;
    //Create Email
    Outlook.Application myNewApplication = new Outlook.Application();
    Outlook.MailItem myNewMailIoI = myNewApplication.CreateItem(Outlook.OlItemType.olMailItem) as Outlook.MailItem;
    //Add Subject
    myNewMailIoI.Subject = "IoI - " + myNewDate.Date.ToString("d");
    //Set Body Format to RTF
    myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatRichText;
    //Converting RAW RTF data from string to bytes. THIS IS THE FIX THAT WAS NEEDED TO MAKE IT WORK
    string myNewText = Clipboard.GetText(TextDataFormat.Rtf);
    byte[] myNewRtfBytes = Encoding.UTF8.GetBytes(myNewText); //This line cost me way too many hours of lost sleep!!!
    //Inserting RTF bytes into RTFBody property
    myNewMailIoI.RTFBody = myNewRtfBytes;
    myNewMailIoI.Display(); //Displays the newlycreated email
    //If this section is uncommented, it will add a properly formatted HTML text to the email
    //myNewMailIoI.BodyFormat = Outlook.OlBodyFormat.olFormatHTML;
    //myNewMailIoI.HTMLBody = "<p>This works for the HTMLbody property!!!</p>" + "<p style='color: green; font-size:10pt; font-family:arial'>this renders properly</p>";

  • Performance issue in correlation with hidden objects in reports

    Hello,
    is there a known performance issue in correlation with hidden objects in reports using conditional suppressions? (HFM version 11.1.2.1)
    Using comprehensive reports, we have huge performance differences between the same reports with and without hidden objects. Furthermore we suspect that some trouble with our reporting server environment base on using these reports through enduser.
    Every advice would be welcome!
    Regards,
    bsc
    Edited by: 972676 on Nov 22, 2012 11:27 AM

    If you said that working with EVDRE for each separate sheet is fin ethat's means the main problem it is related to your VB custom macro interdependecy.
    I suggest to add a log (to write into a text file)for you Macro and you will se that actually that minute is staying to perform operations from custom Macro.
    Kind Regards
    Sorin Radulescu

  • Issue related to transportation of objects

    Hi Experts,
    I am very new to BODS tool.I have an issue related to transportation of Objects.
    Please be noted that , there was already a project (X) existing in dev system and the same project (X) is already exists in quality system as well.
    Now we got the requirement to replace the new source table to the existing source table in one of the dataflowin the Project(X). So in dev system for the same project (X) ,we have created a new datastore and imported a new source table into that datstore and used this table in that particular Dataflow to replace the existing table in the same project(X).
    After doine this changes, its working fine in Dev system.
    Now I wanted this changes to be transported in qual system as well.
    So I have logged into Designer in quality system. In central repoistory, I was able to see two central repositories.One for Central Repoistory of DEV and Other Central Repoistory of Quality.I hope I need to view Central Repoistory of Dev( please correct me If .In this central repository(dev) I was able to view the same Project(X) but the latest changes were not reflected ( I mean to say new datastore and new source table in the dataflow were not been seen). So I have refreshed the central repoistory,still I was unable to view the latest changes in the same project(X).
    Could anyone please guide me, what all steps I need to do, to get this changes reflected in quality system as well.
    Please be noted that, I am working on BODS 4.2 version
    Appreciate for your quick responses.
    Thanks in advance.

    Hi Cris,
    First remember that when ever you are doing changes in existing project first you have to take the latest version of that project then you can do your changes.
    Step1: Take latest version of code from Central Repository of DEV  into your local repository then do yuor changes.
    Go to Tools---->Central Repositories then select Central Repository of DEV then activate it. then get latest project from Central Repository of DEV.
    Getting latest project from central---->Go to Tools---->Central repository library---> select your project---->rightclict---get latest version--->objects and depence.
    I am not sure you made changes in latest code or not?
    Step2: After you made changes in your local repo go to Tools---->Central repository library---> select your project---->rightclict---checkout-----objects and depence without replacement.
    Step3: Go to Tools---->Central repository library---> select your project---->rightclict---checkin-----objects and depence. Now your changes moved to Central Repository of DEV.
    Step4: Login to Quality system.
    Step5: In Qaulity---Go to Tools---->Central Repositories then select Central Repository of DEV then activate it. then get latest project from Central Repository of DEV to Qaulity system.
    Getting latest project from central---->Go to Tools---->Central repository library---> select your project---->rightclict---get latest version--->objects and depence.
    Now Latest code transported to QA.
    Thanks & Regards,
    Balamurugan G

  • Getting "program used to creat ethis object is AcroExch"

    Getting "program used to creat ethis object is AcroExch. That program is not installed on your computer." when trying to open PDFs embedded in Word.  Some work and some give me the error message above.
    I am on Acrobat Standard 10.1.7 and Word 2007, on Windows 7.
    Anyone have any fixes that might resolve this issue? 

    There is a comment in http://community.spiceworks.com/topic/119912-adobe-10-update-acroexch-error-now-occurring that provides the following information:
    Disabling Protected Mode in Adobe Reader X
    1. Open Adobe Reader X.
    2.From Edit menu select Preferences, Preferences dialog box appears.
    3.Select General category on the list, uncheck or remove tick mark for “Enable protected mode at startup”
    Adobe Reader’s Protected Mode will be turned off.
    Though it is for Reader, I assume it should do the job for Acrobat also.

  • Error during Goods Issue using movement type U61

    Dear All,
    There is this error with respect to goods movement type U61. It states u201C Difference in Object List header data: U61 previously /321 Newu201D
    I get this error when I am doing the Goods issue using the transaction EM10 or MB1A
    Any guidance or help is welcome
    Regards
    Balaji.J

    Hi,
    The goods issue movement type is 501, the previous movement type was also 501 only. The status of the device is in ESTO. By doing goods issue using movemenn type U61, I need to make them in to AVLB status.
    Regards
    Balaji.J

  • Memory issue using BO XI Enterprise SDK and ISecurityInfo

    Hello everybody
    I have a big issue using the XIR2 SDK when I want to get rights for an object (universe or overload for example). When I start my process the memory used keep growing, starting for 20 mb to more than 100mb and if I have too many objects, the script hangs. I tried to simplify my code to make it understandable :
    My Main Class
                   Vector<Integer> vIntOv = OverloadsFactory.getAllOverloadsID();
                   Iterator<Integer> itOvIterator = vIntOv.iterator();
                   Integer cIdOv = null;
                   while(itOvIterator.hasNext()) {
                        cIdOv = itOvIterator.next();
                        System.out.println("ID OV = "+cIdOv);
                        Overload ov = OverloadsFactory.getOverloadById(cIdOv);
                        Iterator<PrincipalRestricted> itRestPrin = ov.getPrincipalRestricted().iterator();
                        PrincipalRestricted cPrin = null;
                        while(itRestPrin.hasNext()) {
                             cPrin = itRestPrin.next();
                             System.out.println("     REST = "+cPrin.getPrincipalName());
                             cPrin = null;
    The getOverloadById method in OverloadFactory class :
         public static Overload getOverloadById(int overloadID) throws OverloadException, IOException, ClassNotFoundException, SDKException {
              String name="";
              String creationTime="";
              Vector<RowRestriction> vRestrictedRows = new Vector<RowRestriction>();
              Vector<ObjectRestriction> vRestrictedObjects = new Vector<ObjectRestriction>();
              Vector<PrincipalRestricted> vPrincipalRestricted= new Vector<PrincipalRestricted>();
              String boQuery="SELECT * " +
                        "FROM CI_APPOBJECTS " +
                        "WHERE SI_KIND='OVERLOAD' AND SI_ID="+overloadID;
              Iterator<IOverload> itOverload = BoxiRepositoryManager.getInstance().executeQuery(boQuery).iterator();
              if(itOverload.hasNext()) {
                   IOverload currentIOverload = itOverload.next();
                   name=currentIOverload.properties().get("SI_NAME").toString();
                   creationTime=currentIOverload.properties().get("SI_CREATION_TIME").toString();
                   //System.out.println("OVERLOAD : "+currentIOverload.getTitle()+" / UNIVERSE : "+UniversesFactory.getUniverseById(currentIOverload.getUniverse()).getName());
                   Iterator<IRowOverload> itRestrictedRows=currentIOverload.getRestrictedRows().iterator();
                   while(itRestrictedRows.hasNext()) {
                        IRowOverload currentRestrictedRow = itRestrictedRows.next();
                        //System.out.println("     RR ("+currentIOverload.getID()+") Where Clause : "+currentRestrictedRow.getWhereClause());
                        vRestrictedRows.add(new RowRestriction(currentRestrictedRow.getRestrictedTableName(), currentRestrictedRow.getWhereClause()));
                   //System.out.println("     RR ("+currentIOverload.getID()+") Size : "+vRestrictedRows.size());
                   Iterator<IObjectOverload> itRetsrictedObjects=currentIOverload.getRestrictedObjects().iterator();
                   while(itRetsrictedObjects.hasNext()) {
                        IObjectOverload currentRestrictedObj = itRetsrictedObjects.next();
                        //System.out.println("     RO ("+currentIOverload.getID()+") Object Name : "+currentRestrictedObj.getObjectName());
                        vRestrictedObjects.add(new ObjectRestriction(currentRestrictedObj.getObjectID(), currentRestrictedObj.getObjectName()));
                   Iterator<IObjectPrincipal> itIObjectPrincipal = currentIOverload.getSecurityInfo().getObjectPrincipals().iterator();
                   while (itIObjectPrincipal.hasNext()) {
                        IObjectPrincipal currentIObjPrincipal = itIObjectPrincipal.next();
                        vPrincipalRestricted.add(new PrincipalRestricted(currentIObjPrincipal.getID(),currentIObjPrincipal.getName()));
                   itOverload = null;
                   return new Overload(overloadID,currentIOverload.getUniverse(),name, vRestrictedObjects, vRestrictedRows, vPrincipalRestricted, creationTime);
              } else {
                   throw new OverloadException("This Overload ID is not valid");
    At the beginning I thought it was a problem in my own code but if you comment the following part in the above method, you'll see that the memory increase will not happen anymore :
    Iterator<IObjectPrincipal> itIObjectPrincipal = currentIOverload.getSecurityInfo().getObjectPrincipals().iterator();
                   while (itIObjectPrincipal.hasNext()) {
                        IObjectPrincipal currentIObjPrincipal = itIObjectPrincipal.next();
                        vPrincipalRestricted.add(new PrincipalRestricted(currentIObjPrincipal.getID(),currentIObjPrincipal.getName()));
    Here the error
    Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
       at java.util.Hashtable.rehash(Unknown Source)
       at java.util.Hashtable.put(Unknown Source)
       at com.crystaldecisions.sdk.occa.security.internal.a.a(Unknown Source)
       at com.crystaldecisions.sdk.occa.security.internal.f.new(Unknown Source)
       at com.crystaldecisions.sdk.occa.security.internal.a.commit(Unknown Source)
       at com.crystaldecisions.sdk.occa.infostore.internal.ap.a(Unknown Source)
       at com.crystaldecisions.sdk.occa.infostore.internal.ar.if(Unknown Source)
       at com.crystaldecisions.sdk.occa.infostore.internal.ar.getObjectPrincipals(Unknown Source)
       at com.crystaldecisions.sdk.occa.infostore.internal.ar.getObjectPrincipals(Unknown Source)
    So it why I think that either there is an issue with "getSecurityInfo()" or I'm using it in a bad way. I tried many things like nulling my objects (even if in java the garbage collector does that by itself), changing my code... but no improvements, it's why I m requesting help from the experts
    Thanks to you
    PS : sorry for my grammar, i'm french
    PS 2 : i just want notify that I'm not a java expert so if you have to criticize my code, no prob
    Edited by: Cyril Amsellem on Aug 8, 2008 5:00 PM

    Hi Merry
    Thanks a lot for answering me. I didn't know that "getObjectPrincipal" takes so much memory for running.
    According to you is it normal that the used memory keep growing even after nulling my objects ? For me after requesting the Principales for an object (overload or universe) the memory used should be released. It seems that even after the process an object created in the ISecurityInfo class is still living...
    Thanks again for taking time to help me

  • Issues using ContinuousQueryCaches in Coherence 3.5

    Hi,
    I'm hitting some issues using ContinuousQueryCaches in Coherence 3.5.
    I am trying to use a PofExtractor with a filter on a ContinuousQueryCache and I am getting the following exception:
    java.lang.UnsupportedOperationException: PofExtractor must be used with POF-encoded Binary entries; the Map Entry is not a BinaryEntry
    at com.tangosol.util.extractor.PofExtractor.extractFromEntry(PofExtractor.java:157)
    at com.tangosol.util.InvocableMapHelper.extractFromEntry(InvocableMapHelper.java:292)
    at com.tangosol.util.filter.ExtractorFilter.evaluateEntry(ExtractorFilter.java:94)
    at com.tangosol.util.InvocableMapHelper.evaluateEntry(InvocableMapHelper.java:260)
    at com.tangosol.util.InvocableMapHelper.query(InvocableMapHelper.java:382)
    at com.tangosol.net.cache.ContinuousQueryCache.entrySet(ContinuousQueryCache.java:746)
    at com.myproject.getItem(MyClass.java:400)
    The code I am using to generate this exception is similar to this:
    ContinuousQueryCache queryCache = new ContinuousQueryCache(namedCache, new InFilter(new PofExtractor(Long.class, ItemSerializer.PARENT_ID_FIELD), filteredIds));
    // filter to pull back objects only where the parent id of object matches provided value
    Filter filter = new EqualsFilter(new PofExtractor(Long.class, ItemSerializer.PARENT_ID_FIELD), parentId);
    Set<Item> children = new HashSet<Item>();
    Set<Map.Entry<String, Item>> set = queryCache.entrySet(filter); // this line throws Exception
    Does anyone know why this might be occurring?
    Many Thanks

    Hi,
    This looks like an issue that was fixed in 3.5.3 & 3.6 and backported to 3.5.2 patch 2...
    ContinuousQueryCache & Filters using PofExtractor
    Re: Can you run continuous queries via Java Extend
    Thanks,
    Tom

  • How to use two activex class objects in same vi

    HI
    I am using labview to read ECU data from INCA software .INCA providing COMTOOL API(incacom.dll). I am using ACTIVEX for  communication between INCA & Labview. My problem is If I have used single activex class object  I am able to read Inca version, getting the database path etc. If I have used two activex class in same vi (one to open Inca & other one is to read the folder structure) I am not getting output.I have attached snapshot for referance
    Attachments:
    activex1.JPG ‏114 KB
    activex2.JPG ‏107 KB

    It wasnt in the first two images you posted, or I couldnt see it anyway! That was the only reason.
    Did you try the database block on its own, just to confirm that it is working?
    Beginner? Try LabVIEW Basics
    Sharing bits of code? Try Snippets or LAVA Code Capture Tool
    Have you tried Quick Drop?, Visit QD Community.

  • How can I use methods of an object with private instantiation in my ABAP?

    Hello all,
    What is the work-around on using methods of an object marked as private instantiation? I tried to use concepts of <b>INHERITANCE</b> or <b>FRIENDS</b> of an object (<u>BCONTACT </u> in my case - a SAP standard object) but it did not work, or at least, I do not know how to properly code the statements in my ABAP program.
    Any code samples, other ideas?
    Your help is greatly appreciated.

    I am closing this question as there has been no answer.
    Message was edited by:
            Goharjou ardavan

Maybe you are looking for

  • Obrigatory  Number Service  on ME51N,ME52N,ME53N for company or plant

    Staff I wonder if it is possible to make the number of mandatory service as a company or plant in transaction ME51N and ME52N and ME53N. I used trransação OLMSRV - Set Screen Layout but it makes the number of mandatory service for all the company's a

  • Adobe Acrobat 9.0 Unterschied Standard und Pro

    Hallo zusammen Ich habe eine Frage zum Unterschied der Formularbearbeitung in der Version 9.0 Standard und Pro. Über die Internetseite von Adobe habe ich mich bereits schlau gemacht und die beiden Versionen verglichen, allerdings konnte ich so meine

  • Intracompany stock transfer-value stock transfer by adding freight charges?

    Hi We want to setup an intracompany stock transfer using purch.doc type UD - with delivery processing. By standard configuration when I post the goods issue in the delivering plant it value the material movement by using the price from the delivering

  • 9.3.4 Update Broke HyperLinks to Excel Spread Sheets located on Same Domain.

    I have created company procedural documents in PDF using Adobe Pro 9.3.3. These procedures contain hyperlinks to Excel spreadsheets that are located on an Internal Domain File Server. When I click on the Hyperlink using Adobe Reader 9.3.3, Excel laun

  • Putting a shape in a header

    I want to put a Shape in a header - making it appear on the top of every page. This does not seem to work. Text appears on the top of every page, but shapes do not. Am I missing something? Is there a way to get shapes to show up in headers? Thanks. B