Exception when loading an image in ImageIcon component

Hello,
I want to load an image whose name or path contains special character such as accents (a french name). So that generates an exception. For exemple for an image named caf�.jpeg I obtain this message :
java.io.FileNotFoundException: /media/disk/images/caf��.jpeg (No such file or directory)
Can you please help me.
Thanks in advance.

Can you store multiple images in memory and be able
to reference them all individually, or is it better
to store them in a construct, such as an array and
then loop through that when attempting to match?I'm sorry but I don't understand the question. And does it
have anything to do with images per se? Can it be generalized
without losing its meaning:
Can you store multiple objects in memory and be able
to reference them all individually, or is it better
to store them in a construct, such as an array and
then loop through that when attempting to match?It seems to me that multiple objects should be stored in
an appropriate collection, if that is what is required.
Perhaps you need to say more about what you are trying to
do, what your goal is, to make your question meaningful.

Similar Messages

  • Load image with ImageIcon component

    Hello,
    I want to load an image whose name or path contains special character such as accents (a french name). So that generates an exception. For exemple for an image named caf�.jpeg I obtain this message :
    java.io.FileNotFoundException: /media/disk/images/caf��.jpeg (No such file or directory)
    Can you please help me.
    Thanks in advance.

    hi,
    get this sample example and develop
    import javax.swing.*;
    import javax.swing.event.*;
    import javax.swing.ImageIcon;
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    public class ji extends JApplet
    public Icon pulicon;
    public JButton b1;
        public void init()
            getContentPane().setLayout(null);
            this.setSize(744, 536);
            pulicon = new ImageIcon(getImage(getCodeBase(),"bullet.gif"));
            b1 = new JButton(pulicon);
            getContentPane().add(b1);
            b1.setBounds(50,50,42,42);
    //<applet code="ji.class" height="200" width="200"></applet>that gif picture from current dir, where your class file stores.. if u want specify the path there

  • Security Exception when loading image from other host

    Hi,
    I have a signed webstart application, with 'all-permissions' set, which displays HTML in an JEditorPane.
    The displayed HTML code contains an image tag which wants to load the image from another host. This results in a security exception.
    I thought 'all-permissions' allows everything. Is there a workaround?
    TIA
    Chris

    signing your app and specifying <all-permissions> in the security tag of the jnlp file will grant all permissions to all code loaded by the JNLPClassLoader.
    In some cases your app or an extension it includes contains it's own classloader which dosnt extend SecureClassLoader, and so code loaded by that classloader will not be run with all-permissions when a SecurityManager is installed by Java Web Start. If this is the case you can get around this by calling:
    Systerm.setSecurityManager(null).
    To see what the specific cause in this case, you would have to post the exception thrown.
    /Andy

  • Security Exception when loading Image in the background?

    I've written a javafx app running in the browser. It loads a bunch of images in the background. It worked fine prior JRE 7 u11.
    However it is broken since JRE 7 u13. Images are not loaded correctly, failing with a SecurityException:
    java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
         at java.security.AccessControlContext.checkPermission(AccessControlContext.java:366)
         at java.security.AccessController.checkPermission(AccessController.java:560)
         at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
         at sun.plugin2.applet.SecurityManagerHelper.checkAccessHelper(Unknown Source)
         at sun.plugin2.applet.FXAppletSecurityManager.checkAccess(Unknown Source)
         at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315)
         at java.lang.Thread.init(Thread.java:376)
         at java.lang.Thread.<init>(Thread.java:446)
         at com.sun.javafx.runtime.async.BackgroundExecutor$1.newThread(BackgroundExecutor.java:52)
         at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:610)
         at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:924)
         at java.util.concurrent.ThreadPoolExecutor.execute(ThreadPoolExecutor.java:1371)
         at com.sun.javafx.runtime.async.AbstractAsyncOperation.start(AbstractAsyncOperation.java:107)
         at javafx.scene.image.Image$ImageTask.start(Image.java:917)
         at javafx.scene.image.Image.cycleTasks(Image.java:798)
         at javafx.scene.image.Image.access$200(Image.java:107)
         at javafx.scene.image.Image$ImageTask.onCompletion(Image.java:903)
         at javafx.scene.image.Image$ImageTask.onCompletion(Image.java:879)
         at com.sun.javafx.runtime.async.AbstractAsyncOperation$2.run(AbstractAsyncOperation.java:70)
         at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
         at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
         at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
         at com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
         at com.sun.glass.ui.gtk.GtkApplication$3$1.run(GtkApplication.java:82)
         at java.lang.Thread.run(Thread.java:722)If I dont' load the Image in the background -> it's working. Is it a bug?

    It's probably worth filing a bug report on this.
    https://forums.oracle.com/forums/ann.jspa?annID=1713 "Announcement: How to file a bug or submit a feature request"

  • "Access Denied" when loading an image..

    filename=getParameter("picture" + i);
    try
    ScrollingImages.picture=this.getImage(new URL(filename));
    catch(Exception e)
    bufferGraphics.drawString("ERROR:" +e,50,70);
    Returns:
    Java.security.AccessControlException..
    I had a similar problem when loading text files, and had to use a stream tokenizer..
    How to I get around this?
    Thanks

    Hello Robertgamble,
    It looks to me like your Java program cannot get access to the files that you are trying to access. If you are running these on a Unix computer, make sure that all file permissions are set to read access. You can use the:
    chmod 744 "filename"
    or you can change the "744" to any other access permissions desired to access the file.
    If you are running this on a Windows systems, make sure that you are accessing the image from the correct path on your system.
    Hope this helps,
    Ming
    Developer Technical Support
    http://www.sun.com/developers/support

  • Set "Referer" when loading an Image through Toolkit

    To load an Image using an HttpURLConnection, I use the abstract java.awt.Toolkit.getImage(URL url) method, which is implemented by sun.awt.windows.WToolkit. This method uses the HttpURLConnection to load the Image.
    The problem I have, is that I don't know how I can set the HTTP "Referer" request header. There is a method in the HttpURLConnection called setRequestProperty(String key, String value), which I could use, but I can't reach the HttpURLConnection being used to load the Image.
    I would consider another way to load Images, but that would mean quite a bit of refactoring. I would prefer not to use Reflection, though.

    I did look at the HttpsURLConnection (of which we also have our own implementation), but that still doesn't solve the problem, unfortunately.
    Is there maybe another way to load an image from an HttpURLConnection or HttpsURLConnection? If there's a way that I can provide or access the connection being used and still get an Image object, I would be a happy man!

  • Blank window when loading an image

    Hello,
    I'm new on Javafx, i've written the following example for loading an image, but it does not work.
    Here is the code
    <code>
    public class Load_Image extends Application {
    * @param args the command line arguments
    public static void main(String[] args) {
    launch(args);
    @Override
    public void start(Stage primaryStage) {
    Rectangle rec = new Rectangle(200, 400);
    ImageView iv = new ImageView(
    new Image(getClass().getResourceAsStream("image.png")));
    iv.setFitHeight(rec.getHeight());
    iv.setFitWidth(rec.getWidth());
    StackPane root = new StackPane();
    root.getChildren().add(iv);
    primaryStage.setScene(new Scene(root, 300, 250));
    primaryStage.show();
    </code>

    I'm sure there is a theoretical limit, but it should be large enough to hold anything you are likely to use.
    Can you open the image in other programs? Does [url http://docs.oracle.com/javafx/2.0/api/javafx/scene/image/Image.html#isError%28%29]Image.isError() return true? And where exactly have you placed the image?

  • X11 exception when loading graphics

    Hello, Oracle community. It's my first post.
    I installed Weblogic, SOA and BAM in development mode on Linux. I'm accessing it from Windows.
    I managed to establish a DB connection, extract data, but there is one thing missing: the graphics.
    Any time i try to create a report in Active Studio with a graphic component i get the following exception:
    NOCLASSDEFFOUNDERROR_REPORTSERVER_THREEDBARCHART_INITIALIZE
    Details...
    Exception Message Could not initialize class sun.awt.X11GraphicsEnvironment
    When i try to load a sample report containing graphics it doesn't work either, the textual data loads, but the graphic views hang.
    I understand my problem has nothing to do with me having an Xcygwin server or alike, as the web interface must be cross-plattform.
    I found no solutions in the internet, so i write to you.
    Thank you beforehand for any clues on solving this.
    Andres.

    Hi,
    I'm having exactly the same problem... but cannot solve it, can you detail a bit more?
    Thanks
    (falas português?)

  • SQL Developer EA 3.1 -Java Null pointer exception when loading model viewer

    a) I have a simple 3 node flow -- 1) DataSource selects CLOB and VARCHAR column; 2) BuildText node transforms CLOB into NESTED COLUMN; 3) ClustBuild node build K-Means cluster
    b) The "run" step succeeds for all three nodes, however when I try to launch the viewer for the cluster model, it fails with the stack trace below after 5 mins or so. I have a custom stoplist for the BuildText node that extends the "English" stoplist. If I replace the custom stoplist with the "default" (the English stoplist I believe), then the viewer loads without the exception.
    NB) Database version is 11.2.0.1.0, Sql Dev build is 3.1.06 Build MAIN-06-44
    java.lang.NullPointerException
         at oracle.dmt.dataminer.mviewer.clustering.tree.model.ClusterTreeSDMModel.load(ClusterTreeSDMModel.java:57)
         at oracle.dmt.dataminer.mviewer.clustering.tree.ClusteringTreeEditor.load(ClusteringTreeEditor.java:412)
         at oracle.dmt.dataminer.mviewer.clustering.tree.ClusteringTreeEditor.open(ClusteringTreeEditor.java:251)
         at oracle.ideimpl.editor.EditorState.openEditor(EditorState.java:283)
         at oracle.ideimpl.editor.EditorState.createEditor(EditorState.java:184)
         at oracle.ideimpl.editor.EditorState.getOrCreateEditor(EditorState.java:95)
         at oracle.ideimpl.editor.SplitPaneState.canSetEditorStatePos(SplitPaneState.java:232)
         at oracle.ideimpl.editor.SplitPaneState.setCurrentEditorStatePos(SplitPaneState.java:195)
         at oracle.ideimpl.editor.TabGroupState.createSplitPaneState(TabGroupState.java:102)
         at oracle.ideimpl.editor.TabGroup.addTabGroupState(TabGroup.java:379)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1403)
         at oracle.ideimpl.editor.EditorManagerImpl.createEditor(EditorManagerImpl.java:1337)
         at oracle.ideimpl.editor.EditorManagerImpl.openEditor(EditorManagerImpl.java:1263)
         at oracle.ide.editor.EditorUtil.openDefaultEditorInFrame(EditorUtil.java:164)
         at oracle.dmt.dataminer.workflow.WorkflowContextMenu$2.actionPerformed(WorkflowContextMenu.java:746)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
         at java.awt.Component.processMouseEvent(Component.java:6504)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)
         at java.awt.Component.processEvent(Component.java:6269)
         at java.awt.Container.processEvent(Container.java:2229)
         at java.awt.Component.dispatchEventImpl(Component.java:4860)
         at java.awt.Container.dispatchEventImpl(Container.java:2287)
         at java.awt.Component.dispatchEvent(Component.java:4686)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
         at java.awt.Container.dispatchEventImpl(Container.java:2273)
         at java.awt.Window.dispatchEventImpl(Window.java:2713)
         at java.awt.Component.dispatchEvent(Component.java:4686)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:707)
         at java.awt.EventQueue.access$000(EventQueue.java:101)
         at java.awt.EventQueue$3.run(EventQueue.java:666)
         at java.awt.EventQueue$3.run(EventQueue.java:664)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
         at java.awt.EventQueue$4.run(EventQueue.java:680)
         at java.awt.EventQueue$4.run(EventQueue.java:678)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:677)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
    Edited by: user809775 on Dec 19, 2011 11:31 AM

    Hi,
    We have been working on some performance issues tied to viewing large cluster models.
    Maybe... this is tied to that.
    1) Can you run the following query in sql worksheet to see how many distinct attributes are in the root cluster node. Just replace the 'CLUS_KM_1_16' value with your model name.
    SELECT count(distinct(h.attribute_name || h.attribute_subname))
    FROM TABLE(DBMS_DATA_MINING.GET_MODEL_DETAILS_KM('CLUS_KM_1_16',1,NULL, 0, 1, 0)) t,
    TABLE(t.histogram) h
    2) Can you launch the client with the console window to see if there is an earlier exception that is being eaten that is leading to the final exception.
    You can do this by using the finding the following executable and using it to launch sql dev:
    C:\<SQL DEV INSTALL FOLDER>\sqldeveloper\sqldeveloper\bin\sqldeveloper.exe
    3) Of course, recreating the problem on our side is necessary. This might be difficult without opening a support ticket, but if you are able to post a script that creates a table using some demo data that ships with the db, we should be able to determine the problem pretty quickly.
    Thanks, Mark

  • Loading local images into HTML component

    I need to intermix text and images for a project I'm working
    on, and using htmlText seems the best way to do it. However, I
    can't get it to work when the images are loaded from the local file
    system.
    It seems to work fine with remote images:
    <mx:HTML x="480" y="191" width="256" height="315">
    <mx:htmlText>
    <![CDATA[
    <p>Image: <img src='
    http://knight.fb.hive7.com/res/img/ico/x32/coin.gif'
    ></p>
    ]]>
    </mx:htmlText>
    </mx:HTML>
    But not with local images:
    <mx:HTML x="480" y="191" width="256" height="315">
    <mx:htmlText>
    <![CDATA[
    <p>Image: <img src='../assets/coin.gif'
    ></p>
    ]]>
    </mx:htmlText>
    </mx:HTML>
    Anybody have any ideas or workarounds?

    Hi,
    I tried your solution, it did not worked, it gave me following error -
    ==========
    ReferenceError: Error #1056: Cannot create property placeLoadStringContentInApplicationSandbox on mx.core.FlexHTMLLoader.
        at com.exa.view::TestView/changeEvt()[/home/sachin/workspace/newed/src/com/exa/view/TestView .mxml:70]
        at com.exa.view::TestView/__toctree_change()[/home/sachin/workspace/newed/src/com/exa/view/T estView.mxml:89]
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.3.0\frameworks\projects\framework\src \mx\core\UIComponent.as:9308]
        at mx.controls.listClasses::ListBase/mouseUpHandler()[C:\autobuild\3.3.0\frameworks\projects \framework\src\mx\controls\listClasses\ListBase.as:8989]
        at mx.controls::List/mouseUpHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\m x\controls\List.as:2279]
        at mx.controls::Tree/mouseUpHandler()[C:\autobuild\3.3.0\frameworks\projects\framework\src\m x\controls\Tree.as:2952]
    ===========
    Here is the code, the function gets called on change event of a tree component(not shown in code here)
    ===============
    <mx:Panel width= "70%" height="100%" id="cpanel" paddingBottom="10" paddingLeft="20" paddingTop ="20">
            <mx:HTML id="htmlc" width="100%" height = "100%">
            </mx:HTML>
        </mx:Panel>
    <mx:Script>
        <![CDATA[
              public function changeEvt(event:Event):void{
                   htmlc.htmlLoader.placeLoadStringContentInApplicationSandbox = true;
                   htmlc.htmlLoader.loadString(rh.content.replace(/src="\/images/mg,'src="assets'));
        ]]>
    </mx:Script>
    ================
    It would be helpful if you give more insight on your html component.
    Adobe air -version - 1.5
    Thanks

  • Class Cast exception when clicking Search Button in Query component

    Hi
    We have to implement the Query component in ADF programmatically.. We are using Toplink as the Model layer for ADF.
    We followed the Web User Interface Guide for ADF development, Chapter 12 (Using Query Components) for the same.
    We already have implemented the following classes:
    1) QueryModel
    2) QueryDescriptor
    3) AttributeDescriptor
    4) ConjuctionCriterion
    5) AttributeCriterion etc.
    We are able to see the Search panel in UI with selected fields in Basic as well as Advanced mode.
    When we click on Search button, we are getting Class Cast exception.
    The stacktrace of the exception is below:
    <LifecycleImpl> <_handleException> ADF_FACES-60098:Faces lifecycle receives unhandled exceptions in phase INVOKE_APPLICATION 5
    javax.el.ELException: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:116)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:374)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 44 more
    <RegistrationConfigurator> <handleError> ADF_FACES-60096:Server Exception during PPR, #1
    javax.el.ELException: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at com.sun.el.parser.AstValue.invoke(Unknown Source)
         at com.sun.el.MethodExpressionImpl.invoke(Unknown Source)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.broadcastToMethodExpression(UIXComponentBase.java:1300)
         at oracle.adf.view.rich.component.UIXQuery.broadcast(UIXQuery.java:116)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.broadcastEvents(LifecycleImpl.java:902)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:313)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:186)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:205)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:106)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:446)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:271)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:177)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Caused by: java.lang.ClassCastException: view.QueryDescriptorImpl cannot be cast to oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding$QueryDescriptorImpl
         at oracle.adfinternal.view.faces.model.binding.FacesCtrlSearchBinding.processQuery(FacesCtrlSearchBinding.java:374)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         ... 44 more
    Any help will be highly appreciated.
    Thanks in advance.
    Anup

    Gary Tam wrote:
    I am working on a project that utilize Oracle Ultra Search that will crawl and tag documents in the database.
    The initial code that uses pure JDBC was working fine, but when we switch to get database connection from dataSource, we are getting classCast exception inside Oracle's ultra search. The problems is that the class we get from dataSource.getConnection() returns
    "weblogic.jdbc.wrapper.JTSConnection_oracle_jdbc_driver_T4CConnection". But Oracle UltraSearch is not expecting that.
    Is there anyway to unwrap the connection that we get from dataSource ? I tried casting to OracleConnection,
    assign the connection to "oracle.jdbc.driver.T4CConnection" without any success.
    Any help would be appricated.
    ThanksHi Gary. If the code you want to run is running inside WebLogic, such as in a JSP,
    then look for our documentation on our JDBC extension 'getVendorConnection()". It
    will get you a direct Oracle connection for their mis-declared UltraSearch
    classes (they declare they take java.sql.Connection, but they really demand a
    concrete thin driver connection. No other Oracle driver will be given a chance).
    Joe

  • Exception when loading .pdf file

    I have an app that is supposed to be able to print .pdf files. Right now, I'm trying to use the Reader's functionality to do so (through Interop.AcroPDFLib.dll and AxInterop.AcroPDFLib.dll, both v1.0.0.0). This app is being run on a Windows XP SP2 computer, and built with Visual Studio 2005.
    When the program gets to the LoadFile function of the AxAcroPDF object that gets passed a valid .pdf file, a System.InvalidCastException is thrown. The message reads:
    "Unable to cast COM object of type 'System.__ComObject' to interface type 'AcroPDFLib.IAcroAXDocShim'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{3B813CE7-7C10-4F84-AD06-9DF76D97A9AA}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)). (Interop.AcroPDFLib)"
    I would greatly appreciate any help you can provide. Thanks in advance.

    It's failing on all computers, including my dev machine. Does it matter that I don't want to display the file?
    I'm looking at the example you've referenced, and I see a lot of display-related properties being set, such as Location, Size, TabIndex, etc. I didn't believe that these would be necessary if I only needed to quietly print the .pdf file. The block of code that's supposed to be doing this is as follows (and the call to Hide() should probably go above printAll(), but we're not even getting there at this point...):
    axAcroPDF1.LoadFile(szFilePath);
    axAcroPDF1.src = szFilePath;
    axAcroPDF1.setNamedDest(m_szPrinter);
    axAcroPDF1.printAll();
    axAcroPDF1.Hide();
    Also note that szFilePath and m_szPrinter are valid values at this point, since that was my first suspicion.

  • Aperture applying unwanted adjustments when loading an image

    Hello,
    I'm having a bit of an issue with Aperture and I'm wondering if the community can help me.
    My camera is a Canon Eos 600D.
    I'm running Aperture 3.4.3 on a Mid 2010 iMac 27", with 8GB of Ram.
    Just lately, when I import and load images into Aperture, it seems to be applying unwanted adjustments to the photos just after it completes loading them.
    Let me explain further:
    I take pictures on the camera. Previewing them on the Canon they look as I would expect, and I'm happy with them.
    I insert the SD card from the camera into the Mac, and Aperture previews/shows the thumbnails of my photos, and they look just like they did on the camera.
    I import them into a given library.
    When viewing the thumbnails of the imported images in the library, they look the same, so I double click one to load it fullscreen. The image appears fullscreen, looking exactly as it did on the camera, and Aperture pops the word 'Loading' at the top of the image.
    Them when it finishes 'Loading', it seems to apply some unwanted adjustments to the photo. Mostly it applies a yellow wash to the image, and in some cases, it radically adjusts the levels.
    See examples below:
    This was what the image looked like after it had loaded:
    And this is what it should have looked like (I had to edit it BACK to what it had looked like on the camera).
    I should note that once Aperture has seemingly applied these unwanted adjustments, there is no way to undo them - 'Revert to Original' does nothing as as far as Aperture is concerned, this is the original image.
    Again, notice what happens when I quick preview an image:
    But when I switch out of Quick Preview, these unwanted adjustments are applied:
    Please, can anyone help out with this - it's driving me crazy.
    Is there a way of seeing what Aperture might be doing/applying behind the scenes? I've checked Preferences but can't see anything obvious.
    Many thanks in advance.
    dradd

    Are you shooting raw?
    Aperture is not doing any adjustments after import. Probably you have set your camera to do adjustments and you are using in-camera adjustment settings, like D-Lighting. These in-camera adjustments are reflected in the camera generated preview, that you are seeing when you are importing the image. After that, when you are opening the image, Aperture will create its own preview from the naked raw image. And that what you will see in the viewer. This preview shows exactly what your raw image is like, without any adjustments done by the camera. If you want the image processing results from the camera and not the original raw image as recorded by the camera from the sensor, import jpeg and not raw.
    See this discussion: TA24505 Why do d600 raw's look totally different than the jpg's that are imported together. When I select a raw, it looks as if it gets adjusted, but I can't figure out why...
    Regards
    Léonie

  • Scrollbar resets to top when loading new images

    Hi,
    When viewing an email (in Apple Mail, of course) that has several images, the scrollbar will reset to the top of the email every time an image finishes loading. It's really annoying, as I'd like to be able to scroll through the email as images are loading.
    Thoughts/ideas? I don't recall this being an issue before Snow Leopard.
    Seems like I've even had it happen in Safari under certain circumstances, though I haven't identified the cause in that case.

    Hello,
    i have the same problem and i need a solution. The Problem apears while images loading from external servers.

  • PS5 crashes when loading an image to edit from LR3

    I'm using LR3 and PS5 in my workflow.  When in LR3 I try to "edit in Adobe Photoshop CS5" (CTRL +e) CS5 launches, I then get the "reading camera RAW format" dialogue, and when it finishes I get the Windows "Adobe Photoshop CS5 has encountered a problem and needs to close" dialogue.  I can open the same image from within CS5 directly no problem, or open it to CS5 from Bridge.
    Does anyone know the fix for this?  Is it a known problem with Adobe are working on?
    I'm running Windows XP SP3 on a PC with 3GB of memory.
    Thanks in anticipation,
    Rowteight

    Go into your editor settings in Lightroom and see if there's anything amiss. Also, export a photo using those settings and try to edit using CS5 independent of Lightroom.
    John Gregson

Maybe you are looking for

  • Java project help

    Hey guys, im thinking of changing my major to computer engineer in college i got this problem in principle of comp. class. its based on java programing and writing the codes. im having a hard time with writing code and our teacher will only give me s

  • Requested resource is not avaliable error

    i wrote a servlet which is under WEB-INF/classes/package1/servlet1.class but when im trying to use him im getting the error- "The requested resource (servlet servletName is not avaliable) is not avaliable" why does that mean? thnaks in advanced.

  • Clients not Accessible

    Hi! The configuration manager console shows the client is Active but when we try to connect to it using either "Remote Control" or "Remote Desktop Client", it does not work. Is it a known issue or the console is not updating the status of the clients

  • TM wireless routing from iMac via Ethernet cable

    I'm in Spain and have a wireless router from my ISP.  I have my iMac connected over wifi to the router.  I now have a 4th gen Time Machine that I am connecting directly to my iMac via an ethernet cable. What I'm trying to do is to use the Time Machin

  • Fixed value Statistical key Figures based on Profit Centers - 9KE5

    Hi all, We have a Statistical Key Figure that is of Fixed Value category, based on Profit Centers. We are manually entering it in 9KE5. Since it is of fixed value category, am I right to say that: once we enter in one period,  it will automatically b