Compiling code generated for Scripting Bridge

Hi,
I have generated code for iTunes on MAC OS X leopard, I added the generated header file in my project, and imported (#import "Itunes.h") in my implementation file of Objective 'C'. I also linked my project with Scripting Bridge. (/System/Library/Frameworks/ScriptingBridge.framework.)
But when I build my project I get following error,
"error ScriptingBridge/ScriptingBridge.h no such file or directory".
MY project link with other framework, cocoa, AppKit, WebKit fine, and it has been working fine as a web kit plug-in.
I am new to MAC and Objective 'C' programming, could some one help solve this problem.
Thanks,
kumar
Sample Code from I Tunes.h
++++++++++++++++++++++++++++
#import <AppKit/AppKit.h>
#import <ScriptingBridge/ScriptingBridge.h>
@class ITunesPrintSettings, ITunesApplication, ITunesItem, ITunesArtwork, ITunesEncoder, ITunesEQPreset, ITunesPlaylist, ITunesAudioCDPlaylist, ITunesDevicePlaylist, ITunesLibraryPlaylist, ITunesRadioTunerPlaylist, ITunesSource, ITunesTrack, ITunesAudioCDTrack, ITunesDeviceTrack, ITunesFileTrack, ITunesSharedTrack, ITunesURLTrack, ITunesUserPlaylist, ITunesFolderPlaylist, ITunesVisual, ITunesWindow, ITunesBrowserWindow, ITunesEQWindow, ITunesPlaylistWindow;
typedef enum {
ITunesEKndTrackListing = 'kTrk' /* a basic listing of tracks within a playlist */,
ITunesEKndAlbumListing = 'kAlb' /* a listing of a playlist grouped by album */,
ITunesEKndCdInsert = 'kCDi' /* a printout of the playlist for jewel case inserts */
} ITunesEKnd;
typedef enum {
ITunesEnumStandard = 'lwst' /* Standard PostScript error handling */,
ITunesEnumDetailed = 'lwdt' /* print a detailed report of PostScript errors */
} ITunesEnum;

Hi,
Could you provide some more details on the entity bean? Like, part of ejb-jar,the implementation code?
Does your bean use any field by name 'dirty'?
There was some discussion on a similar problem here - http://forums.oracle.com/forums/message.jsp?id=906659
Hope this helps,
Neelesh
OTN Team @IDC

Similar Messages

  • Code generated for totals

    Is there a way to see the code that is generated for totals on a report?
    Thanks,
    Tricia

    If you mean the code that is used to calculate the totals that appear on a Discoverer report, then no, unfortunately you cann't.
    Rod West

  • Dreamweaver as code generator for use in other applications?

    Hello and thank you in advance for your time and your help!
    I realize and apologize for this lengthy post but I had to explain my issue thoroughly...
    I've just begun teaching myself to use Dreamweaver CS3 (on an iMac running OS X 10.5.8 - Leopard) with the  "Dreamweaver CS3 Missing Manual". I don't know HTML or CSS but am very  willing to learn as much as I can. In the near future, I hope to create a  new website for my domain in Dreamweaver. However, I have an urgent and  immediate need and would like to know whether Dreamweaver can serve a specific purpose...
    My question is whether I will still be able to accomplish the following (even if it is by different means) once I convert to Dreamweaver from FrontPage AND whether or not I should abolish all of the current files at my web server and remove FrontPage extensions before I invest any time into making Dreamweaver my new tool for website development and maintenance.
    I have a domain hosted by GoDaddy and a rather old website that I created using FrontPage 2002 (on a Windows XP desktop). For over 5 years now, I've used FrontPage so that I can work WYSIWYG to generate HTML code that I use in my eBay auction listings. Recently, however, the "network folder" for my web server (on the Windows XP desktop) stopped accepting my password and I cannot find a fix for it. It's my opportunity to finally break from FrontPage but I'm hoping that, before I do, someone can tell me whether or not Dreamweaver can serve my interim and long-term purposes.
    I've been uploading image files using the "network folder" in Windows XP that I set up with FrontPage over 5 years ago. I "drag and drop" or "cut and paste" image files from my computer to my web server in Windows Explorer via the "network folder". Once the images are on the web server, I open FrontPage and ensure that the images show up in my web server files. I then open an existing .html document that I have saved on my hard drive, replace text and images within the file, save the file under a different file name, and then switch to code view where I copy the code directly from FrontPage into my eBay listing. This works perfectly well and has for over 5 years. I do not publish these .html files to the web, nor do I upload the .html files to my web server. They exist only on my hard drive and simply to provide the underlying HTML code for the eBay listings and nothing more. This method allows the images in my eBay auctions to be automatically sourced to their location on my web server without requiring me to do anything more than insert the image(s) from my web server into the .html document/file.
    I think I'm discovering that Dreamweaver works specifically with websites and I'm wondering whether I can use it more generically in this way. If I'm learning correctly, Dreamweaver is quite particular about web server files having an exact match to a root folder on my hard drive. I've defined my site within Dreamweaver and I've since downloaded all existing files from my web server to my hard drive within a folder that is designated as the root folder. However, when I now open an existing .html document (one originally created in FrontPage and stored on my hard drive only) and replace an image (by cutting the existing image and dragging the other from the "remote view" of the "files" pane) with one that exists both on my web server and in my root folder, Dreamweaver makes the source/reference path point to the image file on my hard drive and, as you know, that won't do if I transfer that code to my eBay listing. So I've uploaded the actual .html file to the web server within Dreamweaver (something that I never had to do with FrontPage) and now I can change the HTML code manually (or the source in the "properties" panel for the image) for the image source to include "http://mydomain/..." (it doesn't include that automatically as FrontPage did). That now seems to make the code work but I have to store my .html files on the server and I have to make that manual change.
    My question is whether I will still be able to do accomplish  the following (even if it is by different means) once I convert to  Dreamweaver from FrontPage AND whether or not I should abolish all of  the current files at my web server and remove FrontPage extensions  before I invest any time into making Dreamweaver my new tool for website  development and maintenance.
    Thank you very sincerely for taking the time to read this and for your response and good advice!

    Get Turbo Lister (a free page editing and listing tool from eBay).
    http://pages.ebay.com/turbo_lister/
    eBay uses some seriously flawed markup on their auction pages.  In fact, they don't even ALLOW you to use good code. You're better off using their proprietary tools for this.   IMO, DW is not the right tool for creating eBay pages.
    When you're ready to build a serious web site, come back to Dreamweaver.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • Is code generated for target "1.5" faster than for "1.1"?

    Hi there!
    I am just interrested if it helps the JIT to compile classes with "-target 1.5", so that there are some metadatas in the classfiles or such stuff.
    Any numbers out there?
    Thanks in advance, lg Clemens

    Hi again.
    Hmm, but why add target if there is already an -source option if it does not change things whith bytecode.
    Why add an option which only limits the number of supported platforms, that does not make much sence in my eyes...
    lg Clemens

  • Looking for a code generator

    Hi, Do you know any code generator for java (JSP)?
    Thanks

    Hm....well actually I have found one yesterday
    it's magic edeveloper
    @GeneralYerevan
    Perhaps you can be more detail :(

  • Scripting Bridge confusion

    Note that this is not about scripting "Bridge", the Adobe product, but rather the Mac OS X technology "Scripting Bridge"...*that* has made googling for an answer quite difficult!
    Anyway, I'm trying to use Mac's Scripting Bridge technology to do a little bit of control of Photoshop from my Cocoa app.  All I'm really trying to do at this point is to save all files currently open in PS (CS3) as JPEGs with quality = 12.
    I've run the 'sdef ... | sdp ...' tool to generate the header for Scripting Bridge.  I get a handle to the application, get all the open documents, and start looping over them using this code:
    AdobePhotoshopCS3Application *psApp = [SBApplication applicationWithBundleIdentifier:@"com.adobe.Photoshop"];
    SBElementArray *docs = [psApp documents];
    NSUInteger index ;
    AdobePhotoshopCS3Document *doc, *savedDoc = nil;
    AdobePhotoshopCS3JPEGSaveOptions *options = [[[psApp classForScriptingClass:@"JPEG save options"]
                                                 alloc] init];
    for (index = 0; index < [docs count]; index++) {
      doc = [[docs objectAtIndex:index] get];
    I now wish to add in a call to -saveIn:as:copying:appending:withOptions: with options.quality=12;,  but am confused on how to use the options object.  I can create the it just fine, but  I can't set the quality property.  The docs say "Immediately after creating the object, insert it in the appropriate element array. The object is not “viable” in the application until it has been added to its container. Consequently, you cannot set or access its properties until it’s been added."  Add it to what?  Isn't it just a parameter to the -saveIn: method?
    Can anyone clear up my confusion on this?
    Thanks!
    randy

    I'm bumping this because I've been looking into this myself.  I've been trying to simply open a file using Scripting Bridge. What it boils down to is that Photoshop really isn't Scripting Bridge-savvy. Here's the deal...
    Apple's docs really spell it out like it is. Most classes have a container, which is a mutable array, that they need to be added to before they can be acted upon, as shown in the generated header...
    @interface photoshopCS4Application : SBApplication
    - (SBElementArray *) documents;
    - (SBElementArray *) fonts;
    - (SBElementArray *) notifiers;
    ...and that is the complete list of top-level containers available to us. Because we don't have an array made available to us to store the newly created photoshopCS4OpenOptions object, we can't use the object and by extension can't make a document. Therefore, we can't use the open command in Scripting Bridge. The punchline here is that the same can be said of all the commands that require some kind of options object. Now I'm going to investigate the possibility of just sending an AppleEvent of some kind and bypass Scripting Bridge entirely, but my hopes are dim and I'll have to revert back to Applescript for individual commands.
    If I'm wrong (and I'm praying someone will have a way to prove me exactly that), then I will be happy to edit or amend my answer here. And if I could find where to submit a bug report or feature request to Adobe in their voluminous website, I would.

  • JNI code generator

    Hi all
    We are planning to use a library(written in fortran) for a particular data format (all binary).we also have the "C Wrappers" around the fortran code.We cannot re-write the whole thing in java since it was written around 20 yrs back and we don't have any knowledge of fortran,also it takes lot of man power to learn and understand and then re-implement it.So we are looking for a automatic JNI code generator for these C wrappers.
    I found that there's one called SWIG but user recommendation was less for it.so do we have any other tools available??
    thanks
    Sree

    You may also create a DLL from the C wrapper then use a generic Java/DLL wrapper to call those exported functions.
    There are plenty of generic wrapper, commercial or free.
    For example JNative is the tool I develop under LGPL and use.
    --Marc (http://jnative.sf.net)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Error during distribution for compiled code generation-Reply

    Hi,
    Looking at your error messages, it looks as though your build is failing during the code generation phase of an autocompilation. To determine why the code generator crashed, either look in the $FORTE_ROOT/log/forte_ex*.log files or don't use autocompilation and use fcompile.
    There are many reasons why the code generator could crash. Some of the things I've come across are running out of memory and trying to find invalid classes.
    If its the invalid class problem you'll find a message like:
    Generating code for partition BLTCustomWindow_cl0_Part1.
    ERROR: Exiting due to following exception:
    SYSTEM ERROR: Client partition FTCompile_cl0_Client was terminated by escaped
    exception. See the remainder of the error stack for more information.
    Class: qqsp_ResourceException
    Error #: [1001, 3]
    Detected at: qqrt_ForteExecAgent::LoadPartition at 1
    Error Time: Tue Aug 18 17:52:44
    Exception occurred (locally) on partition "Forte_Executor", (partitionId =
    9EA25A00-36FE-11D2-87C4-502F15BEAA77:0x1, taskId =
    [9EA25A00-36FE-11D2-87C4-502F15BEAA77:0x1.6]) in application
    "FTCompile_cl0", pid 28331 on node stardev in environment <unknown>.
    FATAL ERROR: Invalid class ProductBMServices.ProductSecurityMgrProxy
    (0x4ecd,0x19a)
    Class: qqsp_ImplementationException
    Detected at: qqcg_TRclass::SetClass at 2
    Last TOOL statement: method ForteCompiler.ProcessPGF
    Error Time: Tue Aug 18 17:52:44
    Exception occurred (locally) on partition "Forte_Executor",
    (partitionId = 9EA25A00-36FE-11D2-87C4-502F15BEAA77:0x1, taskId =
    [9EA25A00-36FE-11D2-87C4-502F15BEAA77:0x1.6]) in application
    "FTCompile_cl0", pid 28331 on node stardev in environment <unknown>.
    The solution for this instance is to clean up the invalid classes using the c4tstdrv utility.
    c4tstdrv > setrepos star8
    c4tstdrv > setwork dmcompiledbuild
    c4tstdrv > open
    Type Service Flags Level
    err sh * 255
    trc rp 1 4
    c4tstdrv > findproj productbmservices
    c4tstdrv > cleanuprtclasses
    Removing extraneous RTclass ProductShootingLocationMgrProxy
    Removing extraneous RTclass PRTerritoryBaseMgrProxy
    Removing extraneous RTclass PRTerritoryMgrProxy
    Removing extraneous RTclass TalentBaseMgrProxy
    Removing extraneous RTclass TalentTypeMgrProxy
    Removing extraneous RTclass TitleTypeBaseMgrProxy
    Removing extraneous RTclass TitleTypeMgrProxy
    Removing extraneous RTclass ProductSecurityBaseClass
    Removing extraneous RTclass ProductSecurityBaseQuery
    Removing extraneous RTclass ProductSecurityQuery
    Removing extraneous RTclass ProductSecurityMgrProxy
    c4tstdrv > commit
    c4tstdrv > exit
    Integrate the changes to the workspace, start the build again and this should have cured the problem.
    However, its hard to know what the cause of your problem is without seeing the output in the log files.
    Good luck.
    Mark Carruthers
    20th Century Fox
    "Forte Consultants" <[email protected]> 01/22/99 08:35am >>>
    Hi,
    I'm doing application distribution for my application using a fscript
    script and am forcing compilation on 2 of my partitions.
    This I have been doing from quite sometime successfully. Recently I
    developed a new service and plugged it into my application for
    deployment.
    I'm successfully able to distribute & deploy the interpreted code. But
    I'm getting a long list of system errors when I try doing distribution
    for compiled code. And I see only one of the .exe generated instead of
    two because of which I'm unable to go ahead with installaion. I would
    appreciate if anybody let me know why this's happening ?. The following
    is the main chunk of this error list.
    Thanks in advance.
    --Anand Ramaswamy
    SYSTEM ERROR: Cannot resolve the distributed reference for an object of
    class
    (qqlo_Object) named (<Unknown>) for the reasons below.
    Class: qqsp_DistAccessException
    Error #: [601, 144]
    Detected at: qqdo_ProxyMgr::ResolveOutGoingProxy at 10
    Error Time: Fri Jan 22 10:44:22
    Exception occurred (locally) on partition "Fscript_cl9_Client",
    (partitionId = 32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1,
    taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.1]) in application
    "fscript", pid 4b81 on node MOOSUP in environment IGTSDENV.
    SYSTEM ERROR: Can not initially communicate with the object named
    (Unnamed),
    which is supposed to be in partition
    (32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x616:0x1).
    Class: qqsp_DistAccessException
    Error #: [601, 140]
    Detected at: qqdo_ProxyMgr::CheckAccess at 1
    Error Time: Fri Jan 22 10:44:22
    Exception occurred (locally) on partition "Fscript_cl9_Client",
    (partitionId = 32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1,
    taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.1]) in application
    "fscript", pid 4b81 on node MOOSUP in environment IGTSDENV.
    SYSTEM ERROR: Attempt to send to unknown destination partition
    (32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x616:0x1).
    Class: qqsp_DistAccessException
    Error #: [601, 102]
    Detected at: qqdo_PartitionMgr::SendMsg at 1
    Error Time: Fri Jan 22 10:44:22
    Distributed method called: qqdo_InternalMessage.<Message> (object
    name
    Unnamed) from partition "CodeGenerationSvc_cl0_Part1-router",
    (partitionId
    = 32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615.2]) in application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV
    Exception occurred (locally) on partition "Fscript_cl9_Client",
    (partitionId = 32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1,
    taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.1]) in application
    "fscript", pid 4b81 on node MOOSUP in environment IGTSDENV.
    SYSTEM ERROR: Partition (32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x616:0x1)
    no
    longer exists. The process associated with the partition probably
    terminated.
    Class: qqsp_DistAccessException
    Detected at: qqdo_PartitionMgr::CheckStarted at 1
    Error Time: Fri Jan 22 10:44:22
    Exception occurred (locally) on partition "Fscript_cl9_Client",
    (partitionId = 32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1,
    taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.1]) in application
    "fscript", pid 4b81 on node MOOSUP in environment IGTSDENV.
    SYSTEM ERROR: This method invocation is being retried because the
    failures
    shown below and the fact that the dialog duration is MESSAGE. This is
    try #2.
    Class: qqsp_DistAccessException
    Error #: [601, 54]
    Detected at: qqdo_Message::Failed at 1
    Error Time: Fri Jan 22 10:44:19
    Exception occurred (locally) on partition "Fscript_cl9_Client",
    (partitionId = 32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1,
    taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.1]) in application
    "fscript", pid 4b81 on node MOOSUP in environment IGTSDENV.
    SYSTEM ERROR: The load balanced router is disabled or has no members.
    This
    can happen if all of the members terminated or failed.
    Class: qqsp_DistAccessException
    Error #: [601, 161]
    Detected at: qqdo_LbRouter::Route at 1
    Error Time: Fri Jan 22 10:44:19
    Distributed method called: GenerationMgrProxy.GeneratePartitionCode
    (object name
    site/codegenerationsvc_cl0/codegenerationsvc_cl0-codegensvc)
    from partition "Fscript_cl9_Client", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614.2]) in application
    "fscript",
    pid 4b81 on node MOOSUP in environment IGTSDENV
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    SYSTEM ERROR: This method invocation is being retried because the
    failures
    shown below and the fact that the dialog duration is MESSAGE. This is
    try #1.
    Class: qqsp_DistAccessException
    Error #: [601, 54]
    Detected at: qqdo_Message::Failed at 1
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (locally) on partition "Fscript_cl9_Client",
    (partitionId = 32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1,
    taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.1]) in application
    "fscript", pid 4b81 on node MOOSUP in environment IGTSDENV.
    SYSTEM ERROR: Access to a load balanced router member (which is a
    service
    object) failed for the reasons below.
    Class: qqsp_DistAccessException
    Error #: [601, 162]
    Detected at: qqdo_LbRouter::Route at 2
    Error Time: Fri Jan 22 10:44:15
    Distributed method called: GenerationMgrProxy.GeneratePartitionCode
    (object name
    site/codegenerationsvc_cl0/codegenerationsvc_cl0-codegensvc)
    from partition "Fscript_cl9_Client", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614.3]) in application
    "fscript",
    pid 4b81 on node MOOSUP in environment IGTSDENV
    Distributed method called: qqlo_Object.<Message> (object name
    Unnamed)
    from partition "Forte_Executor", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615.12]) in application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    SYSTEM ERROR: Cannot resolve the distributed reference for an object of
    class
    (qqlo_Object) named (<Unknown>) for the reasons below.
    Class: qqsp_DistAccessException
    Error #: [601, 144]
    Detected at: qqdo_ProxyMgr::ResolveOutGoingProxy at 10
    Error Time: Fri Jan 22 10:44:15
    Distributed method called: qqlo_Object.<Message> (object name
    Unnamed)
    from partition "Forte_Executor", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615.12]) in application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    SYSTEM ERROR: This distributed reference was previously invalidated due
    to the
    reasons below.
    Class: qqsp_DistAccessException
    Error #: [601, 132]
    Detected at: qqdo_ProxyMgr::ResolveOutGoingProxy at 3
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    INFORMATION: The connection to the partner was terminated by the
    Communication
    Manager for the reasons below.
    Class: qqsp_DistAccessException
    Detected at: qqdo_PartitionMgr::StopLocation at 1
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    INFORMATION: Network partner closed connection. This usually means the
    process at the other end of the wire failed. Please go look there and
    find
    out why.
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 2
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    INFORMATION: Asynchronous Failure: Recieved a close from the network
    partner:
    Internet Location - Host: moosup.iroquois.com Port Number: 2504 Dot:
    193.1.11.26 %LINKDISCON, network partner disconnected logical link
    Event 4
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 1
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    SYSTEM ERROR: This method invocation is being retried because the
    failures
    shown below and the fact that the dialog duration is MESSAGE. This is
    try #1.
    Class: qqsp_DistAccessException
    Error #: [601, 54]
    Detected at: qqdo_Message::Failed at 1
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    INFORMATION: The connection to the partner was terminated by the
    Communication
    Manager for the reasons below.
    Class: qqsp_DistAccessException
    Detected at: qqdo_PartitionMgr::StopLocation at 1
    Error Time: Fri Jan 22 10:44:15
    Distributed method called: qqlo_Object.<Message> (object name
    Unnamed)
    from partition "Forte_Executor", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615.12]) in application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    INFORMATION: Network partner closed connection. This usually means the
    process at the other end of the wire failed. Please go look there and
    find
    out why.
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 2
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    INFORMATION: Asynchronous Failure: Recieved a close from the network
    partner:
    Internet Location - Host: moosup.iroquois.com Port Number: 2504 Dot:
    193.1.11.26 %LINKDISCON, network partner disconnected logical link
    Event 4
    Class: qqsp_DistAccessException
    Detected at: qqcm_HoseFSM::ReceivedClose at 1
    Error Time: Fri Jan 22 10:44:15
    Exception occurred (remotely) on partition
    "CodeGenerationSvc_cl0_Part1-router", (partitionId =
    32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x615:0x1, taskId =
    [32271CD0-4E62-11D2-AF29-9F40A9E1AA77:0x614:0x1.10]) in
    application
    "CodeGenerationSvc_cl0", pid 7487 on node MOOSUP in environment
    IGTSDENV.
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi,
    If this INCLUDE is in a function group go the MAIN program and activate from there.
    Can you list out the include name?

  • Scripting Bridge for iTunes

    I'm trying to do something simple and efficient with scripting bridge and iTunes, which is to display the number of the track currently playing in the playlist (aka "get index of current track"), so here's my try:
    // initialization
    iTunes = \[ SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes" \] ;
    // repeat this on a timer
    iTunesTrack* currentTrack = \[ iTunes currentTrack \] ;
    iTunesPlaylist* currentPlaylist = \[ iTunes currentPlaylist \] ;
    SBElementArray* currentTracks = \[ currentPlaylist tracks \] ;
    NSInteger index = \[ currentTracks indexOfObject: currentTrack \] ;
    but this doesn't work because currentTracks and currentTrack are references that haven't been evaluated (and indexOf doesn't persuade them to evaluate). This can be fixed by:
    NSInteger index = \[ \[ currentTracks get \] indexOfObject: \[ currentTrack get \] \] ; // leaks mem!
    and while the index is now correct, this leaks memory (about 1K bytes per call - alot more after some time!). Am I doing something wrong? Does Scripting Bridge have a memory leak? Is there a better way to get this index, or am I stuck going back to AppleScript (I promised myself I'd quit if it got messy). Thx, -L.

    Thanks again for your collective guidance - per your advice, I've tried allocating and releasing an autorelease pool every get/loop. In fact, I've tried many variations of draining and releasing pools, as well as variable assignments and releases. No change in the memory leak.
    I'm starting to suspect that the leak is lower-level than anything Objective-C is doing, but please correct me!
    I've distilled the problem into just a few lines of code inserted into the generic Cocoa app template generated by Xcode. Please take a look below and see how one might change it to not leak memory - Activity Monitor says it ticks up .01MB (about 10K) in RSS memory usage every few seconds.
    Thanks for your continued guidance, -Lance.
    // generated a skeletal Cocoa app (just removed generic copyright comments, added startTrackWatcher)
    // generate iTunes.h with sdef /Applications/iTunes.app | sdp -fh --basename iTunes
    // and add ScriptingBridge framework to project
    #import <Cocoa/Cocoa.h>
    int main(int argc, char *argv[])
    void startTrackWatcher() ; // added these two lines
    startTrackWatcher() ; // for watching mem leak
    return NSApplicationMain(argc, (const char **) argv);
    // added lines below for startTrackWatcher
    #import <ScriptingBridge/ScriptingBridge.h>
    #import "iTunes.h"
    @interface Status : NSObject {
    @public
    NSTimer* timer ;
    iTunesApplication* iTunes ;
    - (void)doit:(NSTimer*)timer;
    - (Status*)initWithTime:(int)time;
    @end
    @implementation Status
    - (void)doit:(NSTimer*)t
    // NSAutoreleasePool* pool = [[ NSAutoreleasePool alloc ] init ] ;
    iTunesTrack* currentTrack = [ iTunes currentTrack ] ;
    iTunesPlaylist* currentPlaylist = [ iTunes currentPlaylist ] ;
    SBElementArray* currentTracks = [ currentPlaylist tracks ] ;
    // NSInteger index = [ currentTracks indexOfObject: currentTrack ] ; // wrong because items aren't evaluated
    NSInteger index = [ [ currentTracks get ] indexOfObject: [ currentTrack get ] ] ; // leaks memory (check Activity monitor)!
    printf( "%d
    ", index ) ;
    // [ pool drain ] ;
    // [ pool release ] ;
    - (Status*)initWithTime:(int)time {
    /NSAutoreleasePool pool =*/ [[NSAutoreleasePool alloc] init];
    timer = [NSTimer scheduledTimerWithTimeInterval:time
    target:self
    selector:@selector(doit:)
    userInfo:timer
    repeats:YES] ;
    iTunes = [ SBApplication applicationWithBundleIdentifier:@"com.apple.iTunes" ] ;
    return self ;
    @end
    void startTrackWatcher() {
    [[ Status alloc ] initWithTime:0.1 ] ;

  • Problem with .c code generated from proc compiler.

    I am having a problem compiling the c code generated from the proc pre-compiler.
    First some info on my system.
    [root@dell-xps-420-22 ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Client release 5.4 (Tikanga)
    [root@dell-xps-420-22 ~]# cat /proc/version
    Linux version 2.6.18-164.11.1.el5 ([email protected]) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-46)) #1 SMP Wed Jan 6 13:26:04 EST 2010
    [root@dell-xps-420-22 ~]# uname -a
    Linux dell-xps-420-22.drew.com 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
    With the Partitioning, OLAP and Data Mining options
    I have written a simple PRO*C program to test the compile.
    [oracle@dell-xps-420-22 etl]$ cat Test.pc
    #include <stdio.h>
    main(int argc,char **argv)
    printf("Testing ........\n");
    [oracle@dell-xps-420-22 admin]$ cat pcscfg.cfg
    sys_include=(/usr/include,/usr/include/linux,/build/s630/precomp/public,/usr/lib/gcc/x86_64-redhat-linux/4.1.1/include)
    include=$(ORACLE_HOME)/precomp/public
    include=$(ORACLE_HOME)/precomp/hdrs
    include=$(ORACLE_HOME)/precomp/include
    CODE=cpp
    TYPE_CODE=ORACLE
    DEF_SQLCODE=YES
    VARCHAR=YES
    LTYPE=short
    define=__x86_64__
    When compiling the Test.pc program with the pcscfg.cfg file above.
    [oracle@dell-xps-420-22 etl]$ proc Test.pc
    Pro*C/C++: Release 10.2.0.1.0 - Production on Sun Feb 21 19:51:15 2010
    Copyright (c) 1982, 2005, Oracle. All rights reserved.
    System default option values taken from: /u01/app/oracle/product/10.2.0/db_1/precomp/admin/pcscfg.cfg
    [oracle@dell-xps-420-22 etl]$ gcc -c ./Test.c -I . -I$ORACLE_HOME/precomp/public
    ./Test.c:117: error: expected identifier or '(' before string constant
    ./Test.c:131: error: expected identifier or '(' before string constant
    The code generated by the proc compiler that has problems is below.
    //File Test.c
    // Prototypes
    Line 117: extern "C" {
    void sqlcxt (void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlcx2t(void **, unsigned int *,
    struct sqlexd *, const struct sqlcxp *);
    void sqlbuft(void **, char *);
    void sqlgs2t(void **, char *);
    void sqlorat(void **, unsigned int *, void *);
    // Forms Interface
    Line 131: extern "C" { void sqliem(char *, int *); }
    It seems like the compiler is generating c++ code but the gcc compiler is only compiling in cc mode. I've tried a number of options in the pcscfg.cfg file to no avail. I have tried the different options for the CODE=cpp in the pcscfg.cfg file but still get the same error and/or multiple errors. I have also tried to compile the oracle demo programs using the demo_proc.mk file and also get the same error.
    The install of Oracle is fine. I can start the database and have created a needed user and tables but cannot successfully compile the pro*C code.

    My proc is also compiling for cpp code but in the pcscfg.cfg file there is no "CODE=cpp"

  • Web Reference inside Script Task causes Binary code for script not found error

    I am attempting to access a SOAP web API (sales force) from a SSIS package. To do this I created a script task.
    Inside the script task I went to Add Service Reference. Then I click advanced to make it a web reference. Then I point it to the WSDL file and give it a name SFEnterprise. It successfully finds and adds the Web Reference to the script task.
    I leave scriptMain.cs alone and I have no warnrings and no errors. Now in the solution explorer I right-click the script task and hit BUILD. I see the message from Output that BUILD succeeded.
    I close the VSTA script editor and now I am back on the control flow window. However I have a red X on the script task with the following message. "The Binary code for the script is not found. Please open the script in the designer by clicking EditScript
    button and make sure it builds successfully"
    But it does build successfully! And I have not even added any custom code except for the web reference using the WSDL file.
    I am using SSIS 2012 and Visual Studio 2012. I have been reading about this binary code error message on Google searches and suggestions about delay validation and turning off pre-compile do not apply to SSIS 2012.
    Is SSIS not capable of doing this?

    I was wanting to use the 2.0 coding style of accessing the soap service which is supported by adding the web reference vs. adding a service reference. But using a service reference instead of web reference actually allows the script task to compile. This
    is really odd behavior. I wonder why one works and not the other.
    Changing my C# code over to service reference coding style to access the SOAP service was still returning an error. When I added a break point I found the error message "Could not find default endpoint element that references contract in the ServiceModel
    client configuration section"when calling new SoapClient();
    I found this page http://www.sqlis.com/sqlis/post/Where-is-my-appconfig-for-SSIS.aspx and after I copied the System.ServiceModel app settings from the script task app.config to the DTSDebugHost.exe.config it was able to successfully login to the endpoint
    during package debug mode.
    This means I will have to edit the SQL Server DTS config files on the prod SSIS server to get the package to actually run in the job agent.
    So for now I am good I think just plugging away at coding what the script task is actually supposed to do now that is can actually login.

  • SQLloder scripts not getting generated for CLOBs

    I am trying to migrate MYSQL 3.23 database into Oracle 8.1.7 and after creating the Oracle model and after converting the MYSQL text datatype into CLOB of the Oracle model the SQLloader scripts is not getting generated for CLOB datatypes. I mean the scripts are getting created but there is no change in the script for CLOB datatype.
    The script generates the following for the table containing CLOB datatypes:
    mysqldump -h &lt;HOST&gt; -u &lt;USERNAME&gt; -p&lt;PASSWORD&gt; -T &lt;DESTINATION_PATH&gt; fields-terminated-by="&lt;ec&gt;" lines-terminated-by="&lt;er&gt;" test av_wbt_course
    Please let me know how to load data when the datatype is of CLOB ?

    I was able to resolve this issue by using OWM Oracle Migration instead of using offline method by sqlloader scripts.

  • FOR XML to generate dynamic script to drop multiple tables

    Log_Table has a column named Col1 where we have table names
    Col1
    TableA1
    TableA2
    TableA3
    TableB1
    TableC1
    TableC2
    Generate dynamic script to drop tables that are in Log_Table and starts with TableA.
    Instead of using the loop, use For XML

    Thanks Visakh16 [+1],
    you are right there was typo mistake :-) I forgot the variable in the end, and Thanks Naomi [+1],
    this is true and better to use quotename or just add brackets. Actually I will not choose this approach since we chould use schema as well. the DDL in the OP is not something that I will create probably.
    In any case, here is the fixed query (current approach):
    declare @SQLString NVARCHAR(MAX)
    SELECT
    @SQLString = (select
    N'IF OBJECT_ID (N''' + CAST([Col1] AS VARCHAR(MAX)) + N''') IS NOT NULL drop table [' + CAST([Col1] AS VARCHAR(MAX)) + N']; '
    FROM Log_Table
    WHERE (Col1 like 'TableA%')
    FOR XML PATH (''))
    --print @SQLString
    EXECUTE sp_executesql @SQLString
    GO
      Ronen Ariely
     [Personal Site]    [Blog]    [Facebook]

  • Where are the xml files for code generator of MSAHH5?

    I'm generating source files for MSAHH5 and in the source code I can find xml files for generating all entities and DAL for those entities but I can't find anywhere files for MSATableConstants.xsl and MSAPersistanceManager.xsl and if I leave them alone they don't generate any class. I tried all xml in the code-generator folder without luck. What files should I use?
    Thanks in advance.

    Hi,
        I will answer your question in 2 parts.
    1. Which files are used to generate what?????????
    For entities:            Entity.xslt+ Entity.xml
    For MSATablesContants:   MSATableConstants.xslt+       
                             Entity.xml
    For MSAPackageManager:   MSAPackageManager.xslt+
                             Entity.xml
    For DAL Generation:      DAL.xslt+DAL.xml
    2. Where these will be generated?????????
    It depends on the path of the project that you are giving. If in the code generator tool when u make a new project give the path as the path of your project in eclipse.
    Otherwise if you give path as ./ means the current folder from where you r running classgenerator.jar
    you have to manually create folders like
    C:\classgenerator\com\sap\crm\handheld\db\dataaccess for DAL classes and similarly for entities etc.
    Hope this is clear
    anubhav

  • Generating Insert Scripts for multiple tables

    Hi,
    I have 6 tables TABLA,TABLB,TABLC,TABLED,TABLEE,TABLEF
    I want to generate Insert Scripts for the above 6 tables.
    Is there any mechanism to do so so that i can generate the .sql files for the above 6 tables to another schema?
    Any help will be needful for me.

    Hi,
    May the below given function script help you...
    CREATE OR REPLACE FUNCTION get_insert_script (v_table_name VARCHAR2)
       RETURN VARCHAR2
    AS
       b_found   BOOLEAN         := FALSE;
       v_tempa   VARCHAR2 (8000);
       v_tempb   VARCHAR2 (8000);
       v_tempc   VARCHAR2 (255);
    BEGIN
       FOR tab_rec IN (SELECT table_name
                         FROM all_tables
                        WHERE table_name = UPPER (v_table_name))
       LOOP
          b_found := TRUE;
          v_tempa := 'select ''insert into ' || tab_rec.table_name || ' (';
          FOR col_rec IN (SELECT   *
                              FROM cols
                             WHERE table_name = tab_rec.table_name
                          ORDER BY column_id)
          LOOP
             IF col_rec.column_id = 1
             THEN
                v_tempa := v_tempa || '''||chr(10)||''';
             ELSE
                v_tempa := v_tempa || ',''||chr(10)||''';
                v_tempb := v_tempb || ',''||chr(10)||''';
             END IF;
             v_tempa := v_tempa || col_rec.column_name;
             IF INSTR (col_rec.data_type, 'CHAR') > 0
             THEN
                v_tempc := '''''''''||' || col_rec.column_name || '||''''''''';
             ELSIF INSTR (col_rec.data_type, 'DATE') > 0
             THEN
                v_tempc :=
                      '''to_date(''''''||to_char('
                   || col_rec.column_name
                   || ',''mm/dd/yyyy hh24:mi'')||'''''',''''mm/dd/yyyy hh24:mi'''')''';
             ELSE
                v_tempc := col_rec.column_name;
             END IF;
             v_tempb :=
                   v_tempb
                || '''||decode('
                || col_rec.column_name
                || ',Null,''Null'','
                || v_tempc
                || ')||''';
          END LOOP;
          v_tempa :=
                v_tempa
             || ') values ('
             || v_tempb
             || ');'' from '
             || tab_rec.table_name
             || ';';
       END LOOP;
       IF NOT b_found
       THEN
          v_tempa := '- Table ' || v_table_name || ' not found';
       ELSE
          v_tempa := v_tempa || CHR (10) || 'select ''- commit;'' from dual;';
       END IF;
       RETURN v_tempa;
    END;(copied and pasted from a commercial site)
    *009*
    Edited by: 009 on Jan 14, 2010 10:43 PM
    (Function after debug)

Maybe you are looking for

  • Grid does not display special characters (as square boxes)

    SQLD 1.5.1 (54.40): We found out, special characters like newline will not shown in data grid in any way. But we need to know, if there are such characters. If there any way to get these characters visible? Pls try following case create table mytab (

  • IPad 3 iCloud syncing

    Everything synced but the notepad? Any ideas?

  • Sharing images between multiple help outputs

    Hi Everyone, Question: does anyone know if it is possible to have an image repository that sits outside of the help SSL such that multiple Webhelp systems can reference a common image repository? I'm using Rh10 to write help in English which then get

  • Cross join of dimensions

    Hi, For example:  two dimension tables and one fact table. dim1: branch branch1 branch2 dim2: time day1 day2 fact: sales branch1, day2, 100 what I want in answers when using branch and time and sales without any filters: Branch1, day1, 0 branch1, day

  • 250 Gig HD only shows 182 gig after install

    Hi everyone. I have an issue that has been bugging me for about 2 years. I am getting ready to do a major back-up and reinstall and thought i would ask about this. The beast is a 700 mhz flat panel G4 768mb ram iMac. I installed a Seagate (i think, i