NPE in appc

Hello.
I'm getting a NPE via appc. It occurs when my application includes a weblogic-application.xml
descriptor. It appears that despite the ejb element being optional, the EAR Validator
assumes there is one and is try to process the entity cache elements. Placing
an empty <ejb></ejb> element seems to work around the problem.
java.lang.NullPointerException
at weblogic.j2ee.validation.EARValidator.validate(EARValidator.java:63)
at weblogic.appc.compileEAR(appc.java:606)
at weblogic.appc.compileInput(appc.java:399)
at weblogic.appc.runBody(appc.java:161)
at weblogic.utils.compiler.Tool.run(Tool.java:144)
at weblogic.utils.compiler.Tool.run(Tool.java:101)
at weblogic.appc.main(appc.java:855)
BTW, the DOCTYPE declaration on
http://e-docs.bea.com/wls/docs81/programming/app_xml.html is incorrect. The xml
parser (via appc) doesn't like it. The 7.0 declaration seems fine.
Thanks,
Bob

Additionally on this if you are using the GA, can you attach a reproducible
ear?
thanks
mbg
"Mark Griffith" <[email protected]> wrote in message
news:[email protected]..
Are you using the beta? or WLS GA?
This is fixed (supposedly ;)) in GA.
mbg
"Bob Stevenson" <[email protected]> wrote in message
news:[email protected]..
Hello.
I'm getting a NPE via appc. It occurs when my application includes aweblogic-application.xml
descriptor. It appears that despite the ejb element being optional, theEAR Validator
assumes there is one and is try to process the entity cache elements.Placing
an empty <ejb></ejb> element seems to work around the problem.
java.lang.NullPointerException
atweblogic.j2ee.validation.EARValidator.validate(EARValidator.java:63)
at weblogic.appc.compileEAR(appc.java:606)
at weblogic.appc.compileInput(appc.java:399)
at weblogic.appc.runBody(appc.java:161)
at weblogic.utils.compiler.Tool.run(Tool.java:144)
at weblogic.utils.compiler.Tool.run(Tool.java:101)
at weblogic.appc.main(appc.java:855)
BTW, the DOCTYPE declaration on
http://e-docs.bea.com/wls/docs81/programming/app_xml.html is incorrect.
The xml
parser (via appc) doesn't like it. The 7.0 declaration seems fine.
Thanks,
Bob

