Wldeploy OutOfMemoryException

Hello,
I am using WLDeploy ant task to deploy my exploded EAR with no stage option. I am getting every 3 or 4 deployements an OutOfMemoryException. I tried to tune the JVM parameters without success.
My project is compound of many thrid part lib ( about 25 jars)
I understood that JVM store class definitions separtly from the heap. Thus , may the issue be linked to the classpath management of Weblogic that load each time all the class ?
I am using : WL 8.1 SP5 with JDK 1.4_08
Any hints? thx

Are you getting OOM errors during the deployment? Or after when the app is running?

Similar Messages

  • Wldeploy Exception

    When deploying my exploded ear to the server (WLS 9.1) I am getting an OutOfMemoryException (Java Heap Space).
    I am using the wldeploy ant task in my ant build script.
    I noticed that if I didn't use one of my library jar files which happens to be about 8MB, the deployment succeeds. I think this shows I am close to some limits.
    Do I just need to change the vmargs values in the Weblogic server startup script? If so, which ones do I need to change?
    TIA

    Hi,
    To overcome this problem, you need to edit the setDomainEnv.cmd present the bin directory of the domain. Exactly at the line number 160, there is argument for specifying the memory args( i.e. -Xms256m -Xmx512) where mx stands for the maximum memory you are allocating so edit the
    512 to the maximum you can allocate on your machine. I suppose this may help you out.
    Thanks,
    Tarun.

  • Urgent: System.OutOfMemoryException in SQL Reporting Services 2005 Web Service

    Hi All,
    On a production server box with 8GB of RAM, we are running a windows service which retrieves image format bytes of a particular report which results in pages ranging from 10 to 300 using Reporting Services 2005 Web Service.
    Problem is when image bytes are being retrieved by using Render method for a report with more than around 30-40 pages,
    Report Web Service throws an exception of type System.OutOfMemoryException. This does not happen with reports with smaller pages. Please note that we are retrieving high DPI image and we have no option but to do so.
    Since the production server has 8 GB of RAM and we have even enabled the 3GB switch in boot.ini of Windows Server 2003, This problem still exists.
    I have already read the contents of the article http://support.microsoft.com/kb/909678 but as i mentioned even the large physical memory does not seem to help and shortening the report is not an option.
    Also note that large number of records is also not a problem as our application works fine when we generate excel files instead of images.
    Follwing is the detailed exception that we receive.
    System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.
       at System.String.GetStringForStringBuilder(String value, Int32 startIndex, Int32 length, Int32 capacity)
       at System.Text.StringBuilder.set_Capacity(Int32 value)
       at System.Xml.BufferBuilder.ToString()
       at System.Xml.XmlTextReaderImpl.ParseText()
       at System.Xml.XmlTextReaderImpl.ParseElementContent()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlTextReader.Read()
       at System.Xml.XmlTextReaderImpl.InitReadElementContentAsBinary()
       at System.Xml.XmlTextReaderImpl.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
       at System.Xml.XmlTextReader.ReadElementContentAsBase64(Byte[] buffer, Int32 index, Int32 count)
       at System.Xml.Serialization.XmlSerializationReader.ReadByteArray(Boolean isBase64)
       at System.Xml.Serialization.XmlSerializationReader.ToByteArrayBase64(Boolean isNull)
       at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderReportExecutionService.Read34_RenderResponse()
       at Microsoft.Xml.Serialization.GeneratedAssembly.ArrayOfObjectSerializer25.Deserialize(XmlSerializationReader reader)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
       at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall)
       at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
       at ReportExecution2005.ReportExecutionService.Render(String Format, String DeviceInfo, String& Extension, String& MimeType, String& Encoding, Warning[]& Warnings, String[]& StreamIds)

    Hi Hameer,
    This error might be caused by the memory limit.  There are two settings that will affect the memory configuration.
    When you render a report through the Reporting Services Web service, the Reporting Services Web service obtains the "MemoryLimit" setting from the Machine.config file. 
    A scheduled report is rendered by the Report Server Windows service. The Report Server Windows service obtains the "MemoryLimit" setting from the RSReportServer.config file.
    These values represent a percentage of physical memory. You can adjust them to change the memory limit.
    If there are any more questions, please let me know.
    Thanks.

  • Crystal report Using Push Method (OutOfMemoryException)

    Hello,
    i am developping reports using Sap Crystal reports , i am using the push method ( which uses a DataSet for binding informations with the reports) , and i want to display a large data, but i m getting an OutOfMemoryException, because of using the dataset,
    is there any solution to solve this problem?

    This is my code, and i think it's correct, i was using this code for previous versions of crystal report (cr10) and it worked fine,
    now i am using crystal report v 13 sp1 with visual studio 2010,
    When i used the Data set , the next page and zoom worked fine, but with stored procedure it doesn't work,
    Note: when i open the Tree of Data on the left,  then click on the next page or the zoom, it become funtional, it's very weird,
            protected void Page_Init(object sender, EventArgs e)
                if (!IsPostBack)
                    reportDocument = (ReportDocument)this.Page.Session["_reportDocument"];
                    if (reportDocument != null)
                            string rptFile = reportDocument.FileName.Split('
    ', '/').Last();
                            LoadReportRessource(reportDocument);
                                TableLogOnInfo log = new TableLogOnInfo();
                                ConnectionStringSettings conn = WebConfigurationManager.ConnectionStrings[0]; //la premiere connectionstring
                                SqlConnectionStringBuilder SConn = new SqlConnectionStringBuilder(conn.ConnectionString);
                                log.ConnectionInfo.ServerName = SConn.DataSource;
                                log.ConnectionInfo.DatabaseName = SConn.InitialCatalog;
                                log.ConnectionInfo.UserID = SConn.UserID;
                                log.ConnectionInfo.Password = SConn.Password;
                                log.ConnectionInfo.Type = ConnectionInfoType.SQL;
                                for (int i = 0; i < reportDocument.Database.Tables.Count; i++)
                                    reportDocument.Database.Tables<i>.ApplyLogOnInfo(log);
                                for (int i = 0; i < CrystalReportViewer1.LogOnInfo.Count; i++)
                                    CrystalReportViewer1.LogOnInfo<i>.ConnectionInfo = log.ConnectionInfo;
                            CrystalReportViewer1.ParameterFieldInfo = (ParameterFields)this.Page.Session["_paramFields"];
                            CrystalReportViewer1.ReportSource = reportDocument;
                            CrystalReportViewer1.DataBind();
                            CrystalReportViewer1.ShowFirstPage();
                else
                    CrystalReportViewer1.ReportSource = (ReportDocument)this.Page.Session [ "_reportDocument" ] ;

  • Remote wldeploy

    I'm trying to write an Ant script that will deploy a few JAR files to a remote WebLogic server. Application (Amdocs CRM) is an exploded EAR and is deployed to my administration server, stage is not used, there are no deployment plans defined. I'm using Eclipse to develop Java and run Ant scripts. After a lot of tinkering I've written the following target:
    [Snippet from "build.properties" file.]
    # WebLogic definition.
    name.wl.appname=Amdocs CRM (web application)
    name.wl.username=Administrator
    name.wl.password=********
    name.wl.adminurl=t3://min:7001
    name.wl.svrname=AdminServer
    [Snippet from Ant project file.]
    <property name="dir.webapp" location="WebContent" />
    <property name="dir.dist" value="ClfyAgent.war/WEB-INF/lib" />
    [Snippet from Ant project file.]
    <target name="remote.deploy" description="Deploys distribution JAR to WebLogic server.">
    <wldeploy action="redeploy"
    adminurl="${name.wl.adminurl}"
    targets="${name.wl.svrname}"
    user="${name.wl.username}"
    password="${name.wl.password}"
    name="${name.wl.appname}"
    remote="true"
    upload="true"
    source="${dir.webapp}"
    deltaFiles="${dir.dist}/${ant.project.name}.jar" />
    </target>
    This works, kind of. I can see new JAR on the remote server in applications library directory but I get NullPointerException error:
    remote.deploy:
    weblogic.Deployer -remote -upload -noexit -name Amdocs CRM (web application) -source C:\USERS\JTOSIC\PROJECTS\Prototype\WebContent -targets AdminServer -adminurl t3://min:7001 -user Administrator -password ******** -redeploy ClfyAgent.war/WEB-INF/lib/AmdocsCRM-backend.jar
    weblogic.Deployer invoked with options: -remote -upload -noexit -name Amdocs CRM (web application) -source C:\USERS\JTOSIC\PROJECTS\Prototype\WebContent -targets AdminServer -adminurl t3://min:7001 -user Administrator -redeploy ClfyAgent.war/WEB-INF/lib/AmdocsCRM-backend.jar
    <21.07.2010. 14:39:08 CEST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, Amdocs CRM (web application) [archive: C:\USERS\JTOSIC\PROJECTS\Prototype\WebContent], to AdminServer .>
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:222)
    at weblogic.deploy.internal.adminserver.operations.AbstractOperation.execute(AbstractOperation.java:127)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl$2.run(DeployerRuntimeImpl.java:837)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl.performDeployerActions(DeployerRuntimeImpl.java:831)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl.redeploy(DeployerRuntimeImpl.java:552)
    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:597)
    at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:349)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:268)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:65)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:444)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:323)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11.run(JMXConnectorSubjectForwarder.java:661)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.invoke(JMXConnectorSubjectForwarder.java:654)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I've checked the source of weblogic.deploy.internal.adminserver.operations.AbstractOperation.execute() method and it seems to fail when trying to handle deployment data/options/plan but can't figure out what I need to do in order for this to work.
    My projects' "WebContent" directory is empty except for a single JAR in application's library directory. I've tried copying XML files from EAR there but that didn't help. Tried creating a deployment plan XML for my EAR and using it in WLDeploy task but that did not help either.
    My environment is:
    - Ant V1.7.1
    - WebLogic V10.3.3.0
    - Eclipse V3.5.2
    - Windows XP

    I'm trying to write an Ant script that will deploy a few JAR files to a remote WebLogic server. Application (Amdocs CRM) is an exploded EAR and is deployed to my administration server, stage is not used, there are no deployment plans defined. I'm using Eclipse to develop Java and run Ant scripts. After a lot of tinkering I've written the following target:
    [Snippet from "build.properties" file.]
    # WebLogic definition.
    name.wl.appname=Amdocs CRM (web application)
    name.wl.username=Administrator
    name.wl.password=********
    name.wl.adminurl=t3://min:7001
    name.wl.svrname=AdminServer
    [Snippet from Ant project file.]
    <property name="dir.webapp" location="WebContent" />
    <property name="dir.dist" value="ClfyAgent.war/WEB-INF/lib" />
    [Snippet from Ant project file.]
    <target name="remote.deploy" description="Deploys distribution JAR to WebLogic server.">
    <wldeploy action="redeploy"
    adminurl="${name.wl.adminurl}"
    targets="${name.wl.svrname}"
    user="${name.wl.username}"
    password="${name.wl.password}"
    name="${name.wl.appname}"
    remote="true"
    upload="true"
    source="${dir.webapp}"
    deltaFiles="${dir.dist}/${ant.project.name}.jar" />
    </target>
    This works, kind of. I can see new JAR on the remote server in applications library directory but I get NullPointerException error:
    remote.deploy:
    weblogic.Deployer -remote -upload -noexit -name Amdocs CRM (web application) -source C:\USERS\JTOSIC\PROJECTS\Prototype\WebContent -targets AdminServer -adminurl t3://min:7001 -user Administrator -password ******** -redeploy ClfyAgent.war/WEB-INF/lib/AmdocsCRM-backend.jar
    weblogic.Deployer invoked with options: -remote -upload -noexit -name Amdocs CRM (web application) -source C:\USERS\JTOSIC\PROJECTS\Prototype\WebContent -targets AdminServer -adminurl t3://min:7001 -user Administrator -redeploy ClfyAgent.war/WEB-INF/lib/AmdocsCRM-backend.jar
    <21.07.2010. 14:39:08 CEST> <Info> <J2EE Deployment SPI> <BEA-260121> <Initiating redeploy operation for application, Amdocs CRM (web application) [archive: C:\USERS\JTOSIC\PROJECTS\Prototype\WebContent], to AdminServer .>
    java.lang.NullPointerException
    at java.io.File.<init>(File.java:222)
    at weblogic.deploy.internal.adminserver.operations.AbstractOperation.execute(AbstractOperation.java:127)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl$2.run(DeployerRuntimeImpl.java:837)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl.performDeployerActions(DeployerRuntimeImpl.java:831)
    at weblogic.management.deploy.internal.DeployerRuntimeImpl.redeploy(DeployerRuntimeImpl.java:552)
    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:597)
    at weblogic.management.jmx.modelmbean.WLSModelMBean.invoke(WLSModelMBean.java:437)
    at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
    at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
    at weblogic.management.mbeanservers.domainruntime.internal.FederatedMBeanServerInterceptor.invoke(FederatedMBeanServerInterceptor.java:349)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.JMXContextInterceptor.invoke(JMXContextInterceptor.java:268)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.SecurityMBeanMgmtOpsInterceptor.invoke(SecurityMBeanMgmtOpsInterceptor.java:65)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase$16.run(WLSMBeanServerInterceptorBase.java:449)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServerInterceptorBase.invoke(WLSMBeanServerInterceptorBase.java:447)
    at weblogic.management.mbeanservers.internal.SecurityInterceptor.invoke(SecurityInterceptor.java:444)
    at weblogic.management.jmx.mbeanserver.WLSMBeanServer.invoke(WLSMBeanServer.java:323)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11$1.run(JMXConnectorSubjectForwarder.java:663)
    at java.security.AccessController.doPrivileged(Native Method)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder$11.run(JMXConnectorSubjectForwarder.java:661)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.management.mbeanservers.internal.JMXConnectorSubjectForwarder.invoke(JMXConnectorSubjectForwarder.java:654)
    at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1426)
    at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72)
    at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1264)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1366)
    at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788)
    at javax.management.remote.rmi.RMIConnectionImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:589)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:477)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:473)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    I've checked the source of weblogic.deploy.internal.adminserver.operations.AbstractOperation.execute() method and it seems to fail when trying to handle deployment data/options/plan but can't figure out what I need to do in order for this to work.
    My projects' "WebContent" directory is empty except for a single JAR in application's library directory. I've tried copying XML files from EAR there but that didn't help. Tried creating a deployment plan XML for my EAR and using it in WLDeploy task but that did not help either.
    My environment is:
    - Ant V1.7.1
    - WebLogic V10.3.3.0
    - Eclipse V3.5.2
    - Windows XP

  • OutOfMemoryException ...

    The method below is called several thousand times when 50 users are working with the same screen/form. Result: 2 hours later, the application throws an OutOfMemoryException. The profiler indicates that this method creates many XMLAttr instances when calling the setAttribute method. These objects are not garbage collected by the JVM.
    What is wrong with this method? Or is this a bug in the XML parser (Oracle)?
    The mDataRowModelDataRowElement object is created when the user starts working with the form and it can be garbage collected when the user exits the given form, which never happens because the application throws an OutOfMemoryException before the user could finish his/her job (after 2 hours).
    public Element getRowElement( int pRow, boolean pFull )
    throws DTMException
    //Performance: this method is called several thousand times.
    Element dataRowElement = (Element)m_dataRowsElement.getChildNodes().item( pRow );
    if ( dataRowElement != null && pFull )
    NodeList dataCellsElements = dataRowElement.getChildNodes();
    NodeList modelDataCellsElements = mDataRowModelDataRowElement.getChildNodes();
    //int dataCellsElementsLength = dataCellsElements.getLength();
    Element dataCellElement;
    Element modelDataCellElement ;
    for ( int i = 0; i < dataCellsElementsLength; i++ )
    // ???? look into making this a separate method as something
    // similar is also called from the dataCells.
    dataCellElement = (Element)dataCellsElements.item(i);
    modelDataCellElement = (Element)modelDataCellsElements.item(i);
    dataCellElement.setAttribute( "entName", modelDataCellElement.getAttribute( "entName") );
    dataCellElement.setAttribute( "SQLName", modelDataCellElement.getAttribute( "SQLName") );
    // we cannot change this otherwise it thinks it has changed.
    // dataCellElement.setAttribute( "oldVal", modelDataCellElement.getAttribute( "oldVal") );
    dataCellElement.setAttribute( "cls", modelDataCellElement.getAttribute( "cls") );
    dataCellElement.setAttribute( "keyOrd", modelDataCellElement.getAttribute( "keyOrd") );
    dataCellElement.setAttribute( "ord", modelDataCellElement.getAttribute( "ord") );
    dataCellElement.setAttribute( "upd", modelDataCellElement.getAttribute( "upd") );
    return dataRowElement;
    }

    Yes, this method is called many times, but the application is being tested with LoadRunner and after creating attributes for a row (query), the next step of the test scenerio is a roll back operation and this will remove the rows from the DOM object and the row holds the attributes created in the method you see above.
    This is how the rows are removed from the DOM (m_dataRowsElement).
    1. create a nodelist (m_dataRowsElement.getChildNodes();)
    2. create a loop
    3. call the removeChild method in the loop
    m_dataRowsElement.removeChild( node );

  • ClassCastException using Subant and wldeploy ant task

    Hi!
    I'm using subant to call all diffrent build.xml files located in subdirectories. The buildfile looks like this:
    <project name="extern.call" default="callall">
         <target name="callall">
              <fileset      id="buildfile.set" dir=".." includes="*2/build.xml">
                   <exclude name="Br*2/*"/>
              </fileset>
              <subant target="deploy-local" inheritall ="false" failonerror="true">
                   <fileset      refid="buildfile.set"/>
              </subant>
         </target>
    </project>
    The first called build.xml files works fine ... but the execution of the second build.xml (it's not important which file is the second one, it's crash always at the second call), stop with a "java.lang.ClassCastException".
    See Stacktrace:
    [subant] weblogic.Deployer -debug -nowait -verbose -upload -noexit -name ClarifyRead -source \build\ClarifyRead\delivery\ClarifyRead.ear -targets myserver -adminurl t3://localhost:7001 -user weblogic -password ******** -deploy
    [subant] dumping Exception stack
    [subant] java.lang.ClassCastException
    [subant] at weblogic.management.deploy.utils.DeployerHelper.uploadSource(DeployerHelper.java:586)
    [subant] at weblogic.Deployer.runBodyWithAuthenticatedSubject(Deployer.java:824)
    [subant] at weblogic.Deployer.runBody(Deployer.java:711)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:146)
    [subant] at weblogic.utils.compiler.Tool.run(Tool.java:103)
    [subant] at weblogic.Deployer.runMain(Deployer.java:566)
    [subant] at weblogic.Deployer.mainWithExceptions(Deployer.java:576)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [subant] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [subant] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [subant] at java.lang.reflect.Method.invoke(Method.java:324)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:264)
    [subant] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:204)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.Sequential.execute(Sequential.java:65)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.taskdefs.MacroInstance.execute(MacroInstance.java:340)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:383)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:182)
    [subant] at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java:112)
    [subant] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:269)
    [subant] at org.apache.tools.ant.Task.perform(Task.java:364)
    [subant] at org.apache.tools.ant.Target.execute(Target.java:301)
    [subant] at org.apache.tools.ant.Target.performTasks(Target.java:328)
    [subant] at org.apache.tools.ant.Project.executeTarget(Project.java:1215)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:379)
    [subant] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:135)
    There is no diffrent between using ant in eclipse environment or as standalone, the result it the same.
    Do someone else have the same problem?
    Kind regards
    Joseph

    Hi
    I got the same message and I couldn't resolve it too, I am wordering if you got the key to the problem?
    Thanks
    Daivd Huang

  • Changing the wldeploy ant task behaviour

    wldeploy ant task while deploying the application deploys it under <configured weblogic upload dir>/<application name>/app/ application name.
    Is there any way we can change this behaviour as we couldnt find the options in ant task to change it

    That is all you should have to do, the ant tasks are sitting inside the
    weblogic.jar.
    Cheers
    mbg
    "Shane Witbeck" <[email protected]> wrote in message
    news:[email protected]..
    Rob Bennett <[email protected]> wrote in message
    news:<[email protected]>...
    What is required for the wldeploy ant task to function properly? I am
    able to use it when I run ant from the command line and use the version
    of ant that came with Weblogic 8 (I have the platform beta, not the
    release version). When I try to use it inside of eclipse (which uses
    its own copy of ant), the task fails.. it looks like it is trying to
    generate RMI stubs. If anyone can shed light on what I am missing from
    the eclipse environment, I would appreciate it.
    -RobI actually just got it to work by adding the weblogic.jar to my
    classpath. (Im using WL 8.1).
    -Shane

  • Is wldeploy ANT task just always says "BUILD SUCCESFUL" ?

    Hi All,
    Iam using ANT and my build.xml file looks something like this:
    <target name="deploy-now">
    <echo message="...........This is the developmenet
    box...deploying......"/>
    <wldeploy action="${deploy.utility}" upload="true"
    source="${source}" user="system" password="weblogic" nostage="true" verbo
    se="true" adminurl="${bedlam-t.admin.url}" debug="true"
    targets="${cmApplication.target}"/>
    </target>
    <target name="deploy-cm-testnet">
    <antcall target="deploy-now"> <param name="source"
    value="${cm1Application.source}"/>
    </antcall>
    <antcall target="deploy-now"> <param name="source"
    value="${cm2Application.source}"/>
    </antcall>
    <antcall target="deploy-now"> <param name="source"
    value="${cm3Application.source}"/>
    </antcall>
    </target>
    So, basically iam calling my target "deploy-now" three times by using
    <antcall>. Now my question is: iam getting BUILD SUCCESFUL although the
    output looks like:
    deploy-now: [echo] ...........This is the developmenet
    box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
    -noexit -source
    /export/home/beamon/applications/clientmanager/CMA_TW_333.war -targets UPSCAP
    -adminurl http://bedlam-t.ams1907.com:8001 -user
    system -password ******** -deploy
    [wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
    :3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
    [wldeploy] Initiated Task: [87] [Deployer:149026]Deploy application
    CMA_TW_333 on UPSCAP. [wldeploy] Application CMA_TW_333 preparing on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_TW_333 failed to transition
    from unprepared to prepared on server upscap_bedlam1t_s1. [wldeploy]
    Application CMA_TW_333 failed on server upscap_bedlam1t_s1. [wldeploy]
    Task 87 failed: [Deployer:149026]Deploy application CMA_TW_333 on UPSCAP.
    [wldeploy] Deployment failed on Cluster UPSCAP [wldeploy] dumping
    ApplicationException message
    [wldeploy] Exception:weblogic.management.ApplicationException: prepare
    failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
    '/CMA/US' is already in use by the module: CM_NO_333 application:
    CM_NO_333
    [wldeploy] dumping ApplicationException message
    [wldeploy] Exception:weblogic.management.ApplicationException: prepare
    failed for CMA_TW_333 [wldeploy] Module: CMA_TW_333 Error: Context path
    '/CMA/US' is already in use by the module: CM_NO_333 application:
    CM_NO_333
    [wldeploy] Unpexpected Error Initializing Deployer:
    weblogic.Deployer$DeployerException: Deployment exit status=1
    deploy-now: [echo] ...........This is the developmenet
    box...deploying...... [wldeploy] weblogic.Deployer -debug -nostage -verbose -upload
    -noexit -source
    /export/home/beamon/applications/clientmanager/CMA_NO_333.war -targets UPSCAP
    -adminurl http://bedlam-t.ams1907.com:8001 -user
    system -password ******** -deploy
    [wldeploy] DeploymentData : Delete Files:false [wldeploy] Timeout
    :3600000 [wldeploy] Targets: [wldeploy] Files: [wldeploy] null
    [wldeploy] Initiated Task: [88] [Deployer:149026]Deploy application
    CMA_NO_333 on UPSCAP. [wldeploy] Application CMA_NO_333 preparing on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to prepared
    on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: active to
    prepared on server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333:
    prepared to unprepared on server upscap_bedlam1t_s1. [wldeploy] Module
    CMA_NO_333: prepared to unprepared on server upscap_bedlam1t_s1.
    [wldeploy] Module CMA_NO_333: unprepared to prepared on server
    upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: unprepared to prepared on server
    upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 prepared on server
    upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333 activating on server
    upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to active on
    server upscap_bedlam1t_s1. [wldeploy] Module CMA_NO_333: prepared to
    active on server upscap_bedlam1t_s1. [wldeploy] Application CMA_NO_333
    activated on server upscap_bedlam1t_s1. [wldeploy] Task 88 completed:
    [Deployer:149026]Deploy application CMA_NO_333 on UPSCAP. [wldeploy]
    Deployment completed on Cluster UPSCAP
    BUILD SUCCESSFUL
    Please advise ......how can i show that the BUILD is NOT succesful as
    there were EXCEPTIONS generated.....is ANT just always says "BUILD
    SUCCESFUL"

    Infact it does complete, if i let it go on but it takes around 7 minutes more just to close the DM connection
    [wldeploy] [ServerConnectionImpl.close():352] : Unregistered all listeners
    [wldeploy] [ServerConnectionImpl.closeJMX():372] : Closed JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():384] : Closed Runtime JMX connection
    [wldeploy] [ServerConnectionImpl.closeJMX():396] : Closed Edit JMX connection
    BUILD SUCCESSFUL
    Total time: 7 minutes 15 seconds
    is anybody facing this issue? Why is closing DM Connection and Unregistered all listeners taking so much time to complete for a WAR i.e. just a few KBs.
    Please Help! Thanks!

  • WL8.1 wldeploy Ant Task seems to be fairly slow...

    We currently have a clustered environment with 4 machines. When we try to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploy the ~30mb
    ear file. While this ear is being deployed users can not access the system. Is
    there anything I can do to increase these times?
    Thanks,
    Franz

    Rob,
    Thanks for your reply.
    My build.xml file exits and kills the server instance......do you know any means
    to rsolve it.
    iam not sure if i can use "fork" or something like that ????
    Please advise.
    -sangita
    Rob Woollen <[email protected]> wrote:
    Have a look at the Avitek Medical Records example that ships with WLS
    8.1. It shows you how to use wldeploy.
    -- Rob
    sangita wrote:
    if you don't mind, can you share your build.xml file here on this forum?
    iam trying to do exact same thing, but as my knowledge of ANT is little,iam having
    trouble. if you can share this xml file, then i would learn a littlefaster on
    how to deploy application on wls8.1 using ANT.
    i have read the document though .....but i wanted to see actual xmlfile as yours
    .........thanks !!!!!
    "Franz Garsombke" <[email protected]> wrote:
    We currently have a clustered environment with 4 machines. When we
    try
    to hot deploy
    using the wldeploy Ant Task it takes about 3-5 minutes to re-deploythe
    ~30mb
    ear file. While this ear is being deployed users can not access thesystem.
    Is
    there anything I can do to increase these times?
    Thanks,
    Franz

  • Wldeploy Ant task deploys app in 'New' state

    I am trying to deploy a web application in WL 10.0 using the wldeploy Ant task. However, everytime the application is deployed, the consolidated state is 'New' (or deferred deployment). I have to bounce the servers everytime to bring the app in the Active state.
    Here is my code:
    <target name="undeployWeb">
              <!-- Undeploy the existing deployment -->
              <wldeploy action="undeploy" verbose="true" debug="false" name="${deploymentName}" user="${weblogicUsername}" password="${weblogicPassword}" adminurl="${weblogicAdminURL}" targets="${weblogicTargetServers}" failonerror="false" />
    </target>
    <!-- Deploy .WAR to a target server -->
    <target name="deployWeb">
              <!-- Deploy the application remotely -->
              <wldeploy action="deploy" stage="stage" usenonexclusivelock="true" source="${weblogicDeploymentLocation}/${deploymentName}.war" remote="true" name="${deploymentName}" upload="false" user="${weblogicUsername}" password="${weblogicPassword}" verbose="true" adminurl="${weblogicAdminURL}" debug="true" targets="${weblogicTargetServers}" />
    </target>
    Is there any way to avoid the bounce of the target servers? I wish to activate the web app straightaway. Please help.
    ~hartbrekk

    Thanks user10939158, for looking into this.
    Reason I am saying network is not an issue here because the artifact copy to the remote servers and deployment happens fast, it is just at the step of closing DM connection, it is waiting for a long time (>5 mins). I am guessing that the Deployment Manager message exchanges with the server (internally) has something to do with LAN vs WAN. And, I would expect deployment over WAN take a minute extra as opposed to 5-9 minutes extra what we are seeing now.
    Yes, I tried running the wlst script on the remote server and it is fast as well.
    Just to clarify, I do not have a local server. I run the plain simple ant script on a build box(lean linux box) which is in the US.
    Thanks for your help again.
    - Kris
    Edited by: kris_2000 on May 25, 2010 2:08 PM

  • Usage of wldeploy ant target in weblogic 6.1

    Hi,
    I am using weblogic 6.1. I want to use the ant target "wldeploy" in weblogic 6.1.
    But I could see that this target is available in weblogic 8.1.
    Is there any way by which I will be able to make use of this target in weblogic
    6.1 ??
    thanks in advance for ur help
    regards,
    s.arun prasath

    No. wldeploy is an ant task wrapper (added in 8.1) for
    weblogic.Deployer (added in 7.0).
    6.1 has only the older weblogic.deploy command. You'd have to call it
    via a java task from ant.
    -- Rob
    Arun wrote:
    Hi,
    I am using weblogic 6.1. I want to use the ant target "wldeploy" in weblogic 6.1.
    But I could see that this target is available in weblogic 8.1.
    Is there any way by which I will be able to make use of this target in weblogic
    6.1 ??
    thanks in advance for ur help
    regards,
    s.arun prasath

  • Wldeploy dosent work as expected in 11.1.2 as it works in 11.1.1.1.5

    I have the exactly same problem as described in this thread Error running Weblogic.Deployer in medrec tutorial (wl9.1)
    But my old jdev version (11.1.1.1.5) where things works fine and I am migrating to new jdev version (11.1.2) during wldeploy
    C:\Oracle\Middleware1112\jdeveloper\jdev\bin>
    C:\Oracle\Middleware1112\jdk160_24\bin\javaw.exe -client -Dosgi.clean=true -XX:MaxPermSize=256M -Xbootclasspath/p:../lib/lwawt.jar -Xbootclasspath/p:../lib/apt-expose.jar -Dsun.awt.keepWorkingSetOnMinimize=true -XX:+HeapDumpOnOutOfMemoryError -Doracle.jdeveloper.webservice.showAllOwsmPolicyTypes=false -Doracle.jdeveloper.webservice.hidePropertyOverride=false -Dsun.awt.disablegrab=true -Xbootclasspath/p:../../rdbms/jlib/ojdi.jar -Dide.patches.dir=jdev/lib/patches -Dnetbeans.home=../../netbeans/platform/ -Dnetbeans.logger.console=true -Dexcluded.modules=org.eclipse.osgi -Dide.cluster.dirs=../../netbeans/netbinox/:../../netbeans/bridge/:../../ -Xmx800M -Xms128M -Xverify:none -Doracle.ide.extension.HooksProcessingMode=LAZY -Dorg.eclipse.equinox.simpleconfigurator.configUrl=file:bundles.info -Dosgi.bundles=file:../ide/lib/oracle.ide.osgi.jar@3:start -Dosgi.bundles.defaultStartLevel=1 -Dosgi.configuration.cascaded=false -Dosgi.noShutdown=true -Dorg.osgi.framework.bootdelegation=* -Dosgi.parentClassloader=app -Xbootclasspath/p:../../rdbms/jlib/ojdi.jar -Dosgi.classloader.singleThreadLoads=true -Dosgi.bundlefile.limit=2000 -Xbootclasspath/a:../../../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n-collation.jar -Xbootclasspath/a:../../../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n-mapping.jar -Xbootclasspath/a:../../../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n-servlet.jar -Xbootclasspath/a:../../../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n-utility.jar -Xbootclasspath/a:../../../oracle_common/modules/oracle.nlsrtl_11.1.0/orai18n.jar -Xbootclasspath/a:../../../oracle_common/modules/oracle.xdk_11.1.0/xmlparserv2.jar -Djavax.xml.parsers.DocumentBuilderFactory=oracle.xml.jaxp.JXDocumentBuilderFactory -Djavax.xml.parsers.SAXParserFactory=oracle.xml.jaxp.JXSAXParserFactory -Dorg.xml.sax.driver=oracle.xml.parser.v2.SAXParser -Dide.feedback-server=ide.us.oracle.com -Xbootclasspath/a:../../ide/lib/xml-factory.jar -Djavax.xml.transform.TransformerFactory=oracle.ide.xml.SwitchableTransformerFactory -Dsun.java2d.noddraw=true -Dide.conf=C:\Oracle\Middleware1112\jdeveloper\jdev\bin\jdev.conf -Dide.startingcwd=C:\Oracle\Middleware1112\jdeveloper\jdev\bin "-Dide.user.dir=C:\Documents and Settings\pakrish.APPLICATIONS\Application Data\JDeveloper\system11.1.2.0.38.60.17\o.jdeveloper.extensiondt.core\EDTplatform-dt_jdev-UserAndPrefDir" -Dedt.hot.classes=D:\tmp\jdev1112\SAIExtn_1App\TestAntInvoke\classes -Dedt.hot.manifest=D:\tmp\jdev1112\SAIExtn_1App\TestAntInvoke\src\META-INF\extension.xml -Dedt.hot.deploydir=jdev/extensions/ -Dedt.extension.id=yourcompany.testantinvoke -agentlib:jdwp=transport=dt_socket,server=y,address=1589 -Dcom.sun.xml.bind.v2.bytecode.ClassTailor.noOptimize=true -classpath C:\Oracle\Middleware1112\jdeveloper\ide\lib\ide-boot.jar;C:\Oracle\Middleware1112\jdeveloper\netbeans\platform\lib\boot.jar;C:\Oracle\Middleware1112\jdeveloper\netbeans\platform\lib\org-openide-util.jar;C:\Oracle\Middleware1112\jdeveloper\netbeans\platform\lib\org-openide-util-lookup.jar;C:\Oracle\Middleware1112\jdeveloper\netbeans\platform\lib\org-openide-modules.jar;C:\Oracle\Middleware1112\jdeveloper\ide\lib\fcpboot.jar -Djavax.net.ssl.trustStore=C:\DOCUME~1\PAKRIS~1.APP\LOCALS~1\Temp\trustStore5123141337500065063.jks -Dhttp.proxyHost=www-proxy.us.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=localhost|localhost.localdomain|127.0.0.1|::1|10.177.10.174| -Dhttps.proxyHost=www-proxy.us.oracle.com -Dhttps.proxyPort=80 -Xbootclasspath/a:C:\Oracle\Middleware1112\jdk160_24\lib\tools.jar;C:\Oracle\Middleware1112\jdk160_24\lib\dt.jar oracle.ide.osgi.boot.JDeveloper
    Listening for transport dt_socket at address: 1589
    Debugger connected to local process.
    Source breakpoint: InvokeAnt.java:35
    Source breakpoint: InvokeAnt.java:63
    Warning: Reference lib.path has not been set at runtime, but was found during
    build file parsing, attempting to resolve. Future versions of Ant may support
    referencing ids defined in non-executed targets.
    deploy:
    weblogic.Deployer -debug -nostage -verbose -upload -noexit -name globalweather -source C:\JDeveloper\mywork\SFE\outbound\globalweather\1.0.0.0.0\deploy\globalweather.ear -targets DefaultServer -adminurl t3://localhost:7101 -user weblogic -password ******** -deploy
    weblogic.Deployer invoked with options: -debug -nostage -verbose -upload -noexit -name globalweather -source C:\JDeveloper\mywork\SFE\outbound\globalweather\1.0.0.0.0\deploy\globalweather.ear -targets DefaultServer -adminurl t3://localhost:7101 -user weblogic -deploy
    [WebLogicDeploymentManagerImpl.<init>():115] : Constructing DeploymentManager for J2EE version V1_4 deployments
    [WebLogicDeploymentManagerImpl.getNewConnection():158] : Connecting to admin server at localhost:7101, as user weblogic
    [ServerConnectionImpl.getEnvironment():286] : setting environment
    [ServerConnectionImpl.getEnvironment():289] : getting context using t3://localhost:7101
    [ServerConnectionImpl.getMBeanServer():237] : Connecting to MBeanServer at service:jmx:t3://localhost:7101/jndi/weblogic.management.mbeanservers.domainruntime
    java.io.IOException
         at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProviderBase.java:196)
         at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProviderBase.java:84)
         at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.java:338)
         at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:247)
         at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServer(ServerConnectionImpl.java:238)
    weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 't3://localhost:7101': Bootstrap to localhost/127.0.0.1:7101 failed. It is likely that the remote side declared peer gone on this JVM. Ensure the url represents a running admin server and that the credentials are correct. If using http protocol, tunneling must be enabled on the admin server.

    Retrieving Information about WebLogic Server:
    Run
    1. <WLHOME>/server/bin/setWLSEnv
    2. java weblogic.Admin -adminurl t3://127.0.0.1:7001 -username weblogic -password weblogic1 PING 3 100
    In case of exception smth like "Caused By: java.net.UnknownHostException: localhost"
    add mappings of IP address to host name
    127.0.0.1 localhost
    For windows:
    C:\Windows\System32\drivers\etc\hosts
    Edited by: user6372268 on Dec 20, 2012 1:53 AM

  • Error using wldeploy in unix environment

    I am trying to use wldeploy ant task to deploy and undeploy applications from my server in a unix environment, and keep getting errors there, and not locally on a XP development workstation. Below are my buildfile and the error that I am getting. Anyone have any ideas as to what may be wrong?
    build.xml
    <target name="undeploy" description="Undeploys app">
    <wldeploy user="${user}" password="${password}"
    adminurl="${adminurl}" remote="true"
         action="stop" name="${appname}" debug="true"
    verbose="true"/>
    </target>
    And here is the error:
    [wldeploy] weblogic.Deployer -debug -remote -verbose -noexit -name ${appname} -adminurl iiop://${host}:${port} -user ${user} -password ${password} -stop
    [wldeploy] weblogic.Deployer invoked with options: -debug -remote -verbose -noexit -name broker-co
    ntact.ear -adminurl iiop://${host}:${port} -user ${user} -stop
    [wldeploy] [WebLogicDeploymentManagerImpl.<init>():103] : Constructing DeploymentManager for J2EE v
    ersion V1_4 deployments
    [wldeploy] [WebLogicDeploymentManagerImpl.getNewConnection():146] : Connecting to admin server at a
    lice.healthpartners.com:8001, as user system
    [wldeploy] [ServerConnectionImpl.getEnvironment():288] : setting environment
    [wldeploy] [Debug.say():43] : getting context using iiop://alice.healthpartners.com:8001
    [wldeploy] [Debug.say():43] : Connecting to MBeanServer at service:jmx:iiop://${host}:${port}/jndi/weblogic.management.mbeanservers.domainruntime
    [wldeploy] java.io.IOException
    [wldeploy] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProvide
    rBase.java:135)
    [wldeploy] at weblogic.management.remote.common.ClientProviderBase.newJMXConnector(ClientProvid
    erBase.java:79)
    [wldeploy] at javax.management.remote.JMXConnectorFactory.newJMXConnector(JMXConnectorFactory.j
    ava:341)
    [wldeploy] at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:262)
    [wldeploy] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServer(Serve
    rConnectionImpl.java:240)
    [wldeploy] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.getMBeanServerForTyp
    e(ServerConnectionImpl.java:191)
    [wldeploy] at weblogic.deploy.api.spi.deploy.internal.ServerConnectionImpl.init(ServerConnectio
    nImpl.java:147)
    [wldeploy] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.getNewConnection(Web
    LogicDeploymentManagerImpl.java:148)
    [wldeploy] at weblogic.deploy.api.spi.deploy.WebLogicDeploymentManagerImpl.<init>(WebLogicDeplo
    ymentManagerImpl.java:118)
    [wldeploy] at weblogic.deploy.api.spi.factories.internal.DeploymentFactoryImpl.getDeploymentMan
    ager(DeploymentFactoryImpl.java:84)
    [wldeploy] at weblogic.deploy.api.tools.SessionHelper.getDeploymentManager(SessionHelper.java:4
    32)
    [wldeploy] at weblogic.deploy.api.tools.deployer.Jsr88Operation.connect(Jsr88Operation.java:302
    [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.perform(Deployer.java:137)
    [wldeploy] at weblogic.deploy.api.tools.deployer.Deployer.runBody(Deployer.java:88)
    [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [wldeploy] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [wldeploy] at weblogic.Deployer.run(Deployer.java:70)
    [wldeploy] at weblogic.Deployer.mainWithExceptions(Deployer.java:62)
    [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wldeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
    [wldeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java
    :43)
    [wldeploy] at java.lang.reflect.Method.invoke(Method.java:615)
    [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.invokeMain(WLDeploy.java:419)
    [wldeploy] at weblogic.ant.taskdefs.management.WLDeploy.execute(WLDeploy.java:349)
    [wldeploy] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
    [wldeploy] at org.apache.tools.ant.Task.perform(Task.java:364)
    [wldeploy] at org.apache.tools.ant.Target.execute(Target.java:341)
    [wldeploy] at org.apache.tools.ant.Target.performTasks(Target.java:369)
    [wldeploy] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
    [wldeploy] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
    [wldeploy] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:4
    0)
    [wldeploy] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
    [wldeploy] at org.apache.tools.ant.Main.runBuild(Main.java:668)
    [wldeploy] at org.apache.tools.ant.Main.startAnt(Main.java:187)
    [wldeploy] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
    [wldeploy] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
    [wldeploy] Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:
    [wldeploy] java.io.EOFException]
    [wldeploy] at weblogic.jrmp.Context.lookup(Context.java:189)
    [wldeploy] at weblogic.jrmp.Context.lookup(Context.java:195)
    [wldeploy] at javax.naming.InitialContext.lookup(InitialContext.java:363)
    [wldeploy] at weblogic.management.remote.common.ClientProviderBase.makeConnection(ClientProvide
    rBase.java:126)
    [wldeploy] ... 35 more
    [wldeploy] Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nest
    ed exception is:
    [wldeploy] java.io.EOFException
    [wldeploy] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:293)
    [wldeploy] at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:190)
    [wldeploy] at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:321)
    [wldeploy] at weblogic.jrmp.BaseRemoteRef.invoke(BaseRemoteRef.java:221)
    [wldeploy] at weblogic.jrmp.RegistryImpl_Stub.lookup(Unknown Source)
    [wldeploy] at weblogic.jrmp.Context.lookup(Context.java:185)
    [wldeploy] ... 38 more
    [wldeploy] Caused by: java.io.EOFException
    [wldeploy] at java.io.DataInputStream.readByte(DataInputStream.java:269)
    [wldeploy] at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:234)
    [wldeploy] ... 43 more
    [wldeploy] [Debug.say():43] : Closing DM connection
    [wldeploy] [Debug.say():43] : Unregistered all listeners
    [wldeploy] weblogic.deploy.api.tools.deployer.DeployerException: Unable to connect to 'iiop://${host}:${port}': null. Ensure the url represents a running admin server and that the crede
    ntials are correct. If using http protocol, tunneling must be enabled on the admin server.
    Thanks.
    Scott

    Hi Richard,
    I had the same issue using Eclipse. I just tried to run the
    ant script outside of Eclipse and it worked fine.
    This is an Eclipse-Ant Class Loader issue.
    In order to make it work in Eclipse, You have to :
    1. Open the External Tool Run Configuration.
    2. Select your Ant script.
    3. Select JRE Tab.
    4. In Runtime JRE section, choose Seperate JRE.
    Hope this helps !
    Eric

  • PreparedStatement execution cause OutOfMemoryException

    Hello,
    I use PreparedStatement for getting data from database. It works well unless there is much data to get. If the result set has many rows (over 1000000) I get OutOfMemory error. I tried use Statement instead of PreparedStatement and tried to set my parameters value manually, but it doesn't work (in postgre database):
    sqlQuery = select * from employee_tmp where hire_date > ?; PreparedStatement st = connection.prepareStatement(sqlQuery); st.setDate(1, myDate); ResultSet rs = st.executeQuery();
    Result is OK, but for much data I get OutOfMemory error.
    sqlQuery = select * from employee_tmp where hire_date > myDate.toString(); Statement st = connection.createStatement(); ResultSet rs = st.executeQuery(sqlQuery);
    Getting data from database is fast, but I get all records, not only these from the first case.
    Thank you for any help in advanced.
    Agata

    agad wrote:
    Hello,
    I use PreparedStatement for getting data from database. It works well unless there is much data to get. If the result set has many rows (over 1000000) I get OutOfMemory error. I tried use Statement instead of PreparedStatement and tried to set my parameters value manually, but it doesn't work (in postgre database):
    sqlQuery = select * from employee_tmp where hire_date > ?;
    PreparedStatement st = connection.prepareStatement(sqlQuery);
    st.setDate(1, myDate);
    ResultSet rs = st.executeQuery();Result is OK, but for much data I get OutOfMemory error.
    sqlQuery = select * from employee_tmp where hire_date > myDate.toString();
    Statement st = connection.createStatement();
    ResultSet rs = st.executeQuery(sqlQuery);Getting data from database is fast, but I get all records, not only these from the first case.
    Thank you for any help in advanced.
    AgataThe PreparedStatement itself should definately not cause an OutOfMemoryException. Are you maybe looping through the ResultSet and storing the rows in an List or something? If it is truely the Driver throwing it, then ask at a PostGreSQL Driver forum, and probably post a bug report (to PostGreSQL, not Sun).

Maybe you are looking for

  • Suggestions for Safely Installing Snow Leopard

    Many users seem to be having problems upgrading to Snow Leopard. Here is a suggested installation procedure to minimize problems: 1. Repair your hard drive and permissions: Repairing the Hard Drive and Permissions Boot from your OS X Installer disc.

  • Payment program change

    Hi, In Sweden foreign payments are processed through SEB bank. Bank sends us extra charges if bank SWIFT code includes XXX, for example NDEAXXX. In our global bank master data XXX are used since that is a standard approach. We need to adjust the paym

  • Mapping tested successfully in Simulator but fails in SXI_MONITOR

    Hi gyus, The Outbound message structure is the following: MT_CAP_BANKS actions     1..1    xsd:string RECORD   0..unbounded  Segment    Field1    Field2    etc The target Inbound message structure is the structure of the JDBC receicer adapter, since

  • Sort data in a ref cursor

    Hello, I would like to know if the following is possible: I'm getting data from different sources in a ref cursor. Is it possible to sort this ref cursor on a specific column in the ref cursor? If so, how? Thanks Karuna

  • Date Profile with Actions and Deadline Monitoring

    Hi Folks , I have met an requirement of Actions with Deadline Monitoring of Date Profile . I could able to see Date profile with Day Rules in the standard , But i have met an requirement for very high imp - 2 hrs , High - 4 hrs .... etc. Where in Sta