Should correct run this filter sample?

Hi all,
i trying to use a filter on an IBM WAS 6.1.0.2 but the result is not what i expect because i think the application server doesn't work correctly. I show the sample and i hope someone can tell me if this sample should run how i expect:
i have a filter so configured in web.xml:
   <filter>
        <filter-name>extensions</filter-name>
        <filter-class>test</filter-class>
    </filter>
   <filter-mapping>
         <filter-name>extensionsFilter</filter-name>
         <url-pattern>*.js</url-pattern>
   </filter-mapping>The filter serves all javascript files sending a javascript like this:
function test() {
    alert('THIS IS A TEST');
}I have this page indexNOK.jsp:
<html>
<head>
<script language="JavaScript" src="not-found.js"></script>
</head>
<body>
     <BUTTON onclick="test();"></BUTTON>
</body>not-found.js does not exists because i want is served by my filter.
The expected result is a page with a button and when i press the button i expect the alert "'THIS IS A TEST'".
This test DOES WORK on WAS 6.0.
WHAT DO YOU THINK?
Regards
Mario

I'm sorry, the "Spell Check" function corrected the code. In web.xml i have:
   <filter>
        <filter-name>extensionsFilter</filter-name>
        <filter-class>test.MyFilter</filter-class>
    </filter>
    <filter-mapping>
         <filter-name>extensionsFilter</filter-name>
         <url-pattern>*.js</url-pattern>
   </filter-mapping>The result is a javascript error because non javascript was served.
Regards
Mario

