MapViewer 12 c generates the error when a vector layer displaying predefined

I have a predefined vector layer that I want to display using Mapviewer 12 c. However, when I try to display the vector layer, I get an error of pointer Null in Java. If I run the same code using an environment of 11 g (v11.1.1.7.3) Mapviewer, the map displays correctly without error.

Everyone knows about similar problems with Mapviewer 12 c?

My environment consists of the following:

(1) server OS: Linux (RedHat Enterprise 5.11) x86_64

(2) oracle Weblogic Server 12 c

(3) I have manually deployed an EAR MapViewer exploded in WebLogic Server folder

http://[host]:[port]/mapviewer/omserver?getv=t

Immediately access this URL resulted in the expected answer text string:

Ver12.1.3_B140430.1010

4) I can successfully access the Weblogic administration Console (http://[host]:[port]/console) and confirm the Weblogic is running, and that Mapviewer was correctly deployment up and running as well. I can also access the Console of administration Mapviewer (http://[host]:[port]/mapviewer)

(5) Mapviewer 12 c has been configured to use the latest Java JDK 7 (i.e. Java 7 update 75).

The error I get when trying to display the predefined vector layer is:

[2015-02-17T11:52:40.294-05:00] [AdminServer] [WARNING] [] [oracle.mapviewer.ws] [host: icdevapp004.info-control.com]
            [nwaddr: 192.168.157.210] [tid: 34] [userId: ] [ecid: 6f92f10c-b237-4f4d-b683-3d7ae3f903f3-0000001c,0] [APP: mapviewer] java.lang.NullPointerException[[
     at oracle.lbs.dataserver.MapDataServlet.doPost(MapDataServlet.java:235)
     at oracle.lbs.dataserver.MapDataServlet.doGet(MapDataServlet.java:155)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
     at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
     at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
     at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:346)
     at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:25)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
     at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:202)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
     at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:137)
     at java.security.AccessController.doPrivileged(Native Method)
     at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:315)
     at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:460)
     at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:120)
     at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:217)
     at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:81)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
     at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:220)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
     at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
     at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:79)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3436)
     at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3402)
     at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
     at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
     at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
     at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2285)
     at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2201)
     at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2179)
     at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1572)
     at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)
     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:311)
     at weblogic.work.ExecuteThread.run(ExecuteThread.java:263)

Here is an example of the code that I use to visualize on the map.

test12c_2.html

yard1_12c.js

var baseURL = "http://192.168.157.210:7003/mapviewer";
var vDataSource = 'logitdv1';
var map = {};
var vlayer = {};

function showMap(){

    OM.gv.setResourcePath(baseURL+"/jslib/v2");            
    
    map = new OM.Map(
        document.getElementById('map'),
        {
            mapviewerURL: baseURL,
            universe: new OM.universe.ElocationUniverse()
        });
        
// OpenStreet Maps
    var tileLayer = new OM.layer.OSMTileLayer("OSMLayer1");

    map.addLayer(tileLayer);
  
    vlayer = new OM.layer.VectorLayer("UserGeo",
        {
            infoWindow: false,
            def:{
                type: OM.layer.VectorLayer.TYPE_PREDEFINED,
                dataSource: vDataSource,
                theme: 'damco_perimeter',
                loadOnDemand: false,
                url: baseURL
            }
        });

    map.addLayer(vlayer);
    vlayer.zoomToTheme();

    map.init();

}

Post edited by: Wayne Blumstengel -Attachment test12c_2.html added

I installed the OracleMaps HTML5 put last updated API (V2) - March 2015 (http://download.oracle.com/otn/other/mapviewer/11g_ps6_3/oraclemapsv2_11_1_1_7_3_1.zip) and the issue seems to have been resolved with this update.

I have deployed the 11.1.1.7.3.1 update on my installation of mapviewer v12.1.3 (according to the instructions in the readme file), and the vector layer prefined now displays correctly from Mapviewer 12 c.

Tags: Fusion Middleware

Similar Questions

  • Apex 5.0 generates the error when I tried to put the point and its value.

    Hello

    Product Build: 5.0.0.00.31

    PLSQL_GATEWAY: WebDb

    GATEWAY_IVERSION: 2

    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production

    (Local server)

    I get error whenever I tried to put items with its value in button.

    q.JPG

    Error:

    Q2.JPG

    Hi Pranav.shah,

    Please change the application checksum algorithm: Pages with required checksum produce error: encryption function 'SH512' is not supported on this system

    Respect,

    Christian

  • Get the error when using remove child

    Hi try to use remove the child I get the following error in the output panel

    Hide videos and learn the buttons
    video removed
    ArgumentError: Error #2025: the supplied DisplayObject must be a child of the caller.
    at flash.display::DisplayObjectContainer/removeChild()
    at DSE_MAIN_dizzy3_fla::MainTimeline/removeMedia()
    at DSE_MAIN_dizzy3_fla::MainTimeline/setNewMedia()
    at DSE_MAIN_dizzy3_fla::MainTimeline/onIntroClick()

    I think that the function that generated the error is called removeMedia()

    This function is called from another function that is called by a buttonpress

    function removeMedia() {}
    If (myVideo! = null) {//Check that a video is on the scene
    myVideo.stop (); / / stop the video so don't continue to play sound
    this.removeChild (myVideo); / / deletion of the video being step
    trace ("video deleted");
    }
    If (myLearn! = null) {//Check that an element of learning is on stage
    removeChild (myLearn); / / Remove swf of the stadium's current learning
    trace ("learning removed swf");
    }
    }

    I tried to parent.removeChild (myVideo);

    and parent.removeChild (myVideo);

    but I got the same error

    Don't know how to fix it or why? its probably something simple I'm missing, any help would be appreciated

    Heres the code in its entirety if you need


    / / Code witten by [email protected]

    Stop(); / / Stop to this framework

    Add the Classes required for the application-
    import fl.containers.UILoader;// import uiLoader class to display the elements of learning
    import flash.display.LoaderInfo;// import (required to load flash Vars) class loaderInfo
    import import the FLVPlayback class fl.video.*;// (required for playback of flv)
    FlashVars are passed to this application since the html/php page
    myFolder is the name of the FlashVar and contains the path to the flv file
    and learning of the swf file


    Configure the application variables-
    var mySection:String; / / define a variable to hold the current section, we
    MySection = "intro"; / / because it is the first picture on the variable intro MySection
    var myFlv:String; / / define a variable to hold the name of the current flv to play
    myFlv = "loaded dse_introvideo.flv";// like this just to put the variable myFlv for intro.flv.
    var mySwf:String; / / define a variable to hold the name of the element of swf of learning to play
    no need to name mySwf yet as we are in the intro of the article
    var mySecType:String; / / set a variable to contain the type of section 'video' or 'learning '.
    mySecType = 'video '; / / We start playing the videos in order to define us the type of section to the video

    // VIDEO STUFF --------------------------------------------------------------------
    var myVideo:FLVPlayback = new FLVPlayback(); / / create a new FLVPlayback object to contain the video
    myVideo.width = 544;             Set the width of the video
    myVideo.height = 304;           adjust the height of the video
    myVideo.x = 200;                  set the horizontal position of the video
    myVideo.y = 88;                    set the vertical position of the video
    set the skin to control videos
    We read the variable called myFolder that is passed to us from the web page
    my file contains path information to the customers on the Web site directory
    If (this.loaderInfo.parameters.myFolder! = undefined) {/ / check if all flashvars passed through}
    If flashvars adopted include myFolder the path to the external file of the skin
    myVideo.skin = (this.loaderInfo.parameters.myFolder + "SkinUnderPlayStopSeekMuteVol.swf");
    } else {}
    If no flashvars are passed through the skin without the additional path value
    myVideo.skin = "SkinUnderPlayStopSeekMuteVol.swf";
    }
    myVideo.source = myFlv; / / set the video source to the current video stored in the variable myFlv
    addChild (myVideo); / / put the video on the stage
    // END VIDEO STUFF-----------------------------------------------------------------

    // LEARNING STUFF ---------------------------------------------------------------
    var myLearn:UILoader = new UILoader(); / / create a new UIloader to contain the element learing
    myLearn.width = 544;                          Set the width of the element of learning
    myLearn.height = 304;                         define learning points height
    myLearn.x = 200;                              set the horizontal position of the element of learning
    myLearn.y = 88;                              set the vertical position of the element of learning

    We need hide the video and the buttons of learning that they must not be shown again
    This function called viewButtons that will
    to call the function, we use viewButtons ("show"); to show them
    and viewButtons ("hide"); to hide
    function viewButtons(mySwitch:String) {}
    If (mySwitch == 'view') {}
    This.vid_btn. Visible = true;                              show the button of the vid
    This.learn_btn. Visible = true;                              See him learn button
    This.button_bkg. Visible = true;                         show the button background
    trace ("see the video and discover the buttons");          hide the button background
    }
    If (mySwitch == 'Hide') {}
    This.vid_btn. Visible = false;               Hide button vid
    This.learn_btn. Visible = false;               Learn how to hide the button
    background of the This.button_bkg button. Visible = false //hide
    trace ("Hide videos and learn the buttons");
    }
    }
    viewButtons ("hide");               turn the video and learning off because buttons are not necessary
    //END LEARNING STUFF------------------------------------------------------------

    MEDIA FUNCTIONS
    function to delete the current item of the scene.
    function removeMedia() {}
    If (myVideo! = null) {//Check that a video is on the scene
    myVideo.stop ();                    stop the video so don't continue to play sound
    this.removeChild (myVideo);     delete the video being step
    trace ("video deleted");
    }
    If (myLearn! = null) {//Check that an element of learning is on stage
    removeChild (myLearn);               Remove swf of the stadium's current learning
    trace ("learning removed swf");
    }
    }

    function setNewMedia() {/ / function to play the swf or flv files media}
    removeMedia (); call the function removeMedia to stop and remove no matter what media on the scene
    If (mySecType == "video") {//if we're in the video section
    myVideo.source = myFlv;               load and play the new video
    addChild (myVideo);                    put video on stage
    trace ("added videos");
    }
    If (mySecType == "learn") {//if we're in the learning section
    myLearn.source = mySwf;               Load point learning
    addChild (myLearn);                    the point of learning on stage
    trace ("added learning item");
    }
    }

    SET UP THE BUTTONS ON THE STAGE-
    INTRO BUTTON
    function onIntroClick(event:MouseEvent):void {}
    myFlv = "dse_introVideo.flv";                    put the video to load
    viewButtons ("hide");                         hide the video and learning buttons
    setNewMedia();                              load in the media
    }
    set the function to the button intro
    intro_btn.addEventListener (MouseEvent.CLICK, onIntroClick);


    VIDEO BUTTON
    function onVideoClick(event:MouseEvent):void {}
    mySecType = 'video ';                    section under video
    setNewMedia();                              load in the media
    }
    set the function to the button intro
    vid_btn.addEventListener (MouseEvent.CLICK, onVideoClick);


    TEACH BUTTON
    function onLearnClick(event:MouseEvent):void {}
    mySecType = "learn."
    setNewMedia(); / / load in the media
    }
    set the function to the learn button
    learn_btn.addEventListener (MouseEvent.CLICK, onLearnClick);


    COMPUTER BUTTON
    function onComputerClick(event:MouseEvent):void {}
    myFlv = "dse_computerVideo.flv";//set the video to load.
    viewButtons ("show"); show the video buttons and learning
    setNewMedia(); / / load in the media

    }
    set the function to the computer button
    computer_btn.addEventListener (MouseEvent.CLICK, onComputerClick);

    BUTTON OF POSTURE
    function onPostureClick(event:MouseEvent):void {}
    myFlv="dse_postureVideo.flv";//set the video to load
    viewButtons ("show"); show the video buttons and learning
    setNewMedia(); / / load in the media
    }

    posture_btn.addEventListener (MouseEvent.CLICK, onPostureClick);

    Ah, looked carefully at the code, and I think I found the problem.

    You call removeChild for BOTH myVideo and myLearn - when the only one of them is on the display list.

    The if() statement could catch it, BUT you check if they are null, not if they are on the display list.  An object can be non-null and not be on the display list.

    The simplest method (also somewhat sloppy method) to get rid of this would be to add a try/catch around two of these calls removeChild.

    try {}

    removeChild (myVideo);

    } catch (e) {}

    try {}

    removeChild (myLearn);

    } catch (e) {}

    It's messy, it triggers the error again, but it immediately masks because you caught and did nothing, but the error is no longer displayed.

  • Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel. Got the unable to create the specified task

    Get the error when you try to manually create a restore point in Vista 32 - Bit - System - Protection of the system control panel.
    Got the unable to create the specified task

    Hello

    What is the exact error message received when the problem occurs?

    Methood 1:

    Auditor of file system (CFS) scan to fix all of the corrupted system files. To do this, follow the steps in the following link:

    How to use the System File Checker tool to fix the system files missing or corrupted on Windows Vista or Windows 7

    http://support.Microsoft.com/kb/929833 

    Method 2:

    You can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.

    I suggest to put the computer in a clean boot state, and check if the problem persists, see the link:
    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
    http://support.Microsoft.com/kb/929135
    Note: See step 7; Reset the computer to start as usual after troubleshooting is performed.

    Method 3:

    You can temporarily disable the security software and check if the problem occurs. Check out the following link to do the same thing:

    http://Windows.Microsoft.com/en-GB/Windows-Vista/disable-antivirus-software

    Warning: Antivirus software can help protect your computer against viruses and other security threats. In most cases, you should not disable your antivirus software. If you need to disable temporarily to install other software, you must reactivate as soon as you are finished. If you are connected to the Internet or a network, while your antivirus software is disabled, your computer is vulnerable to attacks.

    I hope this helps! Let us know if you need more assistance.

  • How to generate the alert when pageitem move on the page? and what class boss be use to move pageitem

    How to generate the alert when pageitem move on the page? and what class boss be use to move pageitem

    Hi Philippe,.

    You can see the kDocBoss for the ClassID with the PMIID IID_ITRANSFORM_DOCUMENT kLocationChangedMessage.

    Markus

  • Get the error when using the UTL_SMTP function in Oracle 11 g

    Hello

    I get the error when executing a trigger e-mail code in oracle 11 g:

    I have following trigger on the temporary table:

    CREATE OR REPLACE TRIGGER temp_temp_message AFTER

    INSERT OR UPDATE ON temp_message FOR EACH LINE

    declare

    Conn UTL_SMTP . CONNECTION ;

    msg VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Insert in temp_message values ()1

    );

    When I insert the record in the table there are given the following error.

    ORA-20000: failed to send messages because of the following error: ORA-24247: access denied by access control (ACL) of network list

    ORA-06512: at the 'APPS '. TEMP_TEMP_MESSAGE', line 14

    ORA-04088: error during execution of trigger ' APPS. TEMP_TEMP_MESSAGE'

    But if I run the next plsql through sqlplus send mail successfully:

    declare

    Conn UTL_SMTP . CONNECTION ;

    MSG VARCHAR2 (2000);

    Start

    Conn := UTL_SMTP . open_connection ( host => '10.250.1.149', port=>25 );

    UTL_SMTP . HELO ( conn, '10.250.1.149');

    UTL_SMTP . mail ( conn, '[email protected]');

    UTL_SMTP . RCPT () conn ' [email protected]');

    msg := "Hello, this is test mail." ;

    UTL_SMTP .data( conn, msg);

    UTL_SMTP . quit smoking ( conn );

    exception when others then

    dbms_output.put_line (sqlerrm);

    raise_application_error (-20000,

    "Failed to send because of the following error messages: ' " || sqlerrm);

    end;

    Thanks in advance.

    Yoann

    To resolve ORA-24247 you must:

    (1) create an acl (if it is not already created)

    (2) add the user privileges using the resources of the network

    (3) to use the ACL to a specific address

    This might be useful

    How to fix an ORA-24247: access denied by access control (ACL) of network list | DB tips

  • I'm not able to install illustrator creative cloud CC. This is the error when I download creative cloud app. "Cannot write the registry value. "Verify permissions, and then try again.

    I'm not able to install illustrator creative cloud CC. This is the error when I download creative cloud app. "Cannot write the registry value. "Verify permissions, and then try again.

    No one can tell you anything without the info adequate system or other technical details, including the exact error message.

    Mylenium

  • Get the error when update: Office creative cloud could not be updated. (error code: 2)

    Get the error when update: Office creative cloud could not be updated. (error code: 2).

    I'm on a McBook Pro, OSX 10.9.5 retina.

    How to fix error Code: 2?

    Always the same?

    Follow the procedure below:

    Please follow the steps below:

    1)

    Click on the Finder and search options listed next to icon located Apple in the upper left of the screen and click on the "Go" menu button and select 'utilities '.

    (Applications > Utiliites)

    Look for a CC Adobe and Adobe Application Manager folder under utility window and trash both folders.

    2)

    Click on the link below and download & run the cleaning of Adobe tool:

    Select the option "Adobe Application Manager for Mac OS X 10.6" and then click on "Clean up selected."

    https://helpx.Adobe.com/content/help/en/Creative-Suite/KB/CS5-cleaner-tool-installation-PR oblems/_jcr_content/hand-Sea/accordion_container_1/accordion-nominal/accordion-point-1/agreement I on-item-par/procedure/proc_par/step_3/step_par/download/file.res/AdobeCreativeCloudCleane r Tool.zip

    3) click on the link below and download file Creative Cloud install and use the same to install the creative Cloud Desktop application.

    https://creative.Adobe.com/products/creative-cloud

  • Try to update CC Bridge and Photoshop CC 2014 generates the error "failed to extract the downloaded files. Press Retry to download again. (U44M1I210)

    Try to update CC Bridge and Photoshop CC 2014 Creative Cloud program generates the error "failed to extract the downloaded files. Press Retry to download again. (U44M1I210). I am running Windows 7. Previous traffic on this subject did not help my situation.

    Please clean the cache of the MAO by deleting after the contents of the folder:

    For Mac:

    ·        /Volumes/%volume Name%/Users/%Username%/Library/Application Support/Adobe/AAMUpdater/1.0

    To win:

    ·        C:\Users\\AppData\Local\Adobe\AAMUpdater\1.0

    Then try to run updates.

    Kind regards

    Ashutosh

  • Cancellation of registration user stored in the shift register event generates the error 1 if Subvi runs intermittently

    Hello

    I'm trying to understand the behavior of the attached excerpt from a larger overall vi functional.

    In a State, I'm generating a user event and in a State later unsubscribe from the event and destroy it.

    Now, if I went through the VI together in one step (i.e., step through events? set to FALSE), the VI runs without generating an error. However, if I run the VI by intermittent and output after each execution of the loop, the vi generates error 1. Why is it so? Please notify. Thank you.

    Peter

    Why are you registration and deregistration of events user, but you have no event structure in your VI who use them?

    When you run events, probaby the event you registered disappears when your VI stops running.  If you were able to keep your VI in the foreground running, then the life of the event would persist.

    The event number still exists in the uninitialized shift register, but it does not say more once your high level VI stops and you get the error 1.

    If it was really a global functional VI, you would terminals connected to the connector table in your VI, you would call this as a Subvi as part of a main VI and life event would persist and you wouldn't mistake 1.

  • County rising edge specifier "10280" generates the error "-200220"»

    Hello

    I use the box USB-6008 with PFI 0 configured as a counter edge.  Everything works fine when I use it to count the edges fall with the "10171" specifier, but .vi DAQmxBase Create Channel (CI-County edges) generates the above error if I simply replaces "10171" with "10280.  This specifier is not recognized by the device?

    Thank you

    Tyler

    Hey Tyler,

    I've dug into this and found an internal report, and apparently only a falling edge can be used as a trigger of edge with patches of meter.  The other problem is that, even if you can use both, there is that a single input pin for this meter and edge only one type can be detected at the time.  The only solution I see would be to try to find a device with several counters, or take an another 6008 and use it to count the edges of the second switch.

  • Error when creating a layer of text, when 2 + work plans are available in the document

    Hi, I met a weird error while trying to create a new text layer.

    When a single work plan is available in the document, the script works well and create a new empty text layer;

    When 2 or more work plans are available in the document, the script generates the layer, but she then gets stuck when trying to convert a text. The console says "the layer cannot contain text.

    Paste my code here with comments.

    #target photoshop
    
    
    //this script attempts to create a text layer above the selected layer contained into an artboard.
    //For some reason, it works on the first available artboard, but not on the other ones. The error is "The layer cannot contain text"
    
    
    //get active PS document
    var doc = activeDocument; 
    
    
    //get active artboard 
    var currentArtboard = getActiveArtboard();  
    
    
    //create new art layer in the current artboard
    var newLayer = currentArtboard.artLayers.add();
    
    
    //trying to convert to text layer. Fails when 2+ artboards are available int the document
    newLayer.name = "test";
    newLayer.kind = LayerKind.TEXT; 
      
      
    function getActiveArtboard() {  
        var key = false;
        var l   = doc.activeLayer;
        var p   = l.parent;
    
    
        try {  
            while (!key) {  
                doc.activeLayer = p;  
                var ref = new ActionReference();  
                ref.putEnumerated(charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt'));  
                key = executeActionGet(ref).getBoolean(stringIDToTypeID("artboardEnabled"));  
                if (key) {  
                    return p  
                }  
                p = p.parent;  
            } 
    
    
        } catch (e) {  
            alert('This layer is not contained within an artboard');  
            return undefined; 
        }  
    }  
    


    Any help is greatly appreciated. Thank you in advance!

    var doc = activeDocument;
    
    var currentArtboard = getActiveArtboard();
    
    function makeTextLayer() {
        var desc = new ActionDescriptor();
        var desc2 = new ActionDescriptor();
        var ref = new ActionReference();
        ref.putClass(app.charIDToTypeID('TxLr'));
        desc.putReference(app.charIDToTypeID('null'), ref);
        desc2.putString(app.charIDToTypeID('Txt '), "text");
        var list2 = new ActionList();
        desc2.putList(app.charIDToTypeID('Txtt'), list2);
        desc.putObject(app.charIDToTypeID('Usng'), app.charIDToTypeID('TxLr'), desc2);
        executeAction(app.charIDToTypeID('Mk  '), desc, DialogModes.NO);
        return doc.activeLayer
    }
    
    var newLayer = makeTextLayer();
    
    newLayer.move(currentArtboard, ElementPlacement.INSIDE);
    
    function getActiveArtboard() {
        var key = false;
        var l = doc.activeLayer;
        var p = l.parent;
        try {
            while (!key) {
                doc.activeLayer = p;
                var ref = new ActionReference();
                ref.putEnumerated(charIDToTypeID('Lyr '), charIDToTypeID('Ordn'), charIDToTypeID('Trgt'));
                key = executeActionGet(ref).getBoolean(stringIDToTypeID("artboardEnabled"));
                if (key) {
                    return p
                }
                p = p.parent;
            }
        } catch (e) {
            alert('This layer is not contained within an artboard');
            return doc
        }
    }
    
  • Get the error when you use the Oracle 9.2 on RRS 4 installation

    Hi all

    I was getting error while installing oracle 9.2.0.4 in Red hat advanced server 4

    YES was generating a message
     could not able to relink ins_sqlplus.mk  and ins_rdbms.mk
    but I'd ignored, after installation of the oracle s/w, I relinked bleow files

    I also tried running the command below
    [oracle@oracle lib]$ make -f ins_sqlplus.mk install
    
    but when i try to make ins_rdbms.mk i was getting a error
    
    [oracle@oracle lib]$ make -f ins_rdbms.mk install
    .
    .
    .
    .
    .
    ..
    .
    u01/app/oracle/product/9.2.0.1/db_1/lib32/libgeneric9.a   `cat /u01/app/oracle/product/9.2.0.1/db_1/lib32/sysliblist` -Wl,-rpath,/u01/app/oracle/product/9.2.0.1/db_1/lib:/lib:/usr/lib -lm    `cat /u01/app/oracle/product/9.2.0.1/db_1/lib32/sysliblist` -ldl -lm    -lvsn9
    /usr/bin/ld: crt1.o: No such file: No such file or directory
    collect2: ld returned 1 exit status
    make[1]: *** [/u01/app/oracle/product/9.2.0.1/db_1/rdbms/lib/extproc32] Error 1
    make[1]: Leaving directory `/u01/app/oracle/product/9.2.0.1/db_1/rdbms/lib'
    Please suggest me if this will have an impact on the DB

    Published by: user00726 on July 8, 2009 23:06

    If the error only occurs when you start the dbca Wizard, the database itself should be ok. Before using it for the production you can stress test your db using swingbench or hammerora to be sure that iti works well.

    Concerning

    Oliver

  • PL/SQL - generate the error statement if the text file is not generated

    I have the following code as follows:
    SET SERVEROUTPUT ON SIZE 1000000;
    SET TIMING ON;
    --SPOOL draft.log
    DECLARE
    CURSOR C1 
    IS 
    SELECT * FROM Transaction;
    
    I_record_gen  INTEGER:=0;
    l_file                    utl_file.file_type;
    C_date                    CONSTANT VARCHAR2(8) := TO_CHAR(SYSDATE,'YYYYMMDD');
    
    BEGIN
    l_file := utl_file.fopen('Transaction_DIR','Transaction_'||C_date||'.txt', 'w' );
       FOR q IN C1 LOOP
       Utl_File.Put_Line(l_File,q.trans_id || '|' ||q.seq_no|| '|' ||q.count);
       I_record_gen:= 1;
       END LOOP;
     Utl_File.Fclose(l_File);
        EXCEPTION
        
       WHEN I_record_gen = 0 THEN
    dbms_output.put_line('Batch job runs successfully with no customer list extracted ');
        WHEN others THEN
               dbms_output.put_line('SQLERRCODE='||SQLCODE||'|'||SQLERRM);
    
    WHEN 
    
    END;
    /
    Based on the code, I want to generate a declaration in the error log if my variable I_record_gen has the value 0 when it has not entered my loop to generate the content of the file is generate.

    My code is correct? If not, how am I suppose to do?

    It looks like you want a custom exception. You can do the following:

    SET SERVEROUTPUT ON SIZE 1000000;
    SET TIMING ON;
    --SPOOL draft.log
    DECLARE
    CURSOR C1
    IS
    SELECT * FROM Transaction;
    
    I_record_gen  INTEGER:=0;
    l_file                    utl_file.file_type;
    C_date                    CONSTANT VARCHAR2(8) := TO_CHAR(SYSDATE,'YYYYMMDD');
    recordGenExc     EXCEPTION;
    
    BEGIN
    l_file := utl_file.fopen('Transaction_DIR','Transaction_'||C_date||'.txt', 'w' );
       FOR q IN C1 LOOP
       Utl_File.Put_Line(l_File,q.trans_id || '|' ||q.seq_no|| '|' ||q.count);
       I_record_gen:= 1;
       END LOOP;
     Utl_File.Fclose(l_File);
    
     IF I_record_gen = 0 THEN
          RAISE recordGenExc;
     END IF;
    
        EXCEPTION
    
       WHEN recordGenExc THEN
         dbms_output.put_line('Batch job runs successfully with no customer list extracted ');
        WHEN others THEN
               dbms_output.put_line('SQLERRCODE='||SQLCODE||'|'||SQLERRM);
    
    END;
    / 
    

    I added the following:

    -Adding a statement to an exception in the section DECLARE to your code.
    -Added a conditional to check the I_record_gen = 0 and then raised the exception if it was 0

  • Get the error when you try to connect to the application of HFM of FDM (like Targe)

    Hello

    can someone help me when I open FDM and click metadata-> order pictures... and try to get focused on that time period, it generates an error "unable to authenticate the specified user %0. »...

    Log file of this...

    * Start the journal entry for the Runtime Error FDM [2008-11-07-06: 41:05] *.
    -------------------------------------------------------------
    ERROR:
    Code...-2147220966
    Description... Could not authenticate the specified user. %0
    Error reference number: {06CFB6AF-0B83-40DC-8E32-EBD1275318D8}
    NUM: 0x8004021a; Type: 0. DTime: 2008-07-11 06:41:05; SVR: DEV-HFM-APPS1; File: CHsxClient.cpp; Online: 2272; Worm: 9.3.1.0.1502;
    Online: 391
    Process... clsBlockProcessor.ActConnect
    The component... upsWBlockProcessorDM
    Version...................................... 931
    Thread....................................... 4752

    IDENTIFICATION:
    User... osadashiv
    Name of the computer... DEV-HFM-APPS1
    App name... fdmapps
    Client App................................... WebClient

    CONNECTION:
    Provider..................................... SQLOLEDB
    Database server... 172.20.160.185
    Name of the database... fdmapps
    Trust connect... Fake
    Connect status... Open connection

    GLOBALS:
    Location..................................... Sample
    Location ID... 748
    Location Seg... 2
    Category..................................... WLCat
    ID of the category... 12
    Period....................................... Oct - 2008
    Period ID.................................... 2008-10-31
    POV Local.................................... Fake
    Language..................................... 1033
    User Level................................... 1
    All Partitions... True
    Is Auditor................................... Fake


    I put the machine, global session logon information profile, etc... and already download 2 adapters... but still getting the same error...

    Please help me...
    Thanks in advance...

    Hello

    It seems that something is wrong when FDM tries to connect to HFM.

    You need to understand:
    -To connect with FDM which user are you using
    -Do you use unified or comprehensive as your method of connection (settings of integration)
    -Have you attended a user in the profile of the machine?
    -You entered a domain anywhere?

    The user you are using must have the access rights to HFM. Test it directly in the client.

    Kind regards

    Marc

Maybe you are looking for