Weblogic handler problem?
Hello,
We are trying to write a custom local authentication handler for a java application deployed on weblogic server 9.1.
My problem is this:
- If I use agent authentication provider, local auth handler is not processed. The log tells me that the principal is already set, so no need for local auth handler.
Indeed, there is a need for some handler since the silly application doesn't rely solely on web-tier declarative security but also it utilizes another form based login.
Basically we need to set a request attribute after agent authenticates the user. If that was a string that would be no problem but this is an object of a class that the application vendor uses.
So could you advice me some handler or any place to set that object?
Best,
Kirpi
Hello,
We are trying to write a custom local authentication handler for a java application deployed on weblogic server 9.1.
My problem is this:
- If I use agent authentication provider, local auth handler is not processed. The log tells me that the principal is already set, so no need for local auth handler.
Indeed, there is a need for some handler since the silly application doesn't rely solely on web-tier declarative security but also it utilizes another form based login.
Basically we need to set a request attribute after agent authenticates the user. If that was a string that would be no problem but this is an object of a class that the application vendor uses.
So could you advice me some handler or any place to set that object?
Best,
Kirpi
Similar Messages
-
WebLogic Handler Problem - Handler handleMessage is not getting invoked!
Hi, I am using weblogic 11g and trying to register a handler to log my requests/responses to and from the service. I use Maven to build the project and register the handler as described in the Oracle documents. Here is the handler declaration in the server class that implements the port interface
@HandlerChain(file="handlers.xml")Here is the declaration of the handler class in the handlers.xml
<?xml version="1.0" encoding="UTF-8"?>
<handler-chains xmlns="http://java.sun.com/xml/ns/javaee">
<handler-chain>
<handler>
<handler-class>com.mycompany.service.handlers.LogHandler</handler-class>
</handler>
</handler-chain>
</handler-chains>handlers.xml has been put in a folder structure under resources so that when the war file is generated, it is placed in the same folder as the server class. LogHandler implements SOAPHandler<SOAPMessageContext>
When I deploy the application, the handler gets invoked and the getHeaders method gets called multiple times. But when I call the service with any operation, the handleMessage method is not invoked and the service acts like it doesn't have any handler. Please note that there are other projects that exist in my workspace and use handlers with the same configuration without any issues. As the handler is required for this project and I am running out of options to fix this matter, I appreciate your feedback. Thanks in advance!Your web.xml file need a servlet-mapping section:<web-app>
<servlet>
<!-- Servlet alias -->
<servlet-name>Registration</servlet-name>
<!-- Fully qualified Servlet class -->
<servlet-class>GreetingServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>GreetingServlet</servlet-name>
<url-pattern>/servlet/GreetingServlet</url-pattern>
</servlet-mapping>
</web-app>Also, you probably need to put your servlet in a package. -
Exception Handling Problem In BPM
All
I am facing an exception handling problem I am using BPM and , I have caught exception in the transformation step but when there is any data problem in that mapping(mentioned in the transformation)
it is not throwing the exception . is there any option to collect these type of system exception in the bpm and give a alert thru mail
is there any way to collect these type of exception happened in the BPE and raise alert thru generic alert
Thanks
JayaramanHi Jayaraman,
When you say there is any data problem, does that fail the message mapping that you have defined?
If the message mapping used in the tranformation fails, it should raise an exception in the BPM.
Did you test the message mapping using the payload and see if it really fails or not?
Regards,
Ravi Kanth Talagana -
GUI event handling problems appear in 1.4.1 vs. 1.3.1?
Hi,
Has anyone else experienced strange event handling problems when migrating from 1.3.1 to 1.4.1? My GUI applications that make use of Swing's AbstractTableModel suddenly don't track mouse and selection events quickly anymore. Formerly zippy tables are now very unresponsive to user interactions.
I've run the code through JProbe under both 1.3 and 1.4 and see no differences in the profiles, yet the 1.4.1 version is virtually unusable. I had hoped that JProbe would show me that some low-level event-handling related or drawing method was getting wailed on in 1.4, but that was not the case.
My only guess is that the existing installation of 1.3.1 is interfering with the 1.4.1 installation is some way. Any thoughts on that before I trash the 1.3.1 installation (which I'm slightly reluctant to do)?
My platform is Windows XP Pro on a 2GHz P4 with 1GB RAM.
Here's my test case:
import javax.swing.table.AbstractTableModel;
import javax.swing.*;
import java.awt.*;
public class VerySimpleTableModel extends AbstractTableModel
private int d_rows = 0;
private int d_cols = 0;
private String[][] d_data = null;
public VerySimpleTableModel(int rows,int cols)
System.err.println("Creating table of size [" + rows + "," + cols +
d_rows = rows;
d_cols = cols;
d_data = new String[d_rows][d_cols];
int r = 0;
while (r < d_rows){
int c = 0;
while (c < d_cols){
d_data[r][c] = new String("[" + r + "," + c + "]");
c++;
r++;
System.err.println("Done.");
public int getRowCount()
return d_rows;
public int getColumnCount()
return d_cols;
public Object getValueAt(int rowIndex, int columnIndex)
return d_data[rowIndex][columnIndex];
public static void main(String[] args)
System.err.println( "1.4..." );
JFrame window = new JFrame();
window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
JPanel panel = new JPanel();
Dimension size = new Dimension(500,500);
panel.setMinimumSize(size);
panel.setMaximumSize(size);
JTable table = new JTable(new VerySimpleTableModel(40,5));
panel.add(table);
window.getContentPane().add(panel);
window.setSize(new Dimension(600,800));
window.validate();
window.setVisible(true);
Thanks in advance!!
- DeanHi,
I've fixed the problem by upgrading to 1.4.1_02. I was on 1.4.1_01.
I did further narrow down the symptoms more. It seemed the further the distance from the previous mouse click, the longer it would take for the table row to highlight. So, clicking on row 1, then 2, was much faster than clicking on row 1, then row 40.
If no one else has seen this problem -- good! I wouldn't wish the tremendous waste of time I've had on anyone!
- Dean -
Labview slider event handling problems - revisited
This topic asked a question that was very close to a problem I am having:
Labview slider event handling problems
That is, how do I, using an event structure and/or other means, only read out the value of a slider control after the value change is finalized?
The extra constraint I'd like to place on this, which I believe will invalidate the answer given in the thread above, is that my slider control also has a digital display which can also be used to change the value without ever using the mouse. I cannot look for a value change followed by a mouse-up event if the mouse was not used to change the value.
Any ideas how this might be accomplished? FWIW, I am using LabVIEW 7.0Each and every incremental value-change event generated by the movement of the slider is still detected and queued up for use by the event structure and the event structure loop wades through them all before it's done.
I have come up the attached "fix" (LV v7.0) for this problem. While it is not as clean a solution as I had hoped it would be, it's the best I can manage given what LabVIEW offers me to work with and it does work in the situation where I need to use it.
Now, within the Finalize Slider Events subVI, I'm keeping track of the most-recent values seen by the subVI, checking to see if they have changed, and reporting out that fact. That gives me a Changed/Not-Changed bit within the event case that I can use to control what code then gets executed. If the event case is just playing catch-up to the real value of the control, I can now see that fact and ignore it.
In this version I've also dumped the variant output and limited the VI to using DBL values. I decided it added complication to something that was too complicated already and I wanted the output terminals for other purposes anyway (reporting of the correct "OldVal" of the control).Message Edited by Warren Massey on 04-28-2005 03:56 AM
Attachments:
slider_events[5].llb 77 KB -
Weblogic handling of inbound connections
OS=Solaris2.6
WLS=4.5.2
JDK=1.2.1
Can anybody answer how weblogic handles inbound TCP connections?
I have heard, but not confirmed that 3 threads are dedicated for handling
incoming connections.
My question is, what happens in the case where there are more than 3
incoming connections at a time?
Are TCP reset packets send back to the client?
Are the packets queued? if so, how and for how long?t> I have heard, but not confirmed that 3 threads are dedicated for
t> handling incoming connections.
Two threads listen for incoming connections - one for plaintext
connections, and one for SSL. Once a connection has come in, a
minimal amount of processing is done, and it is then queued to be
handled by other threads.
t> My question is, what happens in the case where there are more than
t> 3 incoming connections at a time?
They are queued in the system's TCP stack until one of the listen
threads gets to them. You can control the allowable backlog using the
weblogic.system.acceptBacklog property.
<b
Let us pray:
What a Great System.
Please Do Not Crash.
^G^IP@P6 -
Delicate ProgressMonitor/ event handling problem
Hi,
I have a delicate ProgressMonitor / event handling problem.
There exists some solution on similiar problems here in the forums, but no solution to my special problem, hope anybody can help me out.
I have a rather big project, an applet, that I've written a separate JarLoader class that will load specific jar's if the ClassLoader encounter a unloaded class, all ok so far.
But, during loading, I would like to display a ProgressBar. And here is the problem. If my custom ClassLoader intercepts a findClass -request that needs to load the class from a jar from a normal thread, this is no problem, but if the ClassLoader intercepts a findClass that needs loading a jar when inside the EventQueue -thread, this is becomming tricky!
The catch is that an event posted on the EventQueue finally needs a class that needs to be loaded, but I cannot dispatch a thread to do this and end that particular event before the class itself is loaded.
So how do I hold the current EventQueue -event needing a jar -load, Pop up a ProgressBar, then process events in the EventQueue to display the ProgressBar and update repaints in it? then return from the event that now have loaded needed class-files.
I've tried a tip described earlier in the forums by trying to handle events with this code when loading the Jar:
/** process any waiting events - use during long operations
* to update UI */
static public void doEvents() {
// need to derive from EventQueue otherwise
// don't have access to protected method dispatchEvent()
class EvtQueue extends java.awt.EventQueue {
public void doEvents() {
Toolkit toolKit = Toolkit.getDefaultToolkit();
EventQueue evtQueue = toolKit.getSystemEventQueue();
// loop whilst there are events to process
while (evtQueue.peekEvent() != null) {
try {
// if there are then get the event
AWTEvent evt = evtQueue.getNextEvent();
// and dispatch it
super.dispatchEvent(evt);
catch (java.lang.InterruptedException e) {
// if we get an exception in getNextEvent()
// do nothing
// create an instance of our new class
EvtQueue evtQueue = new EvtQueue();
// and call the doEvents method to process the events.
evtQueue.doEvents();
}Then, the loader checks
java.awt.EventQueue.isDispatchThread()to see if its' inside the eventqueue, and runs doEvents after updating the ProgressMonitor with new setProgress and setNote values.
More precise;
The loader is loading the jar like this:
(this is pseudo code, not really usable, but outlines the vital parts)
public void load() {
monitor = new ProgressMonitor(null, "Loading " + jarName, ""+jarSize + " bytes", 0, jarSize);
monitor.setMillisToDecideToPopup(0);
monitor.setMillisToPopup(0);
// reading jar info code here ...
JarEntry zip = input.getNextJarEntry();
for (;zip != null;) {
// misc file handling here... total = current bytes read
monitor.setProgress(total);
monitor.setNote(note);
if (java.awt.EventQueue.isDispatchThread()) {
doEvents();
zip = input.getNextJarEntry();
monitor.close();
}When debugging doEvents(), there is never any events pending in peekEvents(), even if I tries to put a invokeLater() to run the setProgress on the monitor, why? If it had worked, the doEvents() code would have saved my day...
So, this is where I'm totally stuck...Just want to describe how I did this using spin from http://spin.sourceforge.net
This example is not pretty, but it can probably help others understanding spin. Cancelling the ProgressMonitor is not implemented, but can easily be done by checking on ProgressMonitor.isCanceled() in
the implementation code.
First, I create a bean for displaying and run a ProgressMonitor:
Spin requires an Interface and an Implementation, but that's just nice programming practice :-)
import java.util.*;
public interface ProgressMonitorBean {
public void start(); // start spinning
public void cancel(); // cancel
public int getProgress(); // get the current progress value
public void setProgress(int progress); // set progress value
public void addObserver(Observer observer); // observer on the progressValue
}Then, I created the implementation:
import java.util.*;
import javax.swing.ProgressMonitor;
import java.awt.*;
public class ProgressMonitorBeanImpl extends Observable implements ProgressMonitorBean {
private ProgressMonitor monitor;
private boolean cancelled;
private int progress = 0;
private int currentprogress = 0;
public ProgressMonitorBeanImpl(Component parent, Object message, String note, int min, int max) {
monitor = new ProgressMonitor(parent, message, note, min, max);
monitor.setMillisToDecideToPopup(0);
monitor.setMillisToPopup(0);
public void cancel() {
monitor.close();
public void start() {
cancelled = false;
progress = 0;
currentprogress = 0;
while (progress < m_cMonitor.getMaximum()) {
try {
synchronized (this) {
wait(50); // Spinning with 50 ms delay
if (progress != currentprogress) { // change only when different from previous value
setChanged();
notifyObservers(new Integer(progress));
monitor.setProgress(progress);
currentprogress = progress;
} catch (InterruptedException ex) {
// ignore
if (cancelled) {
break;
public int getProgress() {
return progress;
public void setProgress(int progress) {
this.progress = progress;
}in my class/jarloader code, something like this is done:
public void load() {
ProgressMonitorBean monitor = (ProgressMonitorBean)Spin.off(new ProgressMonitorBeanImpl(null, "Loading " + url,"", 0, jarSize));
Thread t = new Thread() {
public void run() {
JarEntry zip = input.getNextJarEntry();
for (;zip != null;) {
// misc file handling here... progress = current bytes read
monitor.setProgress(progress);
t.start(); // fire off loadin into own thread to do time consuming work
monitor.start(); // this will spin events on monitor and block until progress = max
monitor.cancel(); // Just make sure ProgressMonitor is closed
}The beautiful thing here is that Spin is taking care of weither the load() is inside the dispatch thread or not, making the code much simpler and cleaner to understand.
The ProgressMonitorBeanImplementation could been made much nicer and more complete, but I was in a hurry to check if it worked out. And it did! This will be applied on a lot of gui -components that blocks the event-queue in our project, making it much more responsive.
Hope this will help others in similiar situations! Thanks again svenmeier for pointing me to the spin -project. -
Weblogic HTTP handler problems
Recently I had the following problem with an application which
makes ALOT of outgoing HTTP requests - with Weblogic's HTTP handler
it was resulting in sporadic deadlocks, but using Sun's handler
completely cured the problem. (5.1, sp6 on Solaris, not reproduceable
on Windows 2k).
Is that a bug?
DimitriI just got the problem. Help needed. Thanks
"J.D. Corbin" <[email protected]> wrote:
>
Arghhh...
When I try to uninstall WebLogic Platform the uninstaller errors out
saying "No
installation of WebLogic Platform found!, aborting"
I figured the install had problems so I tried reinstalling it to another
directory.
The installation went fine. I immediately tried to uninstall it and
got the
same error. Has anyone seen this or have a suggestion as to how to uninstall
the software.
it is driving me nuts.
J.D. -
Kodo 4.1.2 in Weblogic 10 Problem
I was told by BEA that Kodo/openJPA is included in Weblogic 10. However, now I have Weblogic 10 but I could not located much Kodo classes from Weblogic libraries. I searched all the JARs under BEA_HOME\wlserver_10.0\server\lib.
I also tried to migrate Kodo/JPA application from Weblogic 9.2 to Weblogic 10. My application depends on Kodo JCA deployment in managed environment. The application and Kodo JCA deployed fine into Weblogic 10. But when I test any application, the test failed when I tried to create EntityMaanger from EntityManagerFactory:
Caused by: <4|false|0.9.7> org.apache.openjpa.persistence.ArgumentException: config-error
at weblogic.kodo.event.ClusterRemoteCommitProvider.endConfiguration(ClusterRemoteCommitProvider.java:112)
at org.apache.openjpa.lib.conf.Configurations.configureInstance(Configurations.java:447)
at org.apache.openjpa.conf.RemoteCommitProviderValue.instantiate(RemoteCommitProviderValue.java:122)
at org.apache.openjpa.conf.RemoteCommitProviderValue.instantiateProvider(RemoteCommitProviderValue.java:103)
at org.apache.openjpa.conf.RemoteCommitProviderValue.instantiateProvider(RemoteCommitProviderValue.java:95)
at org.apache.openjpa.conf.OpenJPAConfigurationImpl.newRemoteCommitProviderInstance(OpenJPAConfigurationImpl.java:708)
at org.apache.openjpa.event.RemoteCommitEventManager.(RemoteCommitEventManager.java:56)
at org.apache.openjpa.conf.OpenJPAConfigurationImpl.getRemoteCommitEventManager(OpenJPAConfigurationImpl.java:720)
at org.apache.openjpa.kernel.AbstractBrokerFactory.newBroker(AbstractBrokerFactory.java:177)
at org.apache.openjpa.kernel.DelegatingBrokerFactory.newBroker(DelegatingBrokerFactory.java:139)
at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:187)
at org.apache.openjpa.persistence.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:140)
at kodo.persistence.jdbc.JPAConnectionFactory.createEntityManager(JPAConnectionFactory.java:144)
at kodo.persistence.jdbc.JPAConnectionFactory.createEntityManager(JPAConnectionFactory.java:23)
at com.psi.vida.ejb.JPASessionBean.list(JPASessionBean.java:165)
at com.psi.vida.ejb.JPASessionEJB_lvtqkz_EOImpl.list(JPASessionEJB_lvtqkz_EOImpl.java:134)
at com.psi.vida.ejb.JPASessionEJB_lvtqkz_EOImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:174)
... 17 more
Caused by: java.lang.Exception: <0|true|0.9.7> org.apache.openjpa.persistence.PersistenceException: no-trasport
at org.apache.openjpa.util.Exceptions.replaceNestedThrowables(Exceptions.java:230)
at org.apache.openjpa.persistence.ArgumentException.writeObject(ArgumentException.java:104)
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 java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:890)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1333)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1369)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1341)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1284)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1073)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:291)
at weblogic.rmi.extensions.server.CBVOutputStream.writeObject(CBVOutputStream.java:84)
at weblogic.rmi.internal.ServerRequest.unmarshalThrowable(ServerRequest.java:349)
at weblogic.rmi.internal.ServerRequest.getThrowable(ServerRequest.java:62)
at weblogic.rmi.internal.ServerRequest.sendReceive(ServerRequest.java:203)
... 17 moreI was told by BEA that Kodo/openJPA is included in
Weblogic 10. However, now I have Weblogic 10 but I
could not located much Kodo classes from Weblogic
libraries. I searched all the JARs under
BEA_HOME\wlserver_10.0\server\lib. They're in the (new) modules directory. weblogic.jar refers to stuff in the modules directory via its manifest classpath.
I also tried to migrate Kodo/JPA application from
Weblogic 9.2 to Weblogic 10. My application depends
on Kodo JCA deployment in managed environment. The
application and Kodo JCA deployed fine into Weblogic
10. But when I test any application, the test failed
when I tried to create EntityMaanger from
EntityManagerFactory:Interesting. I do not know what the status of Kodo JCA testing is in WebLogic 10, but it sounds like something is a bit wonky.
Basically, in a WLS environment, the default remote commit provider is automatically set to the new weblogic.kodo.event.ClusterRemoteCommitProvider, which uses the WLS clustering protocol to communicate cache notifications. The error that you're seeing indicates that cluster services are not available in the execution context. You can probably get around this by explicitly setting the 'kodo.RemoteCommitProvider' option to 'sjvm' (if you're not running in a cluster), or to whatever you had it set to in the past. (I'm guessing that it was unset in the past, as otherwise, the configuration should be picking up that instead of the new default.)
However, personally, I much prefer the new persistence.xml configuration file format, compared to JCA configuration. (You can trivially use the persistence.xml format with Kodo JDO, even though it's a JPA-specified feature.) You might want to look into moving away from JCA and to the persistence.xml style instead.
If you do this, you'll end up putting a META-INF/persistence.xml file in your EAR (and possibly a META-INF/persistence-configuration.xml file, if you want to use the strongly-typed Kodo XML configuration format), and replacing your JNDI lookups with java:comp/env/persistence/<persistence-unit-name>. (I think that's the right location. I might be mistaken, though.)
Also, I can't guarantee that WebLogic 10 really handles JCA configuration all that well; some bits of that exception make it look like maybe some resources are not available in the classloader, which is surprising. So, it's possible that there is some sort of more fundamental JCA problem here (and not just a problem with the new remote commit provider).
-Patrick -
Apache-weblogic bridge problems with virtual hosting
Hi,
Can we set apache-weblogic bridge where apache webserver is configured
as virtual hosts and each Virtual Host is mapped to a WebLogic server
instance running on separate port ?
Please provide doc or reference or your comments if you have solved this
problem
Thanks
ShriniwasThe above comments notwithstanding, there's one outstanding line in your post that seems crucial:
Also if I type on my browser the name of another secondary (or virtual) domain name in the form http://domain2.com it brings the website hosted under the primary domain which is domain1.com. In case I type http://www.domain2.com than it works as it should and displays the website hosted under this domain name.
As far as Apache is concerned, 'domain2.com' and 'www.domain2.com' are completely separate entities. They have to be otherwise if all domain2.com traffic went to this site you'd never be able to host different sites within the domain (e.g. blogs.domain2.com, wiki.domain2.com, blah.domain2.com, etc.). In other words, there is no automatic relationship between a hostname and sub-records of that hostname.
So what's happening here is Apache is seeing a request for 'domain2.com' which does not match any of its configured virtual hosts, so it handles the request via the default site. If you request www.domain2.com this matches your virtual host configuration so Apache serves the alternate content.
The fix is simple - trivial, even - you just need to tell Apache all the hostnames that match this site - in this case if you've configured the site's primary address as 'www.domain2.com' and you want it to also respond to requests to 'domain2.com' then add 'domain2.com' to the list of Server Aliases in Server Admin. -
Request.getParameter(): special character handling problem
Hello, there:
This should be an easy question for the gurus in here.
I use a string attached to the url as the parameter string, which includes spaces. the system automatically converts them to %20, but when I receive them in my servlet using request.getParameter, a special character, Â appears; I couldn't proceed with it.
I suppose this is a common problem but seems that I didn't find topics about it on this forum.
So anyone can help? Any encoder/decoder APIs to handle it?
Thanks a lot,
Swayhi,
escape can solve ur problem
use js function to submit form like
function subForm()
var any_spcl_value ="kdfhjdf$%@#$% 2FGSFG @%@#%@# V";
mainForm.action = "index.jsp?value="+ escape(any_spcl_value);
mainForm.submit();
and use request.getParameter("value");
u ll get kdfhjdf$%@#$% 2FGSFG @%@#%@# V as it is.
AE -
BSP extension "download" - event handling problem
Folks,
First of all, I apologize if the answer is already out there, but I spent quite some time to find the solution for my problem but finally gave up:
I implemented the Download extension from Brian's and Tom's book. Since I am using an MVC based app, I put the event handling in the DO_HANDLE_EVENT of a controller instead of the OnInputProcessing event of a page. Here's how my app is designed:
I have a main controller that has an execute button to trigger a data selection based on some selection criteria. The result of this selection is displayed by means of a subcontroller with tableviews that are wrapped into my zdownload extension. Everything works fine: I make my selections, execute the app through the button of the main controller and get my result shown in the tableviews. I push the download icon, select my file format (XLS, HTML etc), get the dialog to choose whether to download or to display the file, perfect!
But now after I processed the download successfully - if I click the execute button in the main controller again, I still get the download dialog. It looks like the created event for the download does not get cleared. As I mentioned, I searched through SDN, but all I found were referrals to the call of DISPATCH_INPUT( ) in DO_REQUEST of the main controller, but unfortunately this one is already implemented.
Any ideas?
Thanks,
GuentherThere is an attribute of the download extension called display_url. You pass a value to the extension telling it what cached URL contains the binary content for your download. if this display_url attribute has a value assigned to it, then the element will render an iFrame to call the URl. However if the display_url attribute is empty, it won't render the iFrame. I suspect that you have a stateful application and after your download event you aren't clearing whatever field that you pass into the display_url attribute.
-
Hi,
I'm having problems with a event handler that I'm trying to create.
I currently have 2 event handlers, one of which needs to only happen when Shift + a key is pressed. I currently have:
function keypressedHandler(event:KeyboardEvent):void { if ((event.shiftKey) + (event.keyCode == 81)) { //something would happen } }
So my question is how can I get the shift function to work? It doesn't matter if it isn't shift but Alt or Ctrl would be the alternatives.
Any help would be great,
Thanks,You need the ampersand (&) instead of the plus sign to use the logical AND:
stage.addEventListener( KeyboardEvent.KEY_DOWN, keypressedHandler )
function keypressedHandler(event:KeyboardEvent):void
if ((event.shiftKey) && (event.keyCode == 65))
//something would happen
trace( "shift and 65" ) -
Hello,
After you install the 32bit version of Oracle WebLogic 12c , jdevstudio11115install (Windows 7 32 bit platform) . These actions come after the installation of the domain ADF 's and then completed the installation.
I receive the following error when I run startWebLogic.cmd. ( What is the solution. )
WARNING: Opening of file based farm keystore failed.
oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06514: Openin
g of file based farm keystore failed.
at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKe
yStore(FileKeyStoreManager.java:351)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.do
Init(FileKeyStoreServiceImpl.java:101)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
nit>(FileKeyStoreServiceImpl.java:73)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
nit>(FileKeyStoreServiceImpl.java:63)
at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(Ke
yStoreProvider.java:157)
at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(Ke
yStoreProvider.java:64)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.findServ
iceInstance(ContextFactoryImpl.java:139)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getConte
xt(ContextFactoryImpl.java:170)
at oracle.security.jps.internal.core.runtime.ContextFactoryImpl.getConte
xt(ContextFactoryImpl.java:191)
at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getCo
ntext(JpsContextFactoryImpl.java:132)
at oracle.security.jps.internal.core.runtime.JpsContextFactoryImpl.getCo
ntext(JpsContextFactoryImpl.java:127)
at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
java:850)
at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
java:844)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
tore(PolicyUtil.java:844)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:291)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:284)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
vaPolicyProvider.java:270)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC
onstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.lo
adOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1343)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
itialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityS
erviceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:148)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
<Dec 12, 2011 11:43:27 AM EET> <Error> <Security> <BEA-090892> <The loading of O
PSS java security policy provider failed due to exception, see the exception sta
ck trace or the server log file for root cause. If still see no obvious cause, e
nable the debug flag -Djava.security.debug=jpspolicy to get more information. Er
ror message: oracle.security.jps.JpsException: [PolicyUtil] Exception while gett
ing default policy Provider>
<Dec 12, 2011 11:43:27 AM EET> <Critical> <WebLogicServer> <BEA-000386> <Server
subsystem failed. Reason: weblogic.security.SecurityInitializationException: The
loading of OPSS java security policy provider failed due to exception, see the
exception stack trace or the server log file for root cause. If still see no obv
ious cause, enable the debug flag -Djava.security.debug=jpspolicy to get more in
formation. Error message: oracle.security.jps.JpsException: [PolicyUtil] Excepti
on while getting default policy Provider
weblogic.security.SecurityInitializationException: The loading of OPSS java secu
rity policy provider failed due to exception, see the exception stack trace or t
he server log file for root cause. If still see no obvious cause, enable the deb
ug flag -Djava.security.debug=jpspolicy to get more information. Error message:
oracle.security.jps.JpsException: [PolicyUtil] Exception while getting default p
olicy Provider
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.lo
adOPSSPolicy(CommonSecurityServiceManagerDelegateImpl.java:1402)
at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.in
itialize(CommonSecurityServiceManagerDelegateImpl.java:1022)
at weblogic.security.service.SecurityServiceManager.initialize(SecurityS
erviceManager.java:873)
at weblogic.security.SecurityService.start(SecurityService.java:148)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.JpsRuntimeException: oracle.security.jps.JpsExcep
tion: [PolicyUtil] Exception while getting default policy Provider
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:293)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:284)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
vaPolicyProvider.java:270)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct
orAccessorImpl.java:39)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.JpsException: [PolicyUtil] Exception while gettin
g default policy Provider
at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
tore(PolicyUtil.java:899)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:291)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:284)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
vaPolicyProvider.java:270)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
Truncated. see log file for complete stacktrace
Caused By: java.security.PrivilegedActionException: oracle.security.jps.JpsExcep
tion: [PolicyUtil] Unable to obtain default JPS Context!
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
tore(PolicyUtil.java:844)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:291)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:284)
at oracle.security.jps.internal.policystore.JavaPolicyProvider.<init>(Ja
vaPolicyProvider.java:270)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.JpsException: [PolicyUtil] Unable to obtain defau
lt JPS Context!
at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
java:860)
at oracle.security.jps.internal.policystore.PolicyUtil$1.run(PolicyUtil.
java:844)
at java.security.AccessController.doPrivileged(Native Method)
at oracle.security.jps.internal.policystore.PolicyUtil.getDefaultPolicyS
tore(PolicyUtil.java:844)
at oracle.security.jps.internal.policystore.PolicyDelegationController.<
init>(PolicyDelegationController.java:291)
Truncated. see log file for complete stacktrace
Caused By: oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06
514: Opening of file based farm keystore failed.
at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.openKe
yStore(FileKeyStoreManager.java:351)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.do
Init(FileKeyStoreServiceImpl.java:101)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
nit>(FileKeyStoreServiceImpl.java:73)
at oracle.security.jps.internal.keystore.file.FileKeyStoreServiceImpl.<i
nit>(FileKeyStoreServiceImpl.java:63)
at oracle.security.jps.internal.keystore.KeyStoreProvider.getInstance(Ke
yStoreProvider.java:157)
Truncated. see log file for complete stacktrace
>
<Dec 12, 2011 11:43:30 AM EET> <Notice> <WebLogicServer> <BEA-000365> <Server st
ate changed to FAILED.>
<Dec 12, 2011 11:43:30 AM EET> <Error> <WebLogicServer> <BEA-000383> <A critical
service failed. The server will shut itself down.>
<Dec 12, 2011 11:43:33 AM EET> <Notice> <WebLogicServer> <BEA-000365> <Server st
ate changed to FORCE_SHUTTING_DOWN.>
Note: JDeveloper 11.1.2.1 and 11.1.1.5.0 install but it did not work.
C:\oracle\Middleware\user_projects\domains\base_domain\config\fmwconfig\bootstrap\cwallet.sso I have full authority, but did not work folder. (permissions full controll)
Edited by: 889612 on 12.Ara.2011 07:06I am having the exact same issue with Weblogic 12c on Windows Server 2003 SP1 on Intel Itanium processor with Java SE 1.6u29 and JDeveloper 11.1.2.1.0.
Please advise!
Thanks in advance.
P.S.
Unfortunately, problem also confirmed on Windows 7 64bit and JRockit-jdk1.6.0_29-R28.2.0-4.1.0 and JDeveloper 11.1.2.1.0.
LOG
WARNING: Failed to save farm keystore. Reason {0}
Dec 12, 2011 10:51:29 PM oracle.security.jps.internal.keystore.file.FileKeyStore
Manager createKeyStore
WARNING: Failed to save farm keystore. Reason {0}
oracle.security.jps.service.keystore.KeyStoreServiceException: JPS-06513: Failed to save farm keystore. Reason at oracle.security.jps.internal.keystore.file.FileKeyStoreManager.create KeyStore(FileKeyStoreManager.java:309)
Edited by: rade.radenkovic on Dec 12, 2011 1:53 PM -
Inheritance and mouse handler problem
I have a super class and two subclass which is extend the super class. I add a mouse handler in one of the subclass. The problem is that the other subclass also affect by the mouse handler. How can i avoid that??
here is the code
public abstract class SketchView extends JPanel implements Observer, Constants, ActionListener, Printable, Pageable
public SketchView(Sketcher theApp, SketchModel sketcherModel)
this.sketcherModel = sketcherModel;
this.theApp = theApp;
public static class DocView extends SketchView
public DocView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);
MouseHandler handler = new MouseHandler();
class MouseHandler extends MouseInputAdapter
public static class ReportView extends SketchView
public ReportView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);to: marsian27
thank for you reply
here is the code
public abstract class SketchView extends JPanel implements Observer, Constants, ActionListener, Printable, Pageable
public SketchView(Sketcher theApp, SketchModel sketcherModel)
this.sketcherModel = sketcherModel;
this.theApp = theApp;
public static class DocView extends SketchView
public DocView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);
MouseHandler handler = new MouseHandler();
addMouseListener(handler; addMouseMotionListener(handler);
class MouseHandler extends MouseInputAdapter
public static class ReportView extends SketchView
public ReportView(Sketcher theApp, SketchModel sketcherModel)
super(theApp, sketcherModel);
Maybe you are looking for
-
Satellite M30-861: why can i not write to DVD?
Hi I bought Satellite M30-861 about 15 months ago and until now have only tried to burn CDs - no problem. Now I want to try to burn onto a DVD but it doesnt seem to be recognised (I tried drag n drop and also NERO). I can see on the drive unit that i
-
How can i format an external drive to be used for both windows and mac
i recently bought a macbook pro and used bootcamo so as to be able to run win7 and mac. I now wish to have an external usb drive so as to backup and tranfer files between the two os's. How can I do this?
-
SAPINST error Solution Manager 7.0
Hi Friends, I encountered and error in when installing SAP SOLUTION MANAGER 7.0 in iSereis. Here's the detailed error: ERROR 2009-05-13 22:13:33.624 [iaxxejsbas.cpp:204] FJS-00003 TypeError: java_base has no properties (in script NW_Onehost|ind|ind|i
-
Faster alternatives to iPhoto?
Hey all, My iPhoto is really, really slow. Can anyone recommend some alternative photo management software? Thanks! Alec
-
I have a DVD stuck in my MacBook Pro. What should I do?
I have a DVD stuck in my MacBook Pro. What should I do?