Similar Messages

  • Help me to run this filter...please

    Hi guys,
    i'm a problem and i don't find a solution from 10 days....please help me.
    I have to give access security to my jsf application because each page shows private information. I have a login page and a visit bean that store the session's information,like current user and current locale.
    I've developed a filter that when a page is loaded try to retrieve user from Visit Object,if it's not found go to login page.
    What's my problem?
    When i try to open from my browser a page different from Login my application shows me the page,without addressing me to Login Page.
    When i go to
    http://localhost:8080/MicroArray/pages/protected/Menu.jsf
    i see the page Menu while i want LOGIN!
    Can you help me?
    I post you the important code.
    This is the important code of mu AuthenticationBean
    User newUser=new User(loginName,password,teamName,tipo);
    Visit visit = new Visit();
    visit.setUser(newUser);
    visit.setAuthenticationBean(this);
    setVisit(visit);
    FacesContext facesContext = getFacesContext();
    getApplication().createValueBinding("#{sessionScope.visit}").setValue(facesContext, visit);this is my Visit Object
    package giu;
    import javax.faces.context.FacesContext;
    import java.util.Locale;
    import javax.faces.model.SelectItem;
    import javax.faces.application.Application;
    import java.util.*;
    import java.io.Serializable;
    public class Visit implements Serializable
    private static final long serialVersionUID = 1L;
    private User user;
    private AuthenticationBean authenticationBean;
    public Visit()
    public User getUser()
    return user;
    public void setUser(User user)
    this.user = user;
    public AuthenticationBean getAuthenticationBean()
    return authenticationBean;
    public void setAuthenticationBean(AuthenticationBean authenticationBean)
    this.authenticationBean = authenticationBean;
    }and this is my filter
    package giu;
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class AuthorizationFilter implements Filter
    FilterConfig config = null;
    ServletContext servletContext = null;
    public AuthorizationFilter()
    public void init(FilterConfig filterConfig) throws ServletException
    config = filterConfig;
    servletContext = config.getServletContext();
    public void doFilter(ServletRequest request, ServletResponse response,
                        FilterChain chain) throws IOException, ServletException
    Utils.log(servletContext, "Inside the filter");
    HttpServletRequest httpRequest = (HttpServletRequest)request;
    HttpServletResponse httpResponse = (HttpServletResponse)response;
    HttpSession session = httpRequest.getSession();
    String requestPath = httpRequest.getPathInfo();
    Visit visit = (Visit)session.getAttribute("visit");
    if (visit == null)
       session.setAttribute("originalTreeId", httpRequest.getPathInfo());
       Utils.log(servletContext, "redirecting to " + httpRequest.getContextPath() +
                 "/faces/index.jsp");
       httpResponse.sendRedirect(httpRequest.getContextPath() +
                 "/faces/index.jsp");
    else
       session.removeAttribute("originalTreeId");
       String role = visit.getUser().getRole();
       if ((role.equals("utente") &&  requestPath.indexOf("protected") > 0))
         String text = Utils.getDisplayString("ptrackResources",
                                              "PathNotFound",
                                              new Object[] { requestPath },
                                              request.getLocale());
         httpResponse.sendError(HttpServletResponse.SC_NOT_FOUND,
                                text);
       else*/
         chain.doFilter(request, response);
    Utils.log(servletContext, "Exiting the filter");
    public void destroy()
    }index.jsp addresses to /pages/protected/Login.jsf...
    with its declaration in web.xml
    <filter>
    <filter-name>AuthorizationFilter</filter-name>
    <filter-class>giu.AuthorizationFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>AuthorizationFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>AuthorizationFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>Please help me.....

    Hi guys,
    i'm a problem and i don't find a solution from 10 days....please help me.
    I have to give access security to my jsf application because each page shows private information. I have a login page and a visit bean that store the session's information,like current user and current locale.
    I've developed a filter that when a page is loaded try to retrieve user from Visit Object,if it's not found go to login page.
    What's my problem?
    When i try to open from my browser a page different from Login my application shows me the page,without addressing me to Login Page.
    When i go to
    http://localhost:8080/MicroArray/pages/protected/Menu.jsf
    i see the page Menu while i want LOGIN!
    Can you help me?
    I post you the important code.
    This is the important code of mu AuthenticationBean
    User newUser=new User(loginName,password,teamName,tipo);
    Visit visit = new Visit();
    visit.setUser(newUser);
    visit.setAuthenticationBean(this);
    setVisit(visit);
    FacesContext facesContext = getFacesContext();
    getApplication().createValueBinding("#{sessionScope.visit}").setValue(facesContext, visit);this is my Visit Object
    package giu;
    import javax.faces.context.FacesContext;
    import java.util.Locale;
    import javax.faces.model.SelectItem;
    import javax.faces.application.Application;
    import java.util.*;
    import java.io.Serializable;
    public class Visit implements Serializable
    private static final long serialVersionUID = 1L;
    private User user;
    private AuthenticationBean authenticationBean;
    public Visit()
    public User getUser()
    return user;
    public void setUser(User user)
    this.user = user;
    public AuthenticationBean getAuthenticationBean()
    return authenticationBean;
    public void setAuthenticationBean(AuthenticationBean authenticationBean)
    this.authenticationBean = authenticationBean;
    }and this is my filter
    package giu;
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class AuthorizationFilter implements Filter
    FilterConfig config = null;
    ServletContext servletContext = null;
    public AuthorizationFilter()
    public void init(FilterConfig filterConfig) throws ServletException
    config = filterConfig;
    servletContext = config.getServletContext();
    public void doFilter(ServletRequest request, ServletResponse response,
                        FilterChain chain) throws IOException, ServletException
    Utils.log(servletContext, "Inside the filter");
    HttpServletRequest httpRequest = (HttpServletRequest)request;
    HttpServletResponse httpResponse = (HttpServletResponse)response;
    HttpSession session = httpRequest.getSession();
    String requestPath = httpRequest.getPathInfo();
    Visit visit = (Visit)session.getAttribute("visit");
    if (visit == null)
       session.setAttribute("originalTreeId", httpRequest.getPathInfo());
       Utils.log(servletContext, "redirecting to " + httpRequest.getContextPath() +
                 "/faces/index.jsp");
       httpResponse.sendRedirect(httpRequest.getContextPath() +
                 "/faces/index.jsp");
    else
       session.removeAttribute("originalTreeId");
       String role = visit.getUser().getRole();
       if ((role.equals("utente") &&  requestPath.indexOf("protected") > 0))
         String text = Utils.getDisplayString("ptrackResources",
                                              "PathNotFound",
                                              new Object[] { requestPath },
                                              request.getLocale());
         httpResponse.sendError(HttpServletResponse.SC_NOT_FOUND,
                                text);
       else*/
         chain.doFilter(request, response);
    Utils.log(servletContext, "Exiting the filter");
    public void destroy()
    }index.jsp addresses to /pages/protected/Login.jsf...
    with its declaration in web.xml
    <filter>
    <filter-name>AuthorizationFilter</filter-name>
    <filter-class>giu.AuthorizationFilter</filter-class>
    </filter>
    <filter-mapping>
    <filter-name>AuthorizationFilter</filter-name>
    <url-pattern>/faces/*</url-pattern>
    </filter-mapping>
    <filter-mapping>
    <filter-name>AuthorizationFilter</filter-name>
    <url-pattern>*.jsf</url-pattern>
    </filter-mapping>Please help me.....

  • Where should I run Notification Mailer Service???

    Hi Friends,
    I have to configure a notificatio mailer for Oracle Workflow. I know that I have to configure Notificatio Mailer Service for it, and need to execute a wfmlf.exe. But can anyone tell me where should I run this file, ie. in Workflow database server or in the machine where I have installed Mail Server?
    I have a Mail Server (ie. MS Exchange Server) and a Workflow Database Server installed in my network.
    Thanks in advance..
    Best Regards,
    Ratheesh

    Hi,
    It can run in any machine.
    Check this post:
    Re: Notification Mailer - HELP
    Regards,
    Luiz Soares

  • Where should rsclichk run? (Client export)

    Hello experts,
    I want to run report RSCLICHK to compare tables before performing a client export.
    Where should I run this report? Target or source client?
    Thanks in advance...

    You should run it on the target system provided there and RFC to the source system.
    Regards
    Juan

  • Unable to run XPSDrv Driver and Filter Sample

    Hello
    I'm facing to a problem with XPSDrv Driver and Filter Sample on my Windows 7 x64 machine
    I installed Visual Studio Ultimate 2013
    I installed WDK 8.1
    I installed WDK 8.1 Test Pack
    I installed everything from this
    site and I think that's all what I need for building the sample.
    Next I downloaded XPSDrv Driver and Filter Sample from
    http://code.msdn.microsoft.com/windowshardware/XPSDrv-Driver-and-Filter-980d24bc (btw. there is a step-by-step tutorial how to build the sample)
    1. Open the solution file in Visual Studio 2013 (I opened solution C++\XPSDrvSmpl.sln)
    2. Add all non-binary files (usually located in the \install directory of the sample) to the Package project
         a. In the Solution Explorer, right click
    Driver Files (HERE IS THE PROBLEM, WHAT IS DRIVER FILES ??? SEE PICTURE BELOW)
         b. Select Add, then click Existing Item
         c. Navigate to the location to which you downloaded the sample, and select all the files in the install directory, or the equivalent set of non-binary files such as INFs, INIs, GPD, PPD files, etc.
         d. Click Add
    Look at the picture how does my solution look like:
    Can anybody tell me what I'm doing wrong?
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    So after I add the InstallPackage, I added all the files in the install folder to the driver files. Than I added all the files of the install folder to the package files in the properties of the driver package. I also added all the dlls of the sample to
    the package files. Then I edited the inf file:
    Change DriverVer to a new date,because the old one is not working.
    And this under the driverver:
    CatalogFile=xdsmpl.cat
    Add this to each Microsoft.xx sections: {GUID}
    Should look like this:
    [Microsoft.NTx86]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTia64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    Change the location of the dlls under SourceDisksFiles to 1 or leave it to 2 if you have subfolders for architecures.
    So my inf looks like that:
    ; Copyright (c) 2005 Microsoft Corporation
    ; All rights reserved.
    ; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
    ; ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
    ; THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
    ; PARTICULAR PURPOSE.
    ; File Name:
    ; xdsmpl.inf
    ; Abstract:
    ; XPSDrv sample driver install file
    [Version]
    Signature="$Windows NT$"
    Provider=%MS%
    ClassGUID={4D36E979-E325-11CE-BFC1-08002BE10318}
    Class=Printer
    DriverVer=09/19/2013,6.0.1.0
    CatalogFile=xdsmpl.cat
    [Manufacturer]
    %Microsoft%=Microsoft,NTx86,NTia64,NTamd64,NTx86.6.0,NTia64.6.0,NTamd64.6.0
    [Microsoft.NTx86]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTia64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTamd64]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_PRE_VISTA,{GUID}
    [Microsoft.NTx86.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    [Microsoft.NTia64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    [Microsoft.NTamd64.6.0]
    "XPSDrv Sample Driver" = INSTALL_XDSMPL_FILTERS_VISTA,{GUID}
    [INSTALL_XDSMPL_FILTERS_PRE_VISTA]
    CopyFiles=XPSDrvSample,ConfigPlugin,COLORPROFILES
    DriverFile=mxdwdrv.dll
    PrintProcessor="MS_XPS,filterpipelineprintproc.dll"
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=XDSmpl.GPD
    Include=NTPRINT.INF, MSXPSDRV.INF
    Needs=UNIDRV.OEM, XPSGPD.OEM, XPSDRV.OEM
    [INSTALL_XDSMPL_FILTERS_VISTA]
    CopyFiles=XPSDrvSample,ConfigPlugin,COLORPROFILES
    DriverFile=mxdwdrv.dll
    ConfigFile=UniDrvUI.dll
    HelpFile=UniDrv.HLP
    DataFile=XDSmpl.GPD
    ICMProfiles=xdwscRGB.icc
    CoreDriverSections="{D20EA372-DD35-4950-9ED8-A6335AFE79F0},UNIDRV.OEM", "{D20EA372-DD35-4950-9ED8-A6335AFE79F5},XPSDRV.OEM,XPSGPD.OEM"
    [PrinterPackageInstallation.x86]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0}, {D20EA372-DD35-4950-9ED8-A6335AFE79F5}
    [PrinterPackageInstallation.amd64]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0}, {D20EA372-DD35-4950-9ED8-A6335AFE79F5}
    [PrinterPackageInstallation.ia64]
    PackageAware=TRUE
    CoreDriverDependencies={D20EA372-DD35-4950-9ED8-A6335AFE79F0}, {D20EA372-DD35-4950-9ED8-A6335AFE79F5}
    [DestinationDirs]
    DefaultDestDir=66000
    COLORPROFILES=66003
    [COLORPROFILES]
    xdwscRGB.icc
    xdCMYKPrinter.icc
    [ConfigPlugin]
    XDSmpl.ini
    XDSmplUI.dll
    [XPSDrvSample]
    xdsmpl.gpd
    xdnames.gpd
    xdwmark.gpd
    xdbook.gpd
    xdcolman.gpd
    xdnup.gpd
    xdpgscl.gpd
    xdwmark.dll
    xdcolman.dll
    xdbook.dll
    xdnup.dll
    xdscale.dll
    xdsmpl-pipelineconfig.xml
    [SourceDisksNames.x86]
    1 = %Location%,,
    2 = %Location%,,,x86
    [SourceDisksNames.ia64]
    1 = %Location%,,
    2 = %Location%,,,ia64
    [SourceDisksNames.amd64]
    1 = %Location%,,
    2 = %Location%,,,amd64
    [SourceDisksFiles]
    xdsmpl.gpd = 1
    xdnames.gpd = 1
    xdwmark.gpd = 1
    xdbook.gpd = 1
    xdcolman.gpd = 1
    xdnup.gpd = 1
    xdpgscl.gpd = 1
    xdsmpl-pipelineconfig.xml = 1
    xdsmpl.ini = 1
    xdwscRGB.icc = 1
    xdCMYKPrinter.icc = 1
    xdwmark.dll = 1
    xdcolman.dll = 1
    xdbook.dll = 1
    xdnup.dll = 1
    xdsmplui.dll = 1
    xdscale.dll = 1
    [Strings]
    Location="XPSDrv Sample Driver Location"
    MS="Microsoft"
    Microsoft="Microsoft"

  • I am trying to run this sample on my machine

    I am trying to run this sample on my machine as per the instructions to
    install the sample in WLISampleUserGuide.pdf. When I go to the step 6 of the
    installation, I get the following error in the Weblogic Server Console.
    <Sep 17, 2001 10:47:36 AM GMT+05:30> <Error> <Management> <Error
    initializing module certificate.war
    of application samples:Name=certificate,Type=Application from path
    .\config\samples\applications: w
    eblogic.management.MBeanCreationException: cannot find referenced module
    certificate.war>
    <Sep 17, 2001 10:47:46 AM GMT+05:30> <Error> <Management> <Error
    initializing module console.war of
    application samples:Name=console,Type=Application from path
    .\config\samples\applications: weblogic.
    management.MBeanCreationException: cannot find referenced module
    console.war>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
    application component cer
    tificate.war of application samples:Name=certificate,Type=Application:
    java.io.FileNotFoundException
    : .\config\samples\applications\certificate.war (The system cannot find the
    file specified) ((localP
    ath: java.io.FileNotFoundException:
    .\config\samples\applications\certificate.war (The system cannot
    find the file specified))>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
    application certificate: error
    retrieving component [Caching Stub]Proxy for
    samples:Name=certificate,Location=myserver,Type=WebAppC
    omponentConfig,ApplicationConfig=certificate>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
    application component con
    sole.war of application samples:Name=console,Type=Application:
    java.io.FileNotFoundException: .\conf
    ig\samples\applications\console.war (The system cannot find the file
    specified) ((localPath: java.io
    .FileNotFoundException: .\config\samples\applications\console.war (The
    system cannot find the file s
    pecified))>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
    application console: error retr
    ieving component [Caching Stub]Proxy for
    samples:Name=console,Location=myserver,Type=WebAppComponent
    Config,ApplicationConfig=console>
    Loaded resources from
    '/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
    [SerializationTester] : isSerializable(class javax.naming.Binding)
    java.io.NotSerializableException: javax.mail.Session
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
    at
    java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
    r.java:36)
    at
    weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
    Enumeration.j
    ava:29)
    at
    weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
    ava:48)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
    va:220)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
    at
    weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
    l.java:262)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :128)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
    at
    weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
    java:118)
    at
    weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
    .java:115)
    at
    weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
    at
    weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :247)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :225)
    at
    weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
    _WLStub.java:
    374)
    at
    weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :724)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
    agerCfgImpl.j
    ava:710)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
    gerCfgImpl.ja
    va:811)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
    va:75)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
    nImpl.java:79
    0)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
    eanEOImpl.jav
    a:1270)
    at
    com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
    .java:151)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
    at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Initialized WebLogic Process Integrator Plugin Framework version 1.0
    Started WebLogic Process Integrator version 2.0 SP 3
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicCollaborate> <INFO:
    WebLogic Collaborate Serv
    er started successfully.>
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <WebLogic
    Server started>
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer>
    <SSLListenThread listening on port 70
    02>
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <ListenThread
    listening on port 7001>
    Once I put the certificate.war and console.war from
    D:\bea\wlintegration2.0\config\mydomain\applications, the errors related to
    the
    certificate.war and console.war file are not shown. The Weblogic Server
    Console now shows the following
    Loaded resources from
    '/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
    [SerializationTester] : isSerializable(class javax.naming.Binding)
    java.io.NotSerializableException: javax.mail.Session
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
    at
    java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
    r.java:36)
    at
    weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
    Enumeration.j
    ava:29)
    at
    weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
    ava:48)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
    va:220)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
    at
    weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
    l.java:262)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :128)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
    at
    weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
    java:118)
    at
    weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
    .java:115)
    at
    weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
    at
    weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :247)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :225)
    at
    weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
    _WLStub.java:
    374)
    at
    weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :724)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
    agerCfgImpl.j
    ava:710)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
    gerCfgImpl.ja
    va:811)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
    va:75)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
    nImpl.java:79
    0)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
    eanEOImpl.jav
    a:1270)
    at
    com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
    .java:151)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
    at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Initialized WebLogic Process Integrator Plugin Framework version 1.0
    Started WebLogic Process Integrator version 2.0 SP 3
    Did anybody face this problem with this sample? Can somebody help me out
    with this. I am also looking for some basic ways of developing a PIP using
    Rosettanet. Is there is any site that gives such information. I have seen
    the BEA site on rosettanet. That does not help me.
    Regards,
    Dharnidhar Vemuri
    mailto: [email protected]

    Hi
    I am also facing this similar problem. Could any one tell me the root cause of
    this problem.
    Thanks in advance.
    Thanks and Regards
    Ramko
    "weblogic.integrator.developer" <[email protected]> wrote:
    I am trying to run this sample on my machine as per the instructions
    to
    install the sample in WLISampleUserGuide.pdf. When I go to the step 6
    of the
    installation, I get the following error in the Weblogic Server Console.
    <Sep 17, 2001 10:47:36 AM GMT+05:30> <Error> <Management> <Error
    initializing module certificate.war
    of application samples:Name=certificate,Type=Application from path
    ..\config\samples\applications: w
    eblogic.management.MBeanCreationException: cannot find referenced module
    certificate.war>
    <Sep 17, 2001 10:47:46 AM GMT+05:30> <Error> <Management> <Error
    initializing module console.war of
    application samples:Name=console,Type=Application from path
    ..\config\samples\applications: weblogic.
    management.MBeanCreationException: cannot find referenced module
    console.war>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
    application component cer
    tificate.war of application samples:Name=certificate,Type=Application:
    java.io.FileNotFoundException
    : .\config\samples\applications\certificate.war (The system cannot find
    the
    file specified) ((localP
    ath: java.io.FileNotFoundException:
    ..\config\samples\applications\certificate.war (The system cannot
    find the file specified))>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
    application certificate: error
    retrieving component [Caching Stub]Proxy for
    samples:Name=certificate,Location=myserver,Type=WebAppC
    omponentConfig,ApplicationConfig=certificate>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <Management> <Error preparing
    application component con
    sole.war of application samples:Name=console,Type=Application:
    java.io.FileNotFoundException: .\conf
    ig\samples\applications\console.war (The system cannot find the file
    specified) ((localPath: java.io
    ..FileNotFoundException: .\config\samples\applications\console.war (The
    system cannot find the file s
    pecified))>
    <Sep 17, 2001 10:48:27 AM GMT+05:30> <Error> <J2EE> <Error deploying
    application console: error retr
    ieving component [Caching Stub]Proxy for
    samples:Name=console,Location=myserver,Type=WebAppComponent
    Config,ApplicationConfig=console>
    Loaded resources from
    '/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
    [SerializationTester] : isSerializable(class javax.naming.Binding)
    java.io.NotSerializableException: javax.mail.Session
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
    at
    java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
    r.java:36)
    at
    weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
    Enumeration.j
    ava:29)
    at
    weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
    ava:48)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
    va:220)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
    at
    weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
    l.java:262)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :128)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
    at
    weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
    java:118)
    at
    weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
    ..java:115)
    at
    weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
    at
    weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :247)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :225)
    at
    weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
    _WLStub.java:
    374)
    at
    weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :724)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
    agerCfgImpl.j
    ava:710)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
    gerCfgImpl.ja
    va:811)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
    va:75)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
    nImpl.java:79
    0)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
    eanEOImpl.jav
    a:1270)
    at
    com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
    ..java:151)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
    at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Initialized WebLogic Process Integrator Plugin Framework version 1.0
    Started WebLogic Process Integrator version 2.0 SP 3
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicCollaborate> <INFO:
    WebLogic Collaborate Serv
    er started successfully.>
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <WebLogic
    Server started>
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer>
    <SSLListenThread listening on port 70
    02>
    <Sep 17, 2001 10:49:46 AM GMT+05:30> <Notice> <WebLogicServer> <ListenThread
    listening on port 7001>
    Once I put the certificate.war and console.war from
    D:\bea\wlintegration2.0\config\mydomain\applications, the errors related
    to
    the
    certificate.war and console.war file are not shown. The Weblogic Server
    Console now shows the following
    Loaded resources from
    '/D:/bea/wlintegration2.0/config/samples/wlai/wlai.properties'
    [SerializationTester] : isSerializable(class javax.naming.Binding)
    java.io.NotSerializableException: javax.mail.Session
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1148)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    java.io.ObjectOutputStream.outputClassFields(ObjectOutputStream.java:1841)
    at
    java.io.ObjectOutputStream.defaultWriteObject(ObjectOutputStream.java:480)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1214)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.jndi.internal.SerializationTester.isSerializable(SerializationTeste
    r.java:36)
    at
    weblogic.jndi.internal.BindingEnumeration.fixNonSerializableBindings(Binding
    Enumeration.j
    ava:29)
    at
    weblogic.jndi.internal.BindingEnumeration.writeExternal(BindingEnumeration.j
    ava:48)
    at
    java.io.ObjectOutputStream.outputObject(ObjectOutputStream.java:1180)
    at
    java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:366)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObjectInternal(CBVOutputStream.ja
    va:220)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:213)
    at
    weblogic.rmi.internal.CBVOutputStream.writeObject(CBVOutputStream.java:190)
    at
    weblogic.jndi.internal.ServerNamingNode_WLSkel.invoke(ServerNamingNode_WLSke
    l.java:262)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:373)
    at
    weblogic.rmi.cluster.ReplicaAwareServerRef.invoke(ReplicaAwareServerRef.java
    :128)
    at
    weblogic.rmi.internal.BasicServerAdapter.invoke(BasicServerAdapter.java:237)
    at
    weblogic.rmi.internal.BasicRequestHandler.handleRequest(BasicRequestHandler.
    java:118)
    at
    weblogic.rmi.internal.BasicRequestDispatcher.dispatch(BasicRequestDispatcher
    ..java:115)
    at
    weblogic.rmi.internal.ServerRequest.sendOneWayRaw(ServerRequest.java:88)
    at
    weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:108)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :247)
    at
    weblogic.rmi.cluster.ReplicaAwareRemoteRef.invoke(ReplicaAwareRemoteRef.java
    :225)
    at
    weblogic.jndi.internal.ServerNamingNode_WLStub.listBindings(ServerNamingNode
    _WLStub.java:
    374)
    at
    weblogic.jndi.internal.WLContextImpl.listBindings(WLContextImpl.java:293)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :724)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.traverseContext(PluginManage
    rCfgImpl.java
    :747)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.getDeployedPlugins(PluginMan
    agerCfgImpl.j
    ava:710)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.initializePlugins(PluginMana
    gerCfgImpl.ja
    va:811)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgImpl.init(PluginManagerCfgImpl.ja
    va:75)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanImpl.init(PluginManagerCfgBea
    nImpl.java:79
    0)
    at
    com.bea.wlpi.server.plugin.PluginManagerCfgBeanEOImpl.init(PluginManagerCfgB
    eanEOImpl.jav
    a:1270)
    at
    com.bea.wlpi.server.initlistener.InitListenerBean.onMessage(InitListenerBean
    ..java:151)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1933)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1892)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1779)
    at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1972)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Initialized WebLogic Process Integrator Plugin Framework version 1.0
    Started WebLogic Process Integrator version 2.0 SP 3
    Did anybody face this problem with this sample? Can somebody help me
    out
    with this. I am also looking for some basic ways of developing a PIP
    using
    Rosettanet. Is there is any site that gives such information. I have
    seen
    the BEA site on rosettanet. That does not help me.
    Regards,
    Dharnidhar Vemuri
    mailto: [email protected]

  • Strange prob... to get correct o/p we have to run this prog twice ?????????

    hi,
    my problem is that i have created one bat file and i want to run that file in java but it is not running properly. the problem is .......
    i have created one bat file named "file1.bat" & content of this file is as follows :-
    [ ag > b.txt]
    (and content of file "ag" is "aaaaaaa" )
    now i am trying to run this bat file in java and want to read this b.txt in which i have redirected the content of file "ag".
    for that i have written the code like this:-file name is "runbf.java"
    import java.awt.*;
    import java.lang.Runtime;
    import java.io.*;
    public class DriveVol
    public static void main(String args[]) throws IOException
    int volumn;
    Runtime r = Runtime.getRuntime();
    r.exec("ss.bat");
    FileInputStream fp;
    fp = new FileInputStream("b.txt");
    flush();
    do
    volumn = fp.read();
    System.out.print((char)volumn);
    }while(volumn != -1);
    fp.close();
    when i am running this programme first it is not displaying the content of b.txt. but when u run this prog twice then only it 'll give the correct ans. what i mean is, i'll explain that stepwise.
    1. as per my prog. -- r.exec("aa.bat") -- this line 'll execute first. so content of ag 'll redirect to file "b.txt"
    2. now i am trying to read the file "b.txt" using FIleInputStream...
    3. but first time it is giving some garbbage value.when i give --c:jdk1.3\bin>java runbf
    4. but the very next moment when again i run that file - c:jdk1.3\bin>java runbf
    it 'll give the correct value.
    5. again when i change the content of file ag(suppose "bbbbbbb"). & try to run "runbf.java" like this-
    -- c:jdk1.3\bin>java runbf --
    6. then it 'll display the value "aaaaaa". now when again i run that file
    it 'll give the correct value "bbbbbb"
    7. so every time i have to run that "runbf.java" twice for printing the correct
    value of file "b.txt"
    so what i think is that, it is not refreshing the data of file "b.txt". after executing this line
    r.exec("aa.bat");
    so is there any method to refresh the data of file "b.txt"??????
    i think u 'll try to understand my problem...
    so please help me to get the ans.......
    thx.........

    Cuz r.exec is asynchronous, dummy. Read the friggin API. It starts a background process. If you wanna wait for it to finish, then call
    Process p = r.exec(...);
    p.waitFor(whatever).

  • How  can i run this code correctly?

    hello, everybody:
        when  i run the code, i found that it dons't work,so ,i  hope somebody can help me!
        the Ball class is this :
        package {
        import flash.display.Sprite;
        [SWF(width = "550", height = "400")]
        public class Ball extends Sprite {
            private var radius:Number;
            private var color:uint;
            private var vx:Number;
            private var vy:Number;
            public function Ball(radius:Number=40, color:uint=0xff9900,
            vx:Number =0, vy:Number =0) {
                this.radius= radius;
                this.color = color;
                this.vx = vx;
                this.vy = vy;
                init();
            private function init():void {
                graphics.beginFill(color);
                graphics.drawCircle(0,0,radius);
                graphics.endFill();
    and the Chain class code is :
    package {
        import flash.display.Sprite;
        import flash.events.Event;
        [SWF(width = "550", height = "400")]
        public class Chain extends Sprite {
            private var ball0:Ball;
            private var ball1:Ball;
            private var ball2:Ball;
            private var spring:Number = 0.1;
            private var friction:Number = 0.8;
            private var gravity:Number = 5;
            //private var vx:Number =0;
            //private var vy:Number = 0;
            public function Chain() {
                init();
            public function init():void {
                ball0  = new Ball(20);
                addChild(ball0);
                ball1 = new Ball(20);
                addChild(ball1);
                ball2 = new Ball(20);
                addChild(ball2);
                addEventListener(Event.ENTER_FRAME, onEnterFrame);
            private function onEnterFrame(event:Event):void {
                moveBall(ball0, mouseX, mouseY);
                moveBall(ball1, ball0.x, ball0.y);
                moveBall(ball2, ball1.x, ball1.y);
                graphics.clear();
                graphics.lineStyle(1);
                graphics.moveTo(mouseX, mouseY);
                graphics.lineTo(ball0.x, ball0.y);
                graphics.lineTo(ball1.x, ball1.y);
                graphics.lineTo(ball2.x, ball2.y);
            private function moveBall(ball:Ball,
                                      targetX:Number,
                                      targetY:Number):void {
                ball.vx += (targetX - ball.x) * spring;
                ball.vy += (targetY - ball.y) * spring;
                ball.vy += gravity;
                ball.vx *= friction;
                ball.vy *= friction;
                ball.x += vx;
                ball.y += vy;
    thanks every body's help!

    ok, thanks for your reply ! I run this code in the Flex builder 3!and the Ball class and the Chain class are all in the same AS project!
      and i changed the ball.pv property as public in the Ball class, and  the Chain class has no wrong syntactic analysis,but the AS code don't run.so this is the problem.
    2010-04-21
    Fang
    发件人: Ned Murphy <[email protected]>
    发送时间: 2010-04-20 23:01
    主 题: how  can i run this code correctly?
    收件人: fang alvin <[email protected]>
    I don't see that the Ball class has a pv property, or that you even try to access a pv property in the Chain class.  All of the properties in your Ball class are declared as private, so you probably cannot access them directly.  They would need to be public.  Also, I still don't see where you import Ball in the chain class such that it can use it.

  • I use Firefox 6.0.2. When I shut the browser and try to reopen it I get a message saying that Firefox is still running and that I should reboot. This happens constantly. Why does this happen and is there a way around it?

    I use Firefox 6.0.2. When I shut the browser and try to reopen it I get a message saying that Firefox is still running and that I should reboot. This happens constantly. Why does this happen and is there a way around it?

    There are a few possible causes for that error, for details see [[Firefox is already running but is not responding]].

  • Run Project - of an empty project cause NPE - should I file this bug on sup

    People:
    run project of a new bpm project (empty) cause:
    Performing action Run Project1.jpr[ from oracle.ideimpl.appoverview.AppOverviewEditor ]
    Fatal exception during compiling of project files
    java.lang.NullPointerException
    o.bpm.fusion.builder.BpmBuilder.extractProject(BpmBuilder.java:105)
    o.bpm.fusion.builder.BpmBuilder.build(BpmBuilder.java:51)
    o.bpm.fusion.builder.BuilderAddin$BuildListener.buildWillStart(BuilderAddin.java:45)
    o.j.compiler.JCompiler.invokeListenersBuildBegin(JCompiler.java:1048)
    o.j.compiler.UnifiedBuildSystem$CompileThread.run(UnifiedBuildSystem.java:1368)
    Should I file this bug on metalink/support site ?
    Thanks in advance
    Nico Grossi

    Heidi:
    sorry, yes is the run of jdev. I think that run and debbug buttons sohuld not be enable to select them if it is an empty. I also know that that trying to run/debbug and "empty" project is not expected but NPE is not good also. It will be nice to display a nicer message to de team :)
    Sorry for not been more accurate at first time
    Nico

  • HT1725 Some songs that I paid for fully downloaded, but it is only playing the small sample piece from the Itunes store. How should I fix this?

    I had a Wish List with about 7 or 8 songs on there and I purchased them today. They all downloaded fine, except for 2. These two songs completed the download from what the computer says, but it will only play the short sample avaliable from the Itunes store. How should I fix this?

    Other people have been having similar problems with songs over the last few days, I assume that there has been a problem with Apple's servers.
    Depending upon what country that you are in (music can't be re-downloaded in all countries) then try deleting them from your iTunes library and redownload them via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes : re-downloading.
    If you aren't in a country where you can re-download music or if they re-download in the state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find those songs and use the 'Report a Problem' link.

  • SQL2012 Express Error: "insufficient system memory in resource pool 'internal' to run this query"

    I am running the SQL2012 express (version shown below) and get the following error after a day or two of operation. This is a new server 2012 installation.
    source: SQL2012Express  "There is insufficient system memory in resource pool 'internal' to run this query."
    The installed version of SQL2012 express is:
    Microsoft SQL Server 2012 (SP1) - 11.0.3128.0 (X64)   Dec 28 2012 20:23:12  Copyright (c) Microsoft Corporation
    Express Edition (64-bit) on Windows NT 6.2 <X64> (Build 9200: ) (Hypervisor)
    I read a few of the postings but couldn't determine the exact hot fix or update to run or if I am running the latest already.
    Which .exe file should I run for the update? I downloaded a file called 473913_intl_x64_zip.exe but it said it wasn't tested yet?
    Can I uninstall this path or hot fix if it breaks something?
    What can I do to correct this internal memory error and prevent from happening.
    Thanks
    Morris
    Thank you Morris

    Hi MoCoder,
    According to your description, the error may be occurred by the following possible reasons, for example,
     the ram was be completely used, reached the maximum memory allocation configured values in SQL Server or virtual memory is full and so on. Before you install the related cumulative update of SQL Server 2012, I recommend you do the following
    steps for fixing this error. For example, allocate more memory to SQL Server, kill the unnecessary idle sessions, increase the RAM and virtual memory and reduce the number of users and so on.
    For more information, you can review the following article,
    http://sqlserverlearner.com/tag/there-is-insufficient-system-memory-in-resource-pool-internal-to-run-this-query
    In addition, you also need to check if there is the SQL Server memory leak, most of the memory leaks in SQL Server is caused by 3rd party Dll’s which are loaded in SQL Server process,
     or you enable the Auto Update Statistics Asynchronously statistics option in a database of Microsoft SQL Server 2012.
    For more information, see:
    http://support.microsoft.com/kb/2778088/en-us
    http://mssqlwiki.com/2012/12/04/sql-server-memory-leak/
    Regards,
    Sofiya Li
    If you have any feedback on our support, please click here.
    Sofiya Li
    TechNet Community Support

  • Run time filter on choose list

    Hi Experts
    I have two editboxes on a form . Both have choose list. I want to filter the second editbox choose list by the value of first editbox. So I set a condition on second editbox in "BeforeChooselistEvent" It works for the first time but on second time It does not show data. Anyone can guide me which Event I use and how can I handle "Run Time Filter on a choose List". My code of Before Choose List is given Below
    <B1Listener(BoEventTypes.et_CHOOSE_FROM_LIST, True, New String() {"2000021000"})> _
            Public Overridable Function OnBeforeChooseFromList(ByVal pVal As ItemEvent) As Boolean
                Dim form As Form = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                'ADD YOUR ACTION CODE HERE ...
                Dim editBincode As EditText
                Dim editWhseFrom As EditText
                Dim editWhseTo As EditText
                Dim oItem As Item
                If pVal.ItemUID = "E003" And pVal.FormType = "2000021000" Then
                    oItem = form.Items.Item("E001")
                    editWhseFrom = oItem.Specific
                    oItem = form.Items.Item("E002")
                    editWhseTo = oItem.Specific
                    Dim iChoose As SAPbouiCOM.IChooseFromListEvent
                    Dim oCons As SAPbouiCOM.Conditions
                    Dim oCon As SAPbouiCOM.Condition
                    Dim val As String
                    Dim val1 As String
                    iChoose = pVal
                    Dim CFL_ID As String
                    CFL_ID = iChoose.ChooseFromListUID
                    Dim oForm As SAPbouiCOM.Form
                    oForm = B1Connections.theAppl.Forms.Item(pVal.FormUID)
                    Dim CFL As SAPbouiCOM.ChooseFromList
                    CFL = form.ChooseFromLists.Item(CFL_ID)
                    oCons = CFL.GetConditions()
                    oCon = oCons.Add()
                    oCon.Alias = "U_Whse"
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                    oCon.CondVal = editWhseFrom.Value
                    CFL.SetConditions(oCons)
                    'MsgBox(editWhseFrom.Value)
                End If
                Return True
            End Function

    Hello,
    Yes, becasue in the second time you also adding the conditions value to it, but if you select the 2dn time the same value it is working.
    When you defined the condiftion for your form (not in the eventhandler) add an extra code to the CFL conditions
    oCons = CFL.GetConditions()
                    oCon = oCons.Add()
                    oCon.Alias = "U_Whse"
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_CONTAIN
                    oCon.CondVal = '*'
                    CFL.SetConditions(oCons)
    This means the following sql where condition
    where U_Whse like '%%'
    which select everything
    Next step, the eventhandler you should use the first element of the conditions object
    In your code
                    Dim CFL As SAPbouiCOM.ChooseFromList
                    CFL = form.ChooseFromLists.Item(CFL_ID)
                    oCons = CFL.GetConditions()
                    oCon = oCons.Item(0)
                    oCon.Alias = "U_Whse"
                    oCon.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                    oCon.CondVal = editWhseFrom.Value
                    CFL.SetConditions(oCons)
    Regards,
    J.
    Edited by: János Nagy on Jan 20, 2010 10:31 AM

  • Which is the correct way to filter/block traffic between vlans?

      Hi all. My question is: Which is the correct way to filter/block traffic between vlans?
    i have a more than 15 vlans. I want to block traffic between them except 2 vlans.
    source vlan 3 deny destination vlan 4
    #access-list 100 deny ip 192.168.3.0 0.0.0.255 192.168.4.0 0.0.0.255
    and the oposite:
    #access-list 101 deny ip 192.168.4.0 0.0.0.255 192.168.3.0 0.0.0.255
    I have to do this for all VLANs, ono by one. Is that right?
    Thanks.

    There are a couple of ways to achieve that. I assume that you have a Layer3-Switch. There I would configure one ACL per vlan-interface and allow/deny the traffic as you want. Sadly, the Switches don't support object-groups yet, so you have to use the IP-networks here. Only allow/deny traffic based on networks or hosts. Don't even try to be very granular with permit/denys based on ports. Because the switch-ACLs are not statefull you'll run into problems for the return-traffic if you woulf do that. And the return-traffic of course has to be allowed also.
    Another way: with the help of 802.1x you can deploy port-based ACLs for every user. That takes some time for planning, but is one of the most powerful solutions.
    For more control you could remove the L3-interface from your L3-switch and move that to your router or firewall. These devices support stateful filtering and you can control your traffic much tighter tehn with ACLs on the switch.
    Don't stop after you've improved your network! Improve the world by lending money to the working poor:
    http://www.kiva.org/invitedby/karsteni

  • Cannot run WebLogic Integration Samples from QuickStart

    I have installed the full WebLogic platform on an Intel box running Red Hat Linux
    8.0. From QuickStart I am unable to run the WebLogic Integration Samples. Everything
    else seems to work as expected.
    The error message that results when attempting to run the Integration samples
    is as follows:
    RunSamples execution failed: /usr/local/bea/weblogic700/samples/integration/samples/lib/RunSamples.xml:106:
    Cannot execute switchdb pointbase

    Dear Micha,
    Did you maintain the host file in Drivers\etc file:
    hope this will solve the problem
    If you did not add them plz add the hosts as follows:
          102.54.94.97     rhino.acme.com          # source server
           38.25.63.10     x.acme.com              # x client host
          (your PI server IP)   server Id name
    And also check your Java web start version.
    download the correct version for sun website.
    Best Regards
    Praveen K Kurni

Maybe you are looking for

  • Payment Wizard: BP "All Currency" but payments always in Local Currency

    Hello! This is a change request regarding the Payment Wizard. System behaviour: When a Business Partneru2019s currency is set to u201CAll Currenciesu201D in the Business Partner Master Data, the Payment Wizard always suggests payments in Local Curren

  • JS: XMP Children of Children

    I know this may be a simple question to answer, but I am stuck. I am not a programmer, but I am trying to learn, and I am working with an actual programmer on this project, but he is not very familiar with scripting in InDesign, so I am trying to get

  • WRT54G v.5 will not stay connected to new laptop/Windows 7 Premium

    WRT54G v.5 will not stay connected to new laptop/Windows 7 Premium. It continuously runs through a cycle of detecting, connecting, losing connection; detecting, connecting, losing connection, etc. A the router runs through this cycle, basically actin

  • Windowless controls problem...

    Hello I'm using Measurement Studio (8.1.11.337) in a Visual Studio 2003 (Standard Edition). Program itself is written in C++, and uses MFC. We have used (for years) UI controls without problems in Windowed mode. Recently, we decided that switching to

  • Price Date Control - reg

    Freinds, We have activated "Price Date Control" and it works fine. But  we want to add "DOCUMENT DATE" in addition to the existing - 1) No control,2) P.O.Date, 3) Delivery date, 4) Current Date, 5) Manual & 6) GR Date. Could somebody suggest the solu