JAAS example fails on Tomcat
The JAAS tutorial and sample code works fine in Creator but when I tried to deploy it in Tomcat 5.5.17 it fails to start and gives this error.
org.apache.catalina.startup.ContextConfig applicationWebConfig
SEVERE: Parse error in application web.xml file at jndi:/localhost/JaasAuthentication/WEB-INF/web.xml
java.lang.IllegalArgumentException: Invalid <url-pattern> /faces/*.jsp in filter mappingI have looked at the Help in Creator on deploying applications in Tomcat but with no luck. Anybody know what is causing this exception in Tomcat?
John.
the cross-domain file has to be placed on the web service
server.
you can use blazeds or lcds to proxy your ws calls. this
tutorial should help,
http://learn.adobe.com/wiki/display/Flex/Creating+a+BlazeDS+web+service+application+in+Fle x+Builder
Similar Messages
-
Run JAAS Example with Tomcat 4
Can someone explain me, how i can run the JAAS-Example from SUN with Tomcat.
Please so that i can understand it, step by step.
Thanks for your help and understand !!!Here you go:
Environment Tomcat 4.1.10
These steps will configure Tomcat Admin app so that it uses
JAASRealm to authenticate.
To keep things simple, I wrote a MyLoginModule that succeeds with username,password pair "jaas","jaas".
Authentication information as well as role "admin" are hardcoded, so you do not have to worry about additional settings.
So compile following files, and put them into e.q. tomcat/server/classes or jar them and put them to some place where
tomcat finds them :
--------my.MyLoginModule.java---------------
package my;
import java.util.Map;
import java.security.Principal;
import javax.security.auth.login.LoginContext;
import javax.security.auth.Subject;
import javax.security.auth.callback.*;
import javax.security.auth.login.*;
import javax.security.auth.spi.LoginModule;
import java.io.IOException;
public class MyLoginModule implements LoginModule {
protected CallbackHandler callbackHandler = null;
protected boolean committed = false;
protected boolean debug = false;
protected Map options = null;
protected Principal principal = null;
protected Map sharedState = null;
protected Subject subject = null;
protected void log(String message) {
System.out.print("MyLoginModule: ");
System.out.println(message);
public boolean abort() throws LoginException {
log("abort");
return (true);
public boolean commit() throws LoginException {
log("commit phase");
// If authentication was not successful, just return false
if (principal == null){
log("no principal commit fails");
return (false);
if (!subject.getPrincipals().contains(principal))
subject.getPrincipals().add(principal);
// add role principals
subject.getPrincipals().add(new MyRolePrincipal("admin"));
committed = true;
log("commit succesful");
return (true);
public void initialize(Subject subject, CallbackHandler callbackHandler,
Map sharedState, Map options) {
// Save configuration values
this.subject = subject;
this.callbackHandler = callbackHandler;
this.sharedState = sharedState;
this.options = options;
public boolean login() throws LoginException {
log("login phase");
// Set up our CallbackHandler requests
if (callbackHandler == null)
throw new LoginException("No CallbackHandler specified");
Callback callbacks[] = new Callback[2];
callbacks[0] = new NameCallback("Username: ");
callbacks[1] = new PasswordCallback("Password: ", false);
// Interact with the user to retrieve the username and password
String username = null;
String password = null;
try {
callbackHandler.handle(callbacks);
username = ((NameCallback) callbacks[0]).getName();
password =
new String(((PasswordCallback) callbacks[1]).getPassword());
} catch (IOException e) {
throw new LoginException(e.toString());
} catch (UnsupportedCallbackException e) {
throw new LoginException(e.toString());
if (!authenticate(username,password))
return false;
principal = new MyPrincipal(username);
return true;
public boolean logout() throws LoginException {
subject.getPrincipals().remove(principal);
committed = false;
principal = null;
return (true);
boolean authenticate(String s,String p){
return (s.compareTo("jaas") == 0) && (p.compareTo("jaas") == 0);
static public void main(String args[]) throws Exception{
LoginContext ctx = new LoginContext("TomCatAdminApplication");
ctx.login();
---------my/MyPrincipal.java-------------------
package my;
public class MyPrincipal implements java.security.Principal {
String m_Name = new String("");
public MyPrincipal(String name) {
m_Name = name;
public boolean equals(Object another) {
try {
MyPrincipal pm = (MyPrincipal)another;
return pm.m_Name.equalsIgnoreCase(m_Name);
} catch(Exception e){
return false;
public String getName() {
return m_Name;
public int hashCode() {
return m_Name.hashCode();
public String toString() {
return m_Name;
------my/MyRolePrincipal.java-------------
package my;
public class MyRolePrincipal extends MyPrincipal {
/** Creates a new instance of MyRolePrincipal */
public MyRolePrincipal(String s) {
super(s);
1. Configure Tomcat Administration Application in server.xml
<Context ..Tomcat Administration..>
<Realm className="org.apache.catalina.realm.JAASRealm" debug="3" appName="TomCatAdminApplication" userClassNames="my.MyPrincipal" roleClassNames="my.MyRolePrincipal">
</Realm>
</Context>
2. Configure the location of your JAAS configuration file in jre/lib/security/java.security
like this:
login.config.url.3=file:///d:/tomcats/tomcat410/auth.conf
3. Configure JAAS - sequence for "TomCatAdminApplication" in file:///d:/tomcats/tomcat410/auth.conf
like this:
TomCatAdminApplication {
my.MyLoginModule required;
4. Thats it. Restart Tomcat, and go to admin-app with "jaas","jaas" ....debug and enjoy. After you
got this working it is time to configure some more challenging login sequences....
Kullervo -
Can someone explain, how i can include the JAAS-Example in Tomcat 4. I am a newbie, therefore step
by step, please !! Everyone speaks about JAAS in the
web-enviroment, but nobody implements any example !!!
Please !!!
Thanks for your help and reply !!!Please help me ?????
-
Problem with JAAS example in WLS6.0sp1
Hi,
I tried to run the SampleClient from the JAAS example in WLS6.0sp1 and got an
exception
when a valid username/password combination is entered. Has anyone experienced
that in WLS6.0sp1?
Thanx
Ralf
SampleLoginModule.initialize(), debug enabled
SampleLoginModule.initialize(), URL t3://localhost:7001
SampleLoginModule.login(), username guest
SampleLoginModule.login(), password guest
Authentication Failed: Unexpected Exception, java.lang.NoSuchMethodError
at weblogic.security.auth.Authenticate.authenticate(Authenticate.java:124)
at examples.security.jaas.SampleLoginModule.login(SampleLoginModule.java:157)
at java.lang.reflect.Method.invoke(Native Method)
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:595)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:125)
at javax.security.auth.login.LoginContext$3.run(LoginContext.java:531)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokeModule(LoginContext.java:528)
at javax.security.auth.login.LoginContext.login(LoginContext.java:449)
at examples.security.jaas.SampleClient.main(SampleClient.java:92)Weblogic comes with its own implementation of JAAS, unfortunately
conflicting with Sun's. Contact customer support, they will tell you the
exact differences and incompatibilities. Or reverse engineer the two
versions, you'll find quite a few differences (apart from the BEA version
not implementing JAAS authorization, which is documented).
"Narinder Gaheer" <[email protected]> wrote in message
news:[email protected]..
I am happy someone came up with this problem. I also bent backwardssolving
this problem
in my application.
I figured out that as soon as I remove the standard jaas.jar from my
classpath , I can run the example successfully. Weblogic.jar does contain
necessary jaas library , so don't need to include jaas.jar.
I am not sure, but I get the feeling that there is a jaas library conflict
here. May be weblogic
guys are the best to put some light on this issue.
"Ralf Fritsche" <[email protected]> wrote in message
news:3b15188e$[email protected]..
I found out, that the example runs with the JDK delivered by BEA,
but not with a JDK I downloaded from SUN.
Wheras with the first the provided way to set the user defined
configuration class with the system property'weblogic.security.jaas.Configuration'
works, this is not possible with another JDK. According to the
JAAS standard, this class could only be defined in the properties
file 'java.security' of the Java runtime.
How is BEA doing this?
Thanx
Ralf -
Messaging working in BlazeDS deployed on Windows Tomcat but failing in Tomcat deployed on Ubuntu
I have been going round and round on this for days. I have no idea how to solve it. Everything works fine in windows but now I have to move to Ubuntu. I set up a streaming server with BlazeDS which is messaging to my clients great when my war is in tomcat 7 on windows but is failing in tomcat 7 on Ubuntu.
I see my client connect to BlazeDS on Ubuntu. The DEBUG messages print out that I have a client subscribed. It says that I have one FlexSession for an id and one client subscribed to streaming-amf. Then, a few seconds later, it says that the client sent a duplicate request "streaming-amf recieved a duplicate sreaming connection request from, FlexClient with id ... Faulting request."
Next the log files print out that there are no streaming clients for the FlexSession and no streaming clients for the endpoint streaming-amf.
This is the same software that works fine in the Windows Tomcat container but is not in Ubuntu Tomcat even though the WAR is exactly the same. In case it helps, my config files and calls are below:
messaging-config.xml
<destination id="sp-streamingchannel">
<properties>
<network>
<session-timeout>0</session-timeout>
<throttle-inbound policy="ERROR" max-frequency="50"/>
<throttle-outbound policy="REPLACE" max-frequency="500"/>
</network>
<server>
<allow-subtopics>true</allow-subtopics>
<subtopic-separator>.</subtopic-separator>
<max-cache-size>1000</max-cache-size>
<message-time-to-live>0</message-time-to-live>
<durable>true</durable>
</server>
</properties>
<channels>
<channel ref="streaming-amf"/>
</channels>
<adapter ref="SPStreamingAdapter"/>
</destination>
services-conf.xml
<channel-definition id="streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">
<endpoint url="http://localhost:8080/SP-Web-1.0/messagebroker/spamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
<properties>
<idle-timeout-minutes>0</idle-timeout-minutes>
<max-streaming-clients>150</max-streaming-clients>
<server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis>
<user-agent-settings>
<user-agent match-on="MSIE" kickstart-bytes= "2048" max-streaming-connections-per-session="2"/>
<user-agent match-on="Firefox" kickstart-bytes="0" max-streaming-connections-per-session="4"/>
<user-agent match-on="AdobeAIR" kickstart-bytes="2048" max-streaming-connections-per-session="2" />
</user-agent-settings>
</properties>
</channel-definition>
The calls in Flex:
public var channelDest:String = "http://98.193.212.138:8080/SP-Web-1.0/messagebroker/spamf";
private var channelName:String = "streaming-amf";
channelSet = new ChannelSet();
channel = new StreamingAMFChannel(channelName, channelDest);
var c:StreamingAMFChannel = new StreamingAMFChannel();
channelSet.addChannel(channel);
channel.connect(channelSet);
consumer = new Consumer();
consumer.destination = "sp-streamingchannel";
consumer.channelSet = channelSet;
consumer.subtopic = "table." + tableID;
consumer.subscribe();
Why would this work fine on one server but fail on the other? Thanks so much for any help you can offer.
While it may not be releavnt to this question, I do have remoting working fine with BlazeDS on both systems. When my app starts, the user has to log in. All of that is done with BlazeDS and is working fine on both Win and Ubuntu. I only have a problem when it comes to streaming with BlazeDS as is shown above.I have been going round and round on this for days. I have no idea how to solve it. Everything works fine in windows but now I have to move to Ubuntu. I set up a streaming server with BlazeDS which is messaging to my clients great when my war is in tomcat 7 on windows but is failing in tomcat 7 on Ubuntu.
I see my client connect to BlazeDS on Ubuntu. The DEBUG messages print out that I have a client subscribed. It says that I have one FlexSession for an id and one client subscribed to streaming-amf. Then, a few seconds later, it says that the client sent a duplicate request "streaming-amf recieved a duplicate sreaming connection request from, FlexClient with id ... Faulting request."
Next the log files print out that there are no streaming clients for the FlexSession and no streaming clients for the endpoint streaming-amf.
This is the same software that works fine in the Windows Tomcat container but is not in Ubuntu Tomcat even though the WAR is exactly the same. In case it helps, my config files and calls are below:
messaging-config.xml
<destination id="sp-streamingchannel">
<properties>
<network>
<session-timeout>0</session-timeout>
<throttle-inbound policy="ERROR" max-frequency="50"/>
<throttle-outbound policy="REPLACE" max-frequency="500"/>
</network>
<server>
<allow-subtopics>true</allow-subtopics>
<subtopic-separator>.</subtopic-separator>
<max-cache-size>1000</max-cache-size>
<message-time-to-live>0</message-time-to-live>
<durable>true</durable>
</server>
</properties>
<channels>
<channel ref="streaming-amf"/>
</channels>
<adapter ref="SPStreamingAdapter"/>
</destination>
services-conf.xml
<channel-definition id="streaming-amf" class="mx.messaging.channels.StreamingAMFChannel">
<endpoint url="http://localhost:8080/SP-Web-1.0/messagebroker/spamf" class="flex.messaging.endpoints.StreamingAMFEndpoint"/>
<properties>
<idle-timeout-minutes>0</idle-timeout-minutes>
<max-streaming-clients>150</max-streaming-clients>
<server-to-client-heartbeat-millis>5000</server-to-client-heartbeat-millis>
<user-agent-settings>
<user-agent match-on="MSIE" kickstart-bytes= "2048" max-streaming-connections-per-session="2"/>
<user-agent match-on="Firefox" kickstart-bytes="0" max-streaming-connections-per-session="4"/>
<user-agent match-on="AdobeAIR" kickstart-bytes="2048" max-streaming-connections-per-session="2" />
</user-agent-settings>
</properties>
</channel-definition>
The calls in Flex:
public var channelDest:String = "http://98.193.212.138:8080/SP-Web-1.0/messagebroker/spamf";
private var channelName:String = "streaming-amf";
channelSet = new ChannelSet();
channel = new StreamingAMFChannel(channelName, channelDest);
var c:StreamingAMFChannel = new StreamingAMFChannel();
channelSet.addChannel(channel);
channel.connect(channelSet);
consumer = new Consumer();
consumer.destination = "sp-streamingchannel";
consumer.channelSet = channelSet;
consumer.subtopic = "table." + tableID;
consumer.subscribe();
Why would this work fine on one server but fail on the other? Thanks so much for any help you can offer.
While it may not be releavnt to this question, I do have remoting working fine with BlazeDS on both systems. When my app starts, the user has to log in. All of that is done with BlazeDS and is working fine on both Win and Ubuntu. I only have a problem when it comes to streaming with BlazeDS as is shown above. -
Simple EJB3/JAAS Example?
Hello. I'm trying to write a simple prototype using an EJB3 stateless session bean and JAAS, but running into some problems. Does anyone know of a complete example that explains how to create a security-enabled EJB and deploy it to WebLogic?
I have some stuff working, but seem to be stuck now. I am unsure how to assign identities to roles. So far, I wrote a custom LoginModule that will successfully login if the passed username/password is one of the hard-coded combinations. In the Subject, I am setting the PasswordCredential object, and putting a Principal whose name is the username. The EJB call fails with an error saying that the user doesn't have sufficient privileges because I have not associated the hard-coded username with any of the roles that I specify in the EJB using @RolesAllowed.
Any help or suggestions would be greatly appreciated.
Thanks,
MikeHello!
I get the exact same error.
Fortunately i have discovered a realm name mistake (im my case,
COMPANYNAME.LOCAL instead of COMPANYNAME.COM). -
Facelets example numberguess with Tomcat 6 and Eclipse WTP
Hello
I�m new with facelets (1.1.3) so I wanted to start the example that was in the download directory "numberguess".
I imported the *.war-file in Eclipse. I have both, Tomcat 5.5 and Tomcat 6 but the error message is the same:
INFO: validateJarFile(C:\Programme\Apache Software Foundation\Tomcat 5.5\wtpwebapps\numberguess\WEB-INF\lib\servlet-api-2.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
22.02.2008 16:49:43 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Error configuring application listener of class com.sun.faces.config.ConfigureListener
java.lang.ClassNotFoundException: com.sun.faces.config.ConfigureListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3712)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
22.02.2008 16:49:43 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Error configuring application listener of class com.sun.faces.application.WebappLifecycleListener
java.lang.ClassNotFoundException: com.sun.faces.application.WebappLifecycleListener
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1362)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1208)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3712)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
22.02.2008 16:49:43 org.apache.catalina.core.StandardContext listenerStart
SCHWERWIEGEND: Skipped installing application listeners due to previous error(s)
22.02.2008 16:49:43 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Error listenerStart
22.02.2008 16:49:43 org.apache.catalina.core.StandardContext start
SCHWERWIEGEND: Context [/numberguess] startup failed due to previous errors
22.02.2008 16:49:44 org.apache.coyote.http11.Http11BaseProtocol startCan anyone help me? That would be great!
Thanks,
N.Now I�m sure that my tomcat is running in a right way.
I tried it now without eclipse.
I only put the numberguess.war, the starterkit.war and the hangman.war from the demo-folder from facelets (now: 1.1.14) into the tomcats webapp folder.
I get following error if I try to start numberguess with http://localhost:8080/numberguess/index.html (-->http://localhost:8080/numberguess/guess.jsf)
description The server encountered an internal error () that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: Servlet.init() for servlet Faces Servlet threw exception
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
java.lang.Thread.run(Unknown Source)
root cause
java.lang.IllegalStateException: Application was not properly initialized at startup, could not find Factory: javax.faces.context.FacesContextFactory
javax.faces.FactoryFinder.getFactory(FactoryFinder.java:256)
javax.faces.webapp.FacesServlet.init(FacesServlet.java:142)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)The same with hangman (http://localhost:8080/hangman)
What is wrong here?
Tomcat version is 6.0.16. The only thing I changed in the tomcat installation is that I added the jstl.1.2.jar to the lib-folder.
Has anyone an idea?
Thank you very much. -
JWSDP 2.0 examples failing to compile
I am using JWSDP 2.0, JDK 1.5.0_06 AND tOMCAT 5.5.18.
While compiling "fromjava" example of JWSDP 2.0, I am getting error
java.lang.NoClassDefFoundError: javax/xml/bind/annotation/AccessType
I tried searching this class in all the jar files available in JWSDP 2.0 as well as JDK 1.5.0_06 but couldn't get.
Then I tried searching the net as if I don't have the jar file containg this class and I got the following post saying that the class name has been changed to "XmlAccesType" in an update of JAXB.
http://forums.java.net/jive/thread.jspa?threadID=14599&messageID=102626
I don't see this class used in any of the example source, it means some other class used in the library is using it and I have no way of changing this file and get this example working.
Could any body help me compile this example.See Troubleshooting issues with iTunes for Windows updates. Use the steps in the second box to repair your iTunes installation. Your library should be unaffected by these steps but there is backup advice elsewhere in the user tip.
tt2 -
CreditFlow example fails to compile
Hello.
I have downloaded and installed bpel 10.1.2 and the bpel designer for Eclipse. I have Eclipse 3.1 installed.
When I follow the example app, CreditFlow, I click on Build the BPEL Project and get the following error:
Buildfile: C:\BPELwork\CreditFlow\build.xml
main:
[bpelc] error: Invalid class file format in C:\Program Files\Java\jre1.5.0_04\lib\rt.jar(java/lang/Object.class). The major.minor version '49.0' is too recent for this tool to understand.
[bpelc] error: Class java.lang.Object not found in class com.collaxa.cube.engine.core.BaseCubeProcess.
[bpelc] 2 errors
BUILD FAILED
C:\BPELwork\CreditFlow\build.xml:28: ORABPEL-01005
Failed to compile classes.
Failed to compile the generated BPEL classes for "CreditFlow".
Does anyone know how to get past this?
Thanks.There is no need for deinstalling anything - and why this should not be possible.
For serverside:
the only thing you have to take care is the path setting in setenv.bat - which sets the path for the jdk .. ($BPEL_HOME/bin)
client side, eclipse offers you to specify the vm location (-vm switch)
clemens -
Pushreplication Example failing
Hi all,
I have been struggeling with the Pushreplication ActiveActive Example for a while now, and I cannot get it to work
I am able to run both Active Cache Servers, but as soon as I am running the ActiveActiveUpdater, I am getting errors in both the Client and the Server.
I am using Coherence 12.1.3 and the Coherence Incubator 12.3 on Windows 7 64 bit.
Here are the logs - ActiveActiveUpdater:
Updating the cache with running sum object key = [0] and value [130]
Exception in thread "main" Portable(com.tangosol.util.WrapperException): (Wrapped: Failed request execution for DistributedCacheWithPublishingCacheStore service on Member(Id=2, Timestamp=2015-03-08 11:03:03.758, Address=10.162.62.78:8090, MachineId=23146, Location=site:Site1,machine:ANIWCZIN-IL,process:1016, Role=CoherenceServer) (Wrapped: Failed to store key="0") poll() is a blocking call and cannot be called on the Service thread) poll() is a blocking call and cannot be called on the Service thread
at com.tangosol.util.Base.ensureRuntimeException(Base.java:289)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.tagException(Grid.CDB:50)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onPartialCommit(PartitionedCache.CDB:7)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:82)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.run(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:3)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:1)
at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:2)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
at java.lang.Thread.run(Thread.java:745)
at <process boundary>
at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:376)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
at com.tangosol.coherence.component.net.message.responseMessage.SimpleResponse.read(SimpleResponse.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:20)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:21)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
at java.lang.Thread.run(Thread.java:745)
Caused by: Portable(com.tangosol.util.AssertionException): poll() is a blocking call and cannot be called on the Service thread
at com.tangosol.coherence.Component._assertFailed(Component.CDB:12)
at com.tangosol.coherence.Component._assert(Component.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:24)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:36)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:26)
at com.tangosol.coherence.config.scheme.AbstractCachingScheme.realizeCache(AbstractCachingScheme.java:63)
at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureCache(ExtensibleConfigurableCacheFactory.java:242)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:205)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:182)
at com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:108)
at com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:58)
at com.oracle.coherence.patterns.eventdistribution.distributors.coherence.CoherenceEventDistributor.establishEventChannelController(CoherenceEventDistributor.java:149)
at com.oracle.coherence.patterns.eventdistribution.configuration.EventDistributorTemplate.realize(EventDistributorTemplate.java:263)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:208)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:1)
at com.oracle.coherence.common.resourcing.AbstractDeferredSingletonResourceProvider.getResource(AbstractDeferredSingletonResourceProvider.java:85)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.distribute(PublishingCacheStore.java:327)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.store(PublishingCacheStore.java:523)
at com.tangosol.net.cache.ReadWriteBackingMap$BinaryEntryStoreWrapper.storeInternal(ReadWriteBackingMap.java:6221)
at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:5003)
at com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1438)
at com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:758)
at java.util.AbstractMap.putAll(AbstractMap.java:273)
at com.tangosol.net.cache.ReadWriteBackingMap.putAll(ReadWriteBackingMap.java:801)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.putPrimaryResource(PartitionedCache.CDB:63)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.postInvoke(PartitionedCache.CDB:36)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvocationContext.postInvokeAll(PartitionedCache.CDB:20)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvocationContext.postInvoke(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.invoke(PartitionedCache.CDB:15)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.run(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:3)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:1)
at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:2)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
at java.lang.Thread.run(Thread.java:745)
at <process boundary>
at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:57)
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
at com.tangosol.io.pof.PortableException.readExternal(PortableException.java:150)
at com.tangosol.io.pof.ThrowablePofSerializer.deserialize(ThrowablePofSerializer.java:59)
at com.tangosol.io.pof.PofBufferReader.readAsObject(PofBufferReader.java:3316)
at com.tangosol.io.pof.PofBufferReader.readObject(PofBufferReader.java:2604)
at com.tangosol.io.pof.ConfigurablePofContext.deserialize(ConfigurablePofContext.java:376)
at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.readObject(Service.CDB:1)
at com.tangosol.coherence.component.net.Message.readObject(Message.CDB:1)
at com.tangosol.coherence.component.net.message.responseMessage.SimpleResponse.read(SimpleResponse.CDB:6)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.deserializeMessage(Grid.CDB:20)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:21)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
at java.lang.Thread.run(Thread.java:745)
CacheServer:
2015-03-08 11:03:40.054/40.096 Oracle Coherence GE 12.1.3.0.0 <Warning> (threadistributedCacheistributedCacheWithPublishingCacheStore, member=2): Application code running on "DistributedCacheWithPublishingCacheStore" service thread(s) should not call ensureCache as this may result in deadlock. The most common case is a CacheFactory call from a custom CacheStore implementation.
2015-03-08 11:03:40.056/40.098 Oracle Coherence GE 12.1.3.0.0 <Error> (threadistributedCacheistributedCacheWithPublishingCacheStore, member=2): Assertion failed: poll() is a blocking call and cannot be called on the Service thread
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:24)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:36)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:26)
at com.tangosol.coherence.config.scheme.AbstractCachingScheme.realizeCache(AbstractCachingScheme.java:63)
at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureCache(ExtensibleConfigurableCacheFactory.java:242)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:205)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:182)
at com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:108)
at com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:58)
at com.oracle.coherence.patterns.eventdistribution.distributors.coherence.CoherenceEventDistributor.establishEventChannelController(CoherenceEventDistributor.java:149)
at com.oracle.coherence.patterns.eventdistribution.configuration.EventDistributorTemplate.realize(EventDistributorTemplate.java:263)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:208)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:1)
at com.oracle.coherence.common.resourcing.AbstractDeferredSingletonResourceProvider.getResource(AbstractDeferredSingletonResourceProvider.java:85)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.distribute(PublishingCacheStore.java:327)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.store(PublishingCacheStore.java:523)
at com.tangosol.net.cache.ReadWriteBackingMap$BinaryEntryStoreWrapper.storeInternal(ReadWriteBackingMap.java:6221)
at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:5003)
at com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1438)
at com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:758)
at java.util.AbstractMap.putAll(AbstractMap.java:273)
at com.tangosol.net.cache.ReadWriteBackingMap.putAll(ReadWriteBackingMap.java:801)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.putPrimaryResource(PartitionedCache.CDB:63)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.postInvoke(PartitionedCache.CDB:36)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvocationContext.postInvokeAll(PartitionedCache.CDB:20)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvocationContext.postInvoke(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.invoke(PartitionedCache.CDB:15)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.run(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:3)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:1)
at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:2)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
at java.lang.Thread.run(Thread.java:745)
2015-03-08 11:03:40.058/40.100 Oracle Coherence GE 12.1.3.0.0 <Warning> (threadistributedCacheistributedCacheWithPublishingCacheStore, member=2): Partial commit due to the backing map exception com.tangosol.internal.util.HeuristicCommitException
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.postInvoke(PartitionedCache.CDB:42)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvocationContext.postInvokeAll(PartitionedCache.CDB:20)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvocationContext.postInvoke(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.invoke(PartitionedCache.CDB:15)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onInvokeRequest(PartitionedCache.CDB:52)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$InvokeRequest.run(PartitionedCache.CDB:1)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:3)
at com.tangosol.coherence.component.util.DaemonPool.add(DaemonPool.CDB:1)
at com.tangosol.coherence.component.net.message.requestMessage.DistributedCacheKeyRequest.onReceived(DistributedCacheKeyRequest.CDB:2)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onMessage(Grid.CDB:38)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.onNotify(Grid.CDB:23)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.PartitionedService.onNotify(PartitionedService.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.onNotify(PartitionedCache.CDB:3)
at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:51)
at java.lang.Thread.run(Thread.java:745)
Caused by: (Wrapped: Failed to store key="0") com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread
at com.tangosol.util.Base.ensureRuntimeException(Base.java:289)
at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.onStoreFailure(ReadWriteBackingMap.java:5344)
at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:5009)
at com.tangosol.net.cache.ReadWriteBackingMap.putInternal(ReadWriteBackingMap.java:1438)
at com.tangosol.net.cache.ReadWriteBackingMap.put(ReadWriteBackingMap.java:758)
at java.util.AbstractMap.putAll(AbstractMap.java:273)
at com.tangosol.net.cache.ReadWriteBackingMap.putAll(ReadWriteBackingMap.java:801)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.putPrimaryResource(PartitionedCache.CDB:63)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache$Storage.postInvoke(PartitionedCache.CDB:36)
... 14 more
Caused by: com.tangosol.util.AssertionException: poll() is a blocking call and cannot be called on the Service thread
at com.tangosol.coherence.Component._assertFailed(Component.CDB:12)
at com.tangosol.coherence.Component._assert(Component.CDB:3)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:5)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:1)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:24)
at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.partitionedService.PartitionedCache.ensureCache(PartitionedCache.CDB:36)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache$Router(SafeCacheService.CDB:1)
at com.tangosol.coherence.component.util.safeService.SafeCacheService.ensureCache(SafeCacheService.CDB:26)
at com.tangosol.coherence.config.scheme.AbstractCachingScheme.realizeCache(AbstractCachingScheme.java:63)
at com.tangosol.net.ExtensibleConfigurableCacheFactory.ensureCache(ExtensibleConfigurableCacheFactory.java:242)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:205)
at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:182)
at com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:108)
at com.oracle.coherence.common.builders.NamedCacheSerializerBuilder.realize(NamedCacheSerializerBuilder.java:58)
at com.oracle.coherence.patterns.eventdistribution.distributors.coherence.CoherenceEventDistributor.establishEventChannelController(CoherenceEventDistributor.java:149)
at com.oracle.coherence.patterns.eventdistribution.configuration.EventDistributorTemplate.realize(EventDistributorTemplate.java:263)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:208)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore$1.ensureResource(PublishingCacheStore.java:1)
at com.oracle.coherence.common.resourcing.AbstractDeferredSingletonResourceProvider.getResource(AbstractDeferredSingletonResourceProvider.java:85)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.distribute(PublishingCacheStore.java:327)
at com.oracle.coherence.patterns.pushreplication.PublishingCacheStore.store(PublishingCacheStore.java:523)
at com.tangosol.net.cache.ReadWriteBackingMap$BinaryEntryStoreWrapper.storeInternal(ReadWriteBackingMap.java:6221)
at com.tangosol.net.cache.ReadWriteBackingMap$StoreWrapper.store(ReadWriteBackingMap.java:5003)
... 20 more
Many thanks in advance!!HI Subba,
have you doen any binding if yes can you send teh details please.
Regards
AnujN -
Yahoo search example failed http connection
The Yahoo search example supplied with XMP-FileInfo-SDK-5.1 works perfectly well when PanelTest.mxml is compiled from Flashbuilder 4. However when I add the panel to Photoshop CS5 the http request fails. IT have indicated that the request doesn't even get as far as the firewall. The installation of Photoshop is at the root level, so the info panels are at Mac HD/Library/Application Support/Adobe/XMP/Custom File Info Panels/3.0/panels, not /Users/<username>/etc.
cfg files are in place and flash security settings are correct for that location.
Any help appreciated. ThanksThanks lot sir for your kind reply. I have worked two days on this problem and just few moments ago I solved this problem.
I am not behind any proxy server I did following changes to provider.xml file in proxy section
<proxyInfo class="oracle.portal.provider.v2.ProxyInformation">
<!-- <httpProxyHost></httpProxyHost>
<httpProxyPort></httpProxyPort>
<dontProxyFor>*.mycompany.com</dontProxyFor> -->
<proxyUseAuth></proxyUseAuth>
<proxyType></proxyType>
<proxyRealm></proxyRealm>
<proxyUseGlobal></proxyUseGlobal>
<proxyUser></proxyUser>
</proxyInfo>
commented first three tags and removed value from remaining tags.
I am following your book Oracle WebCenter 11g PS3 Administration Cookbook very well written :) . I have also embedded Google docs by following your book successfully but
on portal Google docs page is blank I dont know why.
Thank you,
Muhammad Nasir -
Qsample example failing with Q_CAT:1495: ERROR: xa_open()
I'm trying to run qsample example coming with evaluation tuxedo 8.0 for solaris
8.
It fails in the qmadmin tool when trying to call "qopen QSPACE".
The user log file has recorded error line "Q_CAT:1495: ERROR: xa_open() - failed
to attach to shared memory, key = 62839, errno = 22".
Truss utility shows this:
<<<<<<<<<<<<<<<<<<<<<<<<<
semget(62839, 1, 0) = 786432
semop(786432, 0xFFBEE0BC, 1) = 0
shmget(62839, 0, 0) = 24576
shmctl(24576, 12, 0xFFBEE058) = 0
shmat(24576, 0, 0) = 0xFD800000
shmdt(0xFD800000) = 0
shmget(62839, 94417, 0) = 24576
open("/dev/zero", O_RDONLY) = 4
mmap(0x00000000, 1048576, PROT_READ, MAP_PRIVATE, 4, 0) = 0xFE280000
close(4) = 0
munmap(0xFE280000, 1048576) = 0
shmat(24576, 0xFE280000, 0) Err#22 EINVAL
.and /etc/system has:
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:share_page_table=1
set msgsys:msginfo_msgmap = 1026
set msgsys:msginfo_msgmax = 4096
set msgsys:msginfo_msgmnb = 4096
set msgsys:msginfo_msgmni = 50
set msgsys:msginfo_msgssz = 8
set msgsys:msginfo_msgtql = 1024
set msgsys:msginfo_msgseg = 2048
** IPC-semsys
set semsys:seminfo_semmap = 1026
set semsys:seminfo_semmni = 3072
set semsys:seminfo_semmns = 32768
set semsys:seminfo_semmnu = 2048
set semsys:seminfo_semmsl = 128
set semsys:seminfo_semopm = 128
set semsys:seminfo_semume = 256
set semsys:seminfo_semvmx = 32767
set semsys:seminfo_semaem = 16384
** IPC-shmsys
set shmsys:shminfo_shmmni = 3072
set shmsys:shminfo_shmseg = 1024
The box we are tryimg it on is a big SunFire 6800 server
with 16 GB RAM and 8 CPUs and also has Oracle installed on it
so all shared memory setting are quite high.
Could anyone tell me where we are doing wrong. Thanking you in advance.Thank you, Scott
Actually I've found the problem already. It was in the /etc/system file we had
settings shmsys:share_page_table=1, and that caused ISM to function differently
so, particularly calls to shmat() with supplying your own map address (and what
Tuxedo does) would fail. Removing this setting fixed the problem.
Scott Orshan <[email protected]> wrote:
George,
I tried qsample on Tux 8/Solaris 8, and it worked for me. I think that
Support should take a look at it. You can have them check with me, and
I'll show them where in the code this error comes from.
Scott Orshan
George wrote:
I'm trying to run qsample example coming with evaluation tuxedo 8.0for solaris
8.
It fails in the qmadmin tool when trying to call "qopen QSPACE".
The user log file has recorded error line "Q_CAT:1495: ERROR: xa_open()- failed
to attach to shared memory, key = 62839, errno = 22".
Truss utility shows this:
<<<<<<<<<<<<<<<<<<<<<<<<<
semget(62839, 1, 0) = 786432
semop(786432, 0xFFBEE0BC, 1) = 0
shmget(62839, 0, 0) = 24576
shmctl(24576, 12, 0xFFBEE058) = 0
shmat(24576, 0, 0) = 0xFD800000
shmdt(0xFD800000) = 0
shmget(62839, 94417, 0) = 24576
open("/dev/zero", O_RDONLY) = 4
mmap(0x00000000, 1048576, PROT_READ, MAP_PRIVATE, 4, 0) = 0xFE280000
close(4) = 0
munmap(0xFE280000, 1048576) = 0
shmat(24576, 0xFE280000, 0) Err#22 EINVAL -
Simple struct example fails.
%module myModule
struct myStruct {
int myNumber;
extern void test(struct myStruct *);
struct myStruct {
int myNumber;
extern void test(struct myStruct *;
Let me preface this by acknowledging that, despite hours of reading FLASCC, CrossBridge and SWIG documentation, I don't have a very solid understanding of what I am supposed to be doing. That is why I have reduced the 05 and 06 samples to this simplest possible case. In particular, since I have no good feeling about what preprocessing and actual processing steps are going on when I enter:
$FLASCC}/usr/bin/swig -as3 -module myModule -outdir . -includeall -ignoremissing -o MyLib.c t.swg
[After having done: export CYGWIN=nodosfilewarning in order to overcome that matter.]
I am not sure when this diagnostic warning/error gets emitted: didn't find type info for myStruct
I do get a MyLib.c file and I do get a myModule.as, but as the comments in those two files wisely point out, a beginner would be a fool to try to touch either of them and neither of them is understandable to the novice. All I can say is that a myStruct structure does seem to be found in the .c file, but in the .as file, the argument to the test function seems to be an int, not a pointer as I would have guessed from what I have read.
So:
A. Is the did not find type message just a warning that I should ignore and try to go on to building a SWC that could successfully use the test function, or is it an error, that will prevent any successful use?
B. Assuming it is the latter, what is wrong with the syntax I am providing?
C. Can you provide a simple explanation of why the information provided in the swig interface file seems to essentailly need to be duplicated as above. I am not concerned with/interested in explanations of alternatives that might accomplish the same thing. If what I am providing is invalid, in which section is it invalid? What parts of the swig compilation 'see' each section?
Thank you.Well, it's many hours later and I have made some progress, but rather than just edit the original posting, I think it will be more clear to append to it this way.
First, I was able to coerce the help text out of swig. That gave me a handle to the -E switch so I could see the difference between the kinds of logic made part of preprocessing as separate from the final compilation steps. The -verbose option was useful once I could tell that my problem was NOT being picked up in a preprocessing step.
Evenutally I was able to get an error message pointing to the first character of the first line of my swig file! That led to the idea that I needed to use the #ifdef SWIG syntax which I had seen in some of the examples -- but none of the examples that I thought pertained to my simplke non-C++ use case. Evidently I am wrong.
So, I will keep trying to move the ball down the field. By using this kind of weird triplification, I now seem to get clean output from swig:
#ifdef SWIG
%module myModule
/* Place my C declarations here. */
/* Insert the same C declarations here. */
#else
/* insert the same C declarations a third time here. */
#endif
So, if indeed, that is a correct incantation, I would still appreciate a plain English, non-techno-abbreviated statement of why the code needs to appear in each of those three places.
Thank you.. -
Simplest import-excel example fails - beginner question
Help! I can't get import-excel to behave reliably even in the simplest case:
1 New table with the default one column
2 Add data to one row "hello"
3 Export to excel
4 New table with the default one column
5 Import from excel
6 Error message:
--IMPORT into table TABLE2 complete
--Inserted 2rows.
--Failed to insert 0rows.
I don't know if this detail helps:
Step 2's message was:
--INSERT INTO "TABLE1" (COLUMN1) VALUES ('hello')
--Commit Successful
Step 3's resulting excel file looks OK, though it has a null column to the right (as revealed by excel's control-end key). Nevertheless, deleting that null column didn't change the outcome.
Step 5's DML says:
--insert into TABLE2 (COLUMN1) VALUES(' ');
--insert into TABLE2 (COLUMN1) VALUES(' ');Oops, I forgot to mention these details:
--Oracle9i Enterprise Edition Release 9.2.0.8.0
--OracleBI Discoverer Version 10.1.2.2
--SQL Developer 1.1.2.25
--Excel 2003 -
JAAS inside Servlet (Specific Tomcat 4.0.1)
Hi there,
I'm trying to run the simple authentication inside a Servlet and I'm getting a security exception:
"unable to instantiate LoginConfiguration".
I have the same code working from a stand-alone application.
I read on that there is a problem with jdk 1.3 and JAAS 1.0, so I did what they recommend to put the jaas.jar and login module jar on the classpath, I did and didn't work.
I found also that the jdk 1.4 would fix this problem, installed and I still have the problem.
Any help would be very appreciate.
Thanks in advance,
Marcio Adriano
PS.: The following is the full exception message:
java.lang.SecurityException: unable to instantiate LoginConfiguration
at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:212)
at javax.security.auth.login.LoginContext$1.run(LoginContext.java:166)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.init(LoginContext.java:163)
at javax.security.auth.login.LoginContext.<init>(LoginContext.java:319)
at com.truecontext.wasabi.presentation.control.web.handlers.LoginHandler.doStart(LoginHandler.java:75)
at com.truecontext.wasabi.presentation.control.web.RequestProcessor.processRequest(RequestProcessor.java:86)
at com.truecontext.wasabi.presentation.control.web.MainServlet.doProcess(MainServlet.java:191)
at com.truecontext.wasabi.presentation.control.web.MainServlet.doGet(MainServlet.java:140)
at com.truecontext.wasabi.presentation.control.web.MainServlet.doPost(MainServlet.java:78)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)
at java.lang.Thread.run(Thread.java:484)Dear axe_fx
I did whatever you have suggested to me, but still the following problem persist.
Login::main::Caught Exception java.lang.SecurityException: unable to instantiate
LoginConfiguration
Login::main::Before calling login method of LoginContext.
Unexpected Exception occured- unable to continue
java.lang.NullPointerException
at com.javapro.struts.Login.<init>(Login.java:71)
at com.javapro.struts.LoginAction.execute(LoginAction.java:29)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1106)
at java.lang.Thread.run(Thread.java:484)
Login::main::Before calling login method of LoginContext.
Unexpected Exception occured- unable to continue
java.lang.NullPointerException
at com.javapro.struts.Login.<init>(Login.java:71)
at com.javapro.struts.LoginAction.execute(LoginAction.java:29)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1106)
at java.lang.Thread.run(Thread.java:484)
Login::main::Before calling login method of LoginContext.
Unexpected Exception occured- unable to continue
java.lang.NullPointerException
at com.javapro.struts.Login.<init>(Login.java:71)
at com.javapro.struts.LoginAction.execute(LoginAction.java:29)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:446)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:266)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:129
2)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:510)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:247)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:243)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:201)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:
2344)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:164)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
462)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1011)
at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1106)
at java.lang.Thread.run(Thread.java:484)
Sorry
Exception is null
Please let me know if something else is to be done,I have set up the jass.jar in my classpath.
In addition to this i did the same steps on the WEblogic also, but got the same problem
Regards
Rajesh
Maybe you are looking for
-
InDesign Tagged Text for Cross-reference Entries
I'm transforming XML to InDesign Tagged Text. The XML has index codes. For regular page entry type entries I'm having no problem outputting to the appropriate InDesign Tagged Text markup. However, I cannot figure out how to code cross-reference type
-
Starburst background displays on HDMI TV but not any applications (Safari, files, other programs)
-
Unable to load embedded fonts in Textlayout Framework using SWFContext.
Hi, We are having issues with embedding/renderring fonts in swf. Here is the code of the slide1.swf compiled by mxmlc.exe [Adobe Flex Compiler (mxmlc) Version 4.1.0 build 16076] with compiler parameters -- "-static-link-runtime-shared-librar
-
hi there, i have managed to get my mipd program talking 2 a tomcat server, but i have run into the following problem: the servlet has at initiation a buffer called int l = 0; and increment the l value by 1 , this is fine but when i get another phone
-
Hi guys, Here is the idea of this: https://forums.adobe.com/thread/1712927#7217892 Thanks.