IASAT gives OutOfMemory exception when adding servers

Im trying to add a new server to the Admin Tool using File\New Server
dialog. If I enter the correct info for my server I get a
java.lang.OutOfMememory exception. The box Im using is a fresh
install of NT4 Server SP5 with Option Pack, IE5 and Oracle8i. I tried
turning off the JIT and setting max heap size in the JavaArgs
registry key for iAS6.0 but still the same problem. So far I can only
find references to problems running iASAT on Solaris.
Any help much appreciated. Its got to be something stupid and obvious
that I've missed.

I know this forum isnt really the right place to ask this question as
strictly it isnt a JATO related problem, but I need to sort it before
starting the upgrade process.
--- In [email protected], steve.archer@f... wrote:
Im trying to add a new server to the Admin Tool using File\New Server
dialog. If I enter the correct info for my server I get a
java.lang.OutOfMememory exception. The box Im using is a fresh
install of NT4 Server SP5 with Option Pack, IE5 and Oracle8i. I tried
turning off the JIT and setting max heap size in the JavaArgs
registry key for iAS6.0 but still the same problem. So far I can only
find references to problems running iASAT on Solaris.
Any help much appreciated. Its got to be something stupid and obvious
that I've missed.

Similar Messages

  • DPM Console hangs when adding servers by Modify Protection Group

    Hi Guys,
    I hope you can help
    I've created several protection groups and need to add a couple more servers to each, but I'm having issues where the DPM console hangs. This is what I'm doing:
    Under Protection:
    Right Click the Protection Group and select: Modify protection group...
    Under "Select Group Members" - expand the server and select it's volume or SQL DB, etc and click Next
    Under "Select Data Protection Method", I click Next
    Now the MMC stops working. There are no error messages, no unresponsive notifications, it just doesn't do anything.
    I can't click Back, Next, Cancel, Help or change any of the other options on this page.
    I left it once and went to bed, when I came back 12 hours later, nothing had changed.
    I have to open task manager and force close the MMC and reopen but I'm unable to add any additional servers. I can create new Protection Groups but would rather avoid this.
    For reference
    OS: Server 2012 R2 64bit
    DPM: 2012 R2 UR4
    The issue occurs using local console over RDP or via the client console on Windows 7
    Does anyone have an idea how I can get around this issue?
    Thanks
    Ryan

    After further playing - It's not isolated to adding servers. I actually can't continue past the "Select Data Protection Method" page even if I don't change anything in terms of the selection lists.
    Anyone else having issues or know what the problem is?

  • Null Pointer Exception When Adding New Row on Table

    Hello JheadStart Team
    I have used detail group with table layout , when I am clicking on AddRow button on detail table , I encounter NulllPointer Exception . I have traced the code and fount that in JhsCollectionModel when adding new row following
    condition occurs :
    DCIteratorBinding ib = getRangeBinding().getIteratorBinding();
    int rangeSize = ib.getRangeSize();
    int rowsInRange = ib.getAllRowsInRange().length;
    because getAllRowsInRange is Null then the error raise.
    My JheadStart ver is 10.1.3.3.85 .
    Detail Group with table layout setting is :
    Use Table range=true
    Show New Row at top=true
    New Rows:empty
    Show Add New Row Button :true
    Regards

    Given the build you are using, I assume you are an Oracle employee.
    Is this correct? if so, please post your question to the [email protected] mailing list.
    Steven Davelaar,
    JHeadstart team.

  • Exception when Adding Sql Statements in an Applet.

    Hello,
    When I have added ResultSet statements in the programme, the programme is giving me exceptions at run time as
    java.sql.SQLException: [Microsoft][ODBC Microsoft Access Driver] Too few parameters. Expected 2. at java.lang.Throwable.<init>(Compiled Code) at java.lang.Exception.<init>(Compiled Code) at java.sql.SQLException.<init>(Compiled Code) at sun.jdbc.odbc.JdbcOdbc.createSQLException(Compiled Code) at sun.jdbc.odbc.JdbcOdbc.standardError(Compiled Code) at sun.jdbc.odbc.JdbcOdbc.SQLExecDirect(Compiled Code) at sun.jdbc.odbc.JdbcOdbcStatement.execute(Compiled Code)* at sun.jdbc.odbc.JdbcOdbcStatement.executeQuery(Compiled Code) at RegistrationApplet.actionPerformed(Compiled Code) at java.awt.Button.processActionEvent(Compiled Code) at java.awt.Button.processEvent(Compiled Code) at java.awt.Component.dispatchEventImpl(Compiled Code) at java.awt.Component.dispatchEvent(Compiled Code) at java.awt.EventDispatchThread$EventPump.dispatchEvents(Compiled Code) at java.awt.EventDispatchThread.run(Compiled Code) at netscape.applet.DerivedAppletFrame$AppletEventDispatchThread.run(Compiled Code)
    Here is the code that is generating the exception
    try
    URL url1 = new URL("http://www.abc.com/");
    URL url2 = new URL("http://www.abc.com/Re-Register.html");
    ac = getAppletContext();
    ac1 = getAppletContext();
         /* Checking whether the UserID is present or not */
    rs = st.executeQuery("select * from Register where UserID="+userid);
         if(rs.next())
         /* If the UserID is present then close the connection and ask the User to re enter the login Information*/
              rs.close();
              System.out.println("Sorry Please Re-Register");
              ac1.showDocument(url2);
         else
              System.out.println("insert into Register values('"+firstname+"','"+lastname+"','"+address+"','"+country+"',"+phonenumber+",'"+emailid+"','"+userid+"','"+password+"','"+b+"')");
                                  int x = st.executeUpdate("insert into Register values('"+firstname+"','"+lastname+"','"+address+"','"+country+"',"+phonenumber+",'"+emailid+"','"+userid+"','"+password+"','"+b+"')");
                                  System.out.println("inserted" + x);
         ac.showDocument(url1);
    catch(Exception e)
         e.printStackTrace();
    Can any one help me where am I wring? The Exception is in
    rs = st.executeQuery("select * from Register where UserID="+userid);
    Thanks
    Regards
    Uma

    So your query is something like "select * from Register where UserID=uma". This compares the field UserID to the field uma, which almost certainly doesn't work. You want your query to look like "select * from Register where UserID='uma'".

  • Osgi workflowprocess gives classnotfound exception when osgi bundle is activated

    I did create an osgi service that extends workflowprocess interrface using eclipse. I install the bundle that contains this service and then deploy and activate the bundle in day cq. However, on activation I receive an error stating that my class is not found. Please note that both this service and the referenced service(twitterservice that I created) gets registered and the bundle is activated, however, its unable to find the class SendMessageProcessAction on the activation of the bundle. Hope someone could assist.
    POST /system/console/bundles/246 HTTP/1.1] com.day.twitter.workflow [com.day.twitter.service.impl.SendMessageProcessAction] Error during instantiation of the implementation object (java.lang.ClassNotFoundException: com.day.twitter.service.impl.SendMessageProcessAction not found by com.day.twitter.workflow [246]) java.lang.ClassNotFoundException: com.day.twitter.service.impl.SendMessageProcessAction not found by com.day.twitter.workflow [246]
        at org.apache.felix.framework.ModuleImpl.findClassOrResourceByDelegation(ModuleImpl.java:787 )
        at org.apache.felix.framework.ModuleImpl.access$400(ModuleImpl.java:71)
    package com.day.twitter.service.impl;
    import javax.jcr.RepositoryException;
    import javax.jcr.Session;
    import org.apache.felix.scr.annotations.Component;
    import org.apache.felix.scr.annotations.Properties;
    import org.apache.felix.scr.annotations.Property;
    import org.apache.felix.scr.annotations.Reference;
    import org.apache.felix.scr.annotations.Service;
    import org.osgi.framework.Constants;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    import com.day.cq.workflow.WorkflowException;
    import com.day.cq.workflow.WorkflowSession;
    import com.day.cq.workflow.exec.WorkItem;
    import com.day.cq.workflow.exec.WorkflowData;
    import com.day.cq.workflow.exec.WorkflowProcess;
    import com.day.cq.workflow.metadata.MetaDataMap;
    import com.day.twitter.service.SendMessageProcess;
    import com.day.twitter.service.TwitterService;
    @Component
    @Service
    @Properties({
        @Property(name = Constants.SERVICE_DESCRIPTION, value = " An example of Social Publish Implementation"),
        @Property(name = Constants.SERVICE_VENDOR, value = "RIM POC"),
        @Property(name = "process.label", value = "RIM POC Social Publish")
    public class SendMessageProcessAction implements WorkflowProcess{
        @Reference
        private TwitterService twitterService; 
        public TwitterService getTwitterService() {
            return twitterService;
        public void setTwitterService(TwitterService twitterService) {
            this.twitterService = twitterService;
         * @scr.reference
        private static final String TYPE_JCR_PATH = "JCR_PATH";
        private final Logger logger = LoggerFactory.getLogger(this.getClass()
                .getName());
        private final Logger logger1 = LoggerFactory.getLogger(SendMessageProcessAction.class);
        public void execute(WorkItem workItem, WorkflowSession workflowSession,MetaDataMap args)
        throws WorkflowException {
            final Session session = workflowSession.getSession();
            final WorkflowData data = workItem.getWorkflowData();
            logger.info("TEST VIBHOR!!");
            logger1.info("TEST VIBHOR BHATIA!!");
            String path = null;
            String type = data.getPayloadType();
            if (type.equals(TYPE_JCR_PATH) && data.getPayload() != null) {
                String payloadData = (String) data.getPayload();
                try {
                    if (session.itemExists(payloadData)) {
                        path = payloadData;
                } catch (RepositoryException e) {
                    // TODO Auto-generated catch block
                    logger.error("Exception - Check repository for Payload data path");
                    e.printStackTrace();
            logger.info("arguments");
            String msg = "CQ5 workflow event";
                // is there a message?
            String argument = args.get("PROCESS_ARGS", "default value");
            boolean equal = argument.equals("argument1");
            if(equal){
                String recipient = argument.toString();
                 sendDirectMessageOnTwitter(recipient, msg, path);
            } else {
                logger
                        .error("for sending a DM on Twitter (make sure Twitter allows you to DM that account): dm,(recipient id)");   
               //  return "Check config - error";
        private void sendDirectMessageOnTwitter(String recipient, String msg, String path) {
            getTwitterService().sendDirectMessage(recipient, msg + ", path: " + path);

    <plugin>
            <groupId>org.apache.felix</groupId>
            <artifactId>maven-bundle-plugin</artifactId>
            <version>2.0.1</version>
            <extensions>true</extensions>
            <configuration>
              <instructions>
                <Bundle-Name>cq-core bundle</Bundle-Name>
                <Export-Package>twitter4j.*</Export-Package>
                <Import-Package>
                      !twitter4j.internal.http.alternative,
                      !org.slf4j.impl,com.day.*,*
                 </Import-Package>
                 <Private-Package>com.day.twitter</Private-Package>  
              </instructions>
            </configuration>
    </plugin>
    Bnd-LastModified: 1334862237167
    Build-Jdk: 1.6.0_21
    Built-By: bvibor
    Bundle-ManifestVersion: 2
    Bundle-Name: cq-core bundle
    Bundle-SymbolicName: com.day.twitter.workflow
    Bundle-Version: 1.0.0
    Created-By: Apache Maven Bundle Plugin
    Export-Package: twitter4j.internal.util, twitter4j.internal.http; uses:="twitter4j, twitter4j.internal.logging, twitter4j.internal.util, twitter4j.http, twitter4j.conf, javax.xml.parsers, twitter4j.internal.org.json, org.w3c.dom, org.xml.sax", twitter4j; uses:="twitter4j.internal.org.json, twitter4j.internal.http, twitter4j.api, twitter4j.http, twitter4j.internal.async, twitter4j.conf, twitter4j.internal.logging", twitter4j.internal.org.json, twitter4j.api; uses:=twitter4j, twitter4j.http; uses:="twitter4j.internal.http, twitter4j, twitter4j.conf, javax.crypto.spec, javax.crypto, twitter4j.internal.logging", twitter4j.internal.async, twitter4j.conf; uses:="twitter4j.internal.http, twitter4j.http, twitter4j.internal.async, twitter4j", twitter4j.internal.logging; uses:="org.apache.commons.logging, org.apache.log4j, org.slf4j, twitter4j.conf", twitter4j.util; uses:="twitter4j.internal.http, twitter4j, twitter4j.internal.org.json, twitter4j.http"
    Ignore-Package: org.slf4j.impl, twitter4j.internal.http.alternative
    Import-Package: javax.crypto, javax.crypto.spec, javax.xml.parsers, org.apache.commons.logging, org.apache.log4j, org.osgi.framework; version="1.4", org.slf4j; version="1.5", org.w3c.dom, org.xml.sax, twitter4j, twitter4j.api, twitter4j.conf, twitter4j.http, twitter4j.internal.async, twitter4j.internal.http, twitter4j.internal.logging, twitter4j.internal.org.json, twitter4j.internal.util, twitter4j.util
    Manifest-Version: 1.0
    Service-Component: OSGI-INF/components.xml
    Tool: Bnd-0.0.357

  • "-17005 - System Level Exception" when adding extra results

    Hi,
    I can't find an answer to the following problem:
    I defined a complex data type and used it in custom step. Further on I configured TestStand to add to results the previously defined parameters.
    When running this step the execution is abnormally aborted.
    The attached sequence file reproduces the error.
    The environment used is TestStand 3.0 under WindowsXP.
    Debugging with MSVC++ 6.0 I can see an Access Violation in TSTOBJ2.DLL, which I suspect is not handled.
    Please help me out here solving this problem.
    Thank you,
    Silvius
    Silvius Iancu
    Attachments:
    Error.seq ‏33 KB

    Silvius -
    I remember a problem that was fixed in TestStand 3.1 and it had to do with multiple levels of types causing the problem. I tried your sequence file on TestStand 3.0 and it occurred. I tried it on TestStand 3.1 and the problem did not.
    I suspect that if you do not use three levels of types and instead use two or one large type only, the problem will not occur in TestStand 3.0.
    Scott Richardson (NI)
    Scott Richardson
    National Instruments

  • Help please :how to debug OutOfMemory exception

    Hello
    Our application gives OutofMemory exception randomly. The server we are using has enough memory. Can anyone suggest an approach to debug this issue. Our server has lots of memory. Our memory Java parameters are set to default
    Ammar

    The amount of physical memory you have on your server has no bearing on OutOfMemoryErrors; this is solely affected by the memory parameters you pass into the Java VM. Try increasing the upper memory limit.
    I wrote an article a while back about tracing memory leaks. You can use the technique described in this article to see why your application is using so much memory:
    http://www.oracle.com/technology/products/jdev/tips/duff/debugger_memoryleaks3.html
    Thanks,
    Brian

  • TableAdapter Configuration Wizard gives error when adding new TableAdapter

    Hi,
    I recently downloaded and installed the ODT for visual studio on my computer. I am running VS2008 on Windows 7 64-bit. I am able to create an ODP.NET connection to the Oracle XE 10.2g instance that is running on my computer with no problems and use that connection to browse the database. When I add a DataSet to my project, and start adding TableAdapters to the DataSet, I am getting errors. In an attempt to figure out what the problem is, I have followed various scenarios. I will describe each scenario, and what the end result is, and then after I have described them all, I will explain what I think the problem might be. Here are the different scenarios I have used:
    Scenario 1:
    From the Server Explorer, highlight ALL of the tables in my schema and drag them to the designer (all table adapters are added with no issues). I can add additional queries to each of the TableAdapters and then change the additional queries by right clicking and choosing "Configure". This all works with no issues. However, on certain TableAdapters, if I try to modify the primary query (Fill,GetData()), I can open the query editor just fine, change various settings, etc, but when I click on "Finish" I get the following error:
    Configure TableAdapter TABLENAME failed.
    Index was outside the bounds of the array.
    Scenario 2:
    From the Server Explorer, drag tables from my schema onto the designer one at a time. Some tables get added just fine, but for the rest of them, I get the following error:
    Failed to merge object(s).
    Index was outside the bounds of the array.
    Scenario 3:
    On the Dataset Designer, add tables one at a time by right clicking and choosing "Add -> TableAdapter" and then using SQL to define the query for each table. Some tables get added just fine, but for the rest of them, I get the following error:
    Failed to add TableAdapter.
    Index was outside the bounds of the array.
    Ok... now that I have described all of the different scenarios, I will explain what I think the problem is, and why. Based on my research, I believe the underlying problem has to do with Foreign Key Constraints on the various tables. While working on Scenarios 2 & 3, the same exact tables worked just fine in both scenarios. When I started looking at the definitions for the tables in my schema, it turns out that all of the tables that failed had foreign key constraints defined. When I remove the FK constraints from a table, I am then able to add it to my dataset and change the default query with no problems. My original application used the System.Data.OracleClient provided by Microsoft. When adding my tableadapters using the microsoft data provider, the FK relations are automatically generated for me in the designer, but not with the Oracle Data Provider
    I would be happy to provide you with the DDL that I used for creating my schema (it is not very big) if needed.
    Thanks,
    Jim

    Sorry let me clarify some of the config a little more.
    MAIL101 - Exch 2013
    MAIL102 - Exch 2013
    AP104 - Witness (strictly a witness nothing else on this machine)
    EDGE01 - Exch 2007 Edge
    CAS01 - Exch 2007 Hub/CAS load balancer for CAS02/03
    CAS02 - Exch 2007 Hub/CAS
    CAS03 - Exch 2007 Hub/CAS
    MBOX01 - Exch 2007 Mail cluster
    MBOX02 - Exch 2007 Mail cluster node
    MBOX03 - Exch 2007 Mail cluster node
    RDC01, RDC02, RDC03 - all 2008 R2 root domain controllers for rootdomain.rootdomain
    DC01, DC02, DC03, DC04 - all 2008 R2 domain controllers for us.rootdomain.rootdomain
    All DCs are Global Catalogs.
    I can ping all DCs and root DCs fromboth MAIL101 and 102
    The Exchange Replication service is running on both MAIL101 and 102.
    DC03 is in the same site as the MAIL101/102 servers so I'll run all replication tests from here.
    DCDIAG comes back with all tests passed.
    repadmin /replsum comes back with 0 fails and no errors largest delta for any intersite communication is 13min.
    When I run Test-ReplicationHealth -Identity MAIL101 and also 102 they both come back as everything passed.  No errors.

  • HELP!  Exception when Programmatically Adding a Portlet to a Page

    We have been able to programmatically add WSRP Producers and Portlets into the BEA's local registry with WebLogic Portal 8.1 SP3. When we try to programmatically add a portlet to a page from within a JSP portlet we are hitting an issue. We are getting an exception when we try to call the addPlaceable method on the page instance manager. Here's the code snippet I'm using to programmatically add a portlet to a page:
    IPageInstanceManager ipiManager = new PortalCustomizationManagerImpl();
    CustomizationContext customizationContext = new CustomizationContext(ProxyPortletManager.LocaleHelper.findLocale("en"));
    DesktopDefinitionId desktopDefinitionId = new DesktopDefinitionId("portal", new PortalPath("rdec"), new DesktopPath("enterprisePortal"));
    PageInstanceId pageInstanceId = new PageInstanceId(6001);
    PortletDefinitionId portletDefinitionId = new PortletDefinitionId(6002);
    PlaceholderDefinitionId placeholderDefinitionId = new PlaceholderDefinitionId(2001);
    PlaceableInstance placeableInstance = ipiManager.addPlaceable(customizationContext, desktopDefinitionId, pageInstanceId, portletDefinitionId, placeholderDefinitionId, 0);However, I get the following stack trace when the last line executes (ipiManager.addPlaceable):
    Error opening /WEB-INF/views/registry/registry.jsp.
    The source of this error is javax.ejb.EJBException: DataSource [java:comp/env/jdbc/portalFrameworkPool] not found due to
    [javax.naming.NameNotFoundException: While trying to look up comp/env/jdbc/portalFrameworkPool in /app/webapp/portal/38957322.; remaining name 'comp/env/jdbc/portalFrameworkPool']. at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getDataSource()Ljavax.sql.DataSource;(PortalCustomizationMana
    gerImpl.java:1420) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getConnection()Ljava.sql.Connection;(PortalCustomizationManag
    erImpl.java:1396) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getPageInstance(Lcom.bea.netuix.application.manager.Customiza
    tionContext;Lcom.bea.netuix.application.identifier.PageInstanceId;)Lcom.
    bea.netuix.application.instance.PageInstance;(PortalCustomizationManager
    Impl.java:401) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.getPageDefinitionId(Lcom.bea.netuix.application.manager.Custo
    mizationContext;Lcom.bea.netuix.application.identifier.PageInstanceId;)L
    com.bea.netuix.application.identifier.PageDefinitionId;(PortalCustomizat
    ionManagerImpl.java:1438) at
    com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationM
    anagerImpl.addPlaceable(Lcom.bea.netuix.application.manager.Customizatio
    nContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom
    .bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.applic
    ation.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.ident
    ifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.Pla
    ceableInstance;(PortalCustomizationManagerImpl.java:473) at jsp_servlet._web_45_inf._views._registry.__registry._jspService(Ljavax.s
    ervlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)
    V(registry.jsp:107) at
    weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljava
    x.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()L
    java.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.
    FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.
    FilterChainImpl;)V(ServletStubImpl.java:463) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequ
    est;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFil
    ter.java:28) at
    weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(Po
    rtalServletFilter.java:351) at
    weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(Ljavax.servlet.Ser
    vletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V
    (PageFlowJspFilter.java:101) at
    weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.Servle
    tRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;Z)V(RequestDispatcherImpl.j
    ava:628) at
    weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.S
    ervletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.ja
    va:412) at
    com.bea.netuix.servlets.controls.content.JspContent.beginRender(Ljava.io
    .Writer;)Z(JspContent.java:483) at
    com.bea.netuix.nf.ControlLifecycle$6.visit(Lcom.bea.netuix.nf.UIControl;
    Ljava.lang.Object;)Z(ControlLifecycle.java:441) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:433) at
    com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:443) at
    com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:443) at
    com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.
    nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(Control
    TreeWalker.java:443) at
    com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;
    Lcom.bea.netuix.nf.UIControl;Lcom.bea.netuix.nf.concurrency.ControlTreeW
    alkerPool;)V(ControlTreeWalker.java:175) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;
    Lcom.bea.netuix.nf.UIControl;)V(ControlTreeWalker.java:95) at com.bea.netuix.nf.Lifecycle.run(Lcom.bea.netuix.nf.UIControl;[Lcom.bea.n
    etuix.nf.VisitorType;Lcom.bea.netuix.nf.VisitorMap;)V(Lifecycle.java:388
    ) at com.bea.netuix.nf.UIControl.render()V(UIControl.java:584) at com.bea.netuix.servlets.controls.PresentationContext.render(Ljavax.servl
    et.http.HttpServletRequest;)V(PresentationContext.java:405) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(Lcom.bea.netuix.s
    ervlets.controls.PresentationContext;Ljavax.servlet.http.HttpServletRequ
    est;)V(RenderToolkit.java:123) at
    com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag()I(RenderChild
    .java:58) at
    jsp_servlet._framework._skeletons._rdec.__flowlayout._jspService(Ljavax.
    servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;
    )V(flowlayout.jsp:33)Could anyone please help? Thank you.
    - T.C.

    sorry for all the replys (but i keep finding stuff)
    PortalCustomizationManger is an EJB you can't just
    instantiate a new instance
    IPageInstanceManager ipiManager = new
    PortalCustomizationManagerImpl();
    you need to look it up
    String JNDI_NAME =
    ApplicationHelper.getApplicationName() +
    ".BEA_netuix.PortalPresentationManager";
    portalCustomizationManagerHome =
    (PortalCustomizationManagerHome)initialContext.lookup(
    JNDI_NAME);
    portalCustomizationManager =
    portalCustomizationManagerHome.create();No need to apologize for all the replies, they are VERY MUCH appreciated. Thank you.
    I tried your suggestion (although I had to change the JNDI lookup to lookup the PortalCustomizationManager instead of the PortalPresentationManager because of a ClassCastException) and I get a NullPointerException. Here is the code I am using:
    InitialContext initialContext = new InitialContext();
    CustomizationContext customizationContext = new CustomizationContext(ProxyPortletManager.LocaleHelper.findLocale("en"), request);
    DesktopDefinitionId desktopDefinitionId = new DesktopDefinitionId("portal", new PortalPath("rdec"), new DesktopPath("enterprisePortal"));
    PageInstanceId pageInstanceId = new PageInstanceId(6001);
    PortletDefinitionId portletDefinitionId = new PortletDefinitionId(6002);
    PlaceholderDefinitionId placeholderDefinitionId = new PlaceholderDefinitionId(2001);
    PortalCustomizationManagerHome pageDefinitionManagerHome = (PortalCustomizationManagerHome) initialContext.lookup("RDECPortal.BEA_netuix.PortalCustomizationManager");
    PortalCustomizationManager pageDefinitionManager = pageDefinitionManagerHome.create();
    PlaceableInstance placeableInstance = pageDefinitionManager.addPlaceable(customizationContext, desktopDefinitionId, pageInstanceId, portletDefinitionId, placeholderDefinitionId, 0);...and here is the full stack trace I get when the code is executed:
    Error opening /WEB-INF/views/registry/registry.jsp.
    The source of this error is java.rmi.RemoteException: EJB Exception: ; nested exception is: java.lang.NullPointerException at weblogic.ejb20.internal.EJBRuntimeUtils.throwRemoteException(Ljava.lang.String;Ljava.lang.Throwable;)V(EJBRuntimeUtils.java:102) at weblogic.ejb20.internal.BaseEJBHome.handleSystemException(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(BaseEJBHome.java:307) at weblogic.ejb20.internal.BaseEJBObject.postInvoke(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(BaseEJBObject.java:263) at weblogic.ejb20.internal.StatelessEJBObject.postInvoke(Lweblogic.ejb20.internal.InvocationWrapper;Ljava.lang.Throwable;)V(StatelessEJBObject.java:140) at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationManager_z7jdbo_EOImpl.addPlaceable(Lcom.bea.netuix.application.manager.CustomizationContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PortalCustomizationManager_z7jdbo_EOImpl.java:1202) at jsp_servlet._web_45_inf._views._registry.__registry._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(registry.jsp:119) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PortalServletFilter.java:351) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PageFlowJspFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Z)V(RequestDispatcherImpl.java:628) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:412) at com.bea.netuix.servlets.controls.content.JspContent.beginRender(Ljava.io.Writer;)Z(JspContent.java:483) at com.bea.netuix.nf.ControlLifecycle$6.visit(Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)Z(ControlLifecycle.java:441) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:433) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Lcom.bea.netuix.nf.concurrency.ControlTreeWalkerPool;)V(ControlTreeWalker.java:175) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;)V(ControlTreeWalker.java:95) at com.bea.netuix.nf.Lifecycle.run(Lcom.bea.netuix.nf.UIControl;[Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.VisitorMap;)V(Lifecycle.java:388) at com.bea.netuix.nf.UIControl.render()V(UIControl.java:584) at com.bea.netuix.servlets.controls.PresentationContext.render(Ljavax.servlet.http.HttpServletRequest;)V(PresentationContext.java:405) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(Lcom.bea.netuix.servlets.controls.PresentationContext;Ljavax.servlet.http.HttpServletRequest;)V(RenderToolkit.java:123) at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag()I(RenderChild.java:58) at jsp_servlet._framework._skeletons._rdec.__flowlayout._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(flowlayout.jsp:33) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) Caused by: java.lang.NullPointerException at com.bea.netuix.application.manager.persistence.jdbc.PageInstanceDelegate.addPlaceable(Ljava.sql.Connection;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Ljava.lang.String;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.instance.PlaceableInstance;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;IZ)Lcom.bea.netuix.application.instance.PlaceableInstance;(PageInstanceDelegate.java:722) at com.bea.netuix.application.manager.persistence.jdbc.PageInstanceDelegate.addPlaceable(Ljava.sql.Connection;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Ljava.lang.String;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PageInstanceDelegate.java:669) at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationManagerImpl.addPlaceable(Lcom.bea.netuix.application.manager.CustomizationContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PortalCustomizationManagerImpl.java:503) at com.bea.netuix.application.manager.persistence.jdbc.PortalCustomizationManager_z7jdbo_EOImpl.addPlaceable(Lcom.bea.netuix.application.manager.CustomizationContext;Lcom.bea.netuix.application.identifier.DesktopDefinitionId;Lcom.bea.netuix.application.identifier.PageInstanceId;Lcom.bea.netuix.application.identifier.PlaceableDefinitionId;Lcom.bea.netuix.application.identifier.PlaceholderDefinitionId;I)Lcom.bea.netuix.application.instance.PlaceableInstance;(PortalCustomizationManager_z7jdbo_EOImpl.java:1192) at jsp_servlet._web_45_inf._views._registry.__registry._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(registry.jsp:119) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996) at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Lweblogic.servlet.internal.FilterChainImpl;)V(ServletStubImpl.java:419) at weblogic.servlet.internal.TailFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(TailFilter.java:28) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.p13n.servlets.PortalServletFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PortalServletFilter.java:351) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Ljavax.servlet.FilterChain;)V(PageFlowJspFilter.java:101) at weblogic.servlet.internal.FilterChainImpl.doFilter(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(FilterChainImpl.java:27) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;Z)V(RequestDispatcherImpl.java:628) at weblogic.servlet.internal.RequestDispatcherImpl.include(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(RequestDispatcherImpl.java:412) at com.bea.netuix.servlets.controls.content.JspContent.beginRender(Ljava.io.Writer;)Z(JspContent.java:483) at com.bea.netuix.nf.ControlLifecycle$6.visit(Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)Z(ControlLifecycle.java:441) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:433) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walkRecursiveRender(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Ljava.lang.Object;)V(ControlTreeWalker.java:443) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;Lcom.bea.netuix.nf.concurrency.ControlTreeWalkerPool;)V(ControlTreeWalker.java:175) at com.bea.netuix.nf.ControlTreeWalker.walk(Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.UIControl;)V(ControlTreeWalker.java:95) at com.bea.netuix.nf.Lifecycle.run(Lcom.bea.netuix.nf.UIControl;[Lcom.bea.netuix.nf.VisitorType;Lcom.bea.netuix.nf.VisitorMap;)V(Lifecycle.java:388) at com.bea.netuix.nf.UIControl.render()V(UIControl.java:584) at com.bea.netuix.servlets.controls.PresentationContext.render(Ljavax.servlet.http.HttpServletRequest;)V(PresentationContext.java:405) at com.bea.netuix.servlets.util.RenderToolkit.renderChild(Lcom.bea.netuix.servlets.controls.PresentationContext;Ljavax.servlet.http.HttpServletRequest;)V(RenderToolkit.java:123) at com.bea.netuix.servlets.jsp.taglib.RenderChild.doStartTag()I(RenderChild.java:58) at jsp_servlet._framework._skeletons._rdec.__flowlayout._jspService(Ljavax.servlet.http.HttpServletRequest;Ljavax.servlet.http.HttpServletResponse;)V(flowlayout.jsp:33) at weblogic.servlet.jsp.JspBase.service(Ljavax.servlet.ServletRequest;Ljavax.servlet.ServletResponse;)V(JspBase.java:33) at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run()Ljava.lang.Object;(ServletStubImpl.java:996)
    Any ideas why I'm getting a NPE???  Thanks.
    - T.C.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    

  • Print PDF to File -- OutOfMemory-Exception

    Hi all,
    versuch gerade mit Acrobat 7/8 Prof. Pdf-Dateien über die SDK in Datei zu drucken, um ein Spoolfile im Format PCL, PS, XPS usw. zu erhalten, je nachdem über welchen Drucker gedruckt wird...
    Bei Acrobat 7 Prof. erhalte ich, sobald der Outputfilename gesetzt ist, eine OutOfMemory-Exception.
    Das gleiche Sample liefert bei Acrobat 8 Prof. allerdings eine InvalidArguments-Exception...
    Lasse ich den Outputfilename-Parameter weg, dann funktioniert der Druck prinzipiell...
    Was muss im PrintParams-Objekt alles gesetzt sein um ein PDF auf einem beliebigen Drucker in Datei auszugeben??
    Für jede Hilfe bin ich dankbar,
    Jo
    Hier nochmals mein Post vom Planet-PDF-Forum, aber da tut sich leider auch nichts... :(
    not sure if this is the right place, but I'll just give it a try...
    currently I'm trying to get this sample to run. It should print a pdf to file without user-interaction. I'm using Adobe Acrobat 7.0 Professional and C#/.NET
    This is the VB-Sample I have found:
    Module Module1
    Sub Main(ByVal CmdArgs() As String)
    Dim oApp As Acrobat.CAcroApp
    Dim oAvDoc As Acrobat.AcroAVDoc
    Dim oDoc As Acrobat.CAcroPDDoc
    Dim oJS As Object
    Dim oPrinterParams As Object
    Dim PRINTER As String
    Dim INPUT As String
    Dim OUTPUT As String
    PRINTER = CmdArgs(0)
    INPUT = CmdArgs(1)
    OUTPUT = "\" + CmdArgs(2).ToString.Trim
    oApp = CreateObject("AcroExch.App")
    oAvDoc = CreateObject("AcroExch.AVDoc")
    oDoc = CreateObject("AcroExch.PDDoc")
    If oAvDoc.Open(INPUT, "") Then
    oDoc = oAvDoc.GetPDDoc()
    oJS = oDoc.GetJSObject()
    oPrinterParams = oJS.getPrintParams()
    oPrinterParams.printerName = PRINTER
    oPrinterParams.interactive = oPrinterParams.constants.interactionLevel.silent
    oPrinterParams.fileName = OUTPUT
    oJS.print(oPrinterParams)
    End If
    oDoc.Close()
    oApp.Exit()
    End Sub
    End Module
    However I always get the error #1001: "OutOfMemoryError: Nicht genug Speicher."
    System.Runtime.InteropServices.COMException wurde nicht behandelt.
    ErrorCode=1001
    Message="OutOfMemoryError: Nicht genug Speicher."
    Source="Acrobat JavaScript"
    StackTrace:
    bei Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
    bei Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
    bei PDFPrintToFile.Module1.Main(String[] CmdArgs) in C:\Projekte_XPS\PDFPrintToFile\Module1.vb:Zeile 28.
    bei System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
    bei System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    bei Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    bei System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    bei System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    bei System.Threading.ThreadHelper.ThreadStart()
    When I use the same example without printing to file it works fine, but not when printing to file... why??? anyone got an idea??
    thanx for any help...
    I have tried it right now with Acrobat 8 Prof. and I even can't get it to run with that version!??
    I'll get either "invalid arguments"-Exception (Must be the 'fileName' parameter - when I comment that one out, at least it shows a SaveAs-Dialog)
    or a RPC_E_SERVERFAULT error...

    or a RPC_E_SERVERFAULT error...
    System.Runtime.InteropServices.COMException was unhandled
    ErrorCode=-2147417851
    Message="Ausnahmefehler des Servers. (Exception from HRESULT: 0x80010105 (RPC_E_SERVERFAULT))"
    Source="Microsoft.VisualBasic"
    StackTrace:
    at Microsoft.VisualBasic.CompilerServices.LateBinding.InternalLateCall(Object o, Type objType, String name, Object[] args, String[] paramnames, Boolean[] CopyBack, Boolean IgnoreReturn)
    at Microsoft.VisualBasic.CompilerServices.NewLateBinding.LateCall(Object Instance, Type Type, String MemberName, Object[] Arguments, String[] ArgumentNames, Type[] TypeArguments, Boolean[] CopyBack, Boolean IgnoreReturn)
    at PDFPrintToFile.Module1.Main(String[] CmdArgs) in C:\Dokumente und Einstellungen\Administrator\Desktop\PDFPrintToFile\Module1.vb:line 28
    at System.AppDomain.nExecuteAssembly(Assembly assembly, String[] args)
    at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
    at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
    at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
    at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
    at System.Threading.ThreadHelper.ThreadStart()
    System.Reflection.TargetInvocationException was caught
    Message="Exception has been thrown by the target of an invocation."
    Source="mscorlib"
    StackTrace:
    at System.RuntimeType.InvokeDispMethod(String name, BindingFlags invokeAttr, Object target, Object[] args, Boolean[] byrefModifiers, Int32 culture, String[] namedParameters)
    at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
    at System.Type.InvokeMember(String name, BindingFlags invokeAttr, Binder binder, Object target, Object[] args)
    at PdfPrintTestApp.Form1.PrintWithAcrobatSDK(String pdfFile) in C:\Dokumente und Einstellungen\Administrator\Desktop\PdfPrintTestApp\Form1.cs:line 99
    InnerException -> {"InvalidArgsError: Ungültige Argumente."}
    what am I doing wrong here!? anyone got an idea what's going wrong here!?

  • Should Parent objects be updated when adding a child?

    Hi,
    I have 2 objects in a one to many relationship, a parent with a collection
    of child objects.
    My parent object is being updated when I add child objects to it -
    although nothing on the parent object has changed (except maybe the
    JDOLOCKX column).
    Is this meant to happen - as part of the optimistic locking? Does it try
    and lock the owner of the collection when a new member is added?
    Thanks in advance,
    Chris

    We are planning a metadata extension to permit writing to a collection
    without changing optimistic lock values for the owning class.
    I don't have a good feel for the time frame of the feature yet.
    -Patrick
    On 5/21/02 1:06 PM, in article acduqj$e4j$[email protected], "Chris
    Kimpton" <[email protected]> wrote:
    Hi,
    This is occuring across JVMs for me - so I have put a crude re-try
    facility in place - it has a few goes at doing the work and then gives up
    if that is not sufficient. Not nice, but it seems to work.
    Chris
    David A. King wrote:
    I too have seen this behavior, which becomes frustrating when adding many
    children concurrently--I receive ConcurrentModificationExceptions on the
    parent, even though the parent itself did not change (except of course the
    collection of children) with optimisitic locking. I have had to serialize
    transactions manually to avoid the exceptions.
    Thanks,
    David A. King
    Chris Kimpton wrote:
    Hi,
    I have 2 objects in a one to many relationship, a parent with a collection
    of child objects.
    My parent object is being updated when I add child objects to it -
    although nothing on the parent object has changed (except maybe the
    JDOLOCKX column).
    Is this meant to happen - as part of the optimistic locking? Does it try
    and lock the owner of the collection when a new member is added?
    Thanks in advance,
    Chris

  • Exception of type  'System.OutOfMemory Exception' was thrown while running

    We have a web application develeoped in ASP.Net, SQL Server 2005 , Crystal Reports 10.2. When I try to run a report which has around 5 lakh records (the query to fetch the records in sql server takes around 1.5 to 2 minutes) gives an error Exception of type  'System.OutOfMemory Exception' was thrown.
    Can anybody help !!
    Thanks

    Hello, Balla;
    the first thing to check is that the ASP.NET Worker process has rights to your Temp folder. You will find where it is by checking your Environment variables.
    Use the correct name for the ASP.NET worker process depending on your operating system - LocalMachine\IIS_WPG(Windows 2003 Server) or ASPNET(XP) or (Vista) IIS_IUSRS
    To give the IIS_WPG account full control of a folder:
    1. Right-click the folder and select 'Properties'.
    2. Go to the 'Security' tab and click the 'Add' button.
    3. Click the 'Locations' button and select the
    computer name. Click 'OK'.
    4. Type "IIS_WPG" under the 'Enter the object names to
    select' box.
    5. Click 'Check Names'. <Your machine name>\IIS_WPG
    appears. Click 'OK'.
    6. Check 'Full Control' from 'Permissions for IIS_WPG'.
    Click 'OK'.
    ====================
    NOTE:
    The IIS_WPG includes the LocalService,
    System, and NetworkService accounts.
    ====================
    If that is not the issue:
    What database driver are you using in the design of your report? Go to Database|Set datasource location and tell me the properties of the database connection.
    Do you logon to the database in your code or pass the data to it using Datasets?
    Are there subreports in the design? How many are there? What section are they in? What data source does each one use?
    Do you have a lot of formulas in the report?
    Elaine

  • Exception when trying to deploy BPEL

    Hi,
    I get the following exception when I try to deploy the BPEL process, it doesn't give any error while compiling an deploying the process in Jdeveloper!
    If anyone can inform me what could be the source and fix for it that wud b really great!
    thanks,
    CD
    The following exception occured while loading this Process:
    Exception Name:
    BPEL validation failed
    Exception Description:
    BPEL source validation failed, the errors are: [Error ORABPEL-10902]: compilation failed [Description]: in "bpel.xml", XML parsing failed because "undefined part element. In WSDL at "file:/opt/app/oracle/product/10.1.2_midt/integration/orabpel/domains/default/tmp/.bpel_TransactionProcess_1.0.jar/TXDB.wsdl", message part element "{http://xmlns.oracle.com/pcbpel/adapter/db/top/TransactionProcess}TXDBSelectInputParameters" is not defined in any of the schemas. Please make sure the spelling of the element QName is correct and the WSDL import is complete. ". [Potential fix]: n/a. .
    Suggested Fix:
    Context:
    Stack Trace:

    Hi Marc,
    I ran into the same problem. My BPEL process compiles fine, but fails on deployment with the following errormessage.
    BUILD FAILED
    C:\work\CVSROOT\R_1_4\CCS_main\workflow\RealWSDL\build.xml:79: A problem occured while connecting to server "prima" using port "7777": bpel_RealWSDL_2.1.jar failed to deploy. Exception message is: ORABPEL-05215
    Error while loading process.
    The process domain encountered the following errors while loading the process "RealWSDL" (revision "2.1"): BPEL validation failed.
    BPEL source validation failed, the errors are:
    [Error ORABPEL-10902]: compilation failed
    [Description]: in "bpel.xml", XML parsing failed because "undefined part element.
    In WSDL at "file:/oradata/OracleAS_1/bpel/domains/outboundnoterepository/tmp/.bpel_RealWSDL_2.1_b3ac54bf8e2dce1c23ac368f6871d958.tmp/nrwsdl/nr/RCMR_AR000002NR01.wsdl", message part element "{urn:hl7-org:v3}MCCI_IN002200NR01" is not defined in any of the schemas.
    Please make sure the spelling of the element QName is correct and the WSDL import is complete.
    I tried the steps which worked for CD without any success.
    * Undeployed my process on mid-tier
    * I added a space in the *.bpel file at a random non-meaningfull place
    * I cleared the wsdl cache and restarted the app. server
    * I redeployed with a new version
    I am using JDeveloper 10.1.3.4 and the app. server is running BPEL 10.1.3.3. Could this be my issue?
    I have used several subfolders and used relative paths to reference different files (xsd's and wsdl's) to each other. Could the subfolders be my issue?
    Any ideas as to solution, problem or both?
    Appreciate any help.
    Regards,
    Aagaard

  • OutOfMemory exception on device with 2mb memory

    Hi all
    I have experienced the following problem.
    The application I have developed works fine on a sonyerricson w800i but gives outofmemory on a nokia 6131
    The se800 reports 1048572 bytes available memory (1mb)
    The nokia 6131 reports 2097152 bytes available memory (2mb)
    For debugging purposed I do a System.gc() and report free memory, on average the se800 has 77% free whereas the nokia starts with 55% free and it degrades quickly.
    Its the same application and code so does this mean the nokia has a problem? It is my code that is at fault?
    When I first encountered outOfMemory exception I followed some guidelines removing any inner classes dereferencing object by obj = null and making sure I close streams etc, this helped with general memory consumption. I tested it with the emulator limiting memory to 400k and I have an average of 20% free.
    I suspected the screensize to play a role as I paint the canvas manually but on the emulator I use the defaultcolorphone which has a larger screen than the nokia.
    Where could the problem lie?
    GX

    Hi MelGohan
    Thanks for your reply. In order to test how much free memory I am using the following method:
        public static String getFreeMem()
            System.gc();
            long tot = Runtime.getRuntime().totalMemory();
            long free = Runtime.getRuntime().freeMemory();
            int per = (int)(((float)free / (float)tot) * 100);
            String s = gx.Utils.padString(String.valueOf(free), -8, " ") + " " + gx.Utils.padString(String.valueOf(per), -3, " ") + "%" + " / " + String.valueOf(tot);
            return s;
        }There are no other applications in memory as I tried restarting the phone and the results were the same hence I can see exactly how much memory is available (2097152 bytes) and how much is free/used.
    On the emulator and the sony erricson the memory usage is stable whereas the nokia keeps using more and more, I am currently setting all unused objects = null when done using them but have found no difference so far.
    I have put the same post on the nokia boards and there is more info there:
    http://discussion.forum.nokia.com/forum/showthread.php?t=108401
    GX

  • SNMP, Alerts for OutOfMemory Exceptions

    We are using WLS6.1 on Tru64. Using SNMP, can we generate alerts for OutOfMemory
    Exceptions that occur on any Managed servers in a cluster?

    We are using WLS6.1 on Tru64. Using SNMP, can we generate alerts for OutOfMemory
    Exceptions that occur on any Managed servers in a cluster?The SNMP MIB defines the following entries in the jvmRuntimeTable:
    jvmRuntimeHeapFreeCurrent INTEGER,
    jvmRuntimeHeapSizeCurrent INTEGER,
    you can set CounterMonitor on these attributes through the Console and set thresholds
    to send you alerts when the heap reaches a certain limit.
    hope this helps,
    Mihir

Maybe you are looking for