ok, I was able to kill the session by using an HttpService to run a jsp that executed session.invalidate.  How do I create a new session.   Now the gui just shows an hour glass when I try to access any of the remote objects on the server.

Peter Farland <[EMAIL PROTECTED]> wrote:
When you compiled the AdministrationDataFacade did you using the exact same flashgateway.jar that is being used at runtime by the web application? (From the error it doesn't seem likely, but note that the HttpSession may not always exist... so I'd usually not do that all on one line). If none of this helps, try breaking the command up onto separate lines and use try/catch to determine exactly what happened... was it a ClassNotFoundException or some other exception saying some method or property didn't exist.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, April 17, 2006 2:31 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] logout remote object in flex

13:23:09,910 INFO  [STDOUT] Info: Request sent to http://localhost:8087/txm/amfg
ateway/administrationFacade from 127.0.0.1 received at 13:23:09.910 2006-04-17
13:23:09,910 INFO  [STDOUT] Info: Deserializing request
  (Message #0 targetURI=administrationFacade.logoutUser, responseURI=/2)
    (Array #0)
      [0] = (Object #1)
        _flag = "Envelope"
        headers = (Array #2)
          [0] = (Array #3)
            [0] = "ServiceType"
            [1] = false
            [2] = "stateless-class"
          [1] = (Array #4)
            [0] = "Credentials"
            [1] = true
            [2] = (Object #5)
              password = "txmpass"
              userid = "txmadmin"
        data = "" #6)
13:23:09,910 INFO  [STDOUT] Info: Processing batch of 1 request(s)
13:23:09,910 INFO  [STDOUT] Info: Requesting target 'administrationFacade.logout
User'
13:23:09,910 INFO  [STDOUT] Info: Service 'com.bmc.txm.common.interfaces.present
ation.facade.AdministrationDataFacade' sent to adapter 'Java Class Adapter'
13:23:09,910 INFO  [STDOUT] before getHttpRequest
13:23:10,040 INFO  [STDOUT] Error: flashgateway/Gateway
13:23:10,040 INFO  [STDOUT] flashgateway.GatewayException: flashgateway/Gateway
13:23:10,040 INFO  [STDOUT]     at flashgateway.filter.AdapterFilter.invoke(Adap
terFilter.java:152)
13:23:10,040 INFO  [STDOUT]     at flashgateway.filter.MessageSecurityFilter.inv
oke(MessageSecurityFilter.java:144)
13:23:10,040 INFO  [STDOUT]     at flashgateway.filter.ServiceNameFilter.invoke(
ServiceNameFilter.java:101)
13:23:10,040 INFO  [STDOUT]     at flashgateway.filter.EnvelopeFilter.invoke(Env
elopeFilter.java:102)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.SessionFilter.invoke(Sess
ionFilter.java:28)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.LicenseFilter.invoke(Lice
nseFilter.java:57)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.ErrorFilter.invoke(ErrorF
ilter.java:39)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.LogFilter.invoke(LogFilte
r.java:46)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.BatchProcessFilter.invoke
(BatchProcessFilter.java:63)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.PacketSecurityFilter.invo
ke(PacketSecurityFilter.java:68)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.DebugFilter.invoke(DebugF
ilter.java:38)
13:23:10,080 INFO  [STDOUT]     at flashgateway.filter.SerializationFilter.invok
e(SerializationFilter.java:89)
13:23:10,080 INFO  [STDOUT]     at flashgateway.Gateway.invoke(Gateway.java:217)
13:23:10,080 INFO  [STDOUT]     at flashgateway.controller.GatewayServlet.servic
e(GatewayServlet.java:69)
13:23:10,080 INFO  [STDOUT]     at javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:810)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:252)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
13:23:10,080 INFO  [STDOUT]     at org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:81)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:202)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:173)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:213)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:178)
13:23:10,080 INFO  [STDOUT]     at org.jboss.web.tomcat.security.CustomPrincipal
Valve.invoke(CustomPrincipalValve.java:39)
13:23:10,080 INFO  [STDOUT]     at org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:159)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.authenticator.Authenticat
orBase.invoke(AuthenticatorBase.java:407)
13:23:10,080 INFO  [STDOUT]     at org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:59)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:126)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:105)
13:23:10,080 INFO  [STDOUT]     at flashgateway.security.TomcatValve.invoke(Tomc
atValve.java:109)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:107)
13:23:10,080 INFO  [STDOUT]     at org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:148)
13:23:10,080 INFO  [STDOUT]     at org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:856)
13:23:10,080 INFO  [STDOUT]     at org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.processConnection(Http11Protocol.java:744)
13:23:10,080 INFO  [STDOUT]     at org.apache.tomcat.util.net.PoolTcpEndpoint.pr
ocessSocket(PoolTcpEndpoint.java:527)
13:23:10,090 INFO  [STDOUT]     at org.apache.tomcat.util.net.MasterSlaveWorkerT
hread.run(MasterSlaveWorkerThread.java:112)
13:23:10,090 INFO  [STDOUT]     at java.lang.Thread.run(Thread.java:595)
13:23:10,090 INFO  [STDOUT] Info: Serializing response
  (Message #0 targetURI=/2/onStatus, responseURI=null)
    (Object #0)
      level = "error"
      code = "Server.Processing"
      type = ""
      rootcause = (Object #1)
        level = "error"
        code = null
        type = ""
        details = ""
        description = "flashgateway/Gateway"
      details = ""
      description = "flashgateway/Gateway"

Peter Farland <[EMAIL PROTECTED]> wrote:
What was the exception? Did you get a stack trace?


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED]
Sent: Monday, April 17, 2006 12:25 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] logout remote object in flex

I tried that with the following code, but any call to the gateway raises an exception.  We are using flex 1.5 and tomcat 5.5 w/jboss.   Is there an incompatability issue here?
 
 
          System.out.println("before invalidate session");
          flashgateway.Gateway.getHttpRequest().getSession().invalidate();
          System.out.println("after invalidate session");
        
Matt Chotin <[EMAIL PROTECTED]> wrote:
I think for 1.5 you need to write your own RemoteObject that will get
the HTTPSession from the Gateway and invalidate it.  Then on the client
you can clearUsernamePassword as well.

Matt

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jfournet
Sent: Saturday, April 15, 2006 4:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] logout remote object in flex

I need to logout a remoteobject in flex to destroy the users security
creditials.   I don't see anyway to do this in flex 1.5.  Any help
would be appreciated.





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links









Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.


New Yahoo! Messenger with Voice. Call regular phones from your PC and save big.


Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to