Error #1006: value is not a function

I'm trying to port a big library to Alchemy. I've run into something that looks like an Alchemy bug. I have a class with a static member. There's a static function that uses it. Something like this:
In foo.h:
    class Foo
        static Bar m_pBar;
        static void doSomething (int a);
In foo.cpp:
    Bar Foo::m_pBar;
    void Foo::doSomething (int a)
        m_pBar.doSomething(a);
When I do Foo::doSomething(a), I get TypeError: Error #1006: value is not a function.
On the other hand, if I use a local variable of the same type in the static function (just to test), it works :
    void Foo::doSomething (int a)
        // Test
        Bar pBarTest;
        pBarTest.doSomething(a);
So my guess is that the static variable is not being initialized. This works fine when compiled with g++ in Linux and Mac and with Visual C++ 2008 in Windows so it looks like Alchemy is doing something wrong.
Has anyone encountered this same issue?

Ignore, it was something in the called class, oops

Similar Messages

  • More "TypeError: Error #1006: value is not a function." trouble

    var pntClk:int = -1;
    for(var t:int=0;t<tab1PointsArray.length;t++) {
         tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <Problem code i think. Error points to line 117
         trace("Event listener added to " + tab1PointsArray[t].name);
    function tab1PointClicked (event:MouseEvent):void {
         for(var T:int=0;T< tab1PointsArray.length;T++) {
              if (event.currentTarget == tab1PointsArray[T]) {
                   pntClk = T;
                   openInfoTab();
                   trace("Point Clicked: " +  tab1PointsArray[T].name);
    I wrote some previous code that worked and i copy pasted over to this project and it doesn't work.
    The weird part to me is that it still runs the first set of trace statements (there are 8 objects in that array). But, it won't run the second set...
    for(var l:int=0;l<Tab2PointsArray.length;l++) {
         Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
         trace("Event listener added to " + Tab2PointsArray[l].name);
    function tab2PointClicked (event:MouseEvent):void {
         for(var t:int=0;t< Tab2PointsArray.length;t++) {
              if (event.currentTarget ==  Tab2PointsArray[t]) {
                   pntClk = t;
                   openInfoTab();
                   trace("Point Clicked: " +  Tab2PointsArray[t].name);
    if you need more code or info to help me figure this out let me know
    I don't know actionscript that well so bare with

    The output window:
    Event listener added to PointHitch
    Event listener added to PointPTO
    Event listener added to PointSafety
    Event listener added to PointGearBox
    Event listener added to PointBlade
    Event listener added to PointTeeth
    Event listener added to PointGrapple
    TypeError: Error #1006: value is not a function.
    at TractorSawFlash_fla::MainTimeline/frame1()[TractorSawFlash_fla.MainTimeline::frame1:115]
    I think the first set of listeners is added then the error happens and the second set of listeners doesn't get added.
    Here is more code.
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import flash.events.MouseEvent;
    var infoTabIsOpen:Boolean = false;
    //TAB CODE
    var TractorSawTabToggle:Boolean = false;
    var TabButtonArray:Array = new Array(TabTR3200.TR3200BTN, TabTR3200LT.TR3200BTNLT);
    for (var i:int=0; i<TabButtonArray.length; i++)
         TabButtonArray[i].id = i;
         TabButtonArray[i].addEventListener(MouseEvent.CLICK, onClick);
    TabTR3200.TR3200BTN.mouseEnabled = false;
    TabTR3200.TR3200BTN.buttonMode = false;
    function onClick(event:MouseEvent):void{
         if (TractorSawTabToggle == true) {
              TractorSawTabToggle = false;
              swapChildren(this.TabTR3200,this.TabTR3200LT);
              TabTR3200LT.TR3200BTNLT.mouseEnabled = true;
              TabTR3200LT.TR3200BTNLT.buttonMode = true;
              TabTR3200.TR3200BTN.mouseEnabled = false;
              TabTR3200.TR3200BTN.buttonMode = false;
         else {
              TractorSawTabToggle = true;
              swapChildren(this.TabTR3200,this.TabTR3200LT);
              TabTR3200LT.TR3200BTNLT.mouseEnabled = false;
              TabTR3200LT.TR3200BTNLT.buttonMode = false;
              TabTR3200.TR3200BTN.mouseEnabled = true;
              TabTR3200.TR3200BTN.buttonMode = true;
    //END TAB CODE
    //MovieTab
    MovieButton.addEventListener(MouseEvent.CLICK, clickedMainMovie);
    MovieTab.Exit_BTN.addEventListener(MouseEvent.MOUSE_DOWN, outMainMovieTrigger);
    function clickedMainMovie(event:MouseEvent):void {
         var TabMainMovieDown:Tween = new Tween(MovieTab, "y", Strong.easeOut, -600, 0, 1, true);
         var TabMainMovieAlphaIn:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 0, 1, 1, true);
         if (infoTabIsOpen == true) {
              closeInfoTab();
    function outMainMovieTrigger(event:MouseEvent):void {
         outMainMovie();
    function outMainMovie():void {
         trace("Three Sixty MOUSE_OUT");
         var TabMainMovieUp:Tween = new Tween(MovieTab, "y", Strong.easeOut, 0, -600, 1, true);
         var TabMainMovieAlphaOut:Tween = new Tween(MovieTab, "alpha", Strong.easeOut, 1, 0, 1, true);
         MovieTab.FLVPlayback.stop();
    //END MovieTab
    //INFO TAB ARRAYS AND FUNCTIONS
    var placeHolder:String = "null";
    var tab1PointsArray:Array = new Array(this.TabTR3200.PointHitch, //0
                                                             this.TabTR3200.PointPTO, //1
                                                             this.TabTR3200.PointSafety, //2
                                                             this.TabTR3200.PointGearBox, //3
                                                             this.TabTR3200.PointBlade, //4
                                                             this.TabTR3200.PointTeeth, //5
                                                             this.TabTR3200.PointGrapple, //6
                                                             placeHolder); //7
    var Tab2PointsArray:Array = new Array(this.TabTR3200LT.PointHitch, //0
                                                              this.TabTR3200LT.PointPTO, //1
                                                              this.TabTR3200LT.PointSafety, //2
                                                              this.TabTR3200LT.PointGearBox, //3
                                                              this.TabTR3200LT.PointBlade, //4
                                                              this.TabTR3200LT.PointTeeth, //5
                                                              placeHolder, //6
                                                              this.TabTR3200LT.PointPushingBar);//7
    var pictureArray:Array = new Array(placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder,
                                                       placeHolder);
    var textArray:Array = new Array(InfoTab.txtHitch, //0
                                                   InfoTab.txtPTO, //1
                                                   InfoTab.txtSafety, //2
                                                   InfoTab.txtGearbox, //3
                                                   InfoTab.txtBlade, //4
                                                   InfoTab.txtTeeth, //5
                                                   InfoTab.txtGrapple, //6
                                                   InfoTab.txtPushingBar); //7
    //Point Clicked Code
    var pntClk:int = -1;
    for(var t:int=0;t<tab1PointsArray.length;t++) {
         tab1PointsArray[t].addEventListener(MouseEvent.CLICK, tab1PointClicked); <LINE 115 were it says the error is happening
         trace("Event listener added to " + tab1PointsArray[t].name);
    function tab1PointClicked (event:MouseEvent):void {
         for(var T:int=0;T< tab1PointsArray.length;T++) {
              if (event.currentTarget == tab1PointsArray[T]) {
                   pntClk = T;
                   openInfoTab();
                   trace("Point Clicked: " +  tab1PointsArray[T].name);
    for(var l:int=0;l<Tab2PointsArray.length;l++) {
         Tab2PointsArray[l].addEventListener(MouseEvent.CLICK, tab2PointClicked);
         trace("Event listener added to " + Tab2PointsArray[l].name);
    function tab2PointClicked (event:MouseEvent):void {
         for(var t:int=0;t< Tab2PointsArray.length;t++) {
              if (event.currentTarget ==  Tab2PointsArray[t]) {
                   pntClk = t;
                   openInfoTab();
                   trace("Point Clicked: " +  Tab2PointsArray[t].name);
    //Info Tab
    var ImageLoader:Loader;
    ImageLoader = new Loader();
    // make text invisible
    function makeTextInvisible():void {
         for (var txt:int=0; txt<textArray.length; txt++) {
              textArray[txt].visible = false;
    InfoTab.Exit_BTN.buttonMode = true;
    InfoTab.Exit_BTN.addEventListener(MouseEvent.CLICK, closeInfoTrigger);
    function closeInfoTrigger(e:MouseEvent):void {
         trace("close feature triggered");
         closeInfoTab();
    //OPEN INFO TAB
    function openInfoTab():void {
         //EnableExitButton
         var EnableExitButton:Timer = new Timer(333, 1);
         InfoTab.mouseEnabled = true;
         InfoTab.mouseChildren = true;
         var tabIn:Tween = new Tween(InfoTab, "y", Regular.easeOut, 600, 60, 10, false);
         var tabAlphaIn:Tween = new Tween(InfoTab, "alpha", Regular.easeOut, 0, 1, 10, false);
         //pictureSetter
         if (pictureArray[pntClk] != "null") {
              ImageLoader.load(new URLRequest(pictureArray[pntClk]));
              this.InfoTab.ImageHolder_MC.addChild(ImageLoader);
         textArray[pntClk].visible = true;
         infoTabIsOpen = true;
    //end open info tab
    //CLOSE INFO TAB
    function closeInfoTab():void{
         //deactivating setters
         InfoTab.mouseEnabled = false;
         InfoTab.mouseChildren = false;
         trace("feature tab deactivated");
         //unload picture
         if (pictureArray[pntClk] != "null") {
              ImageLoader.unload();
              this.InfoTab.ImageHolder_MC.removeChild(ImageLoader);
              ImageLoader = null;
         //tab action variables
         var tabAlphaOut:Tween = new Tween(InfoTab, "alpha", Regular.easeIn, 1, 0, 8, false);
         var tabOut:Tween = new Tween(InfoTab, "y", Regular.easeIn, 60, 600, 8, false);
         infoTabIsOpen = false;
         //exit timer
         var exitTimer:Timer = new Timer(200, 1);
         exitTimer.addEventListener(TimerEvent.TIMER, exitHandler);
         exitTimer.start();
         function exitHandler(event:TimerEvent):void
              trace("exit handler fired");
              makeTextInvisible();
         //end exit timer
         pntClk = -1;
    //end closeFeatureTab

  • TypeError: Error #1006: getInstance is not a function.

    I having some problems implementing Flex for the first time.
    At the moment I'm getting
    TypeError: Error #1006: getInstance is not a function.
    I suspect that I'm missing a library or something in the
    compile but I don't know how to resolve it.
    When I Run the Application in Flex Builder I get an error
    that the file isn't in the project and that some of the features
    are disabled. This would be consistent with an incomplete compile
    but the file is in a project. I even recreated a new project but I
    get the same errors.
    What am I missing?

    More detail on the error:
    TypeError: Error #1006: getInstance is not a function.
    at mx.core::Singleton$/getInstance()
    at mx.styles::StyleManager$cinit()
    at global$init()
    at mx.containers::Form$cinit()
    at global$init()
    at global$init()
    In debug it was stopping here in Singleton.as
    public static function getInstance(name:String):Object
    var clazz:Class = classMap[name];
    return Object(clazz).getInstance();
    I changed the container from mx:Form to mx:Application so now
    it seems to be working, but I'm not sure why mx:Form was giving me
    this issue.

  • Java system error: Server repository could not create function template

    Hi, Our BI person is trying to  publish/broadcast a query to the PRODCTION  portal, she gets the below error message.  I am
    attaching the defaulttracelog file
    "Java system error: Server repository could not create function template for RSRD_X_PRODUCE_PROXY caused by: com.sap.mw.jco.JCO$Exception: (103)"
    <!LOGHEADER[START]/>
    <!HELP[Manual modification of the header may cause parsing problem!]/>
    <!LOGGINGVERSION[1.5.3.7185 - 630]/>
    <!NAME[./log/defaultTrace.trc]/>
    <!PATTERN[defaultTrace.trc]/>
    <!FORMATTER[com.sap.tc.logging.ListFormatter]/>
    <!ENCODING[UTF8]/>
    <!FILESET[8, 20, 10485760]/>
    <!PREVIOUSFILE[defaultTrace.7.trc]/>
    <!NEXTFILE[defaultTrace.9.trc]/>
    <!LOGHEADER[END]/>
    #1.5 #002264F9350800600000022F000019C000048E9B91EF3AB3#1282698726384#com.sap.security.core.persistence#sap.com/irj#com.sap.security.core.persistence#J2EE_GUEST#0##n/a##4dba6f30af8111df934c002264f93508#SAPEngine_Application_Thread[impl:3]_35##0#0#Error#1#/System/Security/Usermanagement#Java#An exception was thrown in the UME/ABAP user management connector that was caused by unavailability of the RFC communication with the backend system: "". ##An exception was thrown in the UME/ABAP user management connector that was caused by unavailability of the RFC communication with the backend system: "". #1#Connect to SAP gateway failed
    Connect_PM  TYPE=A ASHOST=localhost SYSNR=00 GWHOST=localhost GWSERV=sapgw00 PCS=1
    LOCATION    CPIC (TCP/IP) on local host with Unicode
    ERROR       partner '127.0.0.1:sapgw00' not reached
    TIME        Tue Aug 24 21:12:06 201
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -10
    MODULE      nixxi.cpp
    LINE        2823
    DETAIL      NiPConnect2
    SYSTEM CALL connect
    ERRNO       10061
    ERRNO TEXT  WSAECONNREFUSED: Connection refused
    COUNTER     56
    #1.5 #002264F93508006000000230000019C000048E9B91EF47C8#1282698726384#com.sap.engine.services.monitor.mbeans.Monitor#sap.com/irj#com.sap.engine.services.monitor.mbeans.Monitor#J2EE_GUEST#0##n/a##4dba6f30af8111df934c002264f93508#SAPEngine_Application_Thread[impl:3]_35##0#0#Error##Plain###Caller J2EE_GUEST not authorized, user J2EE_GUEST is not available from user management, reason: com.sap.security.api.NoSuchUserException:USER_AUTH_FAILED: User account for logonid "J2EE_GUEST" not found!#
    #1.5 #002264F93508006000000231000019C000048E9B91EF4CD5#1282698726384#System.err#sap.com/irj#System.err#J2EE_GUEST#0##n/a##4dba6f30af8111df934c002264f93508#SAPEngine_Application_Thread[impl:3]_35##0#0#Error##Plain###com.sap.engine.services.jmx.exception.JmxSecurityException: Caller J2EE_GUEST not authorized, user J2EE_GUEST is not available from user management, reason: com.sap.security.api.NoSuchUserException:USER_AUTH_FAILED: User account for logonid "J2EE_GUEST" not found!
         at com.sap.engine.services.jmx.auth.UmeAuthorization.checkMBeanPermission(UmeAuthorization.java:63)
         at com.sap.engine.services.jmx.JmxServerFrame.checkMBeanPermission(JmxServerFrame.java:98)
         at com.sap.engine.services.jmx.MBeanServerSecurityWrapper.unregisterMBean(MBeanServerSecurityWrapper.java:395)
         at com.sap.engine.services.jmx.ClusterInterceptor.unregisterMBean(ClusterInterceptor.java:1327)
         at com.sap.pj.jmx.server.interceptor.MBeanServerInterceptorChain.unregisterMBean(MBeanServerInterceptorChain.java:258)
         at com.sap.engine.services.monitor.mbeans.Monitor.unregister(Monitor.java:106)
         at com.sap.engine.library.monitor.impl0.AbstractMonitorNode.remove(AbstractMonitorNode.java:154)
         at com.sap.engine.library.monitor.impl0.MonitorObjectFactory.uninstallMonitorNode(MonitorObjectFactory.java:483)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:595)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:581)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:581)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:581)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:581)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:581)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:581)
         at com.sap.engine.services.monitor.install.MonitorInstaller.uninstallMonitors(MonitorInstaller.java:568)
         at com.sap.engine.services.monitor.server.ApplicationLifeCycleImpl.applicationStopped(ApplicationLifeCycleImpl.java:52)
         at com.sap.engine.services.monitor.deployment.MonitorDeploymentContainer.commitStop(MonitorDeploymentContainer.java:630)
         at com.sap.engine.services.deploy.server.application.StopTransaction.commonCommitFinished(StopTransaction.java:244)
         at com.sap.engine.services.deploy.server.application.StopTransaction.commitCommon(StopTransaction.java:290)
         at com.sap.engine.services.deploy.server.application.StopTransaction.commitLocal(StopTransaction.java:278)
         at com.sap.engine.services.deploy.server.application.ApplicationTransaction.makeAllPhasesLocal(ApplicationTransaction.java:374)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.runInTheSameThread(ParallelAdapter.java:132)
         at com.sap.engine.services.deploy.server.application.ParallelAdapter.makeAllPhasesLocalAndWait(ParallelAdapter.java:250)
         at com.sap.engine.services.deploy.server.DeployServiceImpl.stopApplicationLocalAndWait(DeployServiceImpl.java:4569)
         at com.sap.engine.services.deploy.server.DeployCommunicatorImpl.stopApplicationLocalAndWait(DeployCommunicatorImpl.java:628)
         at com.sap.portal.prt.sapj2ee.SAPJ2EEPortalRuntime$2.run(SAPJ2EEPortalRuntime.java:602)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.lang.ClassLoader$NativeLibrary.load(Native Method)
         at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1586)
         at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1482)
         at java.lang.Runtime.load0(Runtime.java:737)
         at java.lang.System.load(System.java:811)
         at com.sapportals.wcm.service.fsmount.FSMountService.loadDLL(FSMountService.java:736)
         at com.sapportals.wcm.service.fsmount.FSMountService.<clinit>(FSMountService.java:796)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:219)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.convertGS(CmConfigurationProvider.java:637)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.convertServiceConfig(CmConfigurationProvider.java:601)
         at com.sapportals.wcm.repository.runtime.CmConfigurationProvider.readConfiguration(CmConfigurationProvider.java:205)
         at com.sapportals.wcm.crt.CrtSystemImpl.createComponentManager(CrtSystemImpl.java:108)
         at com.sapportals.wcm.repository.runtime.CmSystem.startUp(CmSystem.java:202)
         at com.sapportals.wcm.repository.runtime.CmSystem.getInstance(CmSystem.java:164)
         at com.sapportals.wcm.repository.runtime.CmAdapter.getResourceImpl(CmAdapter.java:974)
         at com.sapportals.wcm.repository.runtime.CmAdapter.getResource(CmAdapter.java:192)
         at com.sapportals.wcm.portal.service.KMServiceImpl.afterInit(KMServiceImpl.java:249)
         at com.sapportals.portal.prt.core.broker.PortalServiceItem.__initServiceInstanceStep2(PortalServiceItem.java:877)
         at com.sapportals.portal.prt.core.broker.PortalServiceItem.startServices(PortalServiceItem.java:1118)
         at com.sapportals.portal.prt.core.broker.PortalAppBroker.startLoadOnStartupServices(PortalAppBroker.java:1707)
         at com.sapportals.portal.prt.core.broker.PortalAppBroker.start(PortalAppBroker.java:1662)
         at com.sapportals.portal.prt.core.broker.PortalAppBroker.startNonCoreApplications(PortalAppBroker.java:1592)
         at com.sapportals.portal.prt.runtime.Portal.init(Portal.java:422)
         at com.sapportals.portal.prt.core.PortalCoreInitializer.coreInit(PortalCoreInitializer.java:54)
         at com.sapportals.portal.prt.dispatcher.PortalInitializer.<init>(PortalInitializer.java:129)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doSetupPortalInitializer.run(Dispatcher.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispatcher.java:361)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.access$000(Dispatcher.java:42)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$InitRunner.run(Dispatcher.java:114)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.init(Dispatcher.java:394)
         at com.sap.engine.services.servlets_jsp.server.runtime.context.WebComponents.addServlet(WebComponents.java:139)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.loadServlets(ApplicationThreadInitializer.java:386)
         at com.sap.engine.services.servlets_jsp.server.container.ApplicationThreadInitializer.run(ApplicationThreadInitializer.java:110)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:104)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:176)
    #1.5 #002264F93508005C0000042300002CF00004939AAEE9AEB7#1288192475655#com.sapportals.wcm.repository.manager.reporting.RPRepositoryManager#sap.com/irj#com.sapportals.wcm.repository.manager.reporting.RPRepositoryManager#J2EE_GUEST#0##n/a##c7d00e00e1dc11dfa36d002264f93508#SAPEngine_Application_Thread[impl:3]_29##0#0#Error##Plain###setting initial ACL on /reporting_backend/reports/System Administration/CM Store/cm.crawlcontent - com.sap.security.api.NoSuchRoleException: Role with uniqueName system_admin_role not found!
         at com.sap.security.core.imp.RoleFactory.getRoleByUniqueName(RoleFactory.java:1783)
         at com.sapportals.wcm.repository.manager.reporting.RPRepositoryManager.getRoles(RPRepositoryManager.java:1474)
         at com.sapportals.wcm.repository.manager.reporting.RPRepositoryManager.syncReportResources(RPRepositoryManager.java:1334)
         at com.sapportals.wcm.repository.manager.reporting.RPRepositoryManager.initBackend(RPRepositoryManager.java:489)
         at com.sapportals.wcm.repository.manager.reporting.RPRepositoryManager.getResource(RPRepositoryManager.java:581)
         at com.sapportals.wcm.repository.RMAdapter.getResource(RMAdapter.java:228)
         at com.sapportals.wcm.repository.runtime.CmAdapter.findResource(CmAdapter.java:1349)
         at com.sapportals.wcm.repository.runtime.CmAdapter.findManagerAndResource(CmAdapter.java:1322)
         at com.sapportals.wcm.repository.runtime.CmAdapter.getResourceImpl(CmAdapter.java:979)
         at com.sapportals.wcm.repository.runtime.CmAdapter.getResource(CmAdapter.java:192)
         at com.sapportals.wcm.service.reporting.ReportingService.localConfigure(ReportingService.java:294)
         at com.sapportals.wcm.service.reporting.ReportingService.startUpImpl(ReportingService.java:74)
         at com.sapportals.wcm.service.AbstractService.start(AbstractService.java:167)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.tryToStart(CrtThreadSafeComponentHandler.java:247)
         at com.sapportals.wcm.crt.CrtThreadSafeComponentHandler.handleLookup(CrtThreadSafeComponentHandler.java:109)
         at com.sapportals.wcm.crt.CrtComponentManager.lookup(CrtComponentManager.java:322)
         at com.sapportals.wcm.crt.CrtComponentManager.lookupChildComponent(CrtComponentManager.java:403)
         at com.sapportals.wcm.crt.CrtContainerManager.lookupComponent(CrtContainerManager.java:44)
         at com.sapportals.wcm.crt.CrtSystemImpl.lookupComponentByUri(CrtSystemImpl.java:131)
         at com.sapportals.wcm.crt.CrtComponentManager.startUp(CrtComponentManager.java:278)
         at com.sapportals.wcm.crt.CrtSystemImpl.startUpComponentManager(CrtSystemImpl.java:166)
         at com.sapportals.wcm.repository.runtime.CmSystem.startUp(CmSystem.java:227)
         at com.sapportals.wcm.repository.runtime.CmSystem.getInstance(CmSystem.java:164)
         at com.sapportals.wcm.repository.runtime.CmAdapter.getResourceImpl(CmAdapter.java:974)
         at com.sapportals.wcm.repository.runtime.CmAdapter.getResource(CmAdapter.java:192)
         at com.sapportals.wcm.portal.service.KMServiceImpl.afterInit(KMServiceImpl.java:249)
         at com.sapportals.portal.prt.core.broker.PortalServiceItem.__initServiceInstanceStep2(PortalServiceItem.java:877)
         at com.sapportals.portal.prt.core.broker.PortalServiceItem.startServices(PortalServiceItem.java:1118)
         at com.sapportals.portal.prt.core.broker.PortalAppBroker.startLoadOnStartupServices(PortalAppBroker.java:1707)
         at com.sapportals.portal.prt.core.broker.PortalAppBroker.start(PortalAppBroker.java:1662)
         at com.sapportals.portal.prt.core.broker.PortalAppBroker.startNonCoreApplications(PortalAppBroker.java:1592)
         at com.sapportals.portal.prt.runtime.Portal.init(Portal.java:422)
         at com.sapportals.portal.prt.core.PortalCoreInitializer.coreInit(PortalCoreInitializer.java:54)
         at com.sapportals.portal.prt.dispatcher.PortalInitializer.<init>(PortalInitializer.java:129)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$doSetupPortalInitializer.run(Dispatcher.java:161)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.initDispatcher(Dispatcher.java:361)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.access$000(Dispatcher.java:42)
         at com.sapportals.portal.prt.dispatcher.Dispatcher$InitRunner.run(Dispatcher.java:114)
         at com.sapportals.portal.prt.dispatcher.Dispatcher.init(Dispatcher.java:394)

    Go to visual admin -> server -> services -> JCO RFC provider.
    Check the RFC that connects to the BI Abap.
    Its reporting the J2EE_GUEST user in the SAP with the system nr 00.
    Is this BI java portal?
    Is the java portal a addon to Abap or having seperate SID?
    Check the connection definitions are correct and the gateway is running.

  • List view error "Filter Value is not in a supported date format"

    I've column "Name = Order Status","Type = Calculated" & Data Type = "Date and Time". I've given this Condition in the formula:- =IF(NOT([PO Date]=0),"ORDERED","NOT ORDERED"). I'm trying to create view
    for this column but its getting error while create the view "Filter Value is not in a supported date format". 
    Same error I'm getting for column "Name = Status","Type = Calculated" & Data Type = "Number". I've given this Condition in the formula:- =IF([PO Date]="","",IF(NOT([Balance Qty]=0),"OPEN","CLOSED"))

    Can you check data type returned for your calculated column 'Balance Qty'?
    Try to set it as Number. It may help you.
    Thanks.

  • Trex Search Error : attribute value is not a date or wrong syntax

    Search Failure
    Error during search occurred - com.sapportals.wcm.WcmException: attribute value is not a date or wrong syntax

    Yes, Let me know if you know about it.
    Thanks
    Deepak

  • SAP ECC 6.0 -- Business Connector / Error:Input values do not contain IDOC

    Hello,
    We have a scenario R/3 4.6C ORDRSP to the SAP business connector which is running fine. When I send the first IDoc the routing roule is created automatically and it can be adapted.
    Now we switched to the ECC 6.0 system but I get the following error message:
    "Input values do not contain IDOC" and no routing roule is created either. The status of the IDoc is 03.
    Do you have any idea what the problem could be? Could it have anything to do with ECC 6.0?
    Thank you for your support.

    Hi,
    I hope you must have added new SAP ECC system under SAP tab on SAP BC page.
    To check exact error information:
    FIrst open SAP BC page in browser (http://localhoet:port)
    Go to transaction tab, and there under TID box, enter transaction id corresponding to SM58. And check what it says.
    About routing rule:
    BC automatically creates routing rule, if not you can edit and direct them to correct process flow, or you can create new routing rule, as BC need routing rule to move IDOC ahead.
    Please let us know further about error information, so that we can help you further.
    Divyesh

  • Error : The value is not set for parameter number"

    Hello All,
    I am getting an error message when I tried modifying a program by adding a new ID column to a database table.
    All DML is working except the Delete. So to look at the delete method, I am setting the parameter correctly as can be seen in the code belwo.
    Can someone please take a quick look and let me know where I need to tweak the code further.
    Thanks
    Fm
    The piece of code is given below.
    /* File Modified */
    /* EmailSetupDao.java
    * Generated by the MDK DAO Code Generator
    package com.harris.mercury.setups.standard.emailsetup;
    import java.sql.Connection;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    import java.sql.SQLException;
    import java.util.Vector;
    import org.apache.log4j.Logger;
    import com.harris.mercury.dao.CreateException;
    import com.harris.mercury.dao.DAO;
    import com.harris.mercury.dao.DataField;
    import com.harris.mercury.dao.Holder;
    import com.harris.mercury.dao.LocalResultProxy;
    import com.harris.mercury.dao.RemoveException;
    import com.harris.mercury.dao.ResultProxy;
    import com.harris.mercury.system.DatabaseHelper;
    import com.harris.mercury.system.database.dialect.Dialect;
    * The EmailSetupDao class
    public class EmailSetupDao implements DAO
    protected static Logger logger = Logger.getLogger(EmailSetupDao.class);
    /* This method is called by ResultProxies when they need
    * the data they have retrieved in a ResultSet mapped
    * to a holder.
    public Holder createHolder(ResultSet rs) throws SQLException
    EmailSetupHolder holder = new EmailSetupHolder(); // THE CODE GENERATOR NEEDS THIS VARIABLE
    try
    /* Assign the data into the new holder */
    // $$START_CREATEHOLDER_CONVERSIONS
    holder.setEmail_address( rs.getString("email_address") );
    holder.setLogin_id( rs.getString("login_id") );
    holder.setUser_name( rs.getString("user_name") );
    holder.setSmtp( rs.getString("smtp") );
    holder.setId(rs.getString("id") );
    // $$END_CREATEHOLDER_CONVERSIONS
    catch(SQLException sqle)
    logger.error(sqle, sqle);
    throw sqle;
    return holder;
    /* The findAll method returns a ResultProxy containing all the
    * records in the pucemailr table, unless an extended where clause
    * has been defined.
    public ResultProxy findAll(Connection con) throws SQLException
    LocalResultProxy result = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    // $$START_ALLFIND
    result = new LocalResultProxy(this,con, "select email_address, login_id, user_name, smtp, id from pucemailr"+makeOrderBy());
    // $$END_ALLFIND
    return result;
    /* Inserts a record into the pucemailr table using a EmailSetupHolder.
    * An exception is thrown if it is not sucessful.
    public void insert(Connection con, EmailSetupHolder holder) throws CreateException
    CreateException ce = null;
    PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    try
    // Insert into the data base
    // $$START_INSERT_PS
         ps = con.prepareStatement("insert into pucemailr (email_address, login_id, user_name, smtp) values(?, ?, ?, ?) ");
    // $$END_INSERT_PS
    /* Assign the variables in the holder to their corresponding
    * indexes in the prepared statement
    ps = assignPreparedStatementValues(ps, holder, true) ;
    // Try the insert
    ps.executeUpdate();
    catch (SQLException se)
    ce = new CreateException(se.getMessage());
    catch (Exception ex)
    ce = new CreateException(ex.getMessage());
    } finally {
    DatabaseHelper.close(ps);
    // Throw exception if error occurred
    if (ce != null) {
    throw ce;
    /* This method will update a pucemailr record using the
    * supplied EmailSetupHolder. If an error occurs, an exception
    * is thrown.
    public void update(Connection con, EmailSetupHolder holder) throws Exception
    RuntimeException re = null;
    PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    try
    // $$START_UPDATE_PS
         ps = con.prepareStatement("update pucemailr set email_address=?, login_id=?, user_name=?,smtp=? where id=?");
    // $$END_UPDATE_PS
    /* Assign the variables in the holder to their corresponding
    * indexes in the prepared statement
    ps = assignPreparedStatementValues(ps, holder, false) ;
    // Try the insert
    int ret = ps.executeUpdate();
    if (ret != 1)
    re = new RuntimeException("Update failed on table pucemailr in EmailSetupDao");
    catch (SQLException se)
    re = new CreateException(se.getMessage());
    catch (Exception ex)
    re = new RuntimeException(ex.getMessage());
    } finally {
    DatabaseHelper.close(ps);
    // Throw exception if error occurred
    if (re != null) {
    throw re;
    /* Using the EmailSetupHolder, this method locates records in the pucemailr table.
    * Null values found in the holder are not used in the search.
    * An exception is thrown if an error occurs.
    public ResultProxy find(Connection con, EmailSetupHolder holder) throws SQLException
    // THE CODE GENERATOR NEEDS THESE VARIABLES
    ResultProxy result = null;
    int needAnd = 0;
    StringBuffer selectStatement = new StringBuffer();
    // $$START_FIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    if(holder.getId() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getId())+"%'");
    if(holder.getEmail_address() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("email_address like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getEmail_address())+"%'");
    if(holder.getLogin_id() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("login_id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getLogin_id())+"%'");
    if(holder.getUser_name() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("user_name like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getUser_name())+"%'");
    if(holder.getSmtp() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("smtp like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getSmtp())+"%'");
    // $$END_FIND
    result = new LocalResultProxy(this, con, selectStatement.toString()+makeOrderBy());
    return result;
    /* Creates an Order by clause */
    public String makeOrderBy()
    String result = "";
    // $$START_ORDERBY
    result = " order by smtp";
    // $$END_ORDERBY
    return result ;
    /* This method deltes a single record that matches all the
    * variables found in the EmailSetupHolder.
    * An exception is thrown if an error occurs.
    public void delete(Connection con, EmailSetupHolder holder) throws RemoveException
    RemoveException re = null;
    PreparedStatement ps = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    boolean hasVars = false;
    StringBuffer deleteSQL = new StringBuffer();
    deleteSQL.append( "delete from pucemailr where " );
    // $$START_DELETE_SQL
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getEmail_address() != null) {
    deleteSQL.append("email_address=?") ;
    } else {
    deleteSQL.append("email_address is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getLogin_id() != null) {
    deleteSQL.append("login_id=?") ;
    } else {
    deleteSQL.append("login_id is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getUser_name() != null) {
    deleteSQL.append("user_name=?") ;
    } else {
    deleteSQL.append("user_name is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getSmtp() != null) {
    deleteSQL.append("smtp=?") ;
    } else {
    deleteSQL.append("smtp is null");
    hasVars = true;
    if (hasVars)
    deleteSQL.append(" and ");
    if (holder.getSmtp() != null) {
    deleteSQL.append("id=?") ;
    } else {
    deleteSQL.append("id is null");
    hasVars = true;
    // $$END_DELETE_SQL
    try
         ps = con.prepareStatement(deleteSQL.toString());
    /* Assign the variables in the holder to their corresponding
    * indexes in the prepared statement
    int index = 1 ;
    // $$START_DELETE_VARS
    /* if( holder.getEmail_address() != null) {
    ps.setString(index, holder.getEmail_address() );
    index ++;
    if( holder.getLogin_id() != null) {
    ps.setString(index, holder.getLogin_id() );
    index ++;
    if( holder.getUser_name() != null) {
    ps.setString(index, holder.getUser_name() );
    index ++;
    if( holder.getSmtp() != null) {
    ps.setString(index, holder.getSmtp() );
    index ++;
    if( holder.getId() != null) {
    ps.setString(index, holder.getId() );
    index ++;
    // $$END_DELETE_VARS
    // Try the insert
    int ret = ps.executeUpdate();
    if (ret != 1)
    re = new RemoveException("Delete failed on table pucemailr in EmailSetupDao");
    catch (SQLException se)
    re = new RemoveException(se.getMessage());
    catch (Exception ex) {
    re = new RemoveException(ex.getMessage());
    } finally {
    DatabaseHelper.close(ps);
    // Throw exception if error occurred
    if (re != null)
    throw re;
    /* This method finds records in pucemailr table that match the
    * supplied where clause.
    * An exception is thrown if an error occurs.
    public ResultProxy advancedFind(Connection con, String whereclause) throws SQLException
    // THE CODE GENERATOR NEEDS THIS VARIABLE AND THE PARAMETER VARIABLE 'whereclause'
    StringBuffer selectStatement = new StringBuffer();
    // $$START_ADVANCEDFIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    // $$END_ADVANCEDFIND
    selectStatement.append(" where ");
    selectStatement.append(whereclause);
    return new LocalResultProxy(this,con, selectStatement.toString()+makeOrderBy());
    /* This methods returns a Vector of DataField objects that
    * map the columns in the pucemailr table for the
    * advanced find Where Clause Generator in the client. The extended
    * where clause will be applied if one exists for this DAO.
    public Vector<DataField> getQueryFields() {
    Vector<DataField> v = new Vector<DataField>() ; // THE CODE GENERATOR NEEDS THIS VARIABLE
    // $$START_QUERYFIELDS
    v.addElement( new DataField( "email_address", "Email address", DataField.STRING ) ) ;
    v.addElement( new DataField( "login_id", "Login id", DataField.STRING ) ) ;
    v.addElement( new DataField( "user_name", "User name", DataField.STRING ) ) ;
    v.addElement( new DataField( "smtp", "Smtp", DataField.STRING ) ) ;
    v.addElement( new DataField( "id", "Id", DataField.STRING ) ) ;
    // $$END_QUERYFIELDS
    return v;
         * Jira Issue NS 30679 - Faiz Qureshi March 7, 2013
         * @param ps
         * @param holder
         * @param isInsert - Added Boolean parameter so the id parameter does not get passed for Insert DML statements
         * @return
         * @throws Exception
    public PreparedStatement assignPreparedStatementValues(PreparedStatement ps, EmailSetupHolder holder, boolean isInsert)
    throws Exception
    // $$START_PS_SETS
    if( holder.getEmail_address() != null)
    ps.setString(1, holder.getEmail_address() );
    else
    ps.setNull(1, java.sql.Types.VARCHAR);
    if( holder.getLogin_id() != null)
    ps.setString(2, holder.getLogin_id() );
    else
    ps.setNull(2, java.sql.Types.VARCHAR);
    if( holder.getUser_name() != null)
    ps.setString(3, holder.getUser_name() );
    else
    ps.setNull(3, java.sql.Types.VARCHAR);
    if( holder.getSmtp() != null)
    ps.setString(4, holder.getSmtp() );
    else
    ps.setNull(4, java.sql.Types.VARCHAR);
    if (!isInsert){
         if( holder.getId() != null)
         ps.setString(5, holder.getId() );
         else
         ps.setNull(5, java.sql.Types.VARCHAR);
    // $$END_PS_SETS
    return ps;
    /* Do not delete this tag, it is reserved for adding new methods to the DAO */
    // $$ START_MDK_RESERVED
    // $$START_EDITABLE_SUB_TABLE_NAME
    * Returns the table names used in this DAO
    * @return the table names used in this DAO
    public String[] getTableNames() {
    // $$START_UNEDITABLE_SUB_TABLE_NAME
    String[] tableNames = new String[] {"pucemailr"};
    // $$END_UNEDITABLE_SUB_TABLE_NAME
    return tableNames;
    // $$END_EDITABLE_SUB_TABLE_NAME
    // $$START_EDITABLE_SUB_FIND
    * Using the EmailSetupHolder, this method locates records in the pucemailr table.
    * Null values found in the holder are not used in the search.
    * An exception is thrown if an error occurs.
    * @param con The database connection
    * @param holder holder containing the values to generate a query upon
    * @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
    * space in front of the order by, it will be automatically handled. Specify null to use the default
    * or empty string for no ordering.
    * @return The result of the search
    * @throws SQLException if an error occurs in the search.
    public ResultProxy find(Connection con, EmailSetupHolder holder, String orderBy) throws SQLException
    // THE CODE GENERATOR NEEDS THESE VARIABLES
    ResultProxy result = null;
    int needAnd = 0;
    StringBuffer selectStatement = new StringBuffer();
    // $$START_FIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    if(holder.getEmail_address() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("email_address like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getEmail_address())+"%'");
    if(holder.getLogin_id() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("login_id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getLogin_id())+"%'");
    if(holder.getUser_name() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("user_name like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getUser_name())+"%'");
    if(holder.getSmtp() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("smtp like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getSmtp())+"%'");
    if(holder.getId() != null)
    if ( needAnd > 0)
    selectStatement.append(" and ");
    else
    selectStatement.append(" where ");
    needAnd++;
    selectStatement.append("Id like ");
    selectStatement.append("'"+ Dialect.getSafeDialect(con).escape(holder.getId())+"%'"); }
    // $$END_FIND
    result = new LocalResultProxy(this, con, selectStatement.toString() + (orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
    return result;
    // $$END_EDITABLE_SUB_FIND
    // $$START_EDITABLE_SUB_FINDALL
    * The findAll method returns a ResultProxy containing all the records in the pucemailr table,
    * unless an extended where clause has been defined.
    * @param con The database connection
    * @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
    * space in front of the order by, it will be automatically handled. Specify null to use the default
    * or empty string for no ordering.
    * @return The result of the search
    * @throws SQLException if an error occurs in the search.
    public ResultProxy findAll(Connection con, String orderBy) throws SQLException
    LocalResultProxy result = null; // THE CODE GENERATOR NEEDS THIS VARIABLE
    // $$START_UNEDITABLE_SUB_FINDALL
    result = new LocalResultProxy(this,con, "select email_address, login_id, user_name, smtp, id from pucemailr" + (orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
    // $$END_UNEDITABLE_SUB_FINDALL
    return result;
    // $$END_EDITABLE_SUB_FINDALL
    // $$START_EDITABLE_SUB_ADVANCEDFIND
    * This method finds records in pucemailr table that match the supplied where clause.
    * @param con The database connection
    * @param whereclause The where clause for the select statement - do not include the "where" - it
    * will be automatically prepended
    * @param orderBy The order by clause. Note, you must specify the "ORDER BY". If you forget to add a
    * space in front of the order by, it will be automatically handled. Specify null to use the default
    * or empty string for no ordering.
    * @return The result of the search
    * @throws SQLException if an error occurs in the search.
    public ResultProxy advancedFind(Connection con, String whereclause, String orderBy) throws SQLException
    // THE CODE GENERATOR NEEDS THIS VARIABLE AND THE PARAMETER VARIABLE 'whereclause'
    StringBuffer selectStatement = new StringBuffer();
    // $$START_ADVANCEDFIND
    selectStatement.append("select email_address, login_id, user_name, smtp, id from pucemailr ");
    // $$END_ADVANCEDFIND
    selectStatement.append(" where ");
    selectStatement.append(whereclause);
    selectStatement.append((orderBy == null ? makeOrderBy() : com.harris.mercury.system.utils.StringUtils.padLeft(orderBy)));
    return new LocalResultProxy(this,con, selectStatement.toString());
    // $$END_EDITABLE_SUB_ADVANCEDFIND
    // $$ END_MDK_RESERVED
    }

    First thing to do is to edit the post and use some tags to format the code as it is unreadable and too much!
    Read the FAQ (https://forums.oracle.com/forums/help.jspa) to find out how to do this.
    Next we need to know the jdev version you are using!
    As the code is generated I would first try to generate it again after the db change.
    Timo

  • Error "app.addMenuItem is not a function"

    Hey,
    New to Acrobat and Javascript in general.  I wanted to be able to create a custom toolbar with four buttons when a document is loaded (we don't want the buttons on the documents themselves), and I copied and pasted the following code into a module named "Open" to give me an example of how the commands work.  When I run it, I get the error in the thread title.  So I copied the first block of code - the "addMenuItem" command into the Javascript console and tried running it from there, and I get the same error.  Anyone have any idea what's going on here?  Thanks for any assistance you can give me.
    function(){return A.apply(null,[this].concat($A(arguments)))}
    //-----------------Do not edit the XML tags--------------------
    //<Document-Level>
    //<ACRO_source>Open</ACRO_source>
    //<ACRO_script>
    /*********** belongs to: Document-Level:Open ***********/
    var atbtoolbuttons;
    app.addMenuItem({
    cName: "atbToolButtonSet",
    cUser: "My Menu",
    cParent: "Tools",
    cMarked: "event.rc = ( (typeof atbtoolbuttons != 'undefined') && !atbtoolbuttons )",
    cEnable: "event.rc = (event.target == null);",
    cExec: "loadATBToolButton();", nPos: 0
    var loadATBToolButton = app.trustedFunction( function ()
    if ( typeof atbtoolbuttons == "undefined" )
    atbtoolbuttons = true;
    else {
    if (!atbtoolbuttons) {
    app.removeToolButton("atbToolButton1");
    app.removeToolButton("atbToolButton2");
    atbtoolbuttons = true;
    return;
    if ( atbtoolbuttons ) {
    app.beginPriv();
    // Get the path to the user JavaScript folder
    var atbPath=app.getPath({cCategory: "user", cFolder: "javascript"});
    try {
    // Try opening the icon doc as in hidden mode, and retrieve its doc
    // object.
    var doc=app.openDoc({
    cPath: atbPath+"/icon_toolbar.pdf", bHidden: true});
    } catch (e) { console.println("Could not open icon file"); return;}
    // Get the icon stream for myIcon1 from the hidden doc
    var oIcon = util.iconStreamFromIcon(doc.getIcon("myIcon1"));
    // Add a tool button using this icon
    app.addToolButton({
    cName: "atbToolButton1",
    oIcon: oIcon,
    cExec: "atbTask1();",
    cTooltext: "My toolbar button 1",
    nPos: 0
    // Now get myIcon2 from the hidden document.
    oIcon = util.iconStreamFromIcon(doc.getIcon("myIcon2"));
    // and install this toolbar button as well
    app.addToolButton({
    cName: "atbToolButton2",
    oIcon: oIcon,
    cExec: "atbTask2()",
    cTooltext: "My toolbar button 2",
    nPos: 0
    // Close our hidden document containing the icons.
    doc.closeDoc();
    app.endPriv();
    // Set this variable to signal that the toolbars are installed.
    atbtoolbuttons = false;
    //</ACRO_script>
    //</Document-Level>

    In the documentation read the note for the method addMenuItem.

  • Error 1006 function issue

    Hi i'm new to actionscript. I'm trying to resize a movieclip when I click on it and I'm getting the following error:
    TypeError: Error #1006: value is not a function.
      at Untitled_fla::MainTimeline/resize_fn()
    here is my code
    import flash.events.MouseEvent;
    import flash.display.MovieClip;
    circle.addEventListener(MouseEvent.ROLL_OVER,size_fn,false,0,true)
    circle.addEventListener(MouseEvent.ROLL_OUT,resize_fn,false,0,true)
    function size_fn(e:MouseEvent):void{
      circle.width(3);
      circle.height(3);
    function resize_fn(e:MouseEvent):void{
      circle.width(1.1);
      circle.height(1.1);
    any idea what i'm doing wrong?
    thanks in advanced

    Chamces are the problems are where you treat width and height as functions rather than properties...
      circle.width(3);
      circle.height(3);
    you normally assign values to the width and height properties, they are not functions...
      circle.width = 3;
      circle.height = 3;
    though I suspect you are not intending to set them to such small values... may you are trying to scale them???  (if so use scaleX and scaleY properties instead of width and height)

  • TypeError: Error #1006: when rearranging array of objects

    I have an array of objects, which I call in a loop thus:
    myObjectArray[index].method()
    However, when I splice one object from the array and put it
    at the front via unshift, it no longer understands the method call
    and spouts a Type Error#1006 :value is not a function:
    Looks like a bug to me. Or am I missing something?

    Thanks for the quick reply
    tried this but got Coercion failed message:
    var arrayObj:*;
    arrayObj=altArray.splice(altToTop,1);
    AlternativeGUI(arrayObj); //coercion failed
    var newlength:int=altArray.unshift(arrayObj);
    All objects held by altArray are subclasses of AlternativeGUI
    However, even simpler to avoid that untyped arrayObj returned
    by the splice:
    altArray.unshift(altArray[altToTop]);
    altArray.splice(altToTop+1,1);
    now it works!

  • TypeError: Error #1006 - Removing MovieClip from the stage

    I have a movie clip that is called to the stage and once the movieclip is finished it calls a function that removes it from the stage. The code works but I get an error message about 4 seconds after the movie clip ends.
    Here’s the error message:
    TypeError: Error #1006: exitWordMicroscopic is not a function.
                    at ASvocabulary_microscopic/frame110()[ASvocabulary_microscopic::frame110:1]
    Here’s the stage code:
    //************************Removes the movieclip from the stage and enables the button.*************************
    function exitWordMicroscopic():void
                    bnt_vocab_microscopic.mouseEnabled = true;
                    removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
                    //Vocabulary buttons
                    if (event.target == bnt_vocab_microscopic)
                                    bnt_vocab_microscopic.mouseEnabled = false;
                                    SoundMixer.stopAll();
                                    addChild(word_Microscopic);
                                    word_Microscopic.x = 47;
                                    word_Microscopic.y = 120;
    Here’s the code inside the movie clip. This is what the error message is referring to:
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();
    What am I doing wrong?

    Here' how the code looks now:
    Objective: To remove the current movieclip while it's playing so that it does not show on the next (or previous) frame.
    Here’s the stage code:
    var word_Microscopic:ASvocabulary_microscopic = new ASvocabulary_microscopic();
    //Removes the movieclip from the stage and enables the button.
    function exitWordMicroscopic():void
        bnt_vocab_microscopic.mouseEnabled = true;
        removeChild(word_Microscopic);
    //******************************Stage buttons**************************************
    stage.addEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    function goButtonsHomeRead_1(event:MouseEvent):void
        //Vocabulary buttons
        if (event.target == bnt_vocab_microscopic)
            SoundMixer.stopAll();
            bnt_vocab_microscopic.mouseEnabled = false;
            addChild(word_Microscopic);
            word_Microscopic.x = 47;
            word_Microscopic.y = 120;
            word_Microscopic.play();
    //This button takes the user to the Main Screen
        if (event.target == bnt_ReadGoHome_1)
           // exitWordMicroscopic(); [If I use this function I get this error ArgumentError: Error #2025: The supplied DisplayObject must be a child of the caller.]
            SoundMixer.stopAll();
            gotoAndPlay("1","Main");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    //This takes the user to the next frame.
    if (event.target == GoNext_1)
            SoundMixer.stopAll();
            gotoAndPlay("2");
            stage.removeEventListener(MouseEvent.MOUSE_DOWN, goButtonsHomeRead_1);
    Here’s the code inside the movie clip.
    //****************** Calls function to remove itself from the stage****************************
    Object(parent).exitWordMicroscopic();

  • Error #1006 Problem

    Hi I'm getting this error and can't figure out why.
    error#1006 addEventListener is not a function -at the following class.
    Here's the class where it says I'm having the problem, it's one of 4 classes I'm working with:
    package mvc
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;
    public class PlayerShipView extends MovieClip
    private var _model:Object;
    private var _controller:Object;
    private var _playerShip:PlayerShip;
    public function PlayerShipView(model:Object, controller:Object):void
    _model = PlayerShipModel;
    _model.addEventListener(Event.CHANGE, changeHandler);
    _controller = PlayerShipController;
    _playerShip.x = _model.xPos;
    _playerShip.y = _model.yPos;
    _playerShip = new PlayerShip;
    addChild(_playerShip);
    addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
    public function onAddedToStage(event:Event):void
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyUp);
    removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
    public function onKeyDown(event:KeyboardEvent):void
    _controller.processKeyDown(event);
    public function onKeyUp(event:KeyboardEvent):void
    _controller.processKeyUp(event);
    public function changeHandler(event:Event):void
    _playerShip.rotation = _model.rotationValue;
    If anyone knows why I'm getting the error please let me know. Thanks

    sorry I had the code written incorrectly, Ifixed it and now get this error, error#1009 cannot access a property or method of null object reference
    package mvc
    import flash.display.MovieClip;
    import flash.events.Event;
    import flash.events.KeyboardEvent;
    import flash.ui.Keyboard;
    public class PlayerShipView extends MovieClip
    private var _model:Object;
    private var _controller:Object;
    private var _playerShip:PlayerShip;
    public function PlayerShipView(model:Object, controller:Object):void
    _model = model;
    _model.addEventListener(Event.CHANGE, changeHandler);
    _controller = controller;
    _playerShip.x = _model.xPos;
    _playerShip.y = _model.yPos;
    _playerShip = new PlayerShip;
    addChild(_playerShip);
    addEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
    public function onAddedToStage(event:Event):void
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyDown);
    stage.addEventListener(KeyboardEvent.KEY_DOWN, onKeyUp);
    removeEventListener(Event.ADDED_TO_STAGE, onAddedToStage);
    public function onKeyDown(event:KeyboardEvent):void
    _controller.processKeyDown(event);
    public function onKeyUp(event:KeyboardEvent):void
    _controller.processKeyUp(event);
    public function changeHandler(event:Event):void
    _playerShip.rotation = _model.rotationValue;
    Thanks, sorry about the screwup

  • Trying to solve #Error 1006

    I posted a file earlier today (upgrading from AS2 to A S3), which was solved.
    I am trying to reuse the code by attaching a button the allows the viewer to move to the nextFrame and experience the Writing Effect but with new copy.
    It works but I keep getting the dreaded #1006 error. I keep commenting out parts but nothing changes. When I DEBUG it seems to reference
    frame 2 line 36 which is related to the sound.
    TypeError: Error #1006: stop is not a function.
        at Write_AS3_fla::MainTimeline/onTimerB()
        at flash.utils::Timer/_timerDispatch()
        at flash.utils::Timer/tick()
    I appreciate the help.
    This is the code, which has been modified by placing "A" or "B" to alter it.
    stop();
    var strA:String = " Hello There";
    var timerA:Timer = new Timer(1);
    timerA.addEventListener(TimerEvent.TIMER, onTimerB);
    timerA.start();
    var countA:Number = 0;
    //creating an instance for sound
    var sA:type = new type();
    var schannelA:SoundChannel;
    function onTimerB(event:TimerEvent):void {
        if(count == 0) {
            schannelA = sA.play(0,1000);
        theText.text = strA.substring(0,count);
        count += 2;
        if(count > strA.length) {
            timerA.removeEventListener(TimerEvent.TIMER, onTimerB);
            schannelA = sA.stop();

    The solution hasn't changed... The Sound class does not have a stop() method.  The SoundChannel class does, which is why you assign the play() method to a SoundChannel object variable (play() returns a SoundChannel object)...
    var strA:String = " Hello There";
    var timerA:Timer = new Timer(1);
    timerA.addEventListener(TimerEvent.TIMER, onTimerB);
    timerA.start();
    var countA:Number = 0;
    //creating an instance for sound
    var sA:type = new type();
    var schannelA:SoundChannel;
    function onTimerB(event:TimerEvent):void {
        if(count == 0) {
            schannelA = sA.play(0,1000);
        theText.text = strA.substring(0,count);
        count += 2;
        if(count > strA.length) {
            timerA.removeEventListener(TimerEvent.TIMER, onTimerB);
            schannelA.stop();

  • Error #1006:

    Not sure what to do to remedy this error. Also, is there a
    tutorial or something to teach me how to decrypt errors?
    TypeError: Error #1006: dispatchEvent is not a function.
    at MethodInfo-2()
    at MethodInfo-5()
    at
    flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at
    flash.net::URLLoader/flash.net:URLLoader::onComplete()

    I couldn't get it to work. I guess I need to hit the books
    hard on OOP and event handling. I am reposting another question
    with the same classes that my brother (C# programmer) helped me
    come up with. I am gettin fewer errors but it seems to make more
    sense now.
    Thanks anyway, kglad.

Maybe you are looking for

  • I have been upgraded my iphone 3GS,then i can't to activate anymore, what so i do.

    in my problem some one please tell me what should i do.

  • Mail.app opens behind frontmost window.

    Whenever I launch Mail.app, it opens up behind the frontmost application window, whatever that application happens to be. For example, if I launch Mail by clicking the app in the Finder, Mail opens behind the frontmost Finder window. I'm not sure if

  • After 7.5.1 Time Capsule firmware update -- bad news

    Has anyone else had a new 2TB 5GHz Time Capsule, with factory firmware 7.5 with a fan that always runs AND after updating to the recent 7.5.1 update, the fan stops running -- but then AirPort Admin reports it is overheating? AppleCare seems to have n

  • Mac cannot detect external hard disk

    My mac is running oin OSX 10.8.5. It cannot detect a hard disk that was originally detected before. This happened after I took out the hard disk a previous I used it without ejecting it properly. thanks!

  • CS6 and AcrobatXI problem

    After installing CS6, Acrobat XI will randomly become non-responsive.  Occasionally it will show a message that it is not activated.  The only solution is to totally uninstall CS6 and re-install.  Repair does not work.  There does not seem to be a pa