I am getting build error while using weblogic.appc

Hi All,
I am using weblogic 10 server and ejb 3.0 code .
While ejb-complisation i am getting the class not found error.
Please help me in resolving the below issue.
ejb-compile:
[echo] E:\workspace\OMGAdmin\OMGADMIN/omgAdminBuild/omgAdminEAR
[java] Exception in thread "main" java.lang.NoClassDefFoundError: weblogic/descriptor/BeanUpdateListener
[java] at java.lang.ClassLoader.defineClass1(Native Method)
[java] at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
[java] at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
[java] at java.net.URLClassLoader.defineClass(URLClassLoader.java:260)
[java] at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
[java] at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
[java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[java] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[java] at java.lang.Class.forName0(Native Method)
[java] at java.lang.Class.forName(Class.java:164)
[java] at weblogic.logging.MessageLogger.<clinit>(MessageLogger.java:46)
[java] at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51)
[java] at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.java:5257)
[java] at weblogic.application.compiler.Appc.runBody(Appc.java:179)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.application.compiler.Appc.main(Appc.java:188)
[java] at weblogic.appc.main(appc.java:14)
[java] Java Result: 1
<target name="ejb-compile" depends="ejb-jar">
     <echo message="${project.EAR.dir}"></echo>
     <java classname="weblogic.appc" fork="yes">
<sysproperty key="weblogic.home" value="${wl.home}"/>
<arg line="-compiler javac ${project.EJB.dir}/omgAdminEJB.jar"/>
<classpath>
<pathelement location="${wl.dir.lib}\weblogic.jar"/>
<pathelement location="${wl.dir.lib}\api.jar"/>
<pathelement location="${wl.dir.lib}\wls-api.jar"/>
          <pathelement location="${project.EAR.dir}\utility.jar"/>
          <pathelement location="${project.lib}\log4j-1.2.13.jar"/>
</classpath>
</java>
     <copy todir="${project.EAR.dir}" >
<fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar" />
</copy>
     <delete>
<fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar"/>
</delete>
</target>
above script is my ant task for ejb compilisation
Regd's
Soma.