Similar Messages

  • WLS 10.3 [weblogic.appc] - Unable to generate stub/skeleton for 1.5

    Hello,
    I want to deploy the application (EJB) in WLS 10.3 and client is using JDK 1.5.
    When we run the weblogic.appc on the .ear file, the stub and skeleton is created of 1.6 when we run the following command:-
    java weblogic.appc –source 1.5 –output temp_directory Myear-test.earHOwever when we specify the -source as 1.5 it has to create the stub and skeleton for JDK 1.5.
    When we check the version of the MyServiceBean_s_Impl.class file we could see its generating for 1.6, as also shown below:
    (to check the version, run the command “javap –verbose class_name”)
    SourceFile: "MyServiceBean_s_Impl.java"
    minor version: 0
    major version: 50
    I have tried the same thing on the simple EJB application(.jar), every thing works fine.
    Environment Details:-
    WLS 10.3
    JDK 1.6.0_05 (Server)
    JDK 1.5 (client)
    Please provide the provide the pointers.
    Edited by: As91 on Sep 11, 2009 12:05 AM

    we have the same problem with the OSB. The sbconsole was no longer working. I guess that is may be related to an open session during shutdown. Overnight the problem has gone away, and we could login to sbconsole again.
    BEA-423167
    An exception or error occurred in the backing file [com.bea.alsb.console.changemgmt.ChangeCenterBacking] while executing its preRender method. It was java.lang.IllegalStateException: Unable to get Configuration Session Manager java.lang.IllegalStateException: Unable to get Configuration Session Manager at com.bea.alsb.console.support.JMXHelper.sessionExists(JMXHelper.java:673) at com.bea.alsb.console.changemgmt.ChangeMgmtUIHelper.updateButtons(ChangeMgmtUIHelper.java:351) at com.bea.alsb.console.changemgmt.ChangeCenterBacking.preRender(ChangeCenterBacking.java:26) at com.bea.netuix.servlets.controls.Backable$Impl.preRender(Backable.java:191) at com.bea.netuix.servlets.controls.AdministeredBackableControl.preRender(AdministeredBackableControl.java:104) at com.bea.netuix.servlets.controls.window.Window.preRender(Window.java:432) at com.bea.netuix.servlets.controls.portlet.Portlet.preRender(Portlet.java:814) at com.bea.netuix.nf.ControlLifecycle$6.visit(ControlLifecycle.java:428) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:727) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739) at com.bea.netuix.nf.ControlTreeWalker.walkRecursivePreRender(ControlTreeWalker.java:739) at
    weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

  • Mixing static and dynamic content in a single outputText value causes NPEs

    Hi,
    I am having a problem and I'm wondering if it is a result of my error or if this is a bug.
    I am mixing dynamic and static content in the value attribute of tags (e.g., outputText). On initial page load, everything works fine. However, if the same view is reloaded (e.g., after a failed validation) I get an NPE from JSF:
    [#|2006-10-24T08:49:03.756-0500|SEVERE|sun-appserver-pe8.2|javax.enterprise.system.container.web|_ThreadID=12;|StandardWrapperValve[Faces Servlet]: Servlet.service() for servlet Faces Servlet threw exception
    java.lang.NullPointerException
            at com.sun.faces.el.MixedELValueParser.getNextToken(MixedELValueParser.java:140)
            at com.sun.faces.el.MixedELValueParser.parse(MixedELValueParser.java:123)
            at com.sun.faces.el.MixedELValueBinding.getValue(MixedELValueBinding.java:60)
            at javax.faces.component.UIOutput.getValue(UIOutput.java:147)
            at com.sun.faces.renderkit.html_basic.HtmlBasicInputRenderer.getValue(HtmlBasicInputRenderer.java:82)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.getCurrentValue(HtmlBasicRenderer.java:201)
            at com.sun.faces.renderkit.html_basic.LabelRenderer.encodeBegin(LabelRenderer.java:128)
            at javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:683)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:443)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:130)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:445)
            at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:233)
            at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:701)
            at javax.faces.webapp.UIComponentTag.encodeChildren(UIComponentTag.java:609)
            at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:546)
            at com.sun.faces.taglib.html_basic.PanelGridTag.doEndTag(PanelGridTag.java:460)
            at org.apache.jsp.registration_jsp._jspx_meth_h_panelGrid_0(registration_jsp.java:324)
            at org.apache.jsp.registration_jsp._jspx_meth_h_form_0(registration_jsp.java:223)
            at org.apache.jsp.registration_jsp._jspx_meth_f_view_0(registration_jsp.java:157)
            at org.apache.jsp.registration_jsp._jspService(registration_jsp.java:118)
            at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:105)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:336)
            at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:297)
            at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:247)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
            at sun.reflect.GeneratedMethodAccessor188.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
            at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
            at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
            at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
            at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
            at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:326)
            at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:132)
            at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
            at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
            at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
            at javax.faces.webapp.FacesServlet.service(FacesServlet.java:194)
            at sun.reflect.GeneratedMethodAccessor202.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
            at java.security.AccessController.doPrivileged(Native Method)
            at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
            at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
            at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
            at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
            at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
            at java.security.AccessController.doPrivileged(Native Method)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:132)
            at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
            at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
            at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:189)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.doProcess(ProcessorTask.java:604)
            at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:475)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:371)
            at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:264)
            at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:281)
            at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:83)My code looks like this:
    <h:outputText escape="false"
              value='<link href="#{myBean.styleSheet}" rel="stylesheet" type="text/css"  />' />If I replace this with a much more convoluted set of tags, it works:
    <h:outputText escape="false"
              value='<link href="' /><h:outputText escape="false" value="#{myBean.styleSheet}"
              /><h:outputText escape="false" value='" rel="stylesheet" type="text/css" />' />So is the problem that I am mixing dynamic and static content with a single value? If so, why does it work on the first view, and not after?
    If it matters, I'm using the reference implementation version 1.1 (as included with NetBeans 5.5RC2) on SuSE 10.0 w/ JDK 1.5_09.
    Thanks,
    Bill

    Yes, that's how I originally had it, but then changed it to the outputText approach since a single tag could do what I wanted, as long as I was allowed to mix static and dynamic content within a single value.
    I think this is a bug in JSF 1.1, since if what I am doing is illegal, it should throw an exception on the first page view, not work on first view and throw an exception on subsequent views. I'm guessing that this has something to do with the fact that on first page view it only runs the restore view and render response JSF phases, while on subsequent requests all of the phases will be run, and it's in one of those other phases that the exception is thrown.
    For now, multiple tags is the work-around, I guess.
    Thanks,
    Bill

  • NPE 10.1.3.1 - Can you solve it?

    I get an NPE in OC4J 10.1.3.1 that I did not get in OC4J 9.0.4.
    The easisest way to explain it that it seems that a ResultSet that is populated in a bean, via JSP javascript invocation, is "lost" once that same JSP attempts to access it for display.
    You will see by my debug statements that ResultSet is populated (in SQLDataSource.java) with 1902 rows. I have commented out debug statements that I previoulsy executed to access the ResultSetMetaData and that is all in tact. Further, I even debugged the getString in the that same code and found it to be in tact.
    First I'll give you the trace and then I'll provide the JSPs java file where the error is on line 66 as:
    out.print( detail.getString("ACCT") );
    All of this is followed by links to view all pertinent code:
    TRACE
    =====
    07/04/27 10:42:57 Oracle Containers for J2EE 10g (10.1.3.1.0) initialized
    07/04/27 10:43:10 [DEBUG]: Using old session!
    07/04/27 10:43:12 [DEBUG]: User is not Inactive.
    07/04/27 10:43:12 [DEBUG]: defaultTemplate in ServletAdapter is /myinetmrp/my.jsp
    07/04/27 10:43:17 [DEBUG]: ReportWriter.service()
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[null]: SQLDataSource(AcctList_Count)
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList_Count]: End FileDataSource. Setting this.queryFile
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[null]: SQLDataSource(AcctList)
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: End FileDataSource. Setting this.queryFile
    07/04/27 10:43:17 [DEBUG]: The method is defaultMethod
    07/04/27 10:43:17 [DEBUG]: ReportWriter.defaultMethod
    07/04/27 10:43:17 [DEBUG]: refresh(req, res)
    07/04/27 10:43:17 [DEBUG]: Setting first = 1, last = 20 and ServeletEventFetchSize = 20
    07/04/27 10:43:17 [DEBUG]: defaultTemplate in ServletAdapter is /apps/AcctList.jsp
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: execute()
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: Loading query from FileDataSource file C:\OC4J_10131\j2ee\home\applications\intemrp\intemrp\apps\AcctList.sql
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: command:
    select ACCT
    ,VDESC
    ,TYPE
    ,MISC_TAX_CODE
    from GL
    where ACCT <> ' '
    and 1=1
    order by ACCT
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: total Rows in resultSet = 1902
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: execute() in finally.
    07/04/27 10:43:17 com.sage.servlet.FileDataSource[AcctList]: getString string(ACCT)
    07/04/27 10:43:17 java.lang.NullPointerException
    07/04/27 10:43:17 at oracle.jdbc.driver.ScrollableResultSet.findColumn(ScrollableResultSet.java:1308)
    07/04/27 10:43:17 at oracle.jdbc.driver.OracleResultSet.getString(OracleResultSet.java:1572)
    07/04/27 10:43:17 at com.sage.servlet.SQLDataSource.getString(SQLDataSource.java:432)
    07/04/27 10:43:17 at apps.AcctList._jspService(_AcctList.java:66)
    07/04/27 10:43:17 at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:453)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:591)
    07/04/27 10:43:17 at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:515)
    07/04/27 10:43:17 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.unprivileged_include(ServletRequestDispatcher.java:160)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.access$000(ServletRequestDispatcher.java:50)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher$1.oc4jRun(ServletRequestDispatcher.java:97)
    07/04/27 10:43:17 at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.include(ServletRequestDispatcher.java:102)
    07/04/27 10:43:17 at com.sage.servlet.ServletAdaptor.includeJSP(ServletAdaptor.java:124)
    07/04/27 10:43:17 at com.sage.servlet.ServletAdaptor.includeDefaultJSP(ServletAdaptor.java:96)
    07/04/27 10:43:17 at com.sage.servlet.ReportWriter.service(ReportWriter.java:79)
    07/04/27 10:43:17 at inetmrp.servlet.HttpsReportWriter.service(HttpsReportWriter.java:91)
    07/04/27 10:43:17 at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
    07/04/27 10:43:17 at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
    07/04/27 10:43:17 at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
    07/04/27 10:43:17 at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    07/04/27 10:43:17 at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    07/04/27 10:43:17 at java.lang.Thread.run(Thread.java:595)
    Here is the _AcctList.java
    ===================
    package _apps;
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    public class _AcctList extends com.orionserver.http.OrionHttpJspPage {
    // ** Begin Declarations
    // ** End Declarations
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
    response.setContentType( "text/html;charset=iso-8859-1");
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, "/JspError.jsp", true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    int __jsp_tag_starteval;
    ServletContext application = pageContext.getServletContext();
    JspWriter out = pageContext.getOut();
    _AcctList page = this;
    ServletConfig config = pageContext.getServletConfig();
    com.evermind.server.http.JspCommonExtraWriter __ojsp_s_out = (com.evermind.server.http.JspCommonExtraWriter) out;
    try {
    __ojsp_s_out.write(__oracle_jsp_text[0]);
    __ojsp_s_out.write(__oracle_jsp_text[1]);
    com.inetmrp.beans.WebUserSession webUserSession;
    synchronized (session) {
    if ((webUserSession = (com.inetmrp.beans.WebUserSession) pageContext.getAttribute( "webUserSession", PageContext.SESSION_SCOPE)) == null) {
    webUserSession = (com.inetmrp.beans.WebUserSession) new com.inetmrp.beans.WebUserSession();
    pageContext.setAttribute( "webUserSession", webUserSession, PageContext.SESSION_SCOPE);
    __ojsp_s_out.write(__oracle_jsp_text[2]);
    com.sage.servlet.SQLDataSource detail = ((com.sage.servlet.SQLDataSource)request.getAttribute( "AcctList" ));
    // Utility variables:
    int firstRow = Integer.parseInt( (String)request.getAttribute( "firstRow" ) );
    int lastRow = Integer.parseInt( (String)request.getAttribute( "lastRow" ) );
    int fetchSize = Integer.parseInt( (String)request.getAttribute( "ServletEventFetchSize" ) );
    int fetchRow = 0;
    boolean isFirstPage = (firstRow==1?true:false);
    boolean isLastPage = false;
    __ojsp_s_out.write(__oracle_jsp_text[3]);
    while ( !(isLastPage = !detail.next()) && (detail.getRow() <= lastRow) ) {
    fetchRow = detail.getRow();
    __ojsp_s_out.write(__oracle_jsp_text[4]);
    out.print( detail.getString("ACCT") );
    __ojsp_s_out.write(__oracle_jsp_text[5]);
    out.print( detail.getString("ACCT"));
    __ojsp_s_out.write(__oracle_jsp_text[6]);
    out.print( detail.getString("ACCT") );
    __ojsp_s_out.write(__oracle_jsp_text[7]);
    out.print( detail.getString("ACCT"));
    __ojsp_s_out.write(__oracle_jsp_text[8]);
    out.print( detail.getString("VDESC") );
    __ojsp_s_out.write(__oracle_jsp_text[9]);
    __ojsp_s_out.write(__oracle_jsp_text[10]);
    out.print( request.getParameter( "SELECT1" ) );
    __ojsp_s_out.write(__oracle_jsp_text[11]);
    out.print( request.getParameter("COMPARE1") );
    __ojsp_s_out.write(__oracle_jsp_text[12]);
    out.print( request.getParameter("TEXT1") );
    __ojsp_s_out.write(__oracle_jsp_text[13]);
    out.print( request.getParameter( "SELECT2" ) );
    __ojsp_s_out.write(__oracle_jsp_text[14]);
    out.print( request.getParameter("COMPARE2") );
    __ojsp_s_out.write(__oracle_jsp_text[15]);
    out.print( request.getParameter("TEXT2") );
    __ojsp_s_out.write(__oracle_jsp_text[16]);
    out.print( fetchSize );
    __ojsp_s_out.write(__oracle_jsp_text[17]);
    out.print( fetchRow );
    __ojsp_s_out.write(__oracle_jsp_text[18]);
    if ( !isFirstPage ) {
    __ojsp_s_out.write(__oracle_jsp_text[19]);
    __ojsp_s_out.write(__oracle_jsp_text[20]);
    if ( !isLastPage ) {
    __ojsp_s_out.write(__oracle_jsp_text[21]);
    __ojsp_s_out.write(__oracle_jsp_text[22]);
    catch (Throwable e) {
    if (!(e instanceof javax.servlet.jsp.SkipPageException)){
    try {
    if (out != null) out.clear();
    catch (Exception clearException) {
    pageContext.handlePageException(e);
    finally {
    OracleJspRuntime.extraHandlePCFinally(pageContext, true);
    JspFactory.getDefaultFactory().releasePageContext(pageContext);
    private static final byte __oracle_jsp_text[][]=new byte[23][];
    static {
    try {
    __oracle_jsp_text[0] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[1] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[2] =
    "\r\n".getBytes("ISO8859_1");
    __oracle_jsp_text[3] = (etc....)
    catch (Throwable th) {
    System.err.println(th);
    And now the links to view all pertinent code:
    http://www.sagesoftwaresystems.com/inetmrp/AppsMenu.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctSearch.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.java
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.jsp
    http://www.sagesoftwaresystems.com/inetmrp/AcctList.sql
    http://www.sagesoftwaresystems.com/inetmrp/AcctList_Count.sql
    http://www.sagesoftwaresystems.com/inetmrp/FileDataSource.java
    http://www.sagesoftwaresystems.com/inetmrp/SQLDataSource.java
    http://www.sagesoftwaresystems.com/inetmrp/ReportWriter.java
    http://www.sagesoftwaresystems.com/inetmrp/HttpsReportWriter.java
    http://www.sagesoftwaresystems.com/inetmrp/HttpsServletAdapter.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdapter_inetmrp.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdapter_sage.java
    TIA for the answer to this seemingly unsolvable probelm,
    Ed.

    Sorry, mis-spelled the following file names.
    http://www.sagesoftwaresystems.com/inetmrp/HttpsServletAdaptor.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdaptor_inetmrp.java
    http://www.sagesoftwaresystems.com/inetmrp/ServletAdaptor_sage.java

  • Error while compiling EAR file through APPC

    weblogic.utils.compiler.ToolFailureException: weblogic.appc failed
    Warning: Reference wlappc.classpath 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.
    [wlappc] java.lang.NullPointerException
    [wlappc]      at weblogic.application.descriptor.ReaderEvent2$1.getPropertyIndex(ReaderEvent2.java:52)
    [wlappc]      at weblogic.application.descriptor.BasicMunger2._onStartElement(BasicMunger2.java:516)
    [wlappc]      at weblogic.application.descriptor.BasicMunger2.next(BasicMunger2.java:456)
    [wlappc]      at weblogic.application.descriptor.VersionMunger._next(VersionMunger.java:333)
    [wlappc]      at weblogic.application.descriptor.VersionMunger.next(VersionMunger.java:221)
    [wlappc]      at weblogic.application.descriptor.VersionMunger.consumeInputStream(VersionMunger.java:499)
    [wlappc]      at weblogic.application.descriptor.VersionMunger.init(VersionMunger.java:425)
    [wlappc]      at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:85)
    [wlappc]      at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:61)
    [wlappc]      at weblogic.application.descriptor.VersionMunger.<init>(VersionMunger.java:43)
    [wlappc]      at weblogic.application.internal.ApplicationReader.<init>(ApplicationReader.java:21)
    [wlappc]      at weblogic.application.ApplicationDescriptor$MyApplicationDescriptor.createXMLStreamReader(ApplicationDescriptor.java:487)
    [wlappc]      at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:402)
    [wlappc]      at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:759)
    [wlappc]      at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:768)
    [wlappc]      at weblogic.application.ApplicationDescriptor.getApplicationDescriptor(ApplicationDescriptor.java:301)
    [wlappc]      at weblogic.application.compiler.CompilerCtx.setApplicationDescriptor(CompilerCtx.java:139)
    [wlappc]      at weblogic.application.compiler.AppcUtils.setDDs(AppcUtils.java:141)
    [wlappc]      at weblogic.application.compiler.flow.DescriptorParsingFlow.compile(DescriptorParsingFlow.java:57)
    [wlappc]      at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [wlappc]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    [wlappc]      at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [wlappc]      at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [wlappc]      at weblogic.application.compiler.EARCompiler.compile(EARCompiler.java:49)
    [wlappc]      at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
    [wlappc]      at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
    [wlappc]      at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [wlappc]      at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
    [wlappc]      at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [wlappc]      at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [wlappc]      at weblogic.application.compiler.Appc.runBody(Appc.java:198)
    [wlappc]      at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [wlappc]      at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [wlappc]      at weblogic.application.compiler.Appc.main(Appc.java:257)
    [wlappc]      at weblogic.appc.main(appc.java:14)
    [wlappc]      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    [wlappc]      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    [wlappc]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wlappc]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wlappc]      at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain(CompilerTask.java:301)
    [wlappc]      at weblogic.ant.taskdefs.j2ee.Appc.privateExecute(Appc.java:261)
    [wlappc]      at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:164)
    [wlappc]      at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
    [wlappc]      at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
    [wlappc]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    [wlappc]      at java.lang.reflect.Method.invoke(Method.java:597)
    [wlappc]      at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
    [wlappc]      at org.apache.tools.ant.Task.perform(Task.java:348)
    [wlappc]      at org.apache.tools.ant.Target.execute(Target.java:357)
    [wlappc]      at org.apache.tools.ant.Target.performTasks(Target.java:385)
    [wlappc]      at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1337)
    [wlappc]      at org.apache.tools.ant.Project.executeTarget(Project.java:1306)
    [wlappc]      at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
    [wlappc]      at org.eclipse.ant.internal.launching.remote.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
    [wlappc]      at org.apache.tools.ant.Project.executeTargets(Project.java:1189)
    [wlappc]      at org.eclipse.ant.internal.launching.remote.InternalAntRunner.run(InternalAntRunner.java:423)
    [wlappc]      at org.eclipse.ant.internal.launching.remote.InternalAntRunner.main(InternalAntRunner.java:137)

    Now, when I deploy through NWDS, I get the following error.
    Result
    => deployment aborted : file:/C:/DOCUME1/231477/LOCALS1/Temp/temp51346sap.comwdtutorial~ex1.ear
    Aborted: development component 'wd/tutorial/ex1'/'sap.com'/'LOKAL'/'0.2008.10.15.21.04.16':Caught exception while checking the login credentials for SAP J2EE Engine. Check whether the SAP J2EE Engine is up and running.com.sap.engine.deploy.manager.DeployManagerException: ERROR: Cannot connect to Host: [sapretail] with user name: [J2EE_ADMIN]                     Check your login information.                     Exception is: com.sap.engine.services.jndi.persistent.exceptions.NamingException: Exception while trying to get InitialContext. [Root exception is com.sap.engine.services.security.exceptions.BaseLoginException: Cannot authenticate the user.] (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.checkLoginCredentials.DMEXC)
    Deployment exception : The deployment of at least one item aborted

  • 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>

  • No longer able to build ejb using appc (WLS 8.1)

    I'm in the process of re-writing some build files to make use of the new
    appc compiler, but I started to get a rather confusing error. Although
    the EJB builds (using ejbc) and deploys fine on WLS 7, when I try to
    build using appc I get a slew of messages such as "In EJB MyEJB, the
    bean class must implement directly or indirectly the
    javax.ejb.SessionBean interface" (which it does), or "In EJB MyEJB,
    method remove() defined in the local interface either does not exist in
    the bean class, or it is not a public method in the bean class". A
    portion of the error message is listed below. I'm sure it must be some
    kind of problem with my configuration...has anyone seen this before?
    Any suggestions?
    Thanks in advance,
    Tim
    weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
    encountered wh
    ile compiling module 'D:\workspace\TRIPS\deployment\build':
    In EJB VASKeyGeneratorEJB, the bean class must implement directly or
    indirectly
    the javax.ejb.SessionBean interface.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getEJBHome() defined in the local
    interface ei
    ther does not exist in the bean class, or it is not a public method.
    Each method
    in the local interface must have a corresponding public method in the
    bean clas
    s.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method getHandle() defined in the local
    interface eit
    her does not exist in the bean class, or it is not a public method. Each
    method
    in the local interface must have a corresponding public method in the
    bean class
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBObject)
    defined in th
    e local interface either does not exist in the bean class, or it is not
    a public
    method. Each method in the local interface must have a corresponding
    public met
    hod in the bean class.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBLocalObject)
    defined
    in the local interface either does not exist in the bean class, or it is
    not a p
    ublic method. Each method in the local interface must have a
    corresponding publi
    c method in the bean class.
    In EJB VASKeyGeneratorEJB, method getEJBLocalHome() defined in the local
    interfa
    ce either does not exist in the bean class, or it is not a public
    method. Each m
    ethod in the local interface must have a corresponding public method in
    the bean
    class.
    - with nested exception:
    In EJB VASKeyGeneratorEJB, the bean class must implement directly or
    indirectly
    the javax.ejb.SessionBean interface.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getEJBHome() defined in the local
    interface ei
    ther does not exist in the bean class, or it is not a public method.
    Each method
    in the local interface must have a corresponding public method in the
    bean clas
    s.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method getHandle() defined in the local
    interface eit
    her does not exist in the bean class, or it is not a public method. Each
    method
    in the local interface must have a corresponding public method in the
    bean class
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBObject)
    defined in th
    e local interface either does not exist in the bean class, or it is not
    a public
    method. Each method in the local interface must have a corresponding
    public met
    hod in the bean class.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBLocalObject)
    defined
    in the local interface either does not exist in the bean class, or it is
    not a p
    ublic method. Each method in the local interface must have a
    corresponding publi
    c method in the bean class.
    In EJB VASKeyGeneratorEJB, method getEJBLocalHome() defined in the local
    interfa
    ce either does not exist in the bean class, or it is not a public
    method. Each m
    ethod in the local interface must have a corresponding public method in
    the bean
    class.
    at weblogic.appc.compileEJB(appc.java:714)
    at weblogic.appc.compileInput(appc.java:446)
    at weblogic.appc.runBody(appc.java:167)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.appc.main(appc.java:961)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain
    (CompilerTask.java:
    275)
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:179)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute
    (CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute
    (CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute
    (CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets
    (Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    Total time: 11 seconds

    Hello Tim,
    Which version of WLS 8.1 are you using (beta or GA) ?
    Also, make sure that you don't have any jar files from WLS 7 still on your classpath,
    so that appc doesn't get confused. Also, how are you invoking appc?
    Best regards,
    Ryan LeCompte
    [email protected]
    http://www.louisiana.edu/~rml7669
    Tim Perrigo <[email protected]> wrote:
    I'm in the process of re-writing some build files to make use of the
    new
    appc compiler, but I started to get a rather confusing error. Although
    the EJB builds (using ejbc) and deploys fine on WLS 7, when I try to
    build using appc I get a slew of messages such as "In EJB MyEJB, the
    bean class must implement directly or indirectly the
    javax.ejb.SessionBean interface" (which it does), or "In EJB MyEJB,
    method remove() defined in the local interface either does not exist
    in
    the bean class, or it is not a public method in the bean class". A
    portion of the error message is listed below. I'm sure it must be some
    kind of problem with my configuration...has anyone seen this before?
    Any suggestions?
    Thanks in advance,
    Tim
    weblogic.utils.compiler.ToolFailureException: [J2EE:160121]Errors
    encountered wh
    ile compiling module 'D:\workspace\TRIPS\deployment\build':
    In EJB VASKeyGeneratorEJB, the bean class must implement directly or
    indirectly
    the javax.ejb.SessionBean interface.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getEJBHome() defined in the local
    interface ei
    ther does not exist in the bean class, or it is not a public method.
    Each method
    in the local interface must have a corresponding public method in the
    bean clas
    s.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method getHandle() defined in the local
    interface eit
    her does not exist in the bean class, or it is not a public method. Each
    method
    in the local interface must have a corresponding public method in the
    bean class
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBObject)
    defined in th
    e local interface either does not exist in the bean class, or it is not
    a public
    method. Each method in the local interface must have a corresponding
    public met
    hod in the bean class.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBLocalObject)
    defined
    in the local interface either does not exist in the bean class, or it
    is
    not a p
    ublic method. Each method in the local interface must have a
    corresponding publi
    c method in the bean class.
    In EJB VASKeyGeneratorEJB, method getEJBLocalHome() defined in the local
    interfa
    ce either does not exist in the bean class, or it is not a public
    method. Each m
    ethod in the local interface must have a corresponding public method
    in
    the bean
    class.
    - with nested exception:
    In EJB VASKeyGeneratorEJB, the bean class must implement directly or
    indirectly
    the javax.ejb.SessionBean interface.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getEJBHome() defined in the local
    interface ei
    ther does not exist in the bean class, or it is not a public method.
    Each method
    in the local interface must have a corresponding public method in the
    bean clas
    s.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method getHandle() defined in the local
    interface eit
    her does not exist in the bean class, or it is not a public method. Each
    method
    in the local interface must have a corresponding public method in the
    bean class
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBObject)
    defined in th
    e local interface either does not exist in the bean class, or it is not
    a public
    method. Each method in the local interface must have a corresponding
    public met
    hod in the bean class.
    In EJB VASKeyGeneratorEJB, method remove() defined in the local
    interface either
    does not exist in the bean class, or it is not a public method. Each
    method in
    the local interface must have a corresponding public method in the bean
    class.
    In EJB VASKeyGeneratorEJB, method getPrimaryKey() defined in the local
    interface
    either does not exist in the bean class, or it is not a public method.
    Each met
    hod in the local interface must have a corresponding public method in
    the bean c
    lass.
    In EJB VASKeyGeneratorEJB, method isIdentical(javax.ejb.EJBLocalObject)
    defined
    in the local interface either does not exist in the bean class, or it
    is
    not a p
    ublic method. Each method in the local interface must have a
    corresponding publi
    c method in the bean class.
    In EJB VASKeyGeneratorEJB, method getEJBLocalHome() defined in the local
    interfa
    ce either does not exist in the bean class, or it is not a public
    method. Each m
    ethod in the local interface must have a corresponding public method
    in
    the bean
    class.
    at weblogic.appc.compileEJB(appc.java:714)
    at weblogic.appc.compileInput(appc.java:446)
    at weblogic.appc.runBody(appc.java:167)
    at weblogic.utils.compiler.Tool.run(Tool.java:146)
    at weblogic.utils.compiler.Tool.run(Tool.java:103)
    at weblogic.appc.main(appc.java:961)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke
    (NativeMethodAccessorImpl.
    java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke
    (DelegatingMethodAcces
    sorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at weblogic.ant.taskdefs.j2ee.CompilerTask.invokeMain
    (CompilerTask.java:
    275)
    at weblogic.ant.taskdefs.j2ee.Appc.execute(Appc.java:179)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute
    (CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute
    (CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute
    (CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets
    (Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    Total time: 11 seconds

  • NPE in ADTOutputStream.addApplicationDescriptor() line 330 when migrating from AIR 2.6 to AIR 3.5

    I have a working maven pom which builds my AIR app using AIR 2.6 and I am trying to migrate it to use the new AIR 3.5 SDK.  According to the official release notes here : http://helpx.adobe.com/en/flash-player/release-note/fp_115_air_35_release_notes.html I need to firstly need to point to the new 3.5 schema in my air-app.xml file as follows: <application xmlns="http://ns.adobe.com/air/application/3.5"> 
    I also change my swfVersion and targetPlayer attributes as follows:
    <swfVersion>18</swfVersion>
    <targetPlayer>11.5</targetPlayer>
    I also changed the system Path environment variable on my machine to point the to the bin directory of the new AIR 3.5 sdk, so that when I type adl on the command line it reports back:
    Adobe (R) AIR (R) Developer Tool (ADT)
    Version 3.5.0.1060
    So when flexmojos launches ADL, it is launching the correct version.
    However I don't change my flex version which is set to <flex.version>4.5.1.21328</flex.version>, and my flexmojos version which is 4.2-beta.
    When I then try and build my project I get the following error:
    [ERROR] Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-plugin:4.2-beta:sign-air (default-sign-air) on pro
    ject indigo-air: Error invoking AIR api: NullPointerException -> [Help 1]
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.sonatype.flexmojos:flexmojos-maven-pl
    ugin:4.2-beta:sign-air (default-sign-air) on project indigo-air: Error invoking AIR api
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:84)
            at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBu ilder.java:59)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter .java:183)
            at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
            at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
            at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
            at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
            at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
            at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
            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 org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
            at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
            at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
            at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
    Caused by: org.apache.maven.plugin.MojoExecutionException: Error invoking AIR api
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:337)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody0(SignAirMojo.java:348)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody1$advice(SignAirMojo.java :24)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody2(SignAirMojo.java:348)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute_aroundBody3$advice(SignAirMojo.java :17)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.execute(SignAirMojo.java:1)
            at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.j ava:101)
            at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
            ... 19 more
    Caused by: java.lang.NullPointerException
            at com.adobe.air.ADTOutputStream.addApplicationDescriptor(ADTOutputStream.java:330)
            at com.adobe.air.AIROutputStream.addApplicationDescriptor(AIROutputStream.java:63)
            at com.adobe.air.ApplicationPackager.addSpecialFiles(ApplicationPackager.java:242)
            at com.adobe.air.AIRPackager.addSpecialFiles(AIRPackager.java:172)
            at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:63)
            at org.sonatype.flexmojos.plugin.air.packager.FlexmojosAIRPackager.createPackage(FlexmojosAI RPackager.java:42)
            at org.sonatype.flexmojos.plugin.air.SignAirMojo.doPackage(SignAirMojo.java:310)
            ... 26 more
    If I try adding explicitly adding the AIR dependencies as follows:
             <dependency>
                <groupId>${flex.groupId}.framework</groupId>
                <artifactId>airframework</artifactId>
                <version>${flex.version}</version>
                <type>pom</type>
            </dependency>
            <dependency>
                <groupId>${flex.groupId}.compiler</groupId>
                <artifactId>adt</artifactId>
                <version>${flex.version}</version>
                <scope>compile</scope>
            </dependency>
    this has no effect and I still get the NPE error.
    Here's the relevant fragment from my pom.xml which configures the flexmojos plugin to build the AIR app:
    <plugin>
         <groupId>${flexmojos.groupId}</groupId>
        <artifactId>flexmojos-maven-plugin</artifactId>
        <version>${flexmojos.version}</version>
        <extensions>true</extensions>
        <configuration>
         <testTimeout>100000</testTimeout>
         <fonts>
          <managers>
           <manager>flash.fonts.JREFontManager</manager>
           <manager>flash.fonts.AFEFontManager</manager>
           <manager>flash.fonts.CFFFontManager</manager>
          </managers>
         </fonts>
         <sourceFile>IndigoAir.mxml</sourceFile>
         <flexBuilderCompatibility>true</flexBuilderCompatibility>
         <keystore>${basedir}/src/sign.p12</keystore>
         <storepass>flexmojos</storepass>
         <descriptorTemplate>${basedir}/src/IndigoAir-app.xml</descriptorTemplate>
         <ignoreVersionIssues>false</ignoreVersionIssues>
         <coverage>true</coverage>
         <coverageProvider>cobertura</coverageProvider>
         <coverageReportFormat>
          <format>xml</format>
          <format>html</format>
         </coverageReportFormat>
         <useNetwork>true</useNetwork>
         <themes>
          <theme>${project.build.directory}/themes/spark.swc</theme>
         </themes>
         <includeTypes>swc,css</includeTypes>
         <overWriteIfNewer>true</overWriteIfNewer>
         <targetJdk>1.6</targetJdk>
         <timestampURL>none</timestampURL>
         <optimize>true</optimize>
         <framework>spark</framework>
         <dumpConfigAttach>true</dumpConfigAttach>
         <keepGeneratedActionscript>false</keepGeneratedActionscript>
         <keepAs3Metadatas append="true">
          <keepAs3Metadata>Mock</keepAs3Metadata>
          <keepAs3Metadata>BeforeClass</keepAs3Metadata>
          <keepAs3Metadata>AfterClass</keepAs3Metadata>
          <keepAs3Metadata>Before</keepAs3Metadata>
          <keepAs3Metadata>After</keepAs3Metadata>
          <keepAs3Metadata>Rule</keepAs3Metadata>
          <keepAs3Metadata>Suite</keepAs3Metadata>
          <keepAs3Metadata>RunWith</keepAs3Metadata>
          <keepAs3Metadata>Ignore</keepAs3Metadata>
          <keepAs3Metadata>Test</keepAs3Metadata>
          <keepAs3Metadata>DataPoint</keepAs3Metadata>
          <keepAs3Metadata>DataPoints</keepAs3Metadata>
          <keepAs3Metadata>Parameters</keepAs3Metadata>
          <keepAs3Metadata>Theory</keepAs3Metadata>
          <keepAs3Metadata>ArrayElementType</keepAs3Metadata>
          <keepAs3Metadata>Log</keepAs3Metadata>
          <keepAs3Metadata>Transient</keepAs3Metadata>
          <keepAs3Metadata>Inject</keepAs3Metadata>
          <keepAs3Metadata>EventHandler</keepAs3Metadata>
          <keepAs3Metadata>ManagedEvent</keepAs3Metadata>
          <keepAs3Metadata>Dispatcher</keepAs3Metadata>
          <keepAs3Metadata>PostConstruct</keepAs3Metadata>
          <keepAs3Metadata>Mediate</keepAs3Metadata>
          <keepAs3Metadata>Autowire</keepAs3Metadata>
          <keepAs3Metadata>PreDestroy</keepAs3Metadata>
          <keepAs3Metadata>ViewAdded</keepAs3Metadata>
          <keepAs3Metadata>ViewRemoved</keepAs3Metadata>
          <keepAs3Metadata>ViewNavigator</keepAs3Metadata>
         </keepAs3Metadatas>
        </configuration>
       </plugin>
    Can anyone tell me what I'm doing wrong?  What is happening at line 330 in ADTOutputStream.addApplicationDescriptor()? This code isn't open sourced so the error message is plain unhelpful! If I use the same AIR sdk but back out the changes for 3.5, then it builds fine with the 2.6 schema. Thanks in advance!

    Hi,
    I'm kind of replying to my own post here. I have been doing some further development with iOS on AIR 2.6 and I think that unfortunately the new GPU rendering IS actually just a lot slower than it was on the Packager for iPhone.
    I know that a lot of people say that Air 2.6 has made their app run 2x faster and a lot of people say the opposite - that moving to 2.6 has made it run 2x slower- I think the difference there is probably that if you had your code properly optimized for GPU under PFI (which took a lot of work) then you will notice a big slowdown.
    For example, under PFI, on the iPad at 1024x768 I could have at least 50 large moving sprites on the screen at once running at full 60fps - I dont think that Air 2.6 could even manage that at 30fps (I have taken to lowering my fps to 30 in Air 2.6).
    Saying that Air 2.6 does make it a lot easier to port, especially if you are just using bitmaps as dont really have to do anything (unless they scale/rotate), it's more likely to "just work". Also, PFI had a lot of little bugs in it, like certain blending modes only working half the time, and sometimes the framerate would just bomb if you used too much memory.
    So I guess bottom line is that Air 2.6 feels a lot more stable and is easier to use, however if you are just purely using the GPU it will be less than half the speed of the old PFI, which is a massive shame.
    However I could be missing something here?

  • Why doesn't the keepgenerated flag for weblogic.appc work?

    hello forum,
    i'm running wls 9.2.1.0 on windows xp. if i run the following command on a split development directory, everything gets built and packaged successfully:
        C:\development\tmp\ejb\src>java weblogic.appc -forceGeneration -keepgenerated -basicClientJar -compiler javac -verbose -classpath %classpath% C:\development\tmp\ejb\build\hooverBotEAR\ -output C:\development\tmp\ejb\dist\hooverbot.earthe problem is: even though i added the "-keepgenerated" option to the command, the source code for the generated components (stubs, impls, skeletons, etc.) is nowhere to be found!
    please, can anybody fill me in on what i need to do to make "-keepgenerated" do what its supposed to do - when running weblogic.appc from the command line?
    thanks in advance for your help.
    Edited by wboyd at 03/10/2008 10:08 AM
    Edited by wboyd at 03/10/2008 12:19 PM

    oops!
    i'd looked everywhere except inside the actual ear file. i eventually did look in the ear file - and there they were.
    live and learn ;-)

  • Getting a NPE when calling the getContent of a multipart message

    Hi,
    I get a NPE when I try to get the body of a multipart MIME message. The BODYSTRUCTURE returns the number of bytes of a bodypart before any decoding is done, the getContent then expects server to return that many bytes when it does something like "aa fetch 1 BODY[0]<0.16384>", when the server does not return anything a NPE is thrown. The exception is as follows
    java.lang.NullPointerException
         at com.sun.mail.iap.Response.parse(Response.java:64)
         at com.sun.mail.iap.Response.<init>(Response.java:32)
         at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:24)
         at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:99)
         at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:112)
         at com.sun.mail.iap.Protocol.command(Protocol.java:167)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:646)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:637)
         at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:474)
         at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:52)
         at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:80)
         at java.io.FilterInputStream.read(FilterInputStream.java:66)
         at java.io.PushbackInputStream.read(PushbackInputStream.java:120)
         at com.sun.mail.util.QPDecoderStream.read(QPDecoderStream.java:33)
         at com.sun.mail.util.QPDecoderStream.read(QPDecoderStream.java:86)
         at sun.nio.cs.StreamDecoder$CharsetSD.readBytes(StreamDecoder.java:404)
         at sun.nio.cs.StreamDecoder$CharsetSD.implRead(StreamDecoder.java:442)
         at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:179)
         at java.io.InputStreamReader.read(InputStreamReader.java:167)
         at com.sun.mail.handlers.text_plain.getContent(text_plain.java:63)
         at javax.activation.DataSourceDataContentHandler.getContent(DataHandler.java:755)
         at javax.activation.DataHandler.getContent(DataHandler.java:511)
         at javax.mail.internet.MimeBodyPart.getContent(MimeBodyPart.java:231)
    Did anybody see this exception ?
    Thanks
    Nina

    I get this error too when:
    Part part = message;      
    while(i < path.length && part != null) {
    MimeMultipart multipart = getMultipart(part);
    if (multipart == null)
         throw new IOException("not multipart.");
    part = findPart(multipart, path);     
    i++;     
    if (part == null)
    throw new IOException("not a part of message.");
    InputStream in = part.getInputStream();
    int b = 0;
    while((b = in.read()) != -1)
    out.write(b);
    at part.getInputStream() i get:
    java.lang.NullPointerException
    at com.sun.mail.iap.Response.parse(Response.java:99)
    at com.sun.mail.iap.Response.<init>(Response.java:68)
    at com.sun.mail.imap.protocol.IMAPResponse.<init>(IMAPResponse.java:31)
    at com.sun.mail.imap.protocol.IMAPResponse.readResponse(IMAPResponse.java:105)
    at com.sun.mail.imap.protocol.IMAPProtocol.readResponse(IMAPProtocol.java:153)
    at com.sun.mail.iap.Protocol.command(Protocol.java:215)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:882)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetch(IMAPProtocol.java:874)
    at com.sun.mail.imap.protocol.IMAPProtocol.fetchBody(IMAPProtocol.java:677)
    at com.sun.mail.imap.IMAPInputStream.fill(IMAPInputStream.java:74)
    at com.sun.mail.imap.IMAPInputStream.read(IMAPInputStream.java:131)
    at com.sun.mail.util.BASE64DecoderStream.decode(BASE64DecoderStream.java:156)
    at com.sun.mail.util.BASE64DecoderStream.read(BASE64DecoderStream.java:54)
    at se.illuminet.httpd.mail.MailXMLService.serviceXml(MailXMLService.java:354)
    Any resolution to this yet?
    It worked up until I changed to an SSL connection to IMAP.
    Could this affect at this level?
    Help appriciated.
    best
    Jonas

  • DefaultDesktopManager.activateFrame throws NPE on Mac OS X (Leopard)

    We have a Swing app deployed via JNLP. The JNLP file specifies JRE 1.5+.
    There is an error that occurs ONLY on Mac OSX desktops. When the user clicks in the open area of a frame, they get a NullPointerException. Stack looks like:
    javax.swing.DefaultDesktopManager.activateFrame(DefaultDesktopManager.java:233)
    apple.laf.CUIAquaInternalFramePane.mousePressed(CUIAquaInternalFramePane.java:203)
    java.awt.Component.processMouseEvent(Component.java:5599)
    javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
    java.awt.Component.processEvent(Component.java:5367)
    java.awt.Container.processEvent(Container.java:2010)
    java.awt.Component.dispatchEventImpl(Component.java:4068)
    java.awt.Container.dispatchEventImpl(Container.java:2068)
    java.awt.Component.dispatchEvent(Component.java:3903)
    java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
    java.awt.LightweightDispatcher.processMouseEvent(Container.java:3933)
    java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
    java.awt.Container.dispatchEventImpl(Container.java:2054)
    java.awt.Window.dispatchEventImpl(Window.java:1791)
    java.awt.Component.dispatchEvent(Component.java:3903)
    java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
    java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:269)
    java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:190)
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
    java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
    java.awt.EventDispatchThread.run(EventDispatchThread.java:110)I've been able to gather very little from the web on this, other than a recognition of the bug, with a partially-described solution that I don't understand.
    If anyone has seen this problem, or has any helpful information, it would be greatly appreciated.
    Pete

    If the exception is otherwise harmless, you could "mask" it by simply using a custom DesktopManager that usually simply delegates to the default one. Untested code:
    // Make your desktop pane use your new DesktopManager
    JDesktopPane dp = new JDesktopPane();
    DesktopManager newManager = new MyDesktopManager(dp.getDesktopManager());
    dp.setDesktopManager(newManager);
    class MyDesktopManager implements DesktopManager {
       private DesktopManager delegate;
       public MyDesktopManager(DesktopManager delegate) {
          this.delegate = delegate;
       public void activateFrame(JInternalFrame f) {
          try {
             delegate.activateFrame(f);
          } catch (NullPointerException npe) {
             // Swallow, log, or whatever you want
       // All other methods, simply delegate
    }

  • Weblogic.appc

    I am upgrading an (EJB2) application to run on version 10.3. - previously deployed on version 8.1
    When the code is recompiled with the updated libraries, weblogic.appc causes the an exception (see below for details)
    I am not sure if it is a configuration problem, or something to do with JSPs
    Any advice would be appreciated.
    [exec] java.io.IOException: JDT compilation error!
    [exec] at weblogic.ejb.container.ejbc.CompilerForJDT.compile(CompilerForJDT.java:66)
    [exec] at weblogic.ejb.container.ejbc.EJBCompiler.doCompile(EJBCompiler.java:358)
    [exec] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:556)
    [exec] at weblogic.ejb.container.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:491)
    [exec] at weblogic.application.compiler.AppcUtils.compileEJB(AppcUtils.java:315)
    [exec] at weblogic.application.compiler.EJBModule.compile(EJBModule.java:129)
    [exec] at weblogic.application.compiler.flow.SingleModuleCompileFlow.proecessModule(SingleModuleCompileFlow.java:18)
    [exec] at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:37)
    [exec] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [exec] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [exec] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [exec] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [exec] at weblogic.application.compiler.EJBCompiler.compile(EJBCompiler.java:29)
    [exec] at weblogic.application.compiler.flow.AppCompilerFlow.compileInput(AppCompilerFlow.java:112)
    [exec] at weblogic.application.compiler.flow.AppCompilerFlow.compile(AppCompilerFlow.java:37)
    [exec] at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
    [exec] at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)
    [exec] at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
    [exec] at weblogic.application.compiler.FlowDriver.run(FlowDriver.java:26)
    [exec] at weblogic.application.compiler.Appc.runBody(Appc.java:200)
    [exec] at weblogic.utils.compiler.Tool.run(Tool.java:158)
    [exec] at weblogic.utils.compiler.Tool.run(Tool.java:115)
    [exec] at weblogic.application.compiler.Appc.main(Appc.java:259)
    [exec] at weblogic.appc.main(appc.java:14)
    [exec] JDT compilation error!

    If you are working with the ANT wlappc target, you have to explicitly add the weblogic.jar to the classpath, like this:
              <wlappc          verbose="true"
                             source="../build-ear/xyz.jar"
                             classpath="${wls.home}/server/lib/weblogic.jar"/>
    I hade the same problem as you two and adding the classpath attribute solved it.

  • Weblogic.appc compiler for Weblogic 9 and higher version

    We had problem precompiling the jsp's using weblogic.jspc compiler after migrating the project from 8.1 to 9.2. From the edocs weblogic documentation we see that jspc compiler is deprecated from weblogic 9 onwards and they recommend using weblogic.appc for precompiling the jsp's.
    Please note if you are passing runtime expression values in the name attribute of the jsp param tag, you will have to explicitly enabke "<rtexprvalue-jsp-param-name>" to true in weblogic.xml deployment descriptor (format shown below).
    <weblogic-web-app>
    <jsp-descriptor>
    <rtexprvalue-jsp-param-name>true</rtexprvalue-jsp-param-name>
    </jsp-descriptor>
    </weblogic-web-app>
    Below is the edocs link which has JSP descriptors information for Weblogic 9,2
    http://e-docs.bea.com/wls/docs92/webapp/weblogic_xml.html#wp1038491
    - - Tarun

    The solution given in the below link worked for me .
    http://a-developer-life.blogspot.com/2010/11/injecting-into-ejb3-with-google-guice.html?showComment=1328674836129#c7251888680841418914

  • Essbase JAPI maxl session gives NPE with import statement

    Anybody know why I get a NPE from the Java API when trying to use the IEssMaxlSession to do an import? Here's my code snippet. I've verified the session work using the simpler maxl command commented out below. I also know the import syntax is OK at the maxl prompt. Essbase Error(0) isn't the most helpful diagnostic I've come across.
    Thanks
    IEssMaxlSession maxlSess = null;
    try {
         maxlSess = olapSvr.openMaxlSession("Maxl Test");
                   try {
                        String maxl;
    //                    maxl = "display database \"184_r\".rep";
                        maxl = "import database \"184_a\".agg dimensions connect as \"admin\" identified by \"password\" using server rules_file '/TmpltRFs/RFs/Plan.rul' on error write to \"errlog.log\"";
                        logger.debug(maxl);
         maxlSess.execute(maxl);
         printMessages(maxlSess.getMessages());
                   } catch (EssException e) {
                        printMessages(maxlSess.getMessages());
                        logger.debug(e.getMessage());
                        e.printStackTrace();
    } catch (EssException e){
         logger.debug(e.getMessage());
    14:47:40 DEBUG (essbase.RunMaxl 109): Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
    com.essbase.api.base.EssException: Cannot execute maxl statement. Essbase Error(0): java.lang.NullPointerException
         at com.essbase.server.framework.EssOrbPluginDirect.ex_olap(Unknown Source)
         at com.essbase.server.framework.EssOrbPluginDirect.executeMaxlStatement(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMaxlMethod(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod2(Unknown Source)
         at com.essbase.api.session.EssOrbPlugin._invokeMethod(Unknown Source)

    This is due to the unpublished Bug 12661416: MAXL STATEMENT IMPORT DB DIMENSIONS FROM RELATIONAL DATABASE FAILS WITH JAPI. This error is not fixed in next release.
    However, there is one workaround.
    "As a workaround we installed Essbase client 9.3.1 on the epm11 test box, copied native libraries from 9.3.1 admin server and connected to maxl shell from the v 9.3.1 maxljni interface. This seems to work fine."
    Edited by: Karthik_P on Apr 9, 2012 1:12 PM

  • NPE in stopWeblogic.cmd with Server Logging Bridge

    I'm migrating an EAR that depends on JDK logging to WLS 10.3.3. To activate the JDK logging in my domain logs I followed [url http://download.oracle.com/docs/cd/E14571_01/web.1111/e13739/logging_services.htm#WLLOG199]the instructions given in the WLS manual. The logging part works as expected now. However, my stopWeblogic.cmd fails with the following NPE:
    Stopping Weblogic Server...
    Initializing WebLogic Scripting Tool (WLST) ...
    Welcome to WebLogic Server Administration Scripting Shell
    Type help() for help on available commands
    Connecting to t3://DT04748:7001 with userid weblogic ...
    WLST detected that the RuntimeMBeanServer is not enabled. This
    might happen if the RuntimeMBeanServer is disabled via the JMXMBean.
    Please ensure that this MBeanServer is enabled. Online WLST cannot
    function without this MBeanServer.
    This Exception occurred at Thu Jan 06 13:20:24 CET 2011.
    java.lang.NullPointerException
            at weblogic.logging.ServerLoggingHandler.publish(ServerLoggingHandler.java:24)
            at java.util.logging.Logger.log(Logger.java:481)
            at java.util.logging.Logger.doLog(Logger.java:503)
            at java.util.logging.Logger.logp(Logger.java:619)
            at com.sun.jmx.remote.util.ClassLogger.finer(ClassLogger.java:130)
            at com.sun.jmx.remote.util.ClassLogger.trace(ClassLogger.java:88)
            at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:333)
            at weblogic.management.remote.common.WLSRMIConnector.doConnect(WLSRMIConnector.java:150)
            at weblogic.management.remote.common.WLSRMIConnector.access$100(WLSRMIConnector.java:27)
            at weblogic.management.remote.common.WLSRMIConnector$2.run(WLSRMIConnector.java:138)
            at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
            at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:147)
            at weblogic.security.Security.runAs(Security.java:61)
            at weblogic.management.remote.common.WLSRMIConnector.connect(WLSRMIConnector.java:136)
            at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)
            at weblogic.management.scripting.WLSTHelper.lookupMBeanServerConnection(WLSTHelper.java:678)
            at weblogic.management.scripting.WLSTHelper.initRuntimeServerConnection(WLSTHelper.java:398)
            at weblogic.management.scripting.WLSTHelper.initConnections(WLSTHelper.java:315)
            at weblogic.management.scripting.WLSTHelper.connect(WLSTHelper.java:203)
            at weblogic.management.scripting.WLScriptContext.connect(WLScriptContext.java:61)
            at weblogic.management.scripting.utils.WLSTUtil.initializeOnlineWLST(WLSTUtil.java:147)
            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 org.python.core.PyReflectedFunction.__call__(Unknown Source)
            at org.python.core.PyMethod.__call__(Unknown Source)
            at org.python.core.PyObject.__call__(Unknown Source)
            at org.python.core.PyObject.invoke(Unknown Source)
            at org.python.pycode._pyx4.connect$1(<iostream>:16)
            at org.python.pycode._pyx4.call_function(<iostream>)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyFunction.__call__(Unknown Source)
            at org.python.pycode._pyx15.f$0(D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py:6)
            at org.python.pycode._pyx15.call_function(D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py)
            at org.python.core.PyTableCode.call(Unknown Source)
            at org.python.core.PyCode.call(Unknown Source)
            at org.python.core.Py.runCode(Unknown Source)
            at org.python.util.PythonInterpreter.execfile(Unknown Source)
            at weblogic.management.scripting.WLST.main(WLST.java:131)
            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.WLST.main(WLST.java:29)
    Problem invoking WLST - Traceback (innermost last):
      File "D:\Oracle\Middleware\user_projects\domains\FLUX\shutdown.py", line 6, in ?
      File "<iostream>", line 22, in connect
      File "<iostream>", line 646, in raiseWLSTException
    WLSTException: Error occured while performing connect : "Cannot connect to WLST."
    Use dumpStack() to view the full stacktrace
    Done
    Stopping Derby Server...
    Steps to reproduce
    1. Create a logging.properties file with the following contents:
    # Specify the handlers to create in the root logger
    handlers = weblogic.logging.ServerLoggingHandler
    # Register handlers for my.app and their child loggers
    my.app.handlers = java.util.logging.ConsoleHandler, weblogic.logging.ServerLoggingHandler
    # Do not send the my.app log messages to the root handler
    my.app.useParentHandlers = false
    # Set the default logging level for the root logger
    .level = ALL
    # Set the default logging level for new ConsoleHandler instances
    java.util.logging.ConsoleHandler.level = INFO
    # Set the default logging level for new FileHandler instances
    weblogic.logging.ServerLoggingHandler.level = ALL2. Add the following directive in the setDomainEnv.cmd:
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Djava.util.logging.config.file=path/to/logging.properties3. Start-stop the domain and the above NPE occurs while WLS keeps running. Remove the directive from step 2 and the start-stop sequence goes back to normal.
    Environment
    Oracle JDK:
    java version "1.6.0_23"
    Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
    Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing)OS: Windows XP Pro SP3
    Your help would be very much appreciated! Please let me know if you need any additional info.
    Thanks,
    Bas

    Hi Sandeep,
    Thanks a lot for your quick reply! You were right, the logging directive was used both client and server side. I moved
    -Djava.util.logging.config.file=path/to/logging.propertiesfrom setDomainEnv.cmd to startWeblogic.cmd and WLS can be stopped correctly now.
    Regards,
    Bas

Maybe you are looking for

  • Creation of  'Transport Request' for an lsmw program.

    Hi all,     I have created an LSMW program, and created a 'Transport Request'(throuh the option : Extras -> Generate Change Request). But, the Transport Request did not create any Subtask for the 'LSMW program'; Instead The TR has created a listing o

  • Alv output splitting into two rows when converting into excel sheet.

    Hi frends, I have alv report with 60 fields . The report output is coming currently .  But when i am exporting into excel sheet from the option local file--> speadsheet  each row is splitting into two rows including header in excel sheet. Please prov

  • How to use search help in abap dynpro

    i have created a search help in dictionary and used it in my database table. now i want to use it in web dynpro component. while running my application when im clicking on input help field, it is giving an error -"The Entered Values is not on the lis

  • HP psc 1350 all in one not scanning

    I have installed all updates from hp and mac. running osx 10.56. receiving error message during scan. The appliciation hp scan pro quit unexpectedly mac osx and other applications are not affected. I have searched discussions for answer. No answers o

  • Sending  Payslip as PDF

    Dear all, I developed the Report program which will send  payslip as PDF attachement to all employees.i am able to receive the mail along with Payslip as PDF Format. but i am unable to open  the PDF format.its showing  error message as "Adobe reader