OOM error using FB 4

Hi, getting OOM error when doing a build of a project using
flash builder 4 standalone (on windows 7, 64bit).
I've tried all manner of increasing the heap size. Below is the stack trace from the log file (in .metadata/.log). One thing i did notice is the java.version. This jre is not one i have installed, so it must be the one which is installed with the product (in FLEX_HOME/jre). Now, how does one control the vmargs for this invocation? I tried messing with FlashBuilder.ini, as well as jvm.config in the sdks directories; to no avail.
!SESSION 2011-03-21 18:20:55.867 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.6.0_16
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Command-line arguments:  -os win32 -ws win32 -arch x86
!ENTRY org.eclipse.core.jobs 4 2 2011-03-21 18:34:47.120
!MESSAGE An internal error occurred during: "Building workspace".
!STACK 0
java.lang.OutOfMemoryError: Java heap space
    at flash.swf.TagDecoder.decodeDefineBitsLossless2(TagDecoder.java:1199)
    at flash.swf.TagDecoder.decodeTag(TagDecoder.java:301)
    at flash.swf.TagDecoder.decodeTags(TagDecoder.java:179)
    at flash.swf.TagDecoder.parse(TagDecoder.java:127)
    at flex2.compiler.swc.SwcLibrary.parse(SwcLibrary.java:157)
    at flex2.compiler.swc.SwcScript.getDoABC(SwcScript.java:60)
    at flex2.compiler.swc.SwcGroup.updateMaps(SwcGroup.java:273)
    at flex2.compiler.swc.SwcGroup.<init>(SwcGroup.java:52)