Finally i am end up with this exception
[java] Exception in thread "main" java.lang.AssertionError: java.lang.reflect.InvocationTargetException
[java] at weblogic.logging.MessageLogger.log(MessageLogger.java:104)
[java] at weblogic.logging.MessageLogger.log(MessageLogger.java:116)
[java] at weblogic.logging.WLMessageLogger.log(WLMessageLogger.java:51)
[java] at weblogic.j2ee.J2EELogger.logAppcFailedWithError(J2EELogger.java:5257)
[java] at weblogic.application.compiler.Appc.runBody(Appc.java:179)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
[java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
[java] at weblogic.application.compiler.Appc.main(Appc.java:188)
[java] at weblogic.appc.main(appc.java:14)
[java] Caused by: java.lang.reflect.InvocationTargetException
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[java] at java.lang.reflect.Method.invoke(Method.java:585)
[java] at weblogic.logging.MessageLogger.log(MessageLogger.java:101)
[java] ... 8 more
[java] Caused by: java.lang.NoClassDefFoundError: weblogic/management/DistributedManagementException
[java] at java.lang.Class.getDeclaredMethods0(Native Method)
[java] at java.lang.Class.privateGetDeclaredMethods(Class.java:2365)
[java] at java.lang.Class.privateGetPublicMethods(Class.java:2488)
[java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
[java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
[java] at java.lang.Class.privateGetPublicMethods(Class.java:2498)
[java] at java.lang.Class.getMethods(Class.java:1406)
[java] at weblogic.kernel.MBeanStub.initializeFromSystemProperties(MBeanStub.java:51)
[java] at weblogic.kernel.LogMBeanStub.<init>(LogMBeanStub.java:41)
[java] at weblogic.kernel.KernelMBeanStub.<init>(KernelMBeanStub.java:10)
[java] at weblogic.kernel.KernelLogManager$LoggerMaker.<clinit>(KernelLogManager.java:22)
[java] at weblogic.kernel.KernelLogManager.getLogger(KernelLogManager.java:28)
[java] ... 13 more
[java] Java Result: 1
My Build file is
<target name="ejb-compile" depends="ejb-jar">
     <echo message="${project.EAR.dir}"></echo>
     <echo message="${wl.modules.lib}\com.bea.core.descriptor_1.0.1.0.jar" />
     <echo message="${wl.dir.lib}\weblogic.jar" />
     <java classname="weblogic.appc" fork="yes">
<sysproperty key="weblogic.home" value="${wl.home}"/>
<arg line="-compiler javac ${project.EJB.dir}/omgAdminEJB.jar"/>
<classpath>
<pathelement location="${wl.dir.lib}\weblogic.jar"/>
<pathelement location="${wl.dir.lib}\api.jar"/>
<pathelement location="${wl.dir.lib}\wls-api.jar"/>
<pathelement location="${wl.dir.lib}\wlclient.jar"/>
<pathelement location="${wl.modules.lib}\com.bea.core.descriptor_1.0.1.0.jar"/>
          <pathelement location="${project.EAR.dir}\utility.jar"/>
          <pathelement location="${project.lib}\log4j-1.2.13.jar"/>
</classpath>
</java>
     <copy todir="${project.EAR.dir}" >
<fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar" />
</copy>
     <delete>
<fileset dir="${project.EJB.dir}" includes="omgAdminEJB.jar"/>
</delete>
</target>

Similar Messages

  • Weblogic 9.1 with JDK1.6 giving error ( while doing weblogic.appc )

    hi,
    I am trying to build my ear using jdk1.6 with weblogic 9.1.
    I am getting this error while doing weblogic.appc using my ant scripts. Could some one pls let me know the solution for this problem.
    [java] Created working directory: c:\windows\TEMP\appcgen_gdoasis.jar
    [java] <02-Aug-2007 14:54:22 o'clock BST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile yo
    ur application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    [java] javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream.XMLInputFactory could not be
    instantiated: java.lang.InstantiationException
    [java] at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)
    [java] at weblogic.ejb.container.dd.xml.DDUtils.<clinit>(DDUtils.java:85)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1345)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:431)
    [java] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:292)
    [java] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:95)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:113)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:55)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:24)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:151)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:162)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Provider javax.xml.stream.XMLInputFactory could not be instantiated: java.lang.InstantiationExcept
    ion
    Thanks

    Hi,
    First thing, I am not sure this will work :-)
    The main issue is that there is no StAX provider to parse I-not-know-what XML file.
    You may try to execute appc with the parameter
    -Djavax.xml.stream.XMLInputFactory=com.bea.xml.stream.MXParserFactory
    Anyhow, you may still have some issues given that Java 6 is not a supported Java version for WL 9.1.
    Regards,
    lg

  • Reg : I am getting an error while Using MicroSoft ODBC For Oracle Driver

    I am Using MicroSoft ODBC For Oracle Driver  for JDBC. Why i am using this driver is i could not able to get  the arabic content if i use the other driver  .I Right now i cannot change the NLS Lang because its a production server    also it has around 300 gb of data  and i can not take risk now by changing the NLS lang.. coming to the below error .i could able to access my data up to 4 Hours after that i am getting this error.If i restart my tomcat i can use my application  one more 4 hrs  .Please get back to me if u have any solution.Its very very helpful to me......+*
    [java.sql.SQLException] [ Microsoft ODBC for Oracle ]
    at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6957)
    at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:7114)
    at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:3073)
    at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:3
    23)
    at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:174)
    at java.sql.DriverManager.getConnection(DriverManager.java:582)
    at java.sql.DriverManager.getConnection(DriverManager.java:185)
    at com.iton.eoffice.DatabaseBean.connecteOfficeMoEnq(DatabaseBean.java:4
    60)
    at org.apache.jsp.MhewProfilesearchMoEnq_jsp._jspService(MhewProfilesear
    chMoEnq_jsp.java:434)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    20)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.iton.eoffice.tree.CharacterEncodingFilter.doFilter(CharacterEncod
    ingFilter.java:63)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:235)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
    alve.java:228)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
    alve.java:175)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
    ava:128)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
    ava:104)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
    ve.java:109)
    at org.apache.catalina.ha.tcp.ReplicationValve.invoke(ReplicationValve.j
    ava:347)
    at org.apache.catalina.ha.session.JvmRouteBinderValve.invoke(JvmRouteBin
    derValve.java:209)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
    a:212)
    at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
    :844)
    at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
    ss(Http11Protocol.java:634)
    at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
    5)
    at java.lang.Thread.run(Thread.java:619)
    ------------1234-----------
    java.lang.NullPointerException
    at com.iton.eoffice.DatabaseBean.getSQLRows(DatabaseBean.java:764)
    at org.apache.jsp.MhewProfilesearchMoEnq_jsp._jspService(MhewProfilesear
    chMoEnq_jsp.java:435)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
    .java:384)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:3
    20)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
    icationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
    ilterChain.java:206)
    at com.iton.eoffice.tree.CharacterEncodingFilter.doFilter(CharacterEncod
    ingFilter.java:63)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by sreenivas navuluri:
    Oracle(tm)Client and networking components not found. These components are supplied by Oracle Corporation and part of Oracle Version 7.2 or greater Client software installation. You will be unable to use this driver until these components have been installed . This error occurs while selecting the Microsoft Odbc for Oracle driver from the ODBC in control panel. Pls suggest<HR></BLOCKQUOTE>
    null

  • Hyperion Workspace error ,while using weblogic as application server.

    Hi Experts !
    I have Hyperion 9.3.0 environment and
    I m using web logic 8.1 and facing problem in starting workspace .
    configuration with weblogic is successful but still error while open workspace :
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Please help me..
    Thank you

    Hello,
    Were you able to find any solutions to this problem. We are experiencing the same issue now.
    Thanks
    Srikanth

  • Getting compilation error while using WCApplicationContext in Application

    hi,
    I am developing a custom login form for webcenter spaces for that I need to use "WCApplicationContext". But whenever I try to build the project, I am getting an error saying "cannot access oracle.webcenter.webcenterapp.context.WCApplicationContext". I have included the required "webcenter spaces client" library into the classpath but still the error remains the same. Need urgent help in this.
    Regards
    Ajay

    Hi,
    there is a WebCenter forum for WebCenter releated questions: WebCenter Portal
    Frank

  • Getting the error while using bapi 'BAPI_PROJECTDEF_UPDATE'.

    Hi,
    All
    To fulfill a requirement of project definition update in PS module, I have been trying with bapi 'BAPI_PROJECTDEF_UPDATE' , but I am getting the error like 'The external key is not compatible with the internal key'.
    Following are the details of my source code:
    CALL FUNCTION 'BAPI_PS_INITIALIZATION'
       data: ls_def_strucure LIKE BAPI_PROJECT_DEFINITION,
           ls_def_update LIKE BAPI_PROJECT_DEFINITION_UP,
           ls_error like bapireturn1.
    ls_def_strucure-PROJECT_DEFINITION = '11011'.
    ls_def_strucure-DESCRIPTION = 'Indian Metro Updated by BAPI'.
    ls_def_update-DESCRIPTION = 'X'.
    CALL FUNCTION 'BAPI_PROJECTDEF_UPDATE'
       EXPORTING
         currentexternalproje          = '11011'       " Project Definition
         currentinternalproje          = '11011'
         project_definition_stru       = ls_def_strucure
         project_definition_up         = ls_def_update
      IMPORTING
        RETURN                        = ls_error
    * TABLES
    *   E_MESSAGE_TABLE               =
    CALL FUNCTION 'BAPI_PS_PRECOMMIT'.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    I have tried with 'BAPI_PROJECT_MAINTAIN' ,but there I am not getting any idea to usage of this bapi.
    please help me if you have any solution for this problem.
    Thanks in advanced.

    Thanks for your quick reply
    Actually i have a requirement to update the Project definition and other Project elements like WBS, Network , Activities and Milestone. I referred several documents and came to know that 'BAPI_PROJECT_MAINTAIN' can perform these all update tasks. But tried with that bapi but got the error. First help me please if you have any idea about this BAPI .
    Coming to BAPI_PROJECTDEF_UPDATE I got the error like Internal and exrternal keys  are not type compatible with each other.
    So , do you have any idea what would be the exact value of these two parameters.

  • Getting an error while using BAPI for data upload using FB50

    Hi,
    Can someone please help with the error below :
    To Upload Data Using FB50 , am using 'BAPI_ACC_DOCUMENT_POST' FM
    and passing values as
    obj_type = REACI
    obj_KEY = '$'
    obj_sys = t000-logsys
    getting errors errors in return as
    'Error in document: REACI $ R3_AFRICA
    G/L account 2511510 is not defined in chart of accounts CSGP(though the account exists in the COA)
    Control indicators for controlling area EU01 do not exist'.(we have not input any indicators)
    Thanks

    Control indicators for controlling area (t-code OKKP ) is a primary configuration before the company is set to production. Here we maintain which sub areas of controlling are activated. Have a look at those settings.
    Check the validity of the accounts/cost element in the KA03 to ensure the cost element is valid on the date of transaction.
    What is the error message number?

  • Getting parsing error while using Deploy Manager

    Hello,
    I am trying to deploy our EAR file using deploymanager script. My EAR file is correctly packaged, I have also verified the java path and the xml and DTD structure. I am getting the following errors:
    /DeployManager deploy-manager-config.xml
    java.lang.NullPointerException
            at java.io.File.<init>(File.java:203)
            at com.sap.engine.deploy.manager.DeployConfigDocument.getAbsolutePath(DeployConfigDocument.java:990)
            at com.sap.engine.deploy.manager.DeployConfigDocument.getInfoFromElement(DeployConfigDocument.java:1871)
            at com.sap.engine.deploy.manager.DeployConfigDocument.initEarFile(DeployConfigDocument.java:398)
            at com.sap.engine.deploy.manager.DeployConfigDocument.initDeployableObject(DeployConfigDocument.java:1792)
            at com.sap.engine.deploy.manager.DeployConfigDocument.loadFieldsFromDocument(DeployConfigDocument.java:1496)
            at com.sap.engine.deploy.manager.DeployManagerImpl.parseXML(DeployManagerImpl.java:1866)
            at com.sap.engine.deploy.manager.DeployManagerImpl.<init>(DeployManagerImpl.java:169)
            at com.sap.engine.deploy.manager.DeployManagerImpl.main(DeployManagerImpl.java:3058)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    java.io.IOException: Cannot parse Deploy Manager XML file java.lang.NullPointerException
            at com.sap.engine.deploy.manager.DeployManagerImpl.parseXML(DeployManagerImpl.java:1947)
            at com.sap.engine.deploy.manager.DeployManagerImpl.<init>(DeployManagerImpl.java:169)
            at com.sap.engine.deploy.manager.DeployManagerImpl.main(DeployManagerImpl.java:3058)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    com.sap.engine.deploy.manager.DeployManagerException: Cannot parse Deploy Manager XML file java.io.IOException: Cannot parse Deploy Manager XML file java.lang.NullPointerException
            at com.sap.engine.deploy.manager.DeployManagerImpl.<init>(DeployManagerImpl.java:178)
            at com.sap.engine.deploy.manager.DeployManagerImpl.main(DeployManagerImpl.java:3058)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
            at java.lang.reflect.Method.invoke(Method.java:391)
            at com.sap.engine.offline.OfflineToolStart.main(OfflineToolStart.java:81)
    NOT Deployed ! :
    com.sap.engine.deploy.manager.DeployManagerException: Cannot parse Deploy Manager XML file java.io.IOException: Cannot parse Deploy Manager XML file java.lang.NullPointerException
    Can anyone please help?
    Thanks,
    Sumod

    The error is because the deploy-manager-config.xml  is  noy found in the classpath . please put the folder where  deploy-manager-config.xml  is placed in classpath .
    It would be helpful , if you use it using ant scripts.
    please have look at this pdf where it shows an example on how to deploy .also it very easy to do....
    link to PDF
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/1ca44e78-0801-0010-fa9d-a760d921b12f
    Hope this helps , please mark full points for helpful answers
    regards
    rajesh kr

  • Getting an error while using if statement in calculated column.can anyone please help me with this issue

    I am trying to learn HANA on my own.i have product id,product name,delivery date and Grossamount in my calculated view.i am trying to create calculated column where i need Grossamount in two columns based on delivery date.I have 2012 and 2013 as values for my delivery date.so i have created two column as grossamount_2012 and grossamount_2013.if i have delivery date as 4thdec,2012 i want the grossamount value to be in coloumn grossamount_2012 and the grossamount_2013 should be blank.i have written an expression like this
    if("Deliverydate" <= longdate(2012-12-04),"Grossamount","0")
    and it looks like this is wrong.i am getting the text Grossamount rather than values for that field in my output.so can anyone help me please?

    Hi chandra
    i am trying to get the same result by using sql script and CE functions.i have written the following code
    select A."PRODUCTID",
           E."TEXT" as "PRODUCTNAME",
           C."COUNTRY",
           D."DELIVERYDATE",
           Sum(D."GROSSAMOUNT") as "GROSSAMOUNT"
           from "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Products" as A     
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.BusinessPartner" as B
           on A."SUPPLIERID" = B."PARTNERID"      
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.MasterData.Addresses" as C
           on B."ADDRESSID" = C."ADDRESSID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Purchase.Item" as D
           on A."PRODUCTID" = D."PRODUCTID"
           inner join "SAP_HANA_DEMO"."sap.hana.democontent.epm.data::EPM.Util.Texts" as E
           on A."NAMEID" = E."TEXTID"
           GROUP BY A."PRODUCTID",E."TEXT",C."COUNTRY",D."DELIVERYDATE"; 
    this is working fine but i want to split the grossamount based on current year and last year.Any idea how to do this
    In calculation view using script can we use if and case statements?

  • Hi, i am getting an error while using the External Table.

    Hi,
    I am getting the below error. External table has been created successfully and when I read the data from the external table i get the below error. Can anyone give solution of this error.
    ORA-29913: error in executing ODCIEXTTABLEOPEN callout
    ORA-29400: data cartridge error
    KUP-04063: unable to open log file EXT_ZPP0A871_6738.log
    OS error Permission denied
    ORA-06512: at "SYS.ORACLE_LOADER", line 19
    Thanks,
    Himanshu

    KUP-04063: unable to open log file EXT_ZPP0A871_6738.log
    OS error Permission deniedThe error seems quite clear... what's you OS and Oracle version ?

  • Getting runtime error while using hash table

    Hi,
    I have defined an internal table as hash with unique key.But while executng the prog. its giving a dump saying "There is already a line with the same key." My code is
      data: begin of wa_rkrp,
             vbeln like vbrk-vbeln,
             fkdat like vbrk-fkdat,
             fkart like vbrk-fkart,
             kunag like vbrk-kunag,
             knumv like vbrk-knumv,
             inco1 like vbrk-inco1,
             spart like vbrk-spart,
             netwr like vbrk-netwr,
             mwsbk like vbrk-mwsbk,
             uepos like vbrp-uepos,
             werks like vbrp-werks,
             lgort like vbrp-lgort,
            end of wa_rkrp.
      data lt_rkrp like hashed table of wa_rkrp
               with unique key vbeln
               with header line.
      select vbrk~vbeln
             vbrk~fkdat
             vbrk~fkart
             vbrk~kunag
             vbrk~knumv
             vbrk~inco1
             vbrk~spart
             vbrk~netwr
             vbrk~mwsbk
             vbrp~uepos
             vbrp~werks
             vbrp~lgort
             into table lt_rkrp
             from vbrk inner join vbrp
              on  vbrpvbeln = vbrkvbeln
             where vbrk~fkdat in s_fkdat
               and vbrk~bukrs eq p_bukrs.
    Any problem in my select query? or with my table deifnition.
    Can anyone pls suggest how to rectify this.

    define a unique key VBELN and POSNR.
    data lt_rkrp like hashed table of wa_rkrp
    with unique key vbeln posnr
    with header line.
    BTW: Stop using the header line!!! Outdated!!
    Edited by: Micky Oestreich on Mar 23, 2009 7:28 AM

  • Weblogic.appc (weblogic 9.1) giving error while using with jdk 1.6

    hi,
    I am trying to build my ear using jdk1.6 with weblogic 9.1.
    I am getting this error while doing weblogic.appc using my ant scripts. Could some one pls let me know the solution for this problem.
    [java] Created working directory: c:\windows\TEMP\appcgen_gdoasis.jar
    [java] <02-Aug-2007 14:54:22 o'clock BST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile yo
    ur application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    [java] javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream.XMLInputFactory could not be
    instantiated: java.lang.InstantiationException
    [java] at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)
    [java] at weblogic.ejb.container.dd.xml.DDUtils.<clinit>(DDUtils.java:85)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1345)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:431)
    [java] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:292)
    [java] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:95)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:113)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:55)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:24)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:151)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:162)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Provider javax.xml.stream.XMLInputFactory could not be instantiated: java.lang.InstantiationExcept
    ion
    Thanks

    hi,
    I am trying to build my ear using jdk1.6 with weblogic 9.1.
    I am getting this error while doing weblogic.appc using my ant scripts. Could some one pls let me know the solution for this problem.
    [java] Created working directory: c:\windows\TEMP\appcgen_gdoasis.jar
    [java] <02-Aug-2007 14:54:22 o'clock BST> <Error> <J2EE> <BEA-160187> <weblogic.appc failed to compile yo
    ur application. Recompile with the -verbose option for more details. Please see the error message(s) below.>
    [java] javax.xml.stream.FactoryConfigurationError: Provider javax.xml.stream.XMLInputFactory could not be
    instantiated: java.lang.InstantiationException
    [java] at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:158)
    [java] at weblogic.ejb.container.dd.xml.DDUtils.<clinit>(DDUtils.java:85)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.parseDescriptors(EJBCompiler.java:1345)
    [java] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:431)
    [java] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:292)
    [java] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:95)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:113)
    [java] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:43)
    [java] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:55)
    [java] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
    [java] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:24)
    [java] at weblogic.application.compiler.Appc.runBody(Appc.java:151)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [java] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [java] at weblogic.application.compiler.Appc.main(Appc.java:162)
    [java] at weblogic.appc.main(appc.java:14)
    [java] Provider javax.xml.stream.XMLInputFactory could not be instantiated: java.lang.InstantiationExcept
    ion
    Thanks

  • Getting error while starting weblogic server in jdeveloper

    getting an error while starting weblogic server in jdeveloper
    IN LOG(its shows following):
    <Jul 25, 2013 7:19:15 PM IST> <Notice> <WebLogicServer> <BEA-000331> <Started WebLogic Admin Server "DefaultServer" for domain "DefaultDomain" running in Development Mode>
    <Jul 25, 2013 7:19:15 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING>
    <Jul 25, 2013 7:19:15 PM IST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode>
    User 'principals=[weblogic, Administrators]' has administration role. All tasks by adminstrators must go through an Administration Port.
    **** Authentication error while connecting to application server IntegratedWebLogicServer. Please check settings.
    **** Failed to complete start-up of application server IntegratedWebLogicServer.
    [Server Instance IntegratedWebLogicServer is shutting down.  All applications currently running will be terminated and undeployed.]
    [Forcing termination of IntegratedWebLogicServer]
    taskkill /F /PID 1620
    Process exited.
    PLs help me

    User, please tell us your jdev version!
    Somehow your credentials are corrupted. Two possible solution:
    1) open your system11.1.1.xxxx folder open the DefaultDomain\servers\DefaultServer\security folder and edit the boot.properties file. Remove the '(AES)...' part after username and password and write the new ones e.g. username=weblogic', password='Welcome1'. Save the file and try to start the integrated server again. Once the server starts the entries are encoded again.
    2) if 1) does not work, remove the whole DefaultDomain folder and create a new WLS instance inside jdev.
    Timo

  • Getting Error while using CallTarget class

    I am getting following error while using the CallTarget.
    "Exception in thread "main" java.lang.NullPointerException
    at org.apache.tools.ant.taskdefs.Ant.init(Ant.java:147)
    at org.apache.tools.ant.taskdefs.CallTarget.init(CallTarget.java:85)
    at org.apache.tools.ant.taskdefs.CallTarget.setTarget(CallTarget.java:150
    at AntCallTarget.main(AntCallTarget.java:7)"
    Can anyone please help me solve this problem.
    The code where i am getting this error is
              CallTarget antCall = new CallTarget();
              antCall.setTarget("Main");

    I am getting following error while using the CallTarget.
    "Exception in thread "main" java.lang.NullPointerException
    at org.apache.tools.ant.taskdefs.Ant.init(Ant.java:147)
    at org.apache.tools.ant.taskdefs.CallTarget.init(CallTarget.java:85)
    at org.apache.tools.ant.taskdefs.CallTarget.setTarget(CallTarget.java:150
    at AntCallTarget.main(AntCallTarget.java:7)"
    Can anyone please help me solve this problem.
    The code where i am getting this error is
              CallTarget antCall = new CallTarget();
              antCall.setTarget("Main");

  • Error while starting weblogic server

    Hi, I am getting following error while starting weblogic server
    Unexpected Signal : 11 occurred at PC=0x40170bc5 Function name=fill_in_stack_trace__19java_lang_ThrowableG6HandleP6Thread
    Library=/bea/jdk131/jre/lib/i386/client/libjvm.so
    Current Java thread: at java.lang.Throwable.fillInStackTrace(Native Method) at
    java.lang.Throwable.<init>(Throwable.java:78) at java.lang.Error.<init>(Error.java:37)
    at java.lang.LinkageError.<init>(LinkageError.java:29) at java.lang.IncompatibleClassChangeError.<init>(IncompatibleClassChangeError.java:29)
    at java.lang.AbstractMethodError.<init>(AbstractMethodError.java:30)
    Environment : Weblogic 6.0 Sp2 on Linux Red hat 7.1
    jdk 1.31
    TIA
    Ashwani

    Hi,
    1)Could you please try logging into sqlplus using using the below command :-
        sqlplus "/ as sysdba"
    2)Execute the below command to check if the password in expired :-
      select username, account_status, expiry_date, where username='MDS username';
    3)Change the password if the password has been expired by following the below command :-
       alter user <user> identified by <password>;
    4)Once the above steps are followed please login into the Weblogic Admin Console and follow the below steps:-
        + Go to DataSources ---> Select the MDS schema ----> change the password which was given in step no.3
        + Restart the Weblogic once again.
    5)Lets us know the result.
    Regards,
    Prakash.

Maybe you are looking for

  • Help need in Stacked bar vertical - No data found message

    I am using Stacked bar vertical with the 3 series. The problem is if any one of the series returns zero rows for the query it displays the No data found message for all the series and blank graph is there on screen with just x and y axi with the name

  • PO price picked from PR instead of contract

    Hi Gurus, I have a situation, where SRM shopping carts are creating PRs in R/3 and these PRs are converted to POs. In SRM, shopping carts are created with reference to a contract in backend and the POs created in backend are picking price from PRs, i

  • Arabic text not supported in PDF

    Hi I developed smartform which has some arabic text  and english text this form should be sent  mail PDF attached . form is going to mail properly. but when i opened form arabic text are coming in block  english text are coming properly please help m

  • Creating session objects

    Hi Does anyone know the correct way to create a session object? Below is the code I have created which passes three parameters from a jsp file in an attempt to create a session object. I am unsure as to whether it is correct or not! Any help will be

  • My dv6120us laptop boots, but the fan (which works in another computer) does not come on...

    I have a dv6120us laptop that I am having fan troubles with. I don't have an OS loaded but the CoA is for XP media center edition. The computer boots up and can access the bios if necessary, but the CPU cooling fan never kicks on. I have pulled it ou