J2EE Tutorial: Exception when building with ant

I am trying to build the converter example on page 48 of the J2EE tutorial using ant. Ant seems to choke on the following line from the build.xml:
<property environment="myenv" />
The output of the "ant converter" command is:
Buildfile: build.xml
init:
BUILD FAILED
/usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: /usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
--- Nested Exception ---
/usr/j2sdkee1.3/j2eetutorial/examples/src/build.xml:18: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
--- Nested Exception ---
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
at java.lang.String.substring(String.java:1525)
at org.apache.tools.ant.taskdefs.Property.loadEnvironment(Property.java:248)
at org.apache.tools.ant.taskdefs.Property.execute(Property.java:172)
at org.apache.tools.ant.Target.execute(Target.java:153)
at org.apache.tools.ant.Project.runTarget(Project.java:898)
at org.apache.tools.ant.Project.executeTarget(Project.java:536)
at org.apache.tools.ant.Project.executeTargets(Project.java:510)
at org.apache.tools.ant.Main.runBuild(Main.java:421)
at org.apache.tools.ant.Main.main(Main.java:149)
Total time: 1 second
My best guess is that the "myenv" line in the build.xml requires some additional attribute. I'm using ant version 1.3. My OS is Solaris (noted for possible environment-related issues).
Thanks in advance!
Eric Smith

On Windows XP Pro, the line
<property environment="myenv" />
in the init target of build.xml for the j2ee tutorial examples triggers a windows error message:
16 bit MS-DOS Subsystem
=======================
C:\WINDOWS\system32\ntvdm.exe
Error while setting up environment for the application. Choose 'Close' to terminate the application.
<<Close>> <<Ignore>>
So it looks as if ant is trying and failing to access the winnt system environment here.
According to Ant Developers Handbook (Sams, October 2002, chapter 4, p. 151), the ant environment property "specifies a prefix, giving access to OS-specific environment variables. This is not supported on all platforms." Until this problem is fixed, it appears that on XP systems anyway, any ant settings in build.xml files that rely on direct access to the system environment will fail. Here is some debug output from the j2ee tutorial examples init target which demonstrates this:
C:\apps\j2sdkee1.3.1\j2eetutorial\examples>ant init
Buildfile: build.xml
init:
[echo] starting init target
[echo] reached marker 1
[echo] reached marker 2
[echo] value of J2EE_HOME is ${myenv.J2EE_HOME}
[echo] finished init target
BUILD SUCCESSFUL
where the task:
<property environment="myenv" />
(which generates the OS error popup noted above) occurs between marker 1 and marker 2. Clearly the value of J2EE_HOME is NOT being successfully read from the system environment here.

Similar Messages

  • Flex 2 charting trial watermark appears when building via Ant

    The trial watermark appears when building with the flex Ant
    tasks, but not via Flex Builder 2. I believe the Ant tasks set up
    the compiler options with the same arguments in FB, and the build
    library path is also the same, but the trial watermark still
    appears.
    The charting source has been extracted into the Flex SDK 2
    directory, and the license key appears in the
    frameworks/license.properties file. As far as I know, these are the
    only steps needed to install the paid version of the charting
    tools. If I missed something, please let me know.
    Thanks in advance,
    KaJun

    Just an update on this issue:
    If I run the mxmlc compiler from the command line, I found
    that the output .swf does not have the watermark. It seems to be a
    bug in the Adobe Flex Ant tasks. I've changed the build script to
    use an exec call to the compiler instead.
    Thanks,
    KaJun

  • Runtime exception with ADG when compiled with ANT

    Hi,
    We are using Advanced Data Grid in our project and it compiles and produces a correct SWF file when compiled using the licensed FlexBuilder. This work fine for the development environment, but for the testing and staging environments we use ANT to automate the build process of both Flex and Java components.
    When the swf is built using ANT, we get a runtime exception when the page containing the ADG is accessed in web browser. The exception is
    TypeError: Error #1007: Instantiation attempted on a non-constructor.
    at mx.controls::AdvancedDataGridBaseEx/getSeparator()
    at mx.controls::AdvancedDataGridBaseEx/createHeaderSeparators()
    at mx.controls::AdvancedDataGrid/createHeaderSeparators()
    at mx.controls::AdvancedDataGridBaseEx/drawSeparators()
    at mx.controls::AdvancedDataGridBaseEx/updateDisplayList()
    at mx.controls::AdvancedDataGrid/updateDisplayList()
    at mx.controls.listClasses::AdvancedListBase/validateDisplayList()
    at mx.managers::LayoutManager/validateDisplayList()
    at mx.managers::LayoutManager/doPhasedInstantiation()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()
    at mx.core::UIComponent/callLaterDispatcher()
    Can you please suggest me how to fix this error?
    Thanks in advance.

    On forums of slackware there was a reference towards the program "free" which is being executed from /usr/bin/free whereas the program on slcakware resides in /bin/free or vice versa. Creating a ymlink should solve the problem. Dunnow (yet) if that works
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Heather Connery ([email protected]):
    I have installed Oracle 8.1.7 on Red Hat 6.2.
    When I attempt to create a database using dbassist i get an exception during event dispatching:
    java.lang.NumberFormatException 41%
    at java.lang.RuntimeException.<init>(Compiled Code)
    etc.......
    Does anyone know if this is a JRE bug? Any ideas what could be wrong here?<HR></BLOCKQUOTE>
    null

  • Problem building with ant

    Hi all,
    For some reason i get the following error message when trying to build any of the code in the j2ee tutorial.
    C:\WINDOWS\system32\ntvdm.exe
    Error while setting up environment for the application. Choose 'close' to terminate the application
    If anyone has any ideas as to why this happens, any help would be much appreciated.
    thanks

    i'm using windows xp pro. i have actually sorted that problem out by replacing ant 1.3 with ant 1.5
    I now have another error message. When i try to run the application client with the foolowing command:
    C:\forte4j\j2sdkee1.3\bin>runclient client \examples\ears\SavingsAccountApp.ear -name SavingsAccountClient -textauth
    I get the following
    Initiating login ...
    Username = null
    Enter Username:guest
    Enter Password:guest123
    Binding name:`java:comp/env/ejb/SimpleSavingsAccount`
    Application threw an exception:java.lang.NoClassDefFoundError: SavingsAccountHome
    Unbinding name:`java:comp/env/ejb/SimpleSavingsAccount`
    Not sure why i am getting the exception.

  • Null Pointer Exception when working with Custom Sql

    I viewed the video on adding Custom Sql and everything seemed to work fine with regards to adding it to my report. However, I get a null pointer exception when I add a field from the Custom Sql table to the report and try to run the report including if I try to View Sql. There doesn't seem to be a stacktrace that I can show.
    BTW... this was a work around for not being able to use Stored Procedures... I have killed 2 days now working on different ways to work around the Stored Procedure thing
    Thanks,
    Steve

    Hi,
    I'm trying to use a custom sql in my report. I could successfully create a custom SQL and add it to my report in the designer. But I'm getting NullPointer exception when I try to see the results in Preview. Can someone please help me resolve this issue.
    Thanks!

  • Null Pointer Exception when working with editable tables

    We are using editable tables in various places in forms that are embedded in views in our application.
    A few weeks ago we have discovered that we receive an exception when first clicking into an editable cell (see below). I can't exactly pinpoint when this started happening (might have been when updating from Luna SR1 to Luna SR2 but I am not sure) but I am certain that we didn't used to have this issue in the beginning.
    Is this something, others are also experiencing? Is this an issue of forms that use DISPLAY_HINT_VIEW (we don't have any editable tables in popup forms)?
    !ENTRY org.eclipse.ui 4 0 2015-06-10 12:14:13.423
    !MESSAGE Unhandled event loop exception
    !STACK 0
    java.lang.NullPointerException
    at org.eclipse.jface.viewers.ColumnViewerEditor.activateCellEditor(ColumnViewerEditor.java:216)
    at org.eclipse.jface.viewers.ColumnViewerEditor.handleEditorActivationEvent(ColumnViewerEditor.java:452)
    at org.eclipse.jface.viewers.ColumnViewer.triggerEditorActivationEvent(ColumnViewer.java:675)
    at org.eclipse.scout.rt.ui.swt.basic.table.SwtScoutTable$P_TableViewerEx.triggerEditorActivationEvent(SwtScoutTable.java:1019)
    at org.eclipse.jface.viewers.ColumnViewer.handleMouseDown(ColumnViewer.java:650)
    at org.eclipse.jface.viewers.ColumnViewer.access$0(ColumnViewer.java:646)
    at org.eclipse.jface.viewers.ColumnViewer$1.mouseDown(ColumnViewer.java:95)
    at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:192)
    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)
    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4172)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3761)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1151)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)
    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)
    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:636)
    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)
    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
    at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application.startSecure(Application.java:45)
    at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application$1.run(Application.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:415)
    at ch.sbb.cisi.angebot.scout.client.ui.swt.application.Application.start(Application.java:34)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:606)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1465)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1438)

    I experienced the same issue with editable boolean cells.
    Left mouse click events produce the mentioned Exception, which causes the mouse down event to be lost. The mouse up event is still fired though, thereby it's possible that the value of another cell in the same row is updated as the contextColum, which is set by the mouse down event, hasn't been updated.
    Right mouse click events work as expected.

  • Ant throws the exception when builds B2B

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP4, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool, j2sdk1.4.2_07.
    Any help will be appreciated.
    Regards,
    Roman Babkin

    Hi,
    have you tried to urlencode the hash char?
    Might be interesting as well if the problem also occours when you point to a local script in your url. The script should then contain a static link to your xml file.
    cheers,
    jossif

  • Ant throws the exception when builds B2B (E-selling of CRM-ISA)

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
    Any help will be appreciated.
    Regards,
    Roman Babkin

    Hi,
    Ant throws the exception:
    default.application.xml:
        [style] Processing D:B2B_DEVsap_earmeta-inf.b2bapplication.xml to D:B2B
    _DEVproject_earmeta-inf.b2b_devMETA-INFapplication.xml
        [style] Loading stylesheet D:B2B_DEVbintemplatesapplication.xsl
        [style] Failed to process D:B2B_DEVsap_earmeta-inf.b2bapplication.xml
    BUILD FAILED
    D:B2B_DEVbinbuild.xml:113: The following error occurred while executing this
    line:
    D:B2B_DEVprojectbuildmodification.xml:102: The following error occurred while
    executing this line:
    D:B2B_DEVbinearbuilder.xml:78: The following error occurred while executing t
    his line:
    D:B2B_DEVbinearbuilder.xml:16: javax.xml.transform.TransformerConfigurationEx
    ception: Could not load stylesheet. org.w3c.dom.DOMException: Prefix is 'xmlns',
    but URI is not 'http://www.w3.org/2000/xmlns/' in the qualified name, 'xmlns:xs
    l'
    How to fix it?
    The configuration is MS Windows XP SP2, MS SQL Server 2000 Developer Edition SP2, SAP Web AS 6.40 SP18, Apache Ant 1.6.5, Build Tool.
    Any help will be appreciated.
    Regards,
    Roman Babkin

  • Build with ant in a new way

    Hello everyone,
    I'm not sure if the title is proper, but I have a project to upgrade to weblogic 10, along with the upgrade I'm going to enhance the build files. Currently we have 450 ant file. There are many dependencies and all build files have hardcoded paths such "c:\sourcecode ...". Our application is about 6000000 lOC. Anyway, my job is to replace these paths with properties and change some old ant tasks.
    You now imagine what I'm going to go through. Obviously, I need to edit 450 (can build tool for that) and do check in and out. Then test to make sure I didn't missed up with the dependency.
    I'm no expert in ANT but we did some evaluation to ANT, Maven, Jam and we found ANT is the best fit for our environment because we have some structuring issues.
    While working I have got this idea, however I'm not sure if it's the best, so I hope you can help here and give me your advice.
    I will create a utilityBuild.xml. This ant file will contain the entire tasks we perform in all the 450. Rest of 450 ant will perform call to this utilityBuild.xml whenever it needs to do something e.g .
    {color:#008000}<!-- Create Jar file of the classes in the ${tempdir} and then apply appc compilation on them-->{color}
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="appc"/>
    Note: UTILITYBUILD = utilityBuild.xml
    UtilityBuild.xml has this task as
    {color:#008000}<!-- Perform weblogic.appc on the given Jar file to generate the Skeleton files -->{color}
    <target name="appc" depends="jar.ejb" >
    <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${appdir}/${jarfile}"/>
    <classpath>
    <pathelement path="$classpath"/>
    </classpath>
    </java>
    </target>
    The {color:#ff0000}*benefit*{color} of doing this is {color:#ff0000}*if we decide to use wlcompile and wlappc instead of the above we only need to change one place utilityBuild.xml*{color} . I understand that I can make a custom ant task instead of relying on the properties that's passed when calling the child ant task.
    {color:#0000ff}*For complete Source file* {color}
    UtilityBuild.xml
    <project name="SIMIS" basedir=".">
    <!-- set global properties for this build -->
    <property environment="env"/>
    <property file="gosi.properties"/>
    <target name="maketempdir" description="Create ${tempdir} directory">
    <echo message="#### S T A R T B U I L D I N G ####"/>
    <echo message="Started on ${TODAY} at ${TSTAMP}"/>
    <mkdir dir="${tempdir}"/>
    <mkdir dir="${tempdir}/META-INF"/>
    <copy todir="${tempdir}/META-INF">
    <fileset dir="${xmldir}">
    <include name="*.xml"/>
    </fileset>
    </copy>
    </target>
    <!-- Clean all build related dirs, jars and xmls -->
    <target name="cleantemp" description="Deletes ${build.dir}/** and ${dist.dir}/**." >
    <delete includeEmptyDirs="true" failonerror="false">
    <fileset dir="${clientclasses}" includes="**/*EJB.class"/>
    <fileset dir="${tempdir}" includes="**/*"/>
    </delete>
    <delete dir="${tempdir}"/>
    <echo message="#### E N D B U I L D I N G ####"/>
    </target>
    <!-- Perform weblogic.appc on the given Jar file to generate the Skeleton files -->
    <target name="appc" depends="jar.ejb" >
    <java classname="weblogic.appc" fork="yes">
    <sysproperty key="weblogic.home" value="${WL_HOME}"/>
    <arg line="-compiler javac ${appdir}/${jarfile}"/>
    <classpath>
    <pathelement path="$classpath"/>
    </classpath>
    </java>
    </target>
    <target name="jar.ejb" >
    <jar jarfile="${appdir}/${jarfile}"
    basedir="${tempdir}" update="yes">
    </jar>
    </target>
    <target name="javac">
    <javac srcdir="${sourcedir}" destdir="${destinationdir}" includes="${include}" excludes="${exclude}" classpath="${classpath}" />
    </target>
    <target name="copy" description="copy contents to directory">
    <copy todir="${todir}">
    <fileset dir="${fromdir}">
    <include name="${include}"/>
    <exnclude name="${exclude}"/>
    </fileset>
    </copy>
    </target>
    <target name="clean" description="clean contents of directory">
    <delete includeEmptyDirs="true" failonerror="false">
    <fileset dir="${cleandir}" includes="${include}" excludes="${exclude}"/>
    </delete>
    </target>
    <target name="delete" description="delete entire directory">
    <delete dir="${deletedir}"/>
    </target>
    <!-- deploy split directory application -->
    <target name="deploy"
    description="Deploy ear to WebLogic on ${wls.hostname}:${wls.port}.">
    <wldeploy
    user="${wls.username}"
    password="${wls.password}"
    adminurl="t3://${wls.hostname}:${wls.port}"
    debug="true"
    action="deploy"
    source="${appdir}/${jarfile}"
    failonerror="${failondeploy}"/>
    </target>
    </project>
    CMN_Core_Session.xml (one of the 450 files)
    <project name="default" default="build">
    <!-- Specific Properties to this file. Please don't change these names, because it has been used by the ${UTILITYBUILD} -->
    <property file="../gosi.properties"/>
    <property name="srcdir" value="${SOURCE_CODE}/gosi/core"/>
    <property name="xmldir" value="${SOURCE_CODE}/gosi/core/projects/session"/>
    <property name="jarfile" value="CMN_Session.jar"/>
    <!-- Main build task for this ant file -->
    <target name="build" description="Builds components.">
    <!-- Create Temp folders and copy the deployment descriptor their -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="maketempdir"/>
    <!-- Compile the java classes in to ${clientclasses} -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="javac">
    <property name="sourcedir" value="${srcdir}"/>
    <property name="destinationdir" value="${clientclasses}"/>
    <property name="include" value="**/*Session.java,**/*SessionHome.java"/>
    <property name="exclude" value="**/*MaintainDateChangeSession.java,**/*MaintainDateChangeSessionEJB.java,**/*MaintainDateChangeSessionHome.java,**/*MaintainHolidaysSession.java,**/*MaintainHolidaysSessionEJB.java,**/*MaintainHolidaysSessionHome.java,**/*StartupUtilitySession.java,**/*StartupUtilitySessionEJB.java,**/*StartupUtilitySessionHome.java,**/UserSession.java"/>
    </ant>
    <!-- Compile the java classes again in to ${tempdir} this folder will be used to create the Jar file -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="javac">
    <property name="sourcedir" value="${srcdir}"/>
    <property name="destinationdir" value="${tempdir}"/>
    <property name="include" value="**/*Session.java,**/*SessionHome.java,**/*SessionEJB.java"/>
    <property name="exclude" value="**/*MaintainDateChangeSession.java,**/*MaintainDateChangeSessionEJB.java,**/*MaintainDateChangeSessionHome.java,**/*MaintainHolidaysSession.java,**/*MaintainHolidaysSessionEJB.java,**/*MaintainHolidaysSessionHome.java,**/*StartupUtilitySession.java,**/*StartupUtilitySessionEJB.java,**/*StartupUtilitySessionHome.java,**/UserSession.java"/>
    </ant>
    <!-- Create Jar file of the classes in the ${tempdir} and then apply appc compilation on them-->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="appc"/>
    <!-- Remove all file in ${tempdir} -->
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="cleantemp"/>
    </ant>
    </target>
    <!-- Main deploy task for this ant file -->
    <target name="deploy" description="Deploy the components">
    <ant inheritAll="true" dir="${ROOT}" antfile="${UTILITYBUILD}" target="deploy"/>
    </ant>
    </target>
    </project>
    gosiProperties file
    ### Build Files Properties File ###
    -- Configure the global properties for the ant build files
    -- You may need to change this section to match your machine
    BEA_HOME=C:/bea
    SIMIS_DOMAIN=${BEA_HOME}/gosiprojects/server/simis
    WL_HOME=${BEA_HOME}/wlserver_10.0/server
    JAVA_HOME=${BEA_HOME}/jdk150_06
    SOURCE_CODE=C:/sourcecode
    ROOT=${SOURCE_CODE}/build_files
    UTILITYBUILD=UtilityBuild.xml
    -- Here we set the JARs directory and server and client classes
    appdir=${SIMIS_DOMAIN}/applications
    tempdir=${SIMIS_DOMAIN}/classes
    clientclasses=${SIMIS_DOMAIN}/clientclasses
    serverclasses=${SIMIS_DOMAIN}/serverclasses
    web-inf=${appdir}/GOSI/WEB-INF/classes
    startup=${appdir}/StartUp/WEB-INF/classes
    -- Set the ClassPath for the ant tool
    classpath=${JAVA_HOME}/lib/tools.jar;${WL_HOME}/lib/weblogic.jar;${WL_HOME};${SIMIS_DOMAIN}/APP-INF/lib/CMN_DMS_WS_RequestClient.jar;
    Thanks and regards
    Edited by: Nawaf on Mar 9, 2008 8:18 AM

    Any idea, I'm looking for your opinion, what do you think of the above

  • Building with Ant

    Hi,
    I try to build my application using Ant. Here is the fragment
    from build.xml:
    <java jar="${flex.mxmlc.jar}" fork="true">
    <arg line="-file-specs ${src.dir}/${app.name}.mxml"/>
    <arg line="-load-config ${flex.dist.config}"/>
    </java>
    When I run this, I get this error:
    [java] command line: Error: default arguments may not be
    interspersed with other options
    [java] Use 'mxmlc -help' for information about using the
    command line.
    When I do not use "-load-config" option, I get following:
    [java] defaults: Error: unable to open './flex-config.xml'
    What is wrong?
    Thanks.
    .Vlad.

    I wasn't able to reproduce the first error you got. But the
    second error happens for me.
    Somehow, invoking mxmlc.jar from a directory other than the
    flex frameworks directory leads to an error where it's looking for
    files relative to flex frameworks.
    I got around this by specifying a dir to invoke the VM in.
    i.e
    <property name="flex.dir" value="c:\flex\sdk" />
    <property name="flex.mxmlc.jar"
    value="${flex.dir}/lib\mxmlc.jar" />
    <java jar="${flex.mxmlc.jar}" dir="${flex.dir}/frameworks"
    fork="true">
    <arg line="-file-specs ${src.dir}/${app.name}.mxml"/>
    </java>

  • Unexpected problem: uncaught exception when working with audio files in Soundtrack Pro

    Hey,
    Whenever I double click an audio file in the timeline to work on it, I end up getting the Error message: "Unexpected problem: uncaught exception" and Soundtrack Pro eventually crashes.  Also, this happens when I try to work with audio files in the file editor.  I have Leopard and am using Logic Studio 8.  Any insight would be much appreciated. Thanks
    Matt

    Didnt know how to remove the original clip from the STP arrange window - or whatever it's called in STPro.  So I could go no further in my perverse science experiment. 
    It also appeared that I could only import an aif but not a wav? 
    I gave up on STPro and did what I needed to do in Logic, which I use regularly.    
    Thank you for folowing up on this. 
    PS.  I used to use an old PowerPC version (1.0.3) of STPro and loved the way it visually showed the change in the waveform when you added each efffect.  It appears that the new version (3.0.1) does not allow you to do this anymore?  You can render or flatten the effects to see the final waveform, but then you are dead in the water and cant make changes?  
    Im such a newbie at STPro that I am probably not using it right? 

  • Exception when working with UTL_HTTP.read_text

    Hi,
    I have written a block of code to read XML from a URL and then I write it to a file, using UTL_HTTP package.
    The code has been working fine for two months and all of a sudden, I get the following error while reading from one of the URLs:
    ORA-29273: HTTP request failed
    ORA-06512: at "SYS.UTL_HTTP", line
    1327
    ORA-06502: PL/SQL: numeric or value error
    The piece of code is pasted below for your reference.
    http_req := utl_http.begin_request('my_url','GET','HTTP/1.1');
    utl_http.set_body_charset(http_req, 'UTF-8');
    utl_http.set_header(http_req, 'Content-Type', 'text/xml');
    http_resp:= utl_http.get_response(http_req);
    LOOP
         UTL_HTTP.read_text(http_resp, l_text, 32767);
         UTL_FILE.PUT_LINE(file_handle, l_text);
    END LOOP;However, when I reduce the number of characters to be read in UTL_HTTP.read_text to 30000, it works. FYI, it isn't working with 32000 as well, while it worked perfect with 32767 all this while. This exception came up today.
    I understand this has something to do with the data being read, however, my question is:
    1. If I specify that 32767 characters are to be read, why should there be a buffer problem? (I am executing the same procedure for 10 other URLs and they are working fine. Its just one URL which has given a problem today)
    2. What is a good solution to implement? If i reduce the number to 30000 to solve the problem today, and it gives the same problem the next time, reducing the number further doesn't look like a permanent solution.
    Appreciate your help on this. Please let me know if I need to furnish any more details on this.

    Roger,
    I have another question here. I declare the text into which I am reading my response chunk as:
    l_text          VARCHAR2(32767 char);rather than plainly declaring it as:
    l_text          VARCHAR2(32767);the second method defaults it to 32767 bytes, but isn't the first way taking it as 32767 character values?
    Even now I get the same exception. Any clue here?

  • My iMac 2010 27" makes low noises EXCEPT when scrolling with my magic mouse.

    It's like a low static electric noise but it stops when I scroll webpages and such with my magic mouse.

    It's coming from inside the iMac and turning down/mute-ing doesn't change it and neither does it stop when I plug in headphones. It doesn't stop when I turn off the built in monitor.
    The batteries are ok and no phone around. The sound is not like an interference sound. It's more like the sound the harddrive makes except not as loud and higher pitch (i guess).
    The sound has been for a while. More than a month but not since I bought it.
    Thanks for your reply!

  • ECLIPSE BUILD WITH ANT CFURLGetFSRef failed

    Hi,
    someone know why when a build the same code I create with the DollyXs and use in my Xcode in Eclipse appear this message error?
    [echo] Now compiling FR file /Users/rbueno/Development/Indesign Plugin Editor/sdk/source/sdksamples/myplugin/MyPlug.fr for mac
    [exec] Beginning ODFRC
    [exec] CFURLGetFSRef failed - maybe the output directory doesn't exist (ODFRC.res)
    [echo] FR Compilation Complete: Attempting to build C++ files...
    [exec] xcodebuild: Warning: configuration release is not in the project. Building default configuration.
    I see in archived post some guy have the some problem and fix that when he changed the location form release build. I try to do the some, but i don't have success.
    Thanks a Lot!

    The full build message.
    Buildfile: /Users/rbueno/Development/Indesign Plugin Editor/projects/MyPlugin/build.xml
    mac:
    [echo] Now compiling FR file /Users/rbueno/Development/Indesign Plugin Editor/sdk/source/sdksamples/myplugin/MyPlug.fr for mac
    [exec] Beginning ODFRC
    [exec] CFURLGetFSRef failed - maybe the output directory doesn't exist? (ODFRC.res)
    [echo] FR Compilation Complete: Attempting to build C++ files...
    [exec] xcodebuild: Warning: configuration release is not in the project. Building default configuration.
    [exec] === BUILDING NATIVE TARGET Debug WITH THE DEFAULT CONFIGURATION (Default) ===
    [exec] Checking Dependencies...
    [exec] PhaseScriptExecution "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/../../../source/sdksamples/myplugin/MyPlug.fr"
    [exec] cd "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj"
    [exec] /bin/sh -c "\"../../../devtools/bin/odfrc-cmd\" -d DEBUG -d MACINTOSH -d __GNUC__ -o \"$REZ_COLLECTOR_DIR/$INPUT_FILE_NAME.rsrc\" \"$INPUT_FILE_PATH\""
    [exec] Beginning ODFRC
    [exec] ResMergerCollector "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/build/MyPlugin.build/Default/Debug.build/ResourceManagerResource s/MyPlugin.rsrc"
    [exec] cd "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj"
    [exec] /Developer/Tools/ResMerger -dstIs DF "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/build/MyPlugin.build/Default/Debug.build/ResourceManagerResource s/MyPlug.fr.rsrc" -o "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/build/MyPlugin.build/Default/Debug.build/ResourceManagerResource s/MyPlugin.rsrc"
    [exec] ResMergerProduct "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/../debug/sdk/MyPlugin.InDesignPlugin/Versions/A/Resources/MyPlug in.rsrc"
    [exec] cd "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj"
    [exec] /Developer/Tools/ResMerger "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/build/MyPlugin.build/Default/Debug.build/ResourceManagerResource s/MyPlugin.rsrc" -dstIs DF -o "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/../debug/sdk/MyPlugin.InDesignPlugin/Versions/A/Resources/MyPlug in.rsrc"
    [exec] Touch "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/../debug/sdk/MyPlugin.InDesignPlugin"
    [exec] cd "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj"
    [exec] /usr/bin/touch -c "/Users/rbueno/Development/Indesign Plugin Editor/sdk/build/mac/prj/../debug/sdk/MyPlugin.InDesignPlugin"
    [exec] ** BUILD SUCCEEDED **
    [echo] C++ Build Complete
    BUILD SUCCESSFUL
    Total time: 6 seconds

  • Non-Deterministic Exception When Connecting With Wrong Client Certificate

    I am working on an internal application and need to determine the correct client-side SSL certificate to use when connecting to a server (the user can supply multiple client-side certificates). I had expected that if I connected to a server using the wrong client certificate the java client would throw a SSLHandshakeException and I could then try the next certificate. This seems to work some of the time, however the java client will sometimes throw a “SocketException: Software caused connection abort: recv failed”, in which case it is not possible to know that the wrong certificate caused the problem.
    Below is the code I have been using to test as well as the intermittent SocketException stack trace. Does anyone have an idea as to how to fix this problem? Thanks in advance.
    Note: the TrustAllX509TrustManager is a trust manager that trusts all servers.
    protected void connectSsl() throws Exception {
          final String host = "x.x.x.x";
          final int portNumber = 443;
          final int socketTimeout = 10*1000;
          // Note: Wrong certificate (expect SSLHandshakeException).
          final String certFilename = "C:\\xxx\\clientSSL.P12";
          final String certPassword = "certPassword";
          final BufferedInputStream bis = new BufferedInputStream(new FileInputStream(new File(certFilename)));
          final char[] certificatePasswordArray = certPassword.toCharArray();
          final KeyManagerFactory keyManagerFactory = KeyManagerFactory.getInstance("SunX509");
          final KeyStore keyStore = KeyStore.getInstance("PKCS12");
          keyStore.load(bis, certificatePasswordArray);
          keyManagerFactory.init(keyStore, certificatePasswordArray);
          final KeyManager[] keyManagers = keyManagerFactory.getKeyManagers();
          final SSLContext context = SSLContext.getInstance("SSL");
          context.init(keyManagers, new TrustManager[]{new TrustAllX509TrustManager()}, new SecureRandom());
          final SocketFactory secureFactory = context.getSocketFactory();
          final Socket socket = secureFactory.createSocket();
          final InetAddress ip = InetAddress.getByName(host);
          socket.connect(new InetSocketAddress(ip, portNumber), socketTimeout);
          socket.setSoTimeout(socketTimeout);
          // Write the request.
          final OutputStream out = new BufferedOutputStream(socket.getOutputStream());
          out.write("GET / HTTP/1.1\r\n".getBytes());
          out.write("\r\n".getBytes());
          out.flush();
          InputStream inputStream = socket.getInputStream();
          ByteArrayOutputStream outputStream = new ByteArrayOutputStream();
          byte[] byteArray = new byte[1024];
          int bytesRead = 0;
          while ((bytesRead = inputStream.read(byteArray)) != -1) {
             outputStream.write(byteArray, 0, bytesRead);
          socket.close();
          System.out.println("Response:\r\n" + outputStream.toString("UTF-8"));
       }Unexpected SocketException:
    main: java.net.SocketException: Software caused connection abort: recv failed
         at java.net.SocketInputStream.socketRead0(Native Method)
         at java.net.SocketInputStream.read(SocketInputStream.java:129)
         at com.sun.net.ssl.internal.ssl.InputRecord.readFully(InputRecord.java:293)
         at com.sun.net.ssl.internal.ssl.InputRecord.read(InputRecord.java:331)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:789)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.waitForClose(SSLSocketImpl.java:1435)
         at com.sun.net.ssl.internal.ssl.HandshakeOutStream.flush(HandshakeOutStream.java:103)
         at com.sun.net.ssl.internal.ssl.Handshaker.sendChangeCipherSpec(Handshaker.java:612)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.sendChangeCipherAndFinish(ClientHandshaker.java:808)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverHelloDone(ClientHandshaker.java:734)
         at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:197)
         at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:516)
         at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:454)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:884)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1096)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(SSLSocketImpl.java:623)
         at com.sun.net.ssl.internal.ssl.AppOutputStream.write(AppOutputStream.java:59)
         at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:65)
         at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:123)

    Thanks for the quick response. Here are answers to the questions:
    1) No, this issue is not associated with one particular certificate. I have tried several certificates and see the same issue.
    2) I agree it would be simpler to only send the required certificate, but unfortunately the project requires that the user be able to specify multiple certificates and, if a client-side certificate is required, the application try each one in turn until the correct certificate is found.
    3) Yes, I realize the TrustAllX509TrustManager is insecure, but I am using this for testing purposes while trying to diagnose the client certificate problem.
    In terms of testing, I am just wrapping the above code in a try/catch block and executing it in a loop. It is quite odd that the same exact code will sometimes generate a SSLHandshakeException and other times a SocketException.
    One additional piece of information: if I force the client code to use "SSLv3" using the Socket.setEnabledProtocols(...) method, the problem goes away (I consistently get a SSLHandshakeException). However, I don't think this solves my problem as forcing the application to use SSLv3 would mean it could not handle TLS connections.
    The code to specify the SSLv3 protocol is:
    SSLSocket sslSocket = (SSLSocket) socket;
    sslSocket.setEnabledProtocols(new String[] {"SSLv3"});
    One other strange issue: if instead of specifying the SSLv3 protocol using setEnabledProtocols(...) I instead specify the protocol when creating the SSLContext, the SocketException problem comes back. So if I replace:
    final SSLContext context = SSLContext.getInstance("SSL");
    with:
    final SSLContext context = SSLContext.getInstance("SSLv3");
    and remove the "sslSocket.setEnabledProtocols(new String[] {"SSLv3"})" line, I see the intermittent SocketException problem.
    All very weird. Any thoughts?

Maybe you are looking for

  • HT1296 Transfer of Calendar from Phone to Computer

    I want to transfer my calendar from my phone as it is the most current to my computer. If I follow this article, will it work. I do NOT want to replace my phone's calendar with the one on my computer as it's outdated.Please advise. Thanks!

  • BEx variables restricted value not shown

    Hello, I have 2 variables defined and used in a query. I put both these characteristics as global filters. When the query is run, a popup screen allows user to input these 2 variable values. The navigation block in the worksheet shows only 1 of the 2

  • Graph in adobe Forms

    Hi, In programming, i have populated values for graph and displayed it in report programming using Function Module. I want to display the same graph in Adobe. Is it possible? If Yes, please guide me. Thanks in advance.

  • Java.lang.Thread.eetop

    who knows what this field in Thread class for?

  • Interpret CallLogs

    Hi, does anybody know an application they is able to interpret the Calllogs Tracefiles? Open these files with notepad or any other text editor application is not user friendly. Best regards Stefan