Just to simplify, I created another mobile project in 4.5 prerelease, this one is a  "supported" ActionScript only project, with the same results.  The code for the entire iphone project is below.  I'm including lccsFlash.swc (10.1 version).  Image of the result on the phone is attached (same as before).
The code is here:
private var debugtext:String;
private var auth:AdobeHSAuthenticator;
private var txtfld:TextField = new TextField();
private function myLccsTrace(debugStr:String):void{debugtext += debugStr +
"\n";txtfld.text = debugtext;
private function updateDebug(event:Event):void{txtfld.text = debugtext;
public function ActionScriptMobile(){
super();  
// support autoOrientsstage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
startConnect();
 private function startConnect():void{DebugUtil.traceFunction = myLccsTrace;
DebugUtil.suppressDebugTraces=
false;debugtext +=
"Starting viewactivatehandler... \n";
debugtext +=
"Creating auth \n";auth =
new AdobeHSAuthenticator();auth.userName =
"Guest";auth.requireRTMFP=
false;
cSession =
new ConnectSession();debugtext +=
"Created ConnectSession \n";cSession.authenticator = auth;
cSession.roomURL=
http://collaboration.adobelivecycle.com/MYACCT/MYROOM;cSession.addEventListener(SessionEvent.SYNCHRONIZATION_CHANGE, updateDebug);
debugtext +=
"Trying login... \n";cSession.login();
debugtext +=
"After login \n";
txtfld.width=800;
txtfld.height=1200;
txtfld.text = debugtext;
this.addChild(txtfld)  }
Same error as before.  Also, the "guk=" is from the LCCS code after the login(), I'm not adding any additional parameters, all the code is above.

Similar Messages

  • After upgrading HANA from rev. 69.1 to rev.72 OOM errors occure during HDB startup

    Hello,
    we upgraded our HANA scale out system from rev. 69.1 to rev. 72.
    ~4 hours after the upgrade our HDB crashed with OOM errors on  the master indexserver.
    Since than we are trying to start it back up and face OOM errors during startup in the index rebuild phase:
    The errors clearly state the HANA runs out of allocatable memory for Pool/IndexRebuildAllocator during startup.
    It looks like HANA requires more memory during this phase compared to rev. 69.1
    Our Master node has 512GB of physical memory and the Allocation limit is set to 95% of this (default).
    Here is what we read from our logs during startup:
    [3331]{-1}[-1/-1] 2014-03-24 01:35:36.735498 i Service_Startup  ptime_master_start.cc(00719) : Rebuilding system indexes.
    [3331]{-1}[-1/-1] 2014-03-24 01:35:37.236971 i Service_Startup  ptime_master_start.cc(00733) : Rebuilding system indexes done.
    [3331]{-1}[-1/-1] 2014-03-24 01:35:37.237002 i Service_Startup  ptime_master_start.cc(00735) : Rebuilding indexes.
    [3331]{-1}[-1/-1] 2014-03-24 01:35:37.244660 i Service_Startup  IndexManager_rebuild.cc(00478) : Number of indexes: 2837
    [3331]{-1}[-1/-1] 2014-03-24 01:35:37.245606 i Service_Startup  IndexManager_rebuild.cc(00580) : Number of JobEx indexes: 2798
    [3367]{-1}[9/-1] 2014-03-24 01:36:33.729391 w ResMan           ResourceContainer.cpp(01300) : Information about shrink at 24.03.2014 01:28:46 000 Mon:
    Reason for shrink: Precharge for big block allocation. User size:  6269307200
    ShrinkCaller
    [4123]{-1}[9/-1] 2014-03-24 01:36:42.465154 w Memory           PoolAllocator.cpp(01060) : Out of memory for Pool/IndexRebuildAllocator, size 48B, flags 0x0
    [4123]{-1}[9/-1] 2014-03-24 01:36:42.465168 e Memory           ReportMemoryProblems.cpp(00733) : OUT OF MEMORY occurred.
    [3538]{-1}[9/-1] 2014-03-24 01:36:42.465164 w Memory           PoolAllocator.cpp(01060) : Out of memory for Pool/IndexRebuildAllocator, size 48B, flags 0x0
    [3538]{-1}[9/-1] 2014-03-24 01:36:42.465177 e Memory           ReportMemoryProblems.cpp(00733) : OUT OF MEMORY occurred.
    [4123]{-1}[9/-1] 2014-03-24 01:36:42.465168 e Memory           ReportMemoryProblems.cpp(00733) : Failed to allocate 48 byte.
    [3538]{-1}[9/-1] 2014-03-24 01:36:42.465177 e Memory           ReportMemoryProblems.cpp(00733) : Failed to allocate 48 byte.
    [4123]{-1}[9/-1] 2014-03-24 01:36:42.465168 e Memory           ReportMemoryProblems.cpp(00733) : Current callstack:
    [3538]{-1}[9/-1] 2014-03-24 01:36:42.465177 e Memory           ReportMemoryProblems.cpp(00733) : Current callstack:
    [3562]{-1}[9/-1] 2014-03-24 01:36:42.465245 w Memory           PoolAllocator.cpp(01060) : Out of memory for Pool/IndexRebuildAllocator, size 48B, flags 0x0
    [3562]{-1}[9/-1] 2014-03-24 01:36:42.465256 e Memory           ReportMemoryProblems.cpp(00733) : OUT OF MEMORY occurred.
    GLOBAL_ALLOCATION_LIMIT (GAL) = 520645177866b (484.88gb), SHARED_MEMORY = 243742983024b (227gb), CODE_SIZE = 6919073792b (6.44gb)
    PID=2987 (hdbnameserver), PAL=487793667686, AB=1596952576, UA=0, U=1415644701, FSL=0
    PID=3196 (hdbcompileserve), PAL=487793667686, AB=447041536, UA=0, U=356200477, FSL=0
    PID=3193 (hdbpreprocessor), PAL=487793667686, AB=416477184, UA=0, U=292814063, FSL=0
    PID=3254 (hdbstatisticsse), PAL=54199296409, AB=1040187392, UA=0, U=862081043, FSL=0
    PID=3257 (hdbxsengine), PAL=487793667686, AB=1100451840, UA=0, U=907234077, FSL=0
    PID=3251 (hdbindexserver), PAL=487793667686, AB=265382010522, UA=0, U=218447843045, FSL=0
    Total allocated memory= 520645177866b (484.88gb)
    Total used memory     = 472943874222b (440.46gb)
    Sum AB                = 269983121050
    Sum Used              = 222281817406
    Heap memory fragmentation: 9
    Top allocators (ordered descending by inclusive_size_in_use).
    1: /                                                                       218448756093b (203.44gb)
    2: Pool                                                                    214254480696b (199.53gb)
    3: Pool/IndexRebuildAllocator                                              196297409104b (182.81gb)
    4: Pool/PersistenceManager                                                 9920106968b (9.23gb)
    5: Pool/PersistenceManager/PersistentSpace(0)                              9779577952b (9.10gb)
    6: Pool/PersistenceManager/PersistentSpace(0)/RowStoreLPA                  9473884512b (8.82gb)
    7: Pool/ResourceContainer                                                  2852314824b (2.65gb)
    8: AllocateOnlyAllocator-unlimited                                         2832931544b (2.63gb)
    9: Pool/malloc                                                             2660566632b (2.47gb)
    10: Pool/malloc/libhdbrskernel.so                                           2467813288b (2.29gb)
    11: Pool/RowEngine                                                          2284285840b (2.12gb)
    12: AllocateOnlyAllocator-unlimited/FLA-UL<3145728,1>/MemoryMapLevel2Blocks 2135949312b (1.98gb)
    13: AllocateOnlyAllocator-unlimited/FLA-UL<3145728,1>                       2135949312b (1.98gb)
    14: Pool/RowEngine/CpbTree                                                  1417842512b (1.32gb)
    15: AllocateOnlyAllocator-limited                                           1184520640b (1.10gb)
    16: AllocateOnlyAllocator-limited/ResourceHeader                            1184517680b (1.10gb)
    17: Pool/RowEngine/LockTable                                                536881408b (512mb)
    18: AllocateOnlyAllocator-unlimited/FLA-UL<120,256>/BigBlockInfoAllocator   360752520b (344.04mb)
    19: AllocateOnlyAllocator-unlimited/FLA-UL<120,256>                         360752520b (344.04mb)
    20: Pool/PersistenceManager/PersistentSpace(0)/RowStoreConverter            239921680b (228.80mb)
    Top allocators (ordered descending by exclusive_size_in_use).
    1: Pool/IndexRebuildAllocator                                               196297409104b (182.81gb)
    2: Pool/PersistenceManager/PersistentSpace(0)/RowStoreLPA                   9473884512b (8.82gb)
    3: Pool/ResourceContainer                                                   2852314824b (2.65gb)
    4: Pool/malloc/libhdbrskernel.so                                            2467813288b (2.29gb)
    5: AllocateOnlyAllocator-unlimited/FLA-UL<3145728,1>/MemoryMapLevel2Blocks  2135949312b (1.98gb)
    6: Pool/RowEngine/CpbTree                                                   1417842512b (1.32gb)
    7: AllocateOnlyAllocator-limited/ResourceHeader                             1184517680b (1.10gb)
    8: Pool/RowEngine/LockTable                                                 536881408b (512mb)
    9: AllocateOnlyAllocator-unlimited/FLA-UL<120,256>/BigBlockInfoAllocator    360752520b (344.04mb)
    10: Pool/PersistenceManager/PersistentSpace(0)/RowStoreConverter/ConvPage    239075328b (228mb)
    11: Pool/RowEngine/Internal                                                  205837824b (196.30mb)
    12: StackAllocator                                                           176672768b (168.48mb)
    13: AllocateOnlyAllocator-unlimited/FLA-UL<48,128>/FreeBigBlockInfoAllocator 144301008b (137.61mb)
    14: Pool/RowEngine/Transaction                                               103391528b (98.60mb)
    15: Pool/malloc/libhdbexpression.so                                          90507984b (86.31mb)
    16: Pool/malloc/libhdbbasement.so                                            90380472b (86.19mb)
    17: AllocateOnlyAllocator-unlimited/ReserveForUndoAndCleanupExec             84029440b (80.13mb)
    18: AllocateOnlyAllocator-unlimited/ReserveForOnlineCleanup                  84029440b (80.13mb)
    19: Pool/Statistics                                                          83825720b (79.94mb)
    20: Pool/PersistenceManager/ContainerNameDirectory                           59182968b (56.44mb)
    In order to fix this bottleneck, we first need to get HDB started, but how?
    Is there a way to aviod that row store tables are being loaded during startup? (this would allow enough memory for the index rebuild)
    Is there a way to skip the index rebuild during startup?
    Can we increase the allocation limit to more than 95% of the physical memory? (e.g. we could configure swap space to be utilized, just to get over the edge of this during the startup in order to bring our HDB back up and work on reducing the memory requirement on the master index server)
    Kind Regards
    Florian Wittmann
    ps. we also have a call with SAP.

    To update everyone who runs into the same issue during startup of HANA, here is the solution that has worked for us. But I highly recommend to have such an approach reviewed by SAP service before I you perform this!
    For us the only chance left to bring HANA up was to configure swap space on the master node. (We configured 20GB...we could not know how much memory it would need during the startup to get passed the index rebuild, so that was just a guess that turned out to be just enough for us to get passed that memory peak during the startup phase).
    After that we adjusted the custom parameter file /sapmnt/<SID>/global/hdb/custom/config/global.ini
    and maintained a global_allocation_limit that we manually calculated as (512GB physical mem. + 20GB swap mem.)/0.95
    e.g.
    [memorymanager]
    global_allocation_limit=517530
    Than we started HANA up again and made use of the page file during the index rebuild in the startup phase...of course this dramatically slows down the startup...well you do an index reorg using swap space...but after 1hour we got passed the index rebuild and memory utilization went down again. (With this error we learned that HANA has a significantly higher memory consumption during startup and the upgrade from SP 6 to SP 7 must have even increased this slightly, since we managed to startup our HANA db before upgrading without this issue, but it was not the root cause!)
    Now that we had HANA back up, we investigated memory consuming indices together with SAP, and with the help of below query, we identified row store table RSMONMESS to hold 25GB of 2ndary indices!
    select table_name, round((sum(index_size)) / 1024 / 1024, 2) as
    SIZE_IN_MB, count(*) as number_of_indexes from M_RS_INDEXES group by
    table_name order by SIZE_IN_MB desc
    Before droping 2ndary indices:
    TABLE_NAME;SIZE_IN_MB;NUMBER_OF_INDEXES
    RSMONMESS;30.883,8;6
    drop index SAP<SID>."RSMONMESS~AXX";
    drop index SAP<SID>."RSMONMESS~TIM";
    drop index SAP<SID>."RSMONMESS~AU1";
    drop index SAP<SID>."RSMONMESS~RID";
    drop index SAP<SID>."RSMONMESS~AXY";
    After drop:
    TABLE_NAME;SIZE_IN_MB;NUMBER_OF_INDEXES
    RSMONMESS;5.708,43;1
    With that change we reset our custom parameter on global_allocation_limit and went back to the default (95% of main physical mem.), removed the swap file and started up HANA again...and during this startup we managed to stay in our global_allocation_limit and bring HANA back up again!

  • Re:configure weblogic so that i get mail whenever i get oom error

    Hi i need to configure the weblogic so that whenever i get the OOM error in weblogic Server i get a mail in my outlook
    can anyone tellme how to do it

    Hi,
    You can use WLDF with E-Mail Notification Feature of WebLogic...Please refer to the below Link:
    http://jaysensharma.wordpress.com/2010/01/07/e-mail-notification-using-wldf/ for step by step procedure.
    Thanks
    Jay Sensharma

  • Why does slowing down execution prevent OOM errors?

    I've run into two different situations where OOM errors went away when I slowed down the code. Right now I have a single threaded application that reformats batches of images. If I change
    Thread.sleep(400);
    to
    Thread.sleep(300);
    then the application throws OutOfMemoryErrors.
    Does anyone have experience with this or ideas about how to solve it? I'm using the 1.4.2_03 VM with the default GC options.

    To avoid OOM errors. The original code had no sleeps
    and threw OOM errors. I added debug messages to
    diagnose the problem and the OOM errors went away. I
    replaced the debug messages with a single sleep to see
    if it was a speed issue.I wouldn't expect to see this behavior in a single-threaded app. That's why I'm wondering if there isn't more going on.
    It would also help to know what is happening afterevery nap.
    After each nap, the thread reads data from a database,
    reads a JPEG image from a file, translates the image
    to TIFF format and writes the image and other data to
    a file.When you call it 'the thread' it impies to me that it is separate from your application thread. Is it? Is there a GUI? What DB are you you using? What driver? Are you closing your DB connections? Are you closing your IO streams?

  • Error message: AgServerMigration ERROR Using store provider as a session is deprecated.

    Hi.  I'm using a MacBook Pro, OS X 10.6.5.  I have been opening files in Lightroom, editing them, and then doing finishing touches in CS5.  When I save the file in CS5 and close it, my Mac returns the above message in Console eight times:
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    AgServerMigration ERROR Using store provider as a session is deprecated.
    I have no idea what this means, or whether it is a problem.  Does anyone know what this is?
    Thanks.

    I see the same thing and have done for some time. The actual file is being saved back. etc. So, in that respect both Lr and Ps are working fine. IOW, ignore it.

  • Getting OOM error while retreive 2lakhs record from DB

    I have a java program with a simple Select query that fetches around 2lakhs record from DB and will display in a JSP Page.
    When I try to fetch huge amount of data the server causing OOM.
    I got few suggestions to add setFetchSize(1000) to my Statement.
    I am confused here, whether i need to setFetchSize() to Statement or to Resulset.
    Pls suggest me a asolution to retrieve all the records and to avoid OOM error.

    66bdf8de-2e37-445a-8436-0ad04a325040 wrote:
    Please find my answers below
      What is a lakh?
          A lakh or lac is a one hundred thousand
    someone looking at a JSP page really want to crawl through a result set that large    
         Yes, All the records will be displayed in a JSP Page and User will be navigating through all the records.
    Seriously?  Some human being is going to navigate through a page containing 200,000 records?  Seriously?
    I tested with both the scenario(setFetchSize() to Statement or to Resulset), it didnt work for me, still getting same OOM .
    Then it would appear that the answer to your question "whether i need to setFetchSize() to Statement or to Resulset" is .... "neither".

  • Received HTTP response code 500 : Internal Server Error using connection Fi

    Hi everybody,
    I have configured a file-webservice-file without BPM scenario...as explained by Bhavesh in the following thread:
    File - RFC - File without a BPM - Possible from SP 19.
    I have used a soap adapter (for webservice) instead of rfc .My input file sends the date as request message and gets the sales order details from the webservice and then creates a file at my sender side.
    I monitored the channels in the Runtime work bench and the error is in the sender ftp channel.The other 2 channel status is "not used" in RWB.
    1 sender ftp channel
    1 receiver soap channel
    1 receiver ftp channel.
    2009-12-16 15:02:00 Information Send binary file "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS EO
    2009-12-16 15:02:00 Information MP: entering1
    2009-12-16 15:02:00 Information MP: processing local module localejbs/AF_Modules/RequestResponseBean
    2009-12-16 15:02:00 Information RRB: entering RequestResponseBean
    2009-12-16 15:02:00 Information RRB: suspending the transaction
    2009-12-16 15:02:00 Information RRB: passing through ...
    2009-12-16 15:02:00 Information RRB: leaving RequestResponseBean
    2009-12-16 15:02:00 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:02:00 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:00 Information Trying to put the message into the call queue.
    2009-12-16 15:02:00 Information Message successfully put into the queue.
    2009-12-16 15:02:00 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:02:00 Information The message status was set to DLNG.
    2009-12-16 15:02:02 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:02:02 Error The message status was set to FAIL.
    Please help.
    thanks a lot
    Ramya

    Hi Suraj,
    You are right.The webservice is not invoked.I see the same error in the sender channel and the receiver soap channel status is "never used".
    2009-12-16 15:52:25 Information Send binary file  "b.xml" from ftp server "10.58.201.122:/", size 194 bytes with QoS BE
    2009-12-16 15:52:25 Information MP: entering1
    2009-12-16 15:52:25 Information MP: processing local module localejbs/CallSapAdapter
    2009-12-16 15:52:25 Information The application tries to send an XI message synchronously using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:25 Information Trying to put the message into the call queue.
    2009-12-16 15:52:25 Information Message successfully put into the queue.
    2009-12-16 15:52:25 Information The message was successfully retrieved from the call queue.
    2009-12-16 15:52:25 Information The message status was set to DLNG.
    2009-12-16 15:52:27 Error The message was successfully transmitted to endpoint com.sap.engine.interfaces.messaging.api.exception.MessagingException: Received HTTP response code 500 : Internal Server Error using connection File_http://sap.com/xi/XI/System.
    2009-12-16 15:52:27 Error The message status was set to FAIL.
    what can I do about this?
    thanks,
    Ramya

  • Getting "Method 'sign_in' does not exist" Error (using Charles)

    This may be a bit off the FLEX field, and have to do with Zend Framework's ZEND_AMF class. Unfortunately I haven't been able to dig anything up, and comments posted on Wade Arnolds site have not received any responses, so I thought I'd give it a go here.
    My ServiceController Class:
    public function loginAction()
         $this->_helper->viewRenderer->setNoRender();
         $server = new Zend_Amf_Server();
         $server->setClass('LoginAmfService', 'LoginService');
         $server->setClassMap('CurrentUserVO', 'CurrentUserVO');
         $server->setProduction(false);
         print($server->handle());
    My LoginAmfService class:
    class LoginAmfService
          * Main login function.
          * @param  string        $name
          * @param  string        $password
          * @return CurrentUserVO
         public function sign_in($name, $password)
              $authAdapter     = new Zend_Auth_Adapter_DbTable(Zend_Registry::get('db'), 'users', 'user_name', 'password', 'PASSWORD(?) AND active = 1');
              $returnValue     = new CurrentUserVO();
              $authAdapter->setIdentity(htmlspecialchars($name))
                   ->setCredential(htmlspecialchars($password));
              $authResult = $authAdapter->authenticate();
              if ($authResult->isValid())
                   $userArray                          = $authAdapter->getResultRowObject(array('id', 'first_name', 'last_name', 'title', 'photo'));
                   $returnValue->first_name     = $userArray->first_name;
                   $returnValue->last_name          = $userArray->last_name;
                   $returnValue->title               = $userArray->title;
                   $returnValue->photo               = $userArray->photo;
                   $returnValue->token               = $userArray->id;
              return $returnValue;
          * Function used to log people off.
         public function sign_out()
              $authAdapter = Zend_Auth::getInstance();
              $authAdapter->clearIdentity();
    My SignIn FLEX module (the relevant portions):
         <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="SignIn"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObject>
         <mx:Script>
              <![CDATA[
                   import mx.rpc.events.FaultEvent;
                   import mx.utils.ArrayUtil;
                   import mx.rpc.events.ResultEvent;
                   import mx.controls.Alert;
                   import com.brassworks.ValueObjects.CurrentUserVO;
                   import mx.events.VideoEvent;
                   [Bindable]
                   private var this_user:CurrentUserVO = new CurrentUserVO();
                   private function mdl_init():void
                        focusManager.setFocus(txt_username);
                   private function signin_handle(event:ResultEvent):void
                             this_user = event.result as CurrentUserVO;
                             if (this_user.token == null) {Alert.show("Supplied login credentials are not valid. Please try again.");}
                             else
                                  this.parentApplication.setUser(this.this_user);
                   private function signout_handle(event:ResultEvent):void
                   private function sign_in(event:Event):void
                        try
                             //Alert.show(txt_name.text + "|" + txt_password.text);
                             LoginRemote.sign_in(txt_username.text, txt_password.text);
                        catch (error:Error)
                             this.parentDocument.handleFault(error);
                   private function sign_out(event:Event):void
                   private function show_error(error:Error, s_function:String):void
                        Alert.show("Method:" + s_function + "\nName: " + error.name + "\nID: " + error.errorID + "\nMessage: " + error.message + "\nStack Trace: " + error.getStackTrace() + "\nError: " + error.toString());
                   private function handleFault(event:FaultEvent):void
                        Alert.show(event.fault.faultDetail, event.fault.faultString);
              ]]>
         </mx:Script>
    Now, all this is great and good, as it works with Zend Framework 1.7.6. However, when I try to upgrade to 1.7.8 (to take advantage of session management and other bug-fixes), I get the following error (using Charles):
    #1 /var/web/htdocs/core/library/Zend/Amf/Server.php(390): Zend_Amf_Server->_handle(Object(Zend_Amf_Request_Http))
    #2 /var/web/htdocs/core/application/default/controllers/ServicesController.php(73): Zend_Amf_Server->handle()
    #3 /var/web/htdocs/core/library/Zend/Controller/Action.php(503): ServicesController->loginAction()
    #4 /var/web/htdocs/core/library/Zend/Controller/Dispatcher/Standard.php(285): Zend_Controller_Action->dispatch('loginAction')
    #5 /var/web/htdocs/core/library/Zend/Controller/Front.php(934): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
    #6 /var/web/htdocs/core/application/bootstrap.php(39): Zend_Controller_Front->dispatch()
    #7 /var/web/htdocs/core/public/index.php(5): Bootstrap->runApp()
    #8 {main} ?Method "sign_in" does not exist
    I have no idea why this would not work anymore. My assumption is that I am not correctly setting up Zend_Amf (but then again, my counter-argument is that it worked before, so ..... ????)
    Thanks for any help!
    -Mike

    For those that are also fighting this issue:
    The problem appears to be that the RemoteObject needs to specify the class containing the methods as a source parameter. According to this bug report (http://framework.zend.com/issues/browse/ZF-5168) it is supposed to have been addressed, but apparently has re-emerged in Zend_Amf since version 1.7.7.
    Using my example above, I would have to specify the RO as:
    <mx:RemoteObject
              id="LoginRemote"
              destination="login"
              source="LoginAmfService"
              showBusyCursor="true"
              fault="parentDocument.handleFault(event)"
         >
               <mx:method name="sign_in" result="signin_handle(event)" />
               <mx:method name="sign_out" result="signout_handle(event)" />
         </mx:RemoteObjecct>

  • Does anyone know how to delete a template created in error using PAGES?

    I created some templates in error using PAGES and cannot figure out how to remove them/delete them.  Anyone know how to do this?  Fran

    Look in the More like this on the right.

  • I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me?

    I´m trying to open an excel file in numbers not being successful. The error msg is unexpectedly error using plugin SFCompatibility can you help me? Already changed the extension of the excel document to xlsx an now gives an unknown import error.

    In Excel have you tried saving directly to xls (not xlsx) and opening the xls in Numbers?
    If you have a complicated workbook in Excel that uses lots of Excel's advanced features, Numbers may not be able to handle the import.  It does pretty well on basic things, though.
    If you're just trying to get data into Numbers, then often copy-paste from Excel is easier than trying to open xls files.
    SG

  • Error using BPEL console

    I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
    Note that this is happening on one test server, other dev/test servers are OK.
    Oracle BPEL Server version 10.1.3.3.1
    Build: 0
    Build time: Wed Jan 16 02:42:55 PST 2008
    Build type: release
    Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
    Exception Message:
    [javax.servlet.ServletException]
    The system encounters errors while running as the authenticated identity.
    Exception Trace:
    javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
         at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
         at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
         at domain.jspService(_domain.java:210)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

    I just encountered an error using the BPEL console in one of our test environments. I got the error when I clicked 'Manage BPEL Domain' and then clicked the 'Threads' tab. I also get the error when I click the 'Statistics' tab. Other tabs are OK, 'Configuration', 'Logging', 'Adapter Stats'.
    Note that this is happening on one test server, other dev/test servers are OK.
    Oracle BPEL Server version 10.1.3.3.1
    Build: 0
    Build time: Wed Jan 16 02:42:55 PST 2008
    Build type: release
    Source tag: PCBPEL_10.1.3.3.1_GENERIC_RELEASE
    Exception Message:
    [javax.servlet.ServletException]
    The system encounters errors while running as the authenticated identity.
    Exception Trace:
    javax.servlet.ServletException: The system encounters errors while running as the authenticated identity.
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:429)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
         at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
         at com.evermind.server.http.EvermindPageContext.include(EvermindPageContext.java:453)
         at domain.jspService(_domain.java:210)
         at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
         at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.collaxa.cube.fe.DomainFilter.doFilter(DomainFilter.java:131)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:396)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:410)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

  • Warnings/Errors using getClass().newInstance()

    I'm getting some warnings & errors using getClass().newInstance() on an object. I can't however see what's wrong.
    First a little background, Bar is a class that manages a set of beans, including creation. One of the actions is to create a special copy of bean, the method that does this does some bookkeeping (such that a particular instance of Bar will only work with objects it created).
    This class was originally written in 1.4 and I'm now trying to genericify it.
    First attempt:
    public class Bar<T extends Foo> {
        public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
            T newBean = fromBean.getClass().newInstance();
            // do some stuff
            return newBean;
    }This yielded: "Type mismatch: cannot convert from capture#1-of ? extends Foo to T"
    I can cast:
            T newBean = (T) fromBean.getClass().newInstance();Which drops me to a warning a can suppress: "Type safety: Unchecked cast from capture#1-of ? extends Foo to T".
    The code runs fine like that, but I'd rather not even have a warning to suppress, I don't like suppress them unless I know that it really is safe.
    The code above looks perfectly reasonable to me, I can't figure out why it could be problematic, which leads me to wonder if I'm missing something. We've got a parameter that is of type T or a subclass of it, calling getClass().newInstance() creates an new object such that origobj.getClass() == newobj.getClass() *. Since that class is T or a subclass of it, it should be assignable to T.
    The code above when, compiled and subjected to type erasure, effectively produces a method that looks like this:
        public Foo getFlaggedBean(Foo fromBean) throws InstantiationException, IllegalAccessException {
            Foo newBean = (Foo) fromBean.getClass().newInstance();
            // do some stuff
            return newBean;
        }Note that the cast to Foo is strictly unnecessary.
    There's a couple ways I could solve this, such as:
        public <S extends T> T getFlaggedBean(Class<S> useClass, S fromBean) throws InstantiationException, IllegalAccessException {
            T newBean = useClass.newInstance();
            // do some stuff
            return newBean;
        }I'd rather not change the API, though. Can anybody give me an idea where the initial code, with warnings could be unsafe?
    Neil
    * Unless you're mucking about with class loaders, but that problem would be an issue with non-generic code too.

    Paul,
    So does that bit of the JLS mean that my compiler is doing something wrong when it finds the getClass() call, in the code below, to return Class<? extends Foo> rather than Class<? extends T>? If the latter were returned it would compile fine.
    public class Bar<T extends Foo> {
        public T getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
            T newBean = fromBean.getClass().newInstance(); // doesn't compile
            // do some stuff
            return newBean;
    }I was initially distracted by the "capture#1-of" and thought that was culprit, but as the code below demonstrates calling getInstance() on an instance of a class the compiler notes as "Class<capture#1-of ? extends Foo>" assigns to Foo just fine. Interestingly in this code my IDE says that getClass() is returning "Class<? extends Foo>", both javac and the IDE spat out "Class<capture#1-of ? extends Foo>" when the 1st line of the method had a warning or error. I assume that "Class<? extends Foo>" and "Class<capture#n-of ? extends Foo>" are equivalent and that "capture#n-of" is something fairly internal to the compiler. Can anyone shed light on that?
    public class Bar<T extends Foo> {
        public Foo getFlaggedBean(T fromBean) throws InstantiationException, IllegalAccessException {
            Foo newBean = fromBean.getClass().newInstance(); // this works
            // do some stuff
            return newBean;
    }

  • XML Form Builder Error using JRE Version 1.6.0_05

    Hi Experts,
    I am trying to create an XML Form using XML Form Builder. But I noticed that the root nodes under the data model area of the said tool is not clickable(even if it has + sign on it)thus hindering me to continue. I encounter this error using jre version 1.6.0_05.
    Can someone help with this?
    Thanks a lot
    Edited by: Leah Mendoza on Oct 9, 2008 2:07 AM
    Edited by: Leah Mendoza on Oct 9, 2008 2:07 AM

    Hi Leah,
    Have you tried double clicking?
    If this doesn't solve the issue, you might want to try using a different version of the browser and disable the pop up blocker on your browser.
    Please try this out and let me know.
    Regards
    Mazin

  • Errors using add_user_to_list

    All,
    i seem to have come across an error using the portal30.wwsec_api.add_user_to_list function. I believe the error could be with my code....the error i get :-
    Step : 11 - ORA-01086: savepoint 'ADDUSERTOLIST_SAVEPOINT' never established
    ORA-06512: at "PORTAL30.WWSEC_API", line 1915
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWCTX_SSO", line 849
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWCTX_SSO", line 669
    ORA-06502: PL/SQL: numeric or value error
    The piece of code i have running through a CURSOR FOR LOOP is as follows..
    FOR assign_users_to_group IN cur_assign_group LOOP
    -- Maintain the portal account
    portal30.wwsec_api.add_user_to_list
    ( p_person_id => assign_users_to_group.person_id,
    p_to_group_id => assign_users_to_group.group_id,
    p_is_owner => 0
    END LOOP;
    The CURSOR FOR LOOP selects out the correct person_id and group_id for which the new user is to be assigned. I then attempt to add the user to the (already created) group. Has anybody had this type of error before??
    Thanks for any help,
    Matt.
    null

    Just to keep you all up to date with the situation. i have now progressed onto DELETE_USER_FROM_LIST, and quite unsuccessfully too.....
    This time i have this piece of code....
    -- Maintain the portal account
    portal30.wwsec_api.delete_user_from_list
    ( p_group_id => revoke_users_from_groups.group_id,
    p_member_person_id => revoke_users_from_groups.person_id
    I run this piece of code as PORTAL30, just like the ADD_USER_TO_LIST function. Except this time I get another error
    declare
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWSEC_API", line 2465
    ORA-06512: at line 5
    Needle in a haystack, or does somebody out there have an idea??
    Thanks, Matt.
    null

  • Error using Arrays.toString()

    Hi there,
    I am getting the following error using Arrays.toString on a String Array. 'toString() in java.lang.Object cannot be applied to (java.lang.String[]).
    The line in question is at the bottom of the below code. It starts 'rtitem.appendText.....
    import lotus.domino.*;
    //import java.util.Arrays;
    public class JavaAgent extends AgentBase {
         Database curDb;
         String[] dbList;
         public void NotesMain() {
         int dbcount = 0;
              try {
                   Session session = getSession();
                   AgentContext agentContext = session.getAgentContext();
                   //get current database
                   Database curDb = agentContext.getCurrentDatabase();
                   //build a list of servers;
                   String[] servers = {"Norwich002/Norwich/MoneyCentre","Norwich003/MoneyCentre","Norwich004/MoneyCentre","Norwich005/MoneyCentre","Norwich007/Norwich/MoneyCentre","Norwich008/Norwich/MoneyCentre","Norwich010/Norwich/MoneyCentre","Norwich020/Norwich/MoneyCentre","Norwich021/Norwich/MoneyCentre"};
                   //loop through server list
                   int arraylen = servers.length;
                   for(int i=0;i <= arraylen;i++){
                        //create a notesdbdirectory collection for the current server iteration
                        DbDirectory dbdir = session.getDbDirectory(servers);
                        //get first database
                        Database db = dbdir.getFirstDatabase(DbDirectory.DATABASE);
                        //loop through databases in dbdir
                        while (db != null){
                             //add database details to our list
                             dbList[dbcount] = db.getTitle() + " - " + db.getFilePath();
                             dbcount++;     
              } catch(Exception e) {
                   e.printStackTrace();
              private boolean sendEmail(String subject){
                   try{
                        Document mailDoc = curDb.createDocument();
                        mailDoc.replaceItemValue("SendTo","Hayleigh S Mann/Norwich/MoneyCentre");
                        mailDoc.replaceItemValue("Subject",subject);
                        RichTextItem rtitem = mailDoc.createRichTextItem("Body");
                        rtitem.appendText(java.util.Arrays.toString(dbList));
                        mailDoc.send();
                        return true;
                   }catch(Exception e){
                        e.printStackTrace();
                        return false;

    No, that doesn't make any sense. Arrays.toString can take any array as an arg: [http://java.sun.com/javase/6/docs/api/java/util/Arrays.html#toString(java.lang.Object[])]
    import java.util.*;
    public class A {
      public static void main(String[] args) {
        String str = Arrays.toString(args);
        System.out.println(str);
    :; java -cp . A abc 123 xxx
    [abc, 123, xxx]

Maybe you are looking for