[JS] Method failing in ScriptUI/CS3

I wrote a method to check whether the active document's selection is exactly two vertical guides, and it works well when isolated, run from either Scripts menu or from ESTK. But when I attached this method to a button in ScriptUI palette, it continuously fails to do its job.
It claims that "there is no document", although it is there and has the expected selection. I tried a whole bunch of try/catch, if'fing tests, referring to activeDocument as well as documents[x], passing a ready-to-use docref, repeating the #target directive, restarting Ai/ESTK, but it stubbornly claims there is no document.
The situation is really sick: for a moment I have even had an if/else clause which was supposed to $.writeln() in both cases, which it didn't even though script went on down and performed other stuff. Arghhh!
I'm really puzzled. Has anyone been through such a maze?
Art

Addendum: this strange problem occurs only when method is called from a palette - when invoked from a modal dialog - runs just fine. This does not bring me any further since I have to maintain interaction between Ai doc and the window...

Similar Messages

  • The servlet weblogic.servlet.AsyncInitServlet init method failed

    I installed WLS 9.2.2 recently with my app being on 8.1.5 for a long time.
    I chose to create a new domain instead of upgrading my existing one.
    I use the eclipse 3.2.2 with the WL plugin.
    When I start the server and login to the console not using eclipse it works fine.
    Trying to start the server and login to the console gives a internal server error.
    Any idea what could be wrong? I bolded the parts where I have looked into.
    Here is the console output:
    <Nov 19, 2008 3:13:02 PM CST> <Notice> <WebLogicServer> <BEA-000395> <Following extensions directory contents added to the end of the classpath:
    C:\bea92\weblogic92\platform\lib\p13n\p13n-schemas.jar;C:\bea92\weblogic92\platform\lib\p13n\p13n_common.jar;*C:\bea92\weblogic92\platform\lib\p13n\p13n_system.jar*;C:\bea92\weblogic92\platform\lib\wlp\netuix_common.jar;C:\bea92\weblogic92\platform\lib\wlp\netuix_schemas.jar;C:\bea92\weblogic92\platform\lib\wlp\netuix_system.jar;C:\bea92\weblogic92\platform\lib\wlp\wsrp-common.jar>
    <Nov 19, 2008 3:13:03 PM CST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_10-b03 from Sun Microsystems Inc.>
    <Nov 19, 2008 3:13:05 PM CST> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.2 MP2 Mon Jun 25 01:32:01 EDT 2007 952826 >
    <Nov 19, 2008 3:13:10 PM CST> <Info> <WebLogicServer> <BEA-000215> <Loaded License : C:\bea92\license.bea>
    <Nov 19, 2008 3:13:10 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 19, 2008 3:13:10 PM CST> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>
    <Nov 19, 2008 3:13:11 PM CST> <Notice> <Log Management> <BEA-170019> <The server log file C:\bea92\user_projects\domains\domain\servers\AdminServer\logs\AdminServer.log is opened. All server side log events will be written to this file.>
    <Nov 19, 2008 3:13:15 PM CST> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>
    <Nov 19, 2008 3:13:22 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STANDBY>
    <Nov 19, 2008 3:13:22 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>
    <Nov 19, 2008 3:13:30 PM CST> <Error> <HTTP> <BEA-101359> <The servlet weblogic.servlet.AsyncInitServlet init method failed while it was run in the background. The exception was: java.lang.NoClassDefFoundError: com/bea/p13n/management/ApplicationFilePoller$Handler.
    java.lang.NoClassDefFoundError: com/bea/p13n/management/ApplicationFilePoller$Handler
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
         at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
         at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
         at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
         Truncated. see log file for complete stacktrace
    >
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <Log Management> <BEA-170027> <The server initialized the domain log broadcaster successfully. Log messages will now be broadcasted to the domain log.>
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN>
    <Nov 19, 2008 3:13:37 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING>
    <Nov 19, 2008 3:13:39 PM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 127.0.0.1:7005 for protocols iiop, t3, ldap, http.>
    <Nov 19, 2008 3:13:39 PM CST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "AdminServer" for domain "domain" running in Development Mode>
    <Nov 19, 2008 3:13:40 PM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Nov 19, 2008 3:13:40 PM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    <Nov 19, 2008 3:22:04 PM CST> <Error> <HTTP> <BEA-101020> <[weblogic.servlet.internal.WebAppServletContext@d6c6a0 - appName: 'consoleapp', name: 'console', context-path: '/console'] Servlet failed with Exception
    java.lang.NullPointerException
         at weblogic.servlet.AsyncInitServlet.service(AsyncInitServlet.java:124)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         Truncated. see log file for complete stacktrace
    Edited by: user5384782 on Nov 19, 2008 1:42 PM
    Edited by: user5384782 on Nov 19, 2008 3:59 PM

    Thanks for your replies adrian and david.
    The only thing I see different is that eclipse has different arguments when calling the jvm at the top.
    startWebLogic.cmd:
    C:\bea92\JDK150~1\bin\java -client -Xms256m -Xmx512m -XX:CompileThreshold=8000
    -XX:PermSize=48m -XX:MaxPermSize=128m -Xverify:none -da -Dplatform.home=C:\b
    ea92\WEBLOG~1 -Dwls.home=C:\bea92\WEBLOG~1\server -Dwli.home=C:\bea92\WEBLOG~1\i
    ntegration -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testC
    onsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=C:\bea92\patch_weblogic922
    \profiles\default\sysext_manifest_classpath -Dweblogic.Name=AdminServer -Djava.s
    ecurity.policy=C:\bea92\WEBLOG~1\server\lib\weblogic.policy weblogic.Server
    eclipse:
    -hotspot -Xms32m -Xmx200m -Dweblogic.ProductionModeEnabled=
    Eclipse may be calling the cmd I dont know.
    I will try upgrading my eclipse like adrian said, but in the meantime I appreciate any further advice/tips.

  • Dwr method fails

    when i execute my application in the eclipse ide it works fine but when it comes to browser dwr method fails to execute an im getting the following error
    [Error]
    Mar 15, 2011 6:29:19 PM org.directwebremoting.util.CommonsLoggingOutput info
    INFO: Exec: FeeManagementSystemDWR.getCollegeList()
    Mar 15, 2011 6:29:19 PM org.directwebremoting.util.CommonsLoggingOutput warn
    WARNING: Method execution failed:
    java.lang.NumberFormatException: null
         at java.lang.Integer.parseInt(Integer.java:415)
         at java.lang.Integer.<init>(Integer.java:620)
         at com.mf.cms.fms.services.fmsservices.FeeManagementSystemDWR.getCollegeList(FeeManagementSystemDWR.java:23)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:34)
         at org.directwebremoting.impl.DefaultRemoter$1.doFilter(DefaultRemoter.java:428)
         at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:431)
         at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
         at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
         at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
         at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:172)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:875)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
         at java.lang.Thread.run(Thread.java:595)
    Mar 15, 2011 6:29:19 PM org.directwebremoting.util.CommonsLoggingOutput warn
    WARNING: --Erroring: batchId[0] message[java.lang.NumberFormatException: null]
    [Error]
    Please help me out in that aspect
    it's urgent ...........
    Thanks in advance
    Thimmappa Narala

    844526 wrote:
    when i execute my application in the eclipse ide it works fine You are running in an 'environment'. That does not only consist of your code but also includes other things such as but not limited to configuration files, environment variables etc.
    but when it comes to browser dwr method fails to execute an im getting the following error The 'environment' is different.
    Please help me out in that aspect Most likely reason is that there is a configuration source (a file or value in a file), which exists in the IDE and doesn't exist when you run it outside the IDE.

  • ERROR - the ProtectKeyWithTPMAndPIN Method failed with the exit code: 8031005B

    Hello
    I am using the EnableBitlocker.vbs script to automatically assign the TPM and start the encryption. I am running it from an elevated command prompt. Here is are the arguments I am running with
    cscript EnableBitLocker.vbs /on:tp
    /l:c:\bitlockerlog.log /promptuser /ro:"MBAM" on
    All is well and it prompts the user for a PIN but then it fails.
    Here is the full log file. I haven't been able to find any info on the error code in the subject.
    Script processing started  02/07/2014       14:43:27
    Proper number of command line arguments passed to the script
    ---------------Executing with the following arguments------------------
    Enable parameters: tp
    Logging location: c:\bitlockerlog.log
    Create recovery key: No recovery key use specified
    Encryption method: 3
    Create SMS status MIF's: No SMS status MIF's will be created
    Reset TPM ownership: 1
    User prompting: 1
    Connection succeeded to MicrosoftTPM
    Successfully retrieved a TPM instance from the Win32_TPM provider class
    TPM found in the following state:
    Enabled - True
    Activated - True
    Owned - True
    Connection succeeded to MicrosoftVolumeEncryption
    TPM is in a ready state to enable BitLocker.
    Change TPM owner password specified on the command line.
    Random TPM owner password is: ;&K:)BU65|c7_v2n
    Completed converting old owner password to owner authorization:  0
    Completed converting owner password to owner authorization:  0
    Starting to change owner authorization process on the TPM
    ERROR - Failed to change owner authorization on the TPM with the following exit code:  80280001
    Successfully connected to WMI StdRegProv
    Checking if Group Policy encryption method is set...
    Found EncryptionMethod with value: 4
    Found EncryptionMethod policy registry key ignoring any /em options on command line
    Found ActiveDirectoryBackup with value: 1
    Found RequireActiveDirectoryBackup with value: 1
    Determined client Group Policy configured to require AD escrow of recovery password
    EncryptableVolumes count is: 1
    The EncryptableVolume(s) found: \\?\Volume{ad6db324-01dd-11e4-8272-806e6f6e6963}\
    EncryptableVolume used for encryption is: C:
    The volume has a protection status of: 0
    BitLocker Protection is Off
    Get conversion status is: 0
    The volume has a status of fully decrypted
    The following user is logged on: MGMT\80151318-sys
    Attempting to enable BitLocker TPM + Pin
    ERROR - the ProtectKeyWithTPMAndPIN Method failed with the exit code:  8031005B
    Script ended  02/07/2014       14:43:51
    Any and all help would be appreciated. This has worked before on a different laptop.
    Thanks

    Hi,
    This error indicates that the group policy isn't set correctly, when configure the group policy at teh server side, you should notice that only one of the additional authentication can be required at start up , otherwise a policy occurs, the notice can be
    found just like below:
    and after test, the error indeed occurs, just like the screen below:
    So, I suggest to check the group policy for bitlocker settings, you can only choose one start up authentication method.
    Regards
    Wade Liu
    TechNet Community Support

  • [JS][CS3] Method failing in palette

    Hi,
    Although I experience the problem in Illustrator CS/Win, I suspect someone might have been through a similar problem in InD, and it might expose some sort of bug. I seek to either have such a bug confirmed or grasp a solution. That's why I'm posting also on this forum.
    I wrote a method to check whether the active document's selection is exactly two vertical guides, and it works well when isolated, run from either Scripts menu or from ESTK. But once attached this method to a button in ScriptUI palette, it continuously fails to do its job. Again, it works OK from a modal dialog (which however is not a solution to me, since it does not allow interaction).
    It claims that "there is no document", although it is there and has the expected selection. I tried a whole bunch of try/catch, if'fing tests, referring to activeDocument as well as documents[x], passing a ready-to-use docref, repeating the #target directive, restarting Ai/ESTK, but it stubbornly claims there is no document.
    Anyone having a workaround? It's a showstopper :( I have to stick with palette type of window. :(

    Yes, Dave, I do this kind of debug all the time, writing either to console or showing alerts, but what good does it when you see that there IS a document but an alert shows that you fell into if(!app.activeDocument) ?
    Try to attach to a button any function referring to a selection, for instance: returning width of the selected object. Try both types of window frame: 'dialog' and 'palette'. I'd be curious what results you'd get.
    Unless I'm doing something wrong, I think there might be some problem with window layering.
    Art

  • OpenDocuments.ViewDocument Method fails if document is an InfoPath Filler form (xsn)

    Hi,
    I have a custom webpart with links to different documents.
    When the link is clicked I run the following JavaScript to open the document in the users client application:
    function ViewDoc(docpath) {
    NewDocumentButton = new ActiveXObject("SharePoint.OpenDocuments.3");
    if (!NewDocumentButton.ViewDocument(docpath)) {
    alert('Opening document failed.\n' + docpath);
    This is working for Word files and Excel files but not if the document is an xsn file.
    Any ideas why it don't work with InfoPath forms and have a solution?
    Environment is SharePoint Server Standard.

    Hi,
    According to your post, my understanding is that you had an issue about opening the xsn file.
    To open the InfoPath form, we should use the SharePoint.OpenXMLDocuments
    method.
    You can refer to the following code snippets, it worked well in my environment.
    function openDoc(){
    var NewDocumentButton = new ActiveXObject("SharePoint.OpenXMLDocuments");
    var docpath="http://sp/LIbA/Form.xsn";
    if (!NewDocumentButton.EditDocument2(window , docpath , "InfoPath.Document")) {
    alert('Opening document failed.\n' + docpath);
    Thanks,
    Jason
    Forum Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected]
    Jason Guo
    TechNet Community Support

  • OpenInWindowEx Method fails to open password protected file.

    Hi,
    I am getting issue while opening password protected file thru OpenInWindowEx Method. It rerurn 0. So please let me know how to open paasword protected file thru code ?
    Regards,
    Arvind

    Hi,
    It just returns 0 which means failed to open file. And I am using Adobe Acrobat 8.1.3 on window XP.
    You can test this in the sample application named ActiveViewVC.
    So I want to know whether we can open password-protected file using the OpenInWindowEx method or not?.
    Please let me know your response
    Regards,
    Arvind

  • CMP bean : 'create' method fails - SQL Syntax error

    I'm using SilverStream 3.7.3 server on Win 2K.
    In a CMP entity bean, call to any create method ( default using primary key or with any other list of parameters ) fails , giving this error :
    javax.ejb.CreateException: [Microsoft][ODBC Microsoft Access Driver] Syntax error in INSERT INTO statement.
    <<no stack trace available>>
    I've doubly checked for mismatch between types of database columns & parameters passed, but there is no difference. ( Another BMP bean uses same types and it's working perfectly )
    Interestingly, the 'finder' & other business methods are working without any problem.
    Any idea about cause of this error / options to solve / get around the prob?
    TIA,
    Subodh

    Hi,
    See if you can get SilverStream to give you the JDBC statements it is sending to Access. If SilverStream can't do that, try using P6Spy to get hold of the JDBC. Once you have the SQL, you should be able to figure out where the prolbem is... and if you can do anything about it.
    Does access actually accept any form of Standard SQL?
    Daniel.

  • PrintOut method Fails

    We have a remote system that uses Crystal Reports XI.  Lately, our application has been crashing apparently due to Crystal.  The most recent change is that we put a laser printer at another remote site that connects to this site.  The connection currently is over dial-up (soon to be back on site-to-site VPN).  The issue I am seeing is that the report will try to print but fail on the printOut method.  It only has a throwable, so I am unable to get any kind of message out of that to see why it failed.  Should that be available in a log somewhere?
    Also - it sometimes will fail when trying to export it.  After printing, we run it again, but this time it creates a PDF file locally on the remote system and then emails that to our document storage application to be handled there.  It seems to fail now and then on the export method.
    Our application is in VJ++ 6.0.  It's old but it does work for us and there are no current plans to move it off of this.  All of other sites (3 more total) have no issues with the same application.  The only difference at the site that has issues is that there are 2 remote sites on different subnets.  Are there any known issues with this?  The printer we added is also a different HP model than we had used before.  It is a LJ P4015.  Are there known issues with this and Crystal?
    I know this post was long, but everything I have makes me think it should be working ok.  Any insight would be greatly appreciated.

    I just had another crash occur, but this time it looks like it was trying to open the report to run but did not get any further, as it hung, didn't throw any exception and then crashed my application.  Anyone ever seen this behavior before?

  • _root level methods failing when using movieClipLoader

    man wouldn't have a clue why, using onloadInit BELOW, doesn't
    listen to simple button methods addressed to the _root movieClip,
    the script for this frame on the root mc is below, any help please
    It works fine offline, but when on server the button response
    just doesn't work
    www.kevindauth.com and go to port Folio/ then top right
    graphic to load animation, try pressing the right buttons as it
    loads, it just fails, maybe best to check code below first thanks
    kD:-)
    stop();
    var heartPlacer = this.createEmptyMovieClip("container2",
    "101");
    var heart_mc:MovieClipLoader = new MovieClipLoader();
    var preload2 = new Object();
    heart_mc.addListener(preload2);
    preload2.onLoadStart = function(targetMC) {
    heartPlacer._x=95;
    trace("started loading "+targetMC);
    container2._visible = false;
    bar_mc._visible = true;
    preload2.onLoadProgress = function(targetMC, lBytes, tBytes)
    bar_mc._width = (lBytes/tBytes)*100;
    preload2.onLoadComplete = function(targetMC) {
    text._visible = false;
    bar_mc._visible = false;
    container2._visible = true;
    loadingNow._visible = false;
    oneToUnload._visible=false;
    trace(targetMC+" finished");
    heart_mc.loadClip("heartSpinning.swf", "container2");
    _root.arrow_btn.onRelease=function(){
    trace("tjisjao");
    //preload2.onLoadInit = function(target:MovieClip) {
    _root.sun2_btn.onRelease=function(){ //fails
    heart_mc.unloadClip(target); //fails
    var newVar:MovieClipLoader = new MovieClipLoader(); //fails
    newVar.loadClip("workExNew.swf","targetMC"); //FAILS
    //_root.med_btn.onRelease=function(){
    //getURL("
    http://66.7.197.27/~kevindau/meditation.htm","_blank");

    Just answered that one:
    http://www.adobe.com/cfusion/webforums/forum/messageview.cfm?forumid=15&catid=288&threadid =1192673&enterthread=y
    But in your case: you need an object to listen for the
    MovieClipLoader events. So, use the current object as a listener...
    in the constructor:
    myloader = new MovieClipLoader();
    myloader.addListener(this);
    Then use private methods to capture the events:
    private method onLoadInit(target:MovieClip){
    and so on.

  • Component Install Failed error in CS3

    I have been trying to install the trial version of Illustrator CS3, as I only need to use the program for a short time. I tried installing more than five times now, and right before the installation process is over, it says that my Shared Components have installed properly, but Illustrator CS3 didn't, and underneath that it says "Component install failed." I've tried uninstalling it and running CS3Clean up to level 3 many times, and I am still getting this error. This is getting really frustrating.
    I am running on a Windows XP SP3. I already have a trial for Photoshop CS3 installed, and it works perfectly, so I don't know why Illustrator isn't working. Can anyone help me please?

    Well I also have Acrobat 7, Reader 9,
    Make up your mind which you want to use. Update Acro to v9, if necessary. Other CS products can reside happily with each other, Acrobat cannot (though marketing claims otherwise). In any case, narrow down your selection of tools and make your mind up whether in your situation simply taking the plunge and buying a suite (Design Premium for instance) would not be smarter. Things can only get worse the more versions progress...
    Mylenium

  • ORA-29516: Bulk load of method failed; insufficient shm-object space

    Hello,
    Just installed 11.2.0.1.0 on CentOS 5.5 64-bit. All dependencies satisfied, installation/linking went without a problem.
    Server has 32GB RAM, using AMM with target set at 29GB, no swapping is occuring.
    No matter what i do when loading Java code (loadjava with JARs or "create and compile java source") I keep getting the error:
    ORA-29516: Error in module Aurora: Assertion failure at joez.c:3311
    Bulk load of method java/lang/Object.<init> failed; insufficient shm-object space
    Checked shm-related kernel params, all seems to be normal:
    # Controls the maximum size of a message, in bytes
    kernel.msgmnb = 65536
    # Controls the default maxmimum size of a mesage queue
    kernel.msgmax = 65536
    # Controls the maximum shared segment size, in bytes
    kernel.shmmax = 68719476736
    # Controls the maximum number of shared memory segments, in pages
    kernel.shmall = 4294967296
    kernel.shmmni = 4096
    kernel.sem = 250 32000 100 128
    net.core.rmem_default = 262144
    net.core.rmem_max = 4194304
    net.core.wmem_default = 262144
    net.core.wmem_max = 1048576
    Please help.

    Hi there,
    I've stumbled into exactly the same issue for 11g. After I start the database up and I ran loadjava on an externally
    compiled class (Hello.class in my instance) I got the following error:
    Error while testing for existence of dbms_java.handleMd5
    ORA-29516: Aurora assertion failure: Assertion failure at joez.c:3311
    Bulk load of method java/lang/Object.<init> failed; insufficient shm-object space
    ORA-06512: at "SYS.DBMS_JAVA", line 679
    Error while creating class Hello
    ORA-29516: Aurora assertion failure: Assertion failure at joez.c:3311
    Bulk load of method java/lang/Object.<init> failed; insufficient shm-object space
    ORA-06512: at line 1
    The following operations failed
    class Hello: creation (createFailed)
    exiting : Failures occurred during processing
    After this, I checked the trace file and saw the following error message:
    peshmmap_Create_Memory_Map:
    Map_Length = 4096
    Map_Protection = 7
    Flags = 1
    File_Offset = 0
    mmap failed with error 1
    error message:Operation not permitted
    ORA-04035: unable to allocate 4096 bytes of shared memory in shared object cache "JOXSHM" of size "134217728"
    peshmmap_Create_Memory_Map:
    Map_Length = 4096
    Map_Protection = 7
    Flags = 1
    File_Offset = 0
    mmap failed with error 1
    error message:Operation not permitted
    ORA-04035: unable to allocate 4096 bytes of shared memory in shared object cache "JOXSHM" of size "134217728"
    Assertion failure at joez.c:3311
    Bulk load of method java/lang/Object.<init> failed; insufficient shm-object space
    It seems as though that "JOXSHM" of size "134217728" (which is 128MB) corresponds to the java_pool_size setting in my init.ora file:
    memory_target=1000M
    memory_max_target=2000M
    java_pool_size=128M
    shared_pool_size=256M
    Whenever I change that size it propagates to the trace file. I also picked up that only 592MB of shm memory gets used. My df -h dump:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda7 39G 34G 4.6G 89% /
    udev 10M 288K 9.8M 3% /dev
    /dev/sda5 63M 43M 21M 69% /boot
    /dev/sda4 59G 45G 11G 81% /mnt/data
    shm 2.0G 592M 1.5G 29% /dev/shm
    The only way in which I could get loadjava to work was to remove java from the database by calling the rmjvm.sql script.
    After this I installed java again by calling the initjvm.sql script. I noticed that after these scripts my shm-memory usage
    increased to about 624MB which is 32MB larger than before:
    Filesystem Size Used Avail Use% Mounted on
    /dev/sda7 39G 34G 4.6G 89% /
    udev 10M 288K 9.8M 3% /dev
    /dev/sda5 63M 43M 21M 69% /boot
    /dev/sda4 59G 45G 11G 81% /mnt/data
    shm 2.0G 624M 1.4G 31% /dev/shm
    However, after I stopped the database and started it again my Java was broken again and calling loadjava produced
    the same error message as before. The shm memory usage would also return to 592MB again. Is there something I
    need to do in terms of persisting the changes that initjvm and rmjvm does to the database? Or is there something else
    wrong that I'm overlooking like the memory management settings or something?
    Regards,
    Wiehann

  • Test Web Service Method  - -  FAILED

    Hi,
    I was going through a tutorial on Accessing webs services and when I try to
    test my method it fails. The ensuing error box shows ;
    InvocationTargetException com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:459) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595) null sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595) [failed to localize] http.not.found(/JavaTravellerService/JavaTravellerService); nested exception is: [failed to localize] http.not.found(/JavaTravellerService/JavaTravellerService) webservice.javatraveller.JavaTravellerService_Stub.getTripItinerary(JavaTravellerService_Stub.java:243) webservice.javatraveller.javatraveller.JavaTravellerClient.getTripItinerary(JavaTravellerClient.java:57) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595) [failed to localize] http.not.found(/JavaTravellerService/JavaTravellerService) com.sun.xml.rpc.client.http.HttpClientTransport.checkResponseCode(HttpClientTransport.java:302) com.sun.xml.rpc.client.http.HttpClientTransport.connectForResponse(HttpClientTransport.java:252) com.sun.xml.rpc.client.http.HttpClientTransport.invoke(HttpClientTransport.java:88) com.sun.xml.rpc.client.StreamingSender._send(StreamingSender.java:92) webservice.javatraveller.JavaTravellerService_Stub.getTripItinerary(JavaTravellerService_Stub.java:226) webservice.javatraveller.javatraveller.JavaTravellerClient.getTripItinerary(JavaTravellerClient.java:57) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) com.sun.rave.websvc.ui.ReflectionHelper.callMethodWithParams(ReflectionHelper.java:450) com.sun.rave.websvc.ui.TestWebServiceMethodDlg$MethodTask.run(TestWebServiceMethodDlg.java:1031) java.lang.Thread.run(Thread.java:595)
    I followed the tut very carefully so I doubt I made any mistakes..
    Can someone please tell me where the possible error may be !
    Thanks,
    newbie

    Hi,
    As I see from your exception, you tried JavaTravellerService web service, wdsl file of which you added from Creator's samples. This service is running on bundled Sun Application Server. I think reason can be that your Application Server isn't running. Try to start bundled Application Server and test methods of JavaTravellerService web service.
    Thanks,
    Roman.

  • Solved Hardwareinicializating using guess method fail.

    Hi on the second part of boot up before the GDM I see a fail on Hardwareinicializating using guess method, I also have some problems with gnome that is on another post not being able to save settings and having gtk1 buttons and tabs.
    This is probably do to the way I tried to config after the base isntall.
    Most of the stuff is working so far.
    Any suggestions?
    Seems to be a sound error , will try to fix it by using config notes.
    K tried the method mentioned on isntall notes and nota
    Last edited by TomWitko (2009-08-23 16:15:55)

    umm installed KDE and got some info. I have a dell xps 1530 and in kde its showing a intel driver in a app. I know my sound card is not intel

  • Unmarshal( ) method failing Error: NullPointerException

    Hi,
    I am trying to use Java Class Generator version 9.2.0.4.0. I am able to use the class generator to generate classes based on dtd and creating the XML document in java code. But now when I am trying to use the unmarshal method() to bind a XML document to create elements object, thats where it is failing. It is returning null objects from the Root element. Can any one please help me with this error.
    Thanks

    hi,
    please look in to the Login.java file and in that line no 603
    there you are trying not handling Null pointer Exception i.e., you might be trying to access that arraylist which has no elements.
    look in to that
    if you are still struck please go thruogh the API of Java Docs.
    thnx & regards
    Reddy

Maybe you are looking for

  • Best Tool to use ! Mouse ? or Pad ?

    Hello!  What are the tools that you find it more effective in using the photoshop ? Is it just a normal mouse ? or do you use pad ( I do not even know if that is what's called..) ? Can you please recommend which brand works the best for photoshop ? i

  • Why is Firefox taking up a lot of CPU and running very slowly?

    For the past week my Firefox (and also Chrome) have been running very slowly. Any time a page loads the CPU column in Task Manager shoots up to between 10-20 when it's usually at 00, and it sends my cpu fans into overdrive until the page is loading.

  • Set location of the Help display

    try { URL url = new URL("file:/c:/help/help.hs"); // the actual location of the help set HelpSet hs = new HelpSet(null, url); HelpBroker hb = hs.createHelpBroker(); helpDocsItem.addActionListener(new CSH.DisplayHelpFromSource(hb)); catch (Exception e

  • Lost iPhone , could that phone be used by a new sim , even if the lost mode is activated on Find my iphone

    Lost my iphone4S few days ago , even I have filed a police report with the IMEI code , Later on i signed into icloud ,Find my iPhone shows that it is offline, and all the requested action,lost mode was pending , after some time the phone was switched

  • Performance issues while accessing the Confirm/Goods Services' transaction

    Hello We are using SRM 4.0 , through Enterprise Portal 7.0. Many of our users are crippled by Performance issues when accessing the Confirm/Goods Services tab( Transaction bbpcf02). The system simply clocks and would never show the screen. This probl