FBCJ - Badi CJ_DOUMENT is not run

I have created Z Implementation ZCJ_DOCUMENT for Badi definition CJ_DOCUMENT.
I put a very simple code into CHANGE method of my ZCJ_DOCUMENT.
DATA: txr.
txr = '1'.
I want to see if the Badi is called in FBCJ - so I put a breakpoint on the above.
But it is not called.
I have activated my ZCJ_DOCUMENT.
I expect the Badi to be called after I click POST button in FBCJ - this is when the Fi doc is being created.
Please reply anybody who successfully implemented Badi CJ_DOCUMENT or have the same problem as I do.
Thank you very much,
Tatyana.

Hi,
The BADI cj_document may not be in the path of FBCJ. Use class cl_exithandler to find out the BADIs which are triggered in FBCJ.
Go to SE24.
Put cl_exithandler there.
Display.
There is a method called get_instance.
double click on that method.
there you will see some code.
Find 'CALL METHOD  cl_exithandler=>get_class_name_by_interface' in that code.
Put a break point there.
Now run the transaction FBCJ. and whenever the break point is triggered, watch the field exit_name.
You will find all the BADIs in FBCJ.
Hope this helps.
Regards,
Yayati EKbote

Similar Messages

  • ICal does not run one event that has a Applescript attached to it. 24u?

    I have a number of reoccurring events in iCal that run a Applescript.  Tow of them refuses to run.  I have tried it as a Applescript and saved it as a run only and neither works (the script run fine if I test them by hand).
    so I thought I have a look in the log and found this 24u information. 
    can anybody help out here? I am not sure why it appears, if it is good or bad, how to fix it and if it is at all realted to my problem.  Other scripts seem to run well, it is this one and an other one that do not get activated by iCall.
    They run on a MM running 10.6.8, iCall 4.0.4 (1395.7)
    Thanks.
    Log today:
    19/09/2011 07:00:00          iCal Helper[211]          Error loading /Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX:  dlopen(/Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX, 262): no suitable image found.  Did find:
              /Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX: mach-o, but wrong architecture
    19/09/2011 07:00:00          [0x0-0x12012].com.apple.iCal.helper[211]          iCal Helper: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/24U Appearance OSAX.osax" declares no loadable handlers.
    19/09/2011 07:45:01          iCal Helper[317]          Error loading /Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX:  dlopen(/Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX, 262): no suitable image found.  Did find:
              /Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX: mach-o, but wrong architecture
    19/09/2011 07:45:01          [0x0-0x28028].com.apple.iCal.helper[317]          iCal Helper: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/24U Appearance OSAX.osax" declares no loadable handlers.
    19/09/2011 14:30:02          iCal Helper[1019]          Error loading /Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX:  dlopen(/Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX, 262): no suitable image found.  Did find:
              /Library/ScriptingAdditions/24U Appearance OSAX.osax/Contents/MacOS/24U Appearance OSAX: mach-o, but wrong architecture
    19/09/2011 14:30:02          [0x0-0x73073].com.apple.iCal.helper[1019]          iCal Helper: OpenScripting.framework - scripting addition "/Library/ScriptingAdditions/24U Appearance OSAX.osax" declares no loadable handlers.

    Hi,
    It looks like the version of 24U's Appearance OSAX you have installed does not run on Lion.
    I would contact the developer to see if they have a version that does yet. See http://www.24usoftware.com/AppearanceOSAX
    Alternatively you could look to see if the Applescript really needs to use it.
    Best wishes
    John M
    Edit: If you are running Snow Leopard, I think you may need to make the application "iCal Helper" (which you'll find in iCal's application package) run as 32 bit. I'd also suggest you check this with 24U.

  • What are the symptons of macbook pro hard drive not running fast enough

    what are the symptons of the hard drive not running fast enough

    Physically the drive will be as fast as any other of its class, and if not then it's experiencing a mechanical issue that should prompt a warning or two in the system, especially if you use a drive management tool like Disk Utility that checks the drive's built-in "S.M.A.R.T." diagnostics.
    As for "logical speed," if there are bad blocks on the drive where sectors cannot be read or written to because of a breakdown of the storage medium, then this can result in a program or the entire system crashing or hanging (generally the latter is the case), where it usually pauses for a number of seconds at a time. This is usually accompanied by messages that state "I/O Error" or other similar warning in the OS X Console (in the Applications > Utilities folder).
    Beyond this, drive formatting errors such as might happen after a crash or power outage can result in similar hang-like behavior, though this is usually not as distinct of a hanging behavior as is seen with bad blocks.
    Finally, if the drive is simply full of files or highly fragmented (not as much of a problem in OS X, but it can happen), then this can reduce access time for reading and writing files, and prevent the system from optimizing the use of RAM, which can result in overall slowdowns. Heavy drive use can also cause similar bottlenecks, but this is ususally only an intermittent issue during a time when you are performing a heavy file transfer or copying process, or other task that occupies access to the drive's index and formatting (e.g., if you check it for errors with Disk Utility, then you may see the system pause or slow down during the check).

  • Windows 7 professional - one or more audio services are not running

    I have a windows 7 professional laptop. The audio stopped working suddenly. When i click on the audio icon (with a red x on it) the system tried to troubleshoot the problem. This is the error i see in the troubleshooter.
    One or more audio services isn't is running
    I tried to start the windows audio, windows audio endpoint builder. Neither of them started but gave some error.
    When i tried to restore to a previous version i got an error message that there are some bad sectors on the C drive but could not run the checkdsk on that drive. Instead windows offered me to run it at next reboot. I did multiple reboots but the chkdsk never
    ran.
    I am don't have a windows reinstall disk. Can somebody point me where i can get the windows OS to reinstall it?

    Hi,
    You can contact the Original Equipment Manufacturer (OEM) of your computer for obtaining
    replacement disks and manuals.
    For computer manufacturer contact information,
    visit the following Microsoft Web site:
    http://support.microsoft.com/default.aspx?pr=oemphone
    More information about How to replace Microsoft software or hardware,
    order service packs, and replace product manuals, please see the following KB article:
    http://support.microsoft.com/default.aspx?kbid=326246
    Hope it helps.
    Tracy Cai
    TechNet Community Support

  • Firefox 4.0 will not find update to 4.0.1, add-ons for 4.0.1 will not run

    30 May 2011, 18:22h UTC
    Downloaded 4.0 UK-edition on my laptop, the 4.0 US-edition on my desktop, and the 4.0 UK-edition on a 2nd laptop.
    On mine, updates to 4.0.1 are not found, some add-ons were taken off, as incompatible, that ran on the 4.0 on my desktop (and weren't on the 2nd laptop). Add-ons, now already even compatible with 4.0.1 (running on the 2nd laptop) will not run as 'incompatible' with 4.0 (though listed on the add-ons site as compatible.
    It has stopped telling me that 'something' is pretending to be an update from Firefox (whatever that 'something' be?) since setting the browser to updating manually, but asking me first what to do. All currently installed add-ons have not asked me for some time (though on other computers), and also report as fully up-t0-date.
    Ergo: Neither Firefox 4.0 nor any installed add-ons update correctly.
    Didn't crash, though it 'likes' doing that after printing (always Badly! with dreadful printing options/previews), leaving two tabs (rather than the one before), both of which only can be shut from their context menus. Crash reports have been sent with same email address, but not been answered. This browser has all the qualities of a Beta-release and needs some serious overhauls (it's also not very new or much safer!).
    Example for an add-on that won't install on 4.0, but will under 4.0.1: CookieMonster - which is desperately needed, given your browser still suffers from minimal, insufficient cookie management, incl. lists of domains that wish to set 'another' cookie when no cookies are as yet, allegedly, sitting on the computer.

    I've since updated manually to 4.0.1, but haven't yet tried the full uninstall version, because I have to export plenty of settings first (and/or manually copy them). Also means I'd have to start from scratch with many customizations in No Script.
    That said, I'll try the 'Safe Mode' option tonight, thank you :-)!
    If I have to uninstall the whole shebang, I'd be more tempted to go back to 3.6.x until a few more of 4's teething problems (e.g. the messy print dialogues, particularly preview, which regularly doesn't even work) have been tackled.
    Thanks-1M! for now - keep you posted.

  • I have bought a used macbook, to bad i do not have the admin password. is there any way to bypass this issue with out the Mac OS X disk? (without loosing my obtained files?)

    i have bought a used macbook, to bad i do not have the admin password. is there any way to bypass this issue with out the Mac OS X disk? (without loosing my obtained files?)   I NEED HELP BADLY PLEASE....

    What version of the Mac OS X are you running. Go to the Apple in the upper left corner and select About This Mac and post the version.

  • ITunes can not run because some of it's required files are missing...

    'iTunes can not run because some of it's required files are missing. Please reinstall iTunes.' I get this message when i try to start iTunes, I have reinstalled iTunes for two times know and it still doesn't work. Can anyone please help me with this,
    Joris

    nagrax4s wrote:
    .....I had to run programs to completly errase iTunes and then rewrite parts of the registry.
    too bad I didn't get to you sooner
    Follow these instructions to completely remove Apple software
    http://support.apple.com/kb/HT1923
    Then use free Ccleaner to repeatly repair your registry until it's fixed.
    http://www.piriform.com/ccleaner/download/standard
    download iTunes again from Apple.
    http://www.apple.com/itunes/
    If you have 64bit Vista or Windows 7, look for the seperate download of iTunes for that further down the page.
    Once installed, use the Apple Software Update under your Start Menu to fully update all Apple components.
    Your content will remain on the drive in the Music > iTunes Folder, nothing is deleted.
    You should be making backups of your content regularly, either through iTunes or via copying the iTunesFolder in your Music folder to a external drive.
    Windows is notorious for having "other" issues that make it unstable, we as volunteers helping others can't always resolve those issues.

  • "qmasterd not running" - how this happened and what we did to fix it.

    For this with the message "qmasterd not running".
    This may be of help to those of you who are unsuccessful in
    • initialising qmasterd
    • can't sucessfully 'START' qmaster from the system preferences panel
    • can't start qmasterd from the shell or the startupitems
    • can't establish a cluster in qmasteradmin.app
    • etc etc
    Taste will vary ofcourse.
    SOLUTION: after 2 days of concentrated troubleshooting on this we REINITIALISED the startup disk and RE_INSTALLED THE 10.4.8 O/S and all the applications and replaced (copied) the user data on the primary startup disk.
    Affected H/W:
    • g5 QUAD w/8GB memory and 3.7TB disk (including 2 x 250SATA internal DDMs) with 7800graphic card
    • 30inches HD Cinema display
    HIstory:
    • decided to UPGRADE internal 2 x 250GB SATA1 DDM's with 2 x 500GB sATA2 DDMS because of storage shortage.
    • on advice, we used APPLE MIGRATION ASSITANT to migrate 100% functional OS 10.4.8 startup disk (Macintoish HD) to external FW disk that had a fullfunctional 10.4.8 and apple pro apps as a back up. (This proved to be a very bad error of judgement - a mistake)
    • all data migrated over to external disk sucessfully. System restarted on EXTERNAL DISK and tests (TTPRO) and user apps run - all is ok
    • replaced G5 internal UPPER SATA1 250GB disk with new SATA2 500GB .
    • using G5 startup DVD's , built and initialised OS/X 10.4.8 system on NEW G5 QUAD internal UPPER 500GB SATA2 disk as Macintosh HD.
    • used Apple MIGRATION ASSISTANT to migrate all user and apps and ALL the files and objects from the working EXTERNAL disk we made earlier.
    • reatrted and all looked fine. FCS, SHAKE, MOTION etc etc.. all business apps. UNTIL!..
    • we could NOT get qmasterd to start - msg "qmasterd not running"
    • restarted system many times.. no success.
    ERROR SYMPTOMS:
    • noticed sever apps were corrupted such as WACOM TABLET, LIttle SNITCH and others - these were remidied by reinstallation ... however..
    • console crash reporter contained MANY dumps of qmasterd with general addressing exceptions:
    Exception: EXCBADACCESS (0x0001)
    Codes: KERNPROTECTIONFAILURE (0x0002) at 0x0nnnnnnn
    also r31 contined the page aligned address of the exception.. and this was ALWAYS different.. so assumed a data driven (parm??) corruption.
    • other symptions include that need to kill -9 (force quit) qmasterd as it would NEVER shutdown.
    WHat else we did to try and fix this:
    • repaired disk permissions (disk utility.app) - no luck...
    • repaired qmaster files disk permissions as per http://www.kashum.com/blog/1152611689 and follwd instructions.. no luck
    • removed QMASTER as per the instructions at http://docs.info.apple.com/article.html?artnum=93234 - reinstalled - NO LUCK - still dumps... ;(
    • removed all the qmasterd parms hoping that would help - no luck
    • used many sugesstions form these discussion, COW etc .. including disconnecting all networks... no luck
    • tried out most of the suggestions including an excellent on from Richard BF at http://www.kashum.com/blog/1152611689 - a trully excellent entry for those with the issue of Unable to connect to background process' error dialog problem.
    • einstalled QMASTER for SHAKE4.1 disks - no luck
    • resinstalled FCS (2 hours later) - no luck
    • restarted on secondary system (the external disk) and QMASTER works fine!
    • reinstalled the original 250GB SATA1 - restarted form it to verify QMASTER was ok.. no dumps existed.
    • reinstalled OS 10.4.8 (OS only) .. no luck
    • used CARBONCOPY (CCC) to make new disk - this failed miserably .. will not use this again ever....
    final outcome:
    • concluded that APPLE MIGRATION ASSISTANT had somehow corrupted some objects in the SECOND GENERATION of copy) from external DISK to new internal 500GB SATA2 drive.
    • threw the towel in and initialised the G5 QUAD's UPPER internal DDM (500GB SATA2) - installed a new OS to 10.4.8 + maint
    • tediously installed every APP including ADOBE CS2 and the CS3 photoshop whilst I mess around calling Adobe locally for an activation code (I always need to do this I dunno why).
    so a great waste of 2 days.
    Summary: when QMASTER works it is terrific.. especially for rendering and transcoding... but when it doesn;t it is dreadful.
    Maybe someone with expertise could shed some light on this.
    cheers
    W
    Hong Kong

    HI Chris, I closed it because:
    • at the time + a few eeks after I posted it, I had few views of it .
    • it is just a reference document to suggest the trouble shooting procedures and headaches we endured to try and rectify it in the view that others may try this path
    • it is in fact old news for some who have FCS 2 now.
    The 'fix" is described in the "SOLUTION" part of my post.
    I agree your symptom you are having wth QMASTER is of great frustration.
    I would encourage you however to perserve to get this working because wehn set up it works very well.
    fwiw

  • IN FBCJ REVERSED DOCUMENT DOES NOT APPEAR

    Dear Sir
    We cancelled a document in fbcj. But cancelled document does not appear in fbcj. Although there is a red cross mark by the side of the document. Today's payment balance dose not change. In Corresponding Expense ledger the document is posted. Follow on document show that cash is reversed (exp ledger sing and cash ledger 200200 sign. but this document does not appear in fbcj.
    Tried to revers the revers document but msg given " it is already reversed".
    Please help to resolve this problem
    With regards
    Nilesh

    Hi Nilesh,
    Check mentioned note carefully ! It would rectify the balances of both companu code.
    1309577 - FBCJ: Incorrect balance in cash journal - report RFCJ1
    Read above note & run the program it would rectify the problem. If same balance mismatch error persist ,check mentioned notes
    1727842 FBCJ: Continued problems with TCJ_BALANCE / balance
    Regards
    Mani Kumar

  • Audio and video are not running in sync

    I'm having a problem with the video and sound not running together. When it first happened as any movie or tv show ect. would play the audio and Video would get further and further off as it would play. I reset my iPad and I thought the problem was fixed. But now they just are off by half a second to a second. It doesn't keep getting further apart like before but just stays consistently off. Why is this and what can I do. I'm a apple nubie and just got my iPad a week ago. I don't want mess anything up any further by tinkering.

    Papatodd6464 wrote:
    I'm having a problem with the video and sound not running together. When it first happened as any movie or tv show ect. would play the audio and Video would get further and further off as it would play. I reset my iPad and I thought the problem was fixed. But now they just are off by half a second to a second. It doesn't keep getting further apart like before but just stays consistently off. Why is this and what can I do. I'm a apple nubie and just got my iPad a week ago. I don't want mess anything up any further by tinkering.
    There's nothing you can do on your iPad to fix this. If it's an iTunes movie or TV show, just email them to see if you can re-download the movie, since you might have a bad download.

  • SWF files not running from some lab computers

    Hello,
    Our Flash lab is experiencing strangeness on 8 of its 28 computers. When students create an animation and export it as an SWF file, the animation will not run. They can play the animation from within Flash itself (Enter cmd... watch the timeline progress)... but it just won't run as an SWF file.
    SWF files that are created on any of the non-problematic computers will run on the problem computers, but not the other way around (problem computer> good computer).
    I'm not familiar enough with Flash to troubleshoot this problem. I know that the entire lab was created from one image and all the computers are the same model Dell, running Creative Suite 4 Premium on XP Pro. It is becoming an issue for students as the lab is full and they are having trouble completing their assignments.
    Does anyone have an idea of what's going on... or where to start looking?
    Thanks,
    Alan

    Thanks for the reply Ned. I've checked and the lab is still at the same version. I did find that if we recreated the student's profile and they started out on one of the "good" computers that any future work on a "bad" computer would work.
    I also narrowed it down to a 3D animation... not just any animation that wouldn't work. It seems like the program isn't loading up everything when a student starts Flash for the first time on one of the "bad" computers. Students that first start on a "good" computer can run 3D SWF files successfully on a "bad" computer.
    Well, at least recreating the student profiles is a bandaide fix for now. But I'd like to figure out what went wrong with those 8 computers (I did reload CS on a couple of them... didn't help).

  • Bad interpreter: Operation not permitted on Lion 10.7.3

    My unix scripts are now dead, after the upgrade to 10.7.3. A typical error message is   /bin/bash: bad interpreter: Operation not permitted  Googling this issue shows other people are having build scripts fail and are fixing this by renaming links to libraries.  My scripts are simple, they just run an executable, or used to...  something like this:
    #! /bin/bash
    ./myprogram << EOF
    $1
    EOF

    The interpreter is the thing that comes after "#!"; in your case, /bin/bash. Are you able to open a shell in Terminal? If so, what is your shell, and what do you get from
    ls -Oel /bin/bash
    and
    codesign -vv /bin/bash

  • App is not running on server

    Hi,
    My lccs application is not running on server even server is supporting ssl.
    php version on server is 5.2.14.
    i tried to print lccs RTCAccount object on server its giving some fatal error.
    i got response like .....
    Array
        [wrapper_data] => Array
                [headers] => Array
                        [0] => HTTP/1.1 302 Moved Temporarily
                        [1] => Server: Apache-Coyote/1.1
                        [2] => X-Powered-By: Servlet 2.4; JBoss-4.2.1.GA (build: SVNTag=JBoss_4_2_1_GA date=200707131605)/Tomcat-5.5
                        [3] => Expires: Fri, 15 Oct 2010 15:23:37 GMT
                        [4] => Cache-Control: max-age=30
                        [5] => Set-Cookie: Whitcomb-Ident=vatrai:na2-sdk-9b17de0a-2188-4f2e-89b2-9453f6eb6be2; Domain=collaboration.adobelivecycle.com; Path=/vatrai
                        [6] => Location: https://na2.collaboration.adobelivecycle.com/vatrai?mode=xml&accountonly=true&
                        [7] => Content-Language: en-US
                        [8] => Content-Length: 0
                        [9] => Date: Fri, 15 Oct 2010 15:23:06 GMT
                        [10] => HTTP/1.1 200 OK
                        [11] => Server: Apache-Coyote/1.1
                        [12] => Set-Cookie: JSESSIONID=ZubjKocVM3rJinHDTxkN.22; Path=/
                        [13] => Cache-Control: max-age=0
                        [14] => Content-Type: text/xml;charset=UTF-8
                        [15] => Content-Length: 190
                        [16] => Date: Fri, 15 Oct 2010 15:23:08 GMT
                [readbuf] => Resource id #4
        [wrapper_type] => cURL
        [stream_type] => cURL
        [mode] => r
        [unread_bytes] => 0
        [seekable] =>
        [uri] => https://collaboration.adobelivecycle.com/vatrai?mode=xml&accountonly=true&
        [timed_out] =>
        [blocked] => 1
        [eof] =>
    Array
        [0] =>
    Fatal error:  Uncaught exception 'RTCError' in /home/myapp/public_html/videos/lccs.php:707 Stack trace: #0 /home/myapp/public_html/videos/lccs.php(587): RTC->http_get('https://collabo...', Array) #1 /home/myapp/public_html/videos/lccs.php(254): RTCAccount->do_initialize() #2 /home/myapp/public_html/videos/a.php(16): RTCAccount->__construct('https://collabo...') #3 {main}   thrown in
    /home/myapp/public_html/videos/lccs.php on line
    707

    Sorry.... I am pasting here full code of lccs.php...
    <?php
    ** Adobe LiveCycle Collaboration Service Account Management API
    ** Revision
    **   $Revision: #1 $ - $Date: 2010/07/26 $
    ** Author
    **   Raffaele Sena
    ** Copyright
    **   ADOBE SYSTEMS INCORPORATED
    **     Copyright 2007 Adobe Systems Incorporated
    **     All Rights Reserved.
    **   NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
    **   terms of the Adobe license agreement accompanying it.  If you have received this file from a
    **   source other than Adobe, then your use, modification, or distribution of it requires the prior
    **   written permission of Adobe.
    * error thrown or generated by RTC API
    class RTCError extends Exception {
    * Constants for common user roles
    interface RTCUserRole {
        const NONE = 0;
        const LOBBY = 5;
        const VIEWER = 10;
        const PUBLISHER = 50;
        const OWNER = 100;
    * Constants for node configuration
    interface NodeConfiguration {
        const STORAGE_SCHEME_SINGLE_ITEM = 0;
        const STORAGE_SCHEME_QUEUE       = 1;
        const STORAGE_SCHEME_MANUAL      = 2;
    * a class that generates RTC authentication tokens
    class RTCAuthenticator {
        private $authURL;
        function __construct($url) {
            $this->authURL = $url;
        // Get an RTC authentication token give login and password.
        function login($user, $password, & $retHeaders) {
            $headers = array (
                "Content-Type" => 'text/xml'
            $data = "<request><username>{$user}</username><password>{$password}</password></request>";
            $resp = RTC::http_post($this->authURL, $data, $headers);
            if (RTC::$DEBUG)
                echo "$resp\n";
            try {
                $result = new SimpleXMLElement($resp);
            } catch (Exception $e) {
                throw new RTCError("bad-response");
            if ($result['status'] == "ok") {
                $auth = $result->authtoken;
                if ($auth['type'] == "COOKIE") {
                    $retHeaders["Cookie"] = (string) $auth;
                    return null;
                } else {
                    $gak = base64_encode($auth);
                    return "gak={$gak}";
            } else
                throw new RTCError($resp);
        // Get a guest authentication token.
        function guestLogin($user) {
            $guk = base64_encode("g:{$user}:");
            return "guk={$guk}";
    * a class that deals with meeting sessions and # external collaboration
    class RTCSession {
        private $instance;
        private $account;
        private $room;
        private $secret;
        function __construct($instance, $account, $room) {
            $this->instance = str_replace("#room#", $room, $instance);
            $this->account = $account;
            $this->room = $room;
         * get an external authentication token
        function getAuthenticationToken($accountSecret, $name, $id, $role) {
            $role = (int) $role;
            if ($role < RTCUserRole::NONE || $role > RTCUserRole::OWNER)
                throw new RTCError("invalid-role");
            $utfname = utf8_encode($name);
            $token = "x:{$utfname}::{$this->account}:{$id}:{$this->room}:{$role}";
            $signature = $this->sign($accountSecret, $token);
            $signed = "{$token}:{$signature}";
            // unencoded
            // $ext = "ext={$signed}";
            // encoded
            $encoded = base64_encode($signed);
            $ext = "exx={$encoded}";
            return $ext;
         * get the userId that the server will generate for this user
        function getUserID($id) {
          return strtoupper("EXT-{$this->account}-{$id}");
        function getSecret($baseURL, $authToken, $authHeaders) {
            $data = RTC::http_get("{$baseURL}app/session?instance={$this->instance}&{$authToken}", $authHeaders);
            if (RTC::$DEBUG)
                echo $data;
            $response = new SimpleXMLElement($data);
            $this->secret = (string) $response-> {
                'session-secret' };
        function invalidate($baseURL, $authToken, $authHeaders) {
            $data = "action=delete&instance={$this->instance}&{$authToken}";
            $res = RTC::http_post("${baseURL}app/session", $data, $authHeaders);
            if (RTC::$DEBUG)
                echo $res;
            $this->instance = null;
            $this->account = null;
            $this->room = null;
            $this->secret = null;
        private function sign($acctSecret, $data) {
            $key = "{$acctSecret}:{$this->secret}";
            // Calculate HMAC-SHA1 according to RFC2104
            // http://www.ietf.org/rfc/rfc2104.txt
            $blocksize = 64;
            $hashfunc = 'sha1';
            if (strlen($key) > $blocksize)
                $key = pack('H*', $hashfunc ($key));
            $key = str_pad($key, $blocksize, chr(0x00));
            $ipad = str_repeat(chr(0x36), $blocksize);
            $opad = str_repeat(chr(0x5c), $blocksize);
            $hmac = pack('H*', $hashfunc (($key ^ $opad) .
            pack('H*', $hashfunc (($key ^ $ipad) . $data))));
            return bin2hex($hmac);
    * A class that contains room or template item information.
    class RTCItem {
        public $name;
        public $desc;
        public $created;
        function __construct($name, $desc, $created) {
            $this->name = $name;
            $this->desc = $desc;
            $this->created = date_create($created);
    * a class that deals with account information and provisioning
    class RTCAccount {
        const ROOM_ITEMS = "meetings";
        const TEMPLATE_ITEMS = "templates";
        public $url;
        private $authToken;
        private $uathHeaders;
        private $authenticator;
        private $baseURL;
        private $contentPath;
        function contentURL() {
            return "{$this->baseURL}app/content{$this->contentPath}";
        function __construct($url) {
            $this->url = $url;
            $this->authToken = null;
            $this->authHeaders = array ();
            $this->authenticator = null;
            $this->baseURL = null;
            $this->contentPath = null;
            $this->roomInstance = null;
            if (RTC::$DEBUG)
                echo RTC::$VERSION . "\n";
            $this->do_initialize();
        // Return the node configuration
        function getNodeConfiguration($room, $coll, $node) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $path = "/{$coll}/nodes/{$node}/configuration";
            return RTC::http_get("{$this->baseURL}app/rtc?instance={$instance}&path={$path}&{$this->authToke n}", $this->authHeaders);
        // Return the RTC items given collection and node
        function fetchItems($room, $coll, $node, $items = null) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $params = "instance={$instance}&collection=${coll}&node={$node}";
            if ($items != null) {
                if (!is_array($items))
                    $items = array (
                        $items
                while (list ($i, $it) = each($items)) {
                    $params .= "&item={$it}";
            $params .= "&{$this->authToken}";
            return RTC::http_get("{$this->baseURL}app/rtc?{$params}", $this->authHeaders);
        // Publish an item
        function publishItem($room, $collection, $node, $item, $overwrite = false) {
            $headers = array_merge($this->authHeaders, array ( "Content-Type" => 'text/xml' ));
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $params = "instance={$instance}&action=publish&collection={$collection}&node={$node}";
            if ($overwrite) $params .= "&overwrite={$overwrite}";
            $params .= "&{$this->authToken}";
            $data = "<request>" . RTC::array_toXML($item, "item") . "</request>";
            return RTC::http_post("{$this->baseURL}app/rtc?{$params}", $data, $headers);
        // Retract an item
        function retractItem($room, $collection, $node, $itemID) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $data = "instance={$instance}&collection={$collection}&node={$node}&item={$itemID}&{$this->authTo ken}";
            return RTC::http_post("{$this->baseURL}app/rtc", $data, $this->authHeaders);
        // Set user role
        function setUserRole($room, $userID, $role, $coll = null, $node = null) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
        $data = "instance={$instance}&action=setrole&user={$userID}&role={$role}";
        if ($coll != null)
            $data .= "&collection={$coll}";
        if ($coll != null)
            $data .= "&node={$node}";
        $data .= "&{$this->authToken}";
            return RTC::http_post("{$this->baseURL}app/rtc", $data, $this->authHeaders);
        // Returns information about the account, if active
        function getAccountInfo() {
            $acctid = explode('/', $this->roomInstance);
            $acctid = $acctid[0];
            $data = RTC::http_get("{$this->baseURL}app/account?account={$acctid}&{$this->authToken}", $this->authHeaders);
            return $data;
        // Returns information about the room/instance, if active
        function getRoomInfo($room) {
            $instance = str_replace("#room#", $room, $this->roomInstance);
            $data = RTC::http_get("{$this->baseURL}app/account?instance={$instance}&{$this->authToken}", $this->authHeaders);
            return $data;
        private function do_initialize() {
            if ($this->contentPath)
                return true;
            $data = RTC::http_get("{$this->url}?mode=xml&accountonly=true&{$this->authToken}", $this->authHeaders);
            if (RTC::$DEBUG)
                echo $data;
            try {
                $xml = new SimpleXMLElement($data);
            } catch (Exception $e) {
                throw new RTCError("bad-response");
            if ($xml->getName() == "meeting-info") {
                $this->baseURL = '' . $xml->baseURL['href'];
                $this->url = rtrim($this->baseURL, '/') . parse_url($this->url, PHP_URL_PATH);
                $this->contentPath = '' . $xml->accountPath['href'];
                if ($xml->room)
                    $this->roomInstance = '' . $xml->room['instance'];
                return true;
            if ($xml->getName() == "result") {
                if ($xml['code'] == "unauthorized") {
                    if ($xml->baseURL) {
                $this->baseURL = '' . $xml->baseURL['href'];
                $this->url = rtrim($this->baseURL, '/') . parse_url($this->url, PHP_URL_PATH);
                    $authURL = '' . $xml->authentication['href'];
                    if (substr($authURL, 0, 1) == '/') {
                        $authURL = $this->baseURL . $authURL;
                    $this->authenticator = new RTCAuthenticator($authURL);
                    return false;
            throw new RTCError($data);
    class RTC {
        public static $DEBUG = false;
        public static $USE_CURL = false;
        public static $VERSION = '$Revision: #1 $ - $Date: 2010/07/26 $';
        function http_get($url, $headers = null) {
            if (RTC::$DEBUG) {
                echo "http_get: {$url}\n";
                if ($headers != null)
                    print_r($headers);
            if (RTC::$USE_CURL) {
                 * use curl library
                $req = curl_init($url);
                //if (RTC::$DEBUG) curl_setopt($req, CURLOPT_VERBOSE, true);
                curl_setopt($req, CURLOPT_RETURNTRANSFER, true);
                curl_setopt($req, CURLOPT_FOLLOWLOCATION, true);
                curl_setopt($req, CURLOPT_SSL_VERIFYPEER, false);
                if ($headers)
                    curl_setopt($req, CURLOPT_HTTPHEADER, $headers);
                $resp = curl_exec($req);
                $error = curl_error($req);
                if ($error == "")
                    $status = curl_getinfo($req, CURLINFO_HTTP_CODE);
                else
                    $status = $error;
                curl_close($req);
                if ($error != "" && $status != 200)
                    throw new RTCError($error);
                else
                    return $resp;
            } else {
                 * use streams
                if ($headers == null)
                    $header = '';
                else {
                    $header = "";
                    foreach ($headers as $name => $value) {
                        if ($header != "")
                            $header .= "\r\n";
                        $header = $header . $name . ": " . $value;
                $opts = array (
                    'http' => array (
                        'method' => 'GET',
                        'header' => $header
                $context = stream_context_create($opts);
                $fp = fopen($url, 'r', false, $context);
                if (!$fp)
                    throw new RTCError("connection-failed");
                $meta = stream_get_meta_data($fp);
                $statusLine = explode(' ', $meta['wrapper_data'][0], 3);
                $resp = stream_get_contents($fp);
                fclose($fp);
               // printf("<pre>%s</pre>", print_r($meta, TRUE));
                //printf("<pre>%s</pre>", print_r($resp, TRUE));
                //printf("<pre>%s</pre>", print_r($statusLine, TRUE));
                if ($statusLine[1] == "200" | $statusLine[1] == "302")
                    return $resp;
                else
                    throw new RTCError($statusLine[1]);
        function http_post($url, $params, $headers = null) {
            if (is_array($params))
                $data = http_build_query($params);
            else
                $data = $params;
            if (RTC::$DEBUG) {
                echo "http_post: {$url} {$data}\n";
                if ($headers != null)
                    print_r($headers);
                if ($root == 'configuration')
                    $result .= '</field>';
                else
                    $result .= '</property>';
            if ($root != null)
                $result .= "</{$root}>";
            return $result;
    if (!isset($_SERVER['QUERY_STRING'])) {
      function usage($progname) {
        echo "usage: {$progname} [--debug] [--host=url] account user password command parameters...\n";
        echo "\n";
        echo "where <command> is:\n";
        echo "    --list\n";
        echo "    --create room [template]\n";
        echo "    --delete room\n";
        echo "    --delete-template template\n";
        echo "    --ext-auth secret room username userid role\n";
        echo "    --invalidate room\n";
        echo "\n";
        echo "    --get-node-configuration room collection node\n";
        echo "    --fetch-items room collection node\n";
        echo "    --register-hook endpoint [token]\n";
        echo "    --unregister-hook\n";
        echo "    --hook-info\n";
        echo "    --subscribe-collection room collection\n";
        echo "    --unsubscribe-collection room collection\n";
        echo "    --create-node room collection [node]\n";
        echo "    --remove-node room collection [node]\n";
        echo "    --set-user-role room userID role [collection [node]]\n";
        echo "    --publish-item room collection node itemID body\n";
        echo "    --retract-item room collection node itemID\n";
        exit(1);
      function getRole($role) {
        $role = strtolower($role);
        if ($role == "none")
          return RTCUserRole::NONE;
        else if ($role == "lobby")
          return RTCUserRole::LOBBY;
        else if ($role == "viewer")
          return RTCUserRole::VIEWER;
        else if ($role == "publisher")
          return RTCUserRole::PUBLISHER;
        else if ($role == "owner")
          return RTCUserRole::OWNER;
        else if (is_numeric($role))
          return intval($role);
        else
          throw new RTCError("invalid-role");
      // running from the command line
      $args = $_SERVER['argv'];
      $progname = array_shift($args);
      $host = "http://connectnow.acrobat.com";
      $accountName = "<YOUR DEVELOPER ACCOUNT NAME>";
      $username = "sdkuser";
      $password = "sdkpassword";
      while (count($args) > 0) {
        $arg = $args[0];
        if ($arg == "--debug")
          RTC::$DEBUG = true;
        else if (strncmp($arg, "--host=", 7) == 0)
          $host = substr($arg, 7);
        else if (strncmp($arg, "-", 1) == 0) {
          echo "invalid option: $arg\n";
          $args = array();
        else
          break;
        array_shift($args);
      if (count($args) < 3) {
        usage($progname);
      $accountName = array_shift($args);
      $username = array_shift($args);
      $password = array_shift($args);
      $host = rtrim($host, '/');
      $accountURL = "{$host}/${accountName}";
      try {
        $am = new RTCAccount($accountURL);
        $am->login($username, $password);
        if (count($args) == 0 || $args[0] == "--list") {
          echo "==== template list for {$accountName} ====\n";
          foreach ($am->listTemplates() as $t) {
            echo "{$t->name}:{$t->created->format(DATE_RFC822)}\n";
          echo "==== room list for {$accountName} ====\n";
          foreach ($am->listRooms() as $r) {
            echo "{$r->name}:{$r->desc}:{$r->created->format(DATE_RFC822)}\n";
        else if ($args[0] == "--create") {
          $am->createRoom($args[1], count($args) > 2 ? $args[2] : null);
        else if ($args[0] == "--delete") {
          $am->deleteRoom($args[1]);
        else if ($args[0] == "--delete-template") {
          $am->deleteTemplate($args[1]);
        else if ($args[0] == "--ext-auth") {
          if (count($args) >= 6)
            $role = getRole($args[5]);
          else
            $role = RTCUserRole::LOBBY;
          $session = $am->getSession($args[2]);
          $token = $session->getAuthenticationToken($args[1], $args[3], $args[4], $role);
          echo $token . "\n";
        else if ($args[0] == "--info") {
          if (count($args) == 1) {
            echo $am->getAccountInfo();
          } else {
            echo $am->getRoomInfo($args[1]);
        else if ($args[0] == "--get-node-configuration") {
          echo $am->getNodeConfiguration($args[1], $args[2], $args[3]);
        else if ($args[0] == "--fetch-items") {
          echo $am->fetchItems($args[1], $args[2], $args[3]);
        else if ($args[0] == "--register-hook") {
          if (count($args) > 2)
            echo $am->registerHook($args[1], $args[2]);
          else
            echo $am->registerHook($args[1]);
        else if ($args[0] == "--unregister-hook") {
          echo $am->unregisterHook();
        else if ($args[0] == "--hook-info") {
          echo $am->getHookInfo();
        else if ($args[0] == "--subscribe-collection") {
          if (count($args) > 3)
            echo $am->subscribeCollection($args[1], $args[2], $args[3]);
          else
            echo $am->subscribeCollection($args[1], $args[2]);
        else if ($args[0] == "--unsubscribe-collection") {
          if (count($args) > 3)
            echo $am->unsubscribeCollection($args[1], $args[2], $args[3]);
          else
            echo $am->unsubscribeCollection($args[1], $args[2]);
        else if ($args[0] == "--publish-item") {
          echo $am->publishItem($args[1], $args[2], $args[3],
            array( 'itemID' => $args[4], 'body' => $args[5] ));
        else if ($args[0] == "--retract-item") {
          echo $am->retractItem($args[1], $args[2], $args[3], $args[4]);
        else if ($args[0] == "--create-node") {
          echo $am->createNode($args[1], $args[2], $args[3]);
        else if ($args[0] == "--remove-node") {
          if (count($args) > 3)
            echo $am->removeNode($args[1], $args[2], $args[3]);
          else
            echo $am->removeNode($args[1], $args[2]);
        else if ($args[0] == "--set-user-role") {
          $role = getRole($args[3]);
          if (count($args) > 5)
            echo $am->setUserRole($args[1], $args[2], $role, $args[4], $args[5]);
          else if (count($args) > 4)
            echo $am->setUserRole($args[1], $args[2], $role, $args[4]);
          else
            echo $am->setUserRole($args[1], $args[2], $role);
        else {
          usage($progname);
      } catch(RTCError $e) {
        echo "Error: {$e}";
    ?>
    Thanks,
    Vishnu

  • Gimp will not run properly

    I just purchased a 24 inch Imac and Gimp will not run properly. I have the latest system updates and firmware. Gimp starts X11 and appears to load, but the only item visible is the Gimp menu, none of the tools. It shows as running in the dock.
    If I try to open a graphic with Gimp, it loads but the graphic is not visible and only the Gimp menu is visible in the menu bar. It shows up as running in the dock.
    It works fine on a G4 quicksilver. I have the latest version 2.2.11
    Thanks,
    Fran
    IMAG INTEL   Mac OS X (10.4)  

    Hello Francis,
    Did Gimp ever load properly? On first load, it should have gone through an installer within X11. Also, I've noticed that my image windows start up hidden. There also may be a bug in which clicking on the Gimp app icon in the dock itself won't bring the windows forward, so you have to use the X11 icon instead. Try using Expose to show all windows in all applications to see if they've opened but sort of "off-screen."
    It could be a bad installation, or it could be that somehow the toolbars and palettes, etc. in Gimp just never appeared. Check to make sure X11 is up to date as well. I'm currently running 1.1.3 with XFree86 4.4.0.

  • Interactive reporting service1 not running

    Hi All,
    Whenever i try to logon to Workspace i am getting this message "Could not find a Hyperion Reporting and Analysis - System 9 server running on <servername> at port 6800. Please verify your server connect string and confirm that the server is up."
    Earlier i was able to log on to workspace without any error. I tried to track down the error and found that "Hyperion S9 BI+ Interactive reporting Service" is not running. I tried to run it both from front and back end but it is not getting started.
    I then tried to re-configue it with shared service but it is getting failed now. The configerr log says
    (Jun 02, 2010, 10:37:51 AM), com.hyperion.cis.config.wizard.RunAllTasksWizardAction, ERROR, Error:
    java.lang.NoClassDefFoundError: com/brio/one/config/ConfigurationManager
         at com.hyperion.avalanche.config.AvalancheHubUtils.store(AvalancheHubUtils.java:65)
         at com.hyperion.avalanche.config.AvalancheHubRegistration.storeInfo(AvalancheHubRegistration.java:179)
         at com.hyperion.avalanche.config.AvalancheHubRegistration.setHubUrl(AvalancheHubRegistration.java:82)
         at com.hyperion.cis.config.wizard.RunAllTasksWizardAction.executeHubRegistrationTask(RunAllTasksWizardAction.java:339)
         at com.hyperion.cis.config.wizard.RunAllTasksWizardAction.execute(RunAllTasksWizardAction.java:165)
         at com.installshield.wizard.RunnableWizardBeanContext.run(Unknown Source)
    Please help...i am badly stuck.
    Thanks in advance
    Suman

    Hi, Check the Core Services exists. If not you might have to reconfigure the Reporting and Anlaysis services again.
    Thanks
    Radhika

Maybe you are looking for

  • ITunes.exe Error Message

    Grateful for any help advice out there. I am unable to copy songs for iTunes 6 to my iPod video, even though there is plenty of space left on the iPod. I can upload music from CDs to iTunes, but when I attempt to transfer them to the iPod nothing hap

  • New server in my network list replacing my server

    Recently a new unprotected server appeared in my home server list which I noted my iPad was trying to use instead of my regular home one it always uses. On the ipad I went to Settings and selected this server, pressed blue arrow on right to get more

  • Lightroom 3.4 crashes when importing folders from local HD

    I'm running Windows 7 32-bit SP1 and have upgraded from Lightroom 3.3 to 3.4 but now when I try to import a folder from my C: drive Lightroom crashes: I click on the + sign next to Folders in the left hand panel and click on Add Folder I browse to th

  • Is there any software that i can hook up to my ipod? like linux and android?

    ok so i wanna put linux or something like that on my 5g ipod touch but i cant find anything out there on the internet so can you maybe send a link to something like linux

  • Number of posted documents

    Hi All, Simple question. Do you know about any standard report showing number of documents per document type? Thanks! Jan