Wrong class name inside class file

Hi@all!
I wrote a normal applet, and there are no compiling errors.
But if I try to run it in my netscape 4.77 following exception occurs:
>>
Applet exception: error: java.lang.ClassFormatError: Wrong class name inside class file
>>
Does anybody know, where the problem is?
Please help!!!!!
Thank you!

I'm not sure but here's a couple ideas. If the class is a public class, then the name of the .class file and the class must be identical and remember that java is case sensitive. Second thought is a class that is defined to be part of a package must reside in a directory that matches the package name.
If you post more info, you might get a better answer.

Similar Messages

  • How to know the class name in .ser file?

    Hi,
    I have a .ser file, could any expert help me to find out all the classes in the .ser file? Thanks!

    If you have written them as Object, then you can just read them one by one with an ObjectInputStream and when you have the object, you can print out the class name:
    Object o = in.readObject();
    if (o != null)
      System.out.println(o.getClass().getName());
    else
      System.out.println(null);

  • Public class name same as file name

    Why should the public class name be same as the file name in which it is written?
    http://forum.java.sun.com/thread.jspa?threadID=198585&messageID=657978
    The above thread says it is because it makes the compilation faster. is that the only reason?
    Thank you.

    That's specified in the JLS. See � 7.6, Top Level Type Declarations.
    <i>
    When packages are stored in a file system (�7.2.1), the host system may
    choose to enforce the restriction that it is a compile-time error if a type is not
    found in a file under a name composed of the type name plus an extension (such
    as .java or .jav) if either of the following is true:
    . The type is referred to by code in other compilation units of the package in
    which the type is declared.
    . The type is declared public (and therefore is potentially accessible from
    code in other packages).
    This restriction implies that there must be at most one such type per compilation
    unit. <b>This restriction makes it easy for a compiler for the Java programming language or an implementation of the Java virtual machine to find a named class
    within a package; for example, the source code for a public type
    wet.sprocket.Toad would be found in a file Toad.java in the directory wet/
    sprocket, and the corresponding object code would be found in the file
    Toad.class in the same directory.</b>
    When packages are stored in a database (�7.2.2), the host system must not
    impose such restrictions.
    </i>

  • Bytecode class names (nested classes)

    Hi,
    with my JVMTI agent on a 1.5 JVM I found class names like this:
    Lsun.misc.URLClassPath$JarLoader
    Ljava.util.HashMap$Entry
    which show nested classes inside of other classes. The point is, that those nested classes (behind '$') here have a name.
    But what about those:
    Lsun.misc.Launcher$AppClassLoader$1
    Ljava.util.zip.ZipFile$2
    Ljava.lang.Class$1
    Ljava.lang.ref.ReferenceQueue$Null
    They dont have a name? How is this possible? Is it inline creation of an abstract class for example which results in unnamed (and then numbered) nested classes? And what about that "Null" ?
    Robert

    Cross-posted.
    http://forum.java.sun.com/thread.jspa?threadID=738470
    Robert: do not ask your question repeatedly in different areas. At the very least post a link to your question in other areas. Otherwise you waste peoples time, if the question has already been answered somewhere else.

  • Packaging POF object class in a jar file

    I have the following issue packaging a POF class.
    I have two POF classes which are defined in the package oracle.communications.activation.asap.ace;
    1. Token.java
    2. Asdl.java
    For simplicity i package them in the coherence.jar along with the other nessary artifacts.
    "tokens-pof-config.xml"
    <?xml version="1.0"?>
    <pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config"
    xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config coherence-pof-config.xsd">
    <user-type-list>
    <!-- coherence POF user types -->
    <include>coherence-pof-config.xml</include>
    <!-- com.tangosol.examples package -->
    <user-type>
    <type-id>1001</type-id>
    <class-name>Token</class-name>
    </user-type>
    <user-type>
    <type-id>1002</type-id>
    <class-name>Asdl</class-name>
    </user-type>
    </user-type-list>
    <allow-interfaces>true</allow-interfaces>
    <allow-subclasses>true</allow-subclasses>
    </pof-config>
    Then I startup the CacheServer it startsup fine. However when I invoke the POF classes from my weblogic artifacts I get the following error message.
    <Oct 26, 2011 10:04:24 PM PDT> <Warning> <EJB> <BEA-010065> <MessageDrivenBean threw an Exception in onMessage(). The exception was:
    (Wrapped) java.io.IOException: unknown user type: oracle.communications.activation.asap.ace.Token.
    (Wrapped) java.io.IOException: unknown user type: oracle.communications.activation.asap.ace.Token
    ======================================================================================================================
    If I however define the classes in the default package or no package instead of package oracle.communications.activation.asap.ace;
    Keeping everything else the same everything works fine.
    ====================================================================================
    What do I need to do to make this work if I am packaging my POF classes not in the default package ?

    Hi JK,
    Well i have modified my POF classes since then and now created a package for them before I was just playing around and had them defined in a default package.
    Second Baby steps here, once I get things working by packaging things in the coherence.jar file I will create my own jar artifact and add it to class path. As it is I have classpath issues. ...
    So as I mentioned earlier.
    I created the oracle/communications/activation/asap/ace directory added my two POF classes to it and then repackaged the jar.
    It returns this error!
    2011-10-27 06:48:03.355/4.696 Oracle Coherence GE 3.6.0.4 <Error> (thread=main, member=1): Error while starting service "DistributedCache": (Wrapped) (Wrapped: error configuring class "com.tangosol.io.pof.ConfigurablePofContext") java.lang.NoClassDefFoundError: oracle/communications/activation/asap/ace/Token (wrong name: Token)
    So any ideas ?
    "tokens-pof-config.xml"
    ==============
    <?xml version="1.0"?>
    <pof-config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns="http://xmlns.oracle.com/coherence/coherence-pof-config"
    xsi:schemaLocation="http://xmlns.oracle.com/coherence/coherence-pof-config coherence-pof-config.xsd">
    <user-type-list>
    <!-- coherence POF user types -->
    <include>coherence-pof-config.xml</include>
    <!-- com.tangosol.examples package -->
    <user-type>
    <type-id>1001</type-id>
    <class-name>oracle.communications.activation.asap.ace.Token</class-name>
    </user-type>
    <user-type>
    <type-id>1002</type-id>
    <class-name>oracle.communications.activation.asap.ace.Asdl</class-name>
    </user-type>
    </user-type-list>
    <allow-interfaces>true</allow-interfaces>
    <allow-subclasses>true</allow-subclasses>
    </pof-config>
    cache-server.sh_
    #!/bin/sh
    # This will start a cache server
    # specify the Coherence installation directory
    COHERENCE_HOME=.
    # specify the JVM heap size
    MEMORY=512m
    if [ ! -f ${COHERENCE_HOME}/bin/cache-server.sh ]; then
    echo "coherence.sh: must be run from the Coherence installation directory."
    exit
    fi
    if [ -f $JAVA_HOME/bin/java ]; then
    JAVAEXEC=$JAVA_HOME/bin/java
    else
    JAVAEXEC=java
    fi
    #JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY -Dtangosol.pof.enabled=true -Dtangosol.pof.config=tokens-pof-config.xml"
    #JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY -Dtangosol.coherence.clusteraddress=224.3.6.0 -Dtangosol.coherence.clusterport=3059"
    JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY"
    #JAVA_OPTS="-Xms$MEMORY -Xmx$MEMORY"
    $JAVAEXEC -server -showversion $JAVA_OPTS -cp "$COHERENCE_HOME/lib/coherence.jar:." com.tangosol.net.DefaultCacheServer $1
    Token.java for example (Asdl.java looks very similar)
    ================================
    package oracle.communications.activation.asap.ace;
    import java.io.IOException;
    import java.io.Serializable;
    import com.tangosol.io.pof.PortableObject;
    import com.tangosol.io.pof.PofReader;
    import com.tangosol.io.pof.PofWriter;
    import java.sql.*;
    import java.util.Enumeration;
    * This class represents the domain object Token. This class is also packaged on the classpath
    * for the Cache-Server when it starts up. The Token class implements the PortableObject format.
    * @author Ankit Asthana
    public class Token implements PortableObject {
         * The state associated with a token
         * 1 - Unassigned, 2 - Available, 3 - Reserved, 4 - defunct
         private int state;
         * The network ID associated with each token
         private String neID;
         * Unique Token ID, used to identify Tokens
         private String tokenID;
         * State of the token possible
         public static int TOKEN_AVAILABLE = 2;
         public static int TOKEN_RESERVED = 3;
         * The following are static final indices required for the implementation
         * for a POF object, they have to be sequential in order.
         public static final int TOKENID = 0;
         public static final int STATE = 1;
         public static final int NEID = 2;
         * setter Method for state of the token
         * @param state
         public void setState(int state) {
              this.state = state;
         * getter Method for the state of the token
         * @return
         public int getState() {
              return state;
         * setter Method for the network ID
         * @param neID
         public void setNeID(String neID) {
              this.neID = neID;
         * getter Method for the network ID
         * @return
         public String getNeID() {
              return neID;
         * returns the TokenID for the current token
         * @return
         public String getTokenID() {
              return tokenID;
         * Default Constructor required by POJO's, Do not remove!
         public Token() {
         * This is a utility method and returns the state of the token in a String format using the
         * integer value representing the state of the token passed to it.
         * @param tokenStateInteger
         * @return
         public static String tokenToString(int tokenStateInteger) {
              if (tokenStateInteger == TOKEN_AVAILABLE)
                   return "Available";
              else if (tokenStateInteger == TOKEN_RESERVED)
                   return "Reserved";
              return "Unknown";
         * Parameterized constructor for a token.
         * Can be used to initialize a token with the following parameters
         * @param tokenID: Unique ID representing the Token
         * @param state: The state for the token, by default available
         * @param neID: The network ID this token associates to
         public Token(String tokenID, int state, String neID) {
              this.state = state;
              this.tokenID = tokenID;
              this.neID = "" + neID;
         // ----- PortableObject interface ---------------------------------------
         * The readExternal method is required for the implementation of the POF portableObject.
         * This method is used for serialization purposes
         * {@inheritDoc}
         public void readExternal(PofReader reader) throws IOException {
              tokenID = reader.readString(TOKENID);
              state = Integer.parseInt(reader.readString(STATE));
              neID = reader.readString(NEID);
         * The writeExternal method is required for the implementation of the POF portableObject.
         * This method is used for de-serialization purposes
         * {@inheritDoc}
         public void writeExternal(PofWriter writer) throws IOException {
              writer.writeString(TOKENID, tokenID);
              writer.writeString(STATE, Integer.toString(state));
              writer.writeString(NEID, neID);
    Edited by: 807103 on Oct 27, 2011 8:55 AM
    Edited by: 807103 on Oct 27, 2011 9:00 AM

  • Find the Class Name in a static method

    Hi All,
    I am trying to find the class name inside the static main method. I want to write one main method that loads an instance of the class. Other folks have suggested tricks with the security manager or creating an Exception to look at the stack trace, but these methods don�t reflect the inheritance. I want SUBCLASSES to be able to run from the command line using the inherited main method.
    public static void main(String args[]){
          JPanel thisJPanel = (JPanel) Class.forName(????).newInstance();
    }Any Ideas

    I want
    SUBCLASSES to be able to run from the command line
    using the inherited main method.Someone pointed this out already but more directly, static methods are not inherited.
    The behavior you desire ca be achieved using the Factory pattern.
    The idea of being able to subclass an application is a little bizarre. Why don't you just do something like this:
    public static void main(String[] args){
        // check that there is at least one parameter 
        JPanel thisJPanel = (JPanel) Class.forName(args[0]).newInstance();
    }

  • Quick question about class name

    I was reading through some java code and i noticed this line on the class name
    public class SimpleList<E> implements List<E>i was just wondering what does <E> refer too? I'd appreciate any links.
    Thanks

    The <E> portion of class definition is in reference to Generics. Take a look at Generics in the Tutorial.

  • Class name and file name should be same??

    Hi All,
    I am having tweo public classes in a file like this:
    public class A
    // Class body
    public class B extends A
    // Class body
    public static void main(String args[])
    // Function body
    when I compile its giving the following error:
    B.java:1: class A is public, should be declared in a file named A.java
    Why it is so.whats wrong in this.
    Thanks in advance,
    Jana.

    In C you have to write a "make-file" for your project (or it's written for you).
    In java there are no "projects". If the JVM needs a class it is looking for a file with this name in the classpath.

  • Class name and file name

    if i have putiple classes in a single file then if a clas declared as public then the file name shoud me same as class name.... why?
    if i declare two public class in a same source fiel what will happen????????
    plz help................
    thanks in advance

    And i bet a million dollars that even you don't
    search the forum before posting anything . So stop
    suggesting that .Too bad that I wasn't included in the bet. You won't be coz you are a veteran and it's from you and the other veterans(I will include my peers as well) that i learnt a lot including good googling.
    It happens
    that I search the forum before I post an answer.
    Searching the forum using google is actually very
    effective.Yes and thats the very reason i didn't mention googling in that reply because i know that google gives the results from the threads in the forum as i myself have read a lot of posts at this forum using google and obtained solutions.But it's a different case when a person has to manually search the forum(without google) to see if a topic matches his needs and as i just mentioned off lately most of the posts come out with crappy headers like "Please Help Me" ; "Error" ; "Can't compile" ; "Help Needed" ; "What's wrong in this".How much sense does these headers make with respect to the what the post is really about.One can't expect a person to verify each such post with such crappy headers and read each's contentns.Just imagine how frustrating it is.Even the posters lose their cool when someone posts with such titles.Then just imagine what will be the condition of the person who is asked to check the forum before posting.But i totally endorse googling.There is no pardon or any sort of respite for a person who has posted without googling which would have fetched him top notch answers.
    Oh God!That looks really long!

  • Error while extending controller: class name is wrong or not included

    Hi All,
    I am getting this error while I port my extended controller class to the custom top and assign this controller to the page. I have made sure its the class file that is copied. The directory is correct, the permissions were given using chmod 775. There exists a soft link betwen the custom top and the oracle top as well. What else am I missing here?
    Error: oracle.apps.fnd.framework.OAException: Could not create Java class: (oracle.apps.ap.oie.entry.webui.XXEntryFlowPageCO) associated with region: (GeneralInformationPG). This is probably because the class name is wrong or not included in project.

    :( Started out with that Gyan. If i do give the path with xx. appended to it, it lets me save and when i log back in and there are no changes to the page. I go to the personalise option to find the modification has been overwritten. I was told that this is so because Oracle doesnt recognise the xx.path and since there exists a soft link already the standard path with the new controller name should work.
    i have really tried both of these options and am not sure what could be wrong. thanks for all your attempts to help. anything else i can try?

  • Getting the class name from within the compiled class file

    hey!
    I was wondering (i know its possible) how to read a .class and get the name of the class. ok that made not much sense^^ so, You have a file: c:\f.class but it wont run because the file name has to be the same as the classes name, right? so how can you read the class file i guess in binary mode to receive the correct class name.
    I saw inside my f.class i have "realname.java" so i know now that the name of the class file should be realname.class, i tried ways to extract it from the class file but never had any success.
    i think i need to study english^^
    ps: i need this because i have some class files sent to me and the file names have been changed so they wont work, they only work when i open the class file in notepad and find out what its real name should be and then rename the file.
    Edited by: forgotmydamnpass on May 7, 2009 11:23 AM

    ah looks interesting, problem is i cant use it.. im prone to errors!
    import java.net.URLClassLoader;
    public class NewMain {
         * @param args the command line arguments
        public static void main(String[] args) {
            FileClassLoader loader = new FileClassLoader();
            Class clazz = loader.createclass("c:\\f.class");
            Method method = clazz.getName();
    }apparently "createclass" doesnt exist :/
    FileClassLoader = cannot find symbol
    Method = cannot find symbol

  • Error in File name or class name not found during Automation operation: 'CreateObj​ect'

    Hello Team,
    When I am trying to execute the below code i am getting the following error. Any help would be greatly appreciated.
    Set oFSO = CreateObject("Scripting.FileSystemObject")
    If Not oFSO.FolderExists(SavePath) Then
    Set f = oFSO.CreateFolder(SavePath)
    Else
    End If
    53 4/11/2014 12:27:22 PM Error:
    Error in <NoName(4).VBS> (Line: 9, Column: 1):
    File name or class name not found during Automation operation: 'CreateObject'
    I have googled through the error and tried to re-register the scrrun.dll using regsvr32 eventhogh it is successfully registered, i am getting the following error. My PC is windows 7 32bit OS.
    any help is greatly appreciated.

    The following script class will write a log file entry. See if it will run for you.
    The script is using a class object that you might not have seen before. A little intro:  The top section is just for testing the class. Normally I just comment this out after the class is working well.  It should run right way. I would save the vbs file in the editor, That way when you are using autoactpath or currentscriptpath variables they will be able resolve the paths.
    Paul
    Attachments:
    LoggingCode_V2.VBS ‏5 KB

  • Definition class name missing in XML file of type taskFlow

    Hi all,
    I am trying to invoke a bounded taskflow from a region on a jspx page.
    My jspx page has: *<af:region value="#{bindings.citySearchTF.regionModel}" id="r1" />*
    Its page def file has :
    *<taskFlow id="citySearchTF" taskFlowId="/WEB-INF/tfs/bounded/cities/city-search-tf.xml#city-search-tf"*
    xmlns="http://xmlns.oracle.com/adf/controller/binding"/>
    My taskFlow file is :
    *<?xml version="1.0" encoding="windows-1252" ?>*
    *<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">*
    *<task-flow-definition id="city-search-tf">*
    *<default-activity>search-city.jsff</default-activity>*
    *<data-control-scope>*
    *<shared/>*
    *</data-control-scope>*
    *<view id="search-city.jsff">*
    *<page>/view/bounded/city/search-city.jsff</page>*
    *</view>*
    *<use-page-fragments/>*
    *</task-flow-definition>*
    *</adfc-config>*
    Now, while running this jspx page, I am getting the following errors:
    On Browser : ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    On WLS Logs :
    oracle.jbo.PersistenceException: JBO-34000: Definition class name missing in XML file of type taskFlow
         at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:402)
         at oracle.adf.model.binding.DCBindingContainerDef.loadExecutables(DCBindingContainerDef.java:1482)
         at oracle.adf.model.binding.DCBindingContainerDef.loadChildrenFromXML(DCBindingContainerDef.java:1278)
         at oracle.adf.model.binding.DCDefBase.loadFromXML(DCDefBase.java:325)
         at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:409)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.createFromXML(JUMetaObjectManager.java:1274)
         at oracle.jbo.mom.PersistableDefObject.createFromXML(PersistableDefObject.java:84)
         at oracle.jbo.mom.DefinitionManager.loadDefObject(DefinitionManager.java:961)
         at oracle.jbo.mom.DefinitionManager.doFindSessionDefObject(DefinitionManager.java:1037)
         at oracle.jbo.mom.DefinitionManager.findSessionDefObject(DefinitionManager.java:705)
         at oracle.adf.model.binding.DCBindingContainerDef.findSessionDefObject(DCBindingContainerDef.java:351)
         at oracle.adf.model.binding.DCBindingContainerDef.findDefObject(DCBindingContainerDef.java:316)
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:127)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:95)
         at oracle.adf.model.BindingContext.get(BindingContext.java:1089)
         at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:807)
         at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:1598)
         at oracle.adfinternal.controller.application.model.UpdateBindingListener.setBindingELVariable(UpdateBindingListener.java:112)
         at oracle.adfinternal.controller.application.model.UpdateBindingListener.beforePhase(UpdateBindingListener.java:61)
         at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:550)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchBeforePagePhaseEvent(LifecycleImpl.java:147)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchBeforePagePhaseEvent(ADFPhaseListener.java:119)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:63)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:319)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         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:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         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)
    There is some issue with PageDef but I am not able to figure it out. Searched a lot on internet but didn't succeed. Thanks in advance.
    Edited by: 965225 on Dec 17, 2012 3:43 AM

    Hi all,
    I am trying to invoke a bounded taskflow from a region on a jspx page.
    My jspx page has: *<af:region value="#{bindings.citySearchTF.regionModel}" id="r1" />*
    Its page def file has :
    *<taskFlow id="citySearchTF" taskFlowId="/WEB-INF/tfs/bounded/cities/city-search-tf.xml#city-search-tf"*
    xmlns="http://xmlns.oracle.com/adf/controller/binding"/>
    My taskFlow file is :
    *<?xml version="1.0" encoding="windows-1252" ?>*
    *<adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">*
    *<task-flow-definition id="city-search-tf">*
    *<default-activity>search-city.jsff</default-activity>*
    *<data-control-scope>*
    *<shared/>*
    *</data-control-scope>*
    *<view id="search-city.jsff">*
    *<page>/view/bounded/city/search-city.jsff</page>*
    *</view>*
    *<use-page-fragments/>*
    *</task-flow-definition>*
    *</adfc-config>*
    Now, while running this jspx page, I am getting the following errors:
    On Browser : ADF_FACES-30179:For more information, please see the server's error log for an entry beginning with: The UIViewRoot is null. Fatal exception during PhaseId: RESTORE_VIEW 1.
    On WLS Logs :
    oracle.jbo.PersistenceException: JBO-34000: Definition class name missing in XML file of type taskFlow
         at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:402)
         at oracle.adf.model.binding.DCBindingContainerDef.loadExecutables(DCBindingContainerDef.java:1482)
         at oracle.adf.model.binding.DCBindingContainerDef.loadChildrenFromXML(DCBindingContainerDef.java:1278)
         at oracle.adf.model.binding.DCDefBase.loadFromXML(DCDefBase.java:325)
         at oracle.adf.model.binding.DCDefBase.createAndLoadFromXML(DCDefBase.java:409)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.createFromXML(JUMetaObjectManager.java:1274)
         at oracle.jbo.mom.PersistableDefObject.createFromXML(PersistableDefObject.java:84)
         at oracle.jbo.mom.DefinitionManager.loadDefObject(DefinitionManager.java:961)
         at oracle.jbo.mom.DefinitionManager.doFindSessionDefObject(DefinitionManager.java:1037)
         at oracle.jbo.mom.DefinitionManager.findSessionDefObject(DefinitionManager.java:705)
         at oracle.adf.model.binding.DCBindingContainerDef.findSessionDefObject(DCBindingContainerDef.java:351)
         at oracle.adf.model.binding.DCBindingContainerDef.findDefObject(DCBindingContainerDef.java:316)
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:127)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:95)
         at oracle.adf.model.BindingContext.get(BindingContext.java:1089)
         at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:807)
         at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:1598)
         at oracle.adfinternal.controller.application.model.UpdateBindingListener.setBindingELVariable(UpdateBindingListener.java:112)
         at oracle.adfinternal.controller.application.model.UpdateBindingListener.beforePhase(UpdateBindingListener.java:61)
         at oracle.adfinternal.controller.lifecycle.ADFLifecycleImpl$PagePhaseListenerWrapper.beforePhase(ADFLifecycleImpl.java:550)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.internalDispatchBeforeEvent(LifecycleImpl.java:100)
         at oracle.adfinternal.controller.lifecycle.LifecycleImpl.dispatchBeforePagePhaseEvent(LifecycleImpl.java:147)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.dispatchBeforePagePhaseEvent(ADFPhaseListener.java:119)
         at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.beforePhase(ADFPhaseListener.java:63)
         at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.beforePhase(ADFLifecyclePhaseListener.java:44)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:319)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:204)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:312)
         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:173)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:122)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:468)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:293)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:199)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:180)
         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)
    There is some issue with PageDef but I am not able to figure it out. Searched a lot on internet but didn't succeed. Thanks in advance.
    Edited by: 965225 on Dec 17, 2012 3:43 AM

  • Why java file name and class name are equal

    could u explain why java file name and class name are equal in java

    The relevant section of the JLS (?7.6):
    When packages are stored in a file system (?7.2.1), the host system may choose to enforce the restriction that it is a compile-time error if a type is not found in a file under a name composed of the type name plus an extension (such as .java or .jav) if either of the following is true:
    * The type is referred to by code in other compilation units of the package in which the type is declared.
    * The type is declared public (and therefore is potentially accessible from code in other packages).
    This restriction implies that there must be at most one such type per compilation unit. This restriction makes it easy for a compiler for the Java programming language or an implementation of the Java virtual machine to find a named class within a package; for example, the source code for a public type wet.sprocket.Toad would be found in a file Toad.java in the directory wet/sprocket, and the corresponding object code would be found in the file Toad.class in the same directory.
    When packages are stored in a database (?7.2.2), the host system must not impose such restrictions. In practice, many programmers choose to put each class or interface type in its own compilation unit, whether or not it is public or is referred to by code in other compilation units.

  • Why is the name of java file is same as public class?

    hello friends
    why we need to assign same name to .java file as the name of public class in .java file? while its not necessary for the class having no modifier?

    This question has been asked several times. Serch the forum.
    x

Maybe you are looking for

  • How do I change an Apple ID on one of two devices that share the same ID?

    I have two devices with the same apple Id. My iphone and my daughters iphone. I can uncheck her # from the imessages to keep messages from going to her phone. I would like to get a new apple id for her phone so as to separate both of our phones.. How

  • Dual-booting OS X & Windows XP – Limited to 10.6 Snow Leopard?

    I have an October 2008 vintage MacBook Pro 17-inch*, which will shortly be revitalised with an OCZ Vertex 4 512GB solid state drive, and with the boost in available disc space, I'm exploring options for dual-booting OS X and Windows. * Model ID: MacB

  • OSX 10.7.5

    I have a late 2006 iMac that uses OSX 10.7.5. My system doesn't fit the new specs for 10.8 and above. Hence I can't download iTunes Producer 3.0. I have been working on my book for the last 18 months and am ready to upload the finished book. Apart fr

  • Calling all script experts - Wierd problem with a previously perfect script

    Hi, As script which used to work fine is now causing me big problems. The line that is causing the problem is highlighted in the script editor as: tell application "Finder" to set file_List to every file of entire contents of master_Folder -- Obtains

  • How to Deinstall 10g on windows xp2

    Hi Friends, I want to deinstall Oracle 10g on windows xp2 , how to do it... Please some one explain... Thanks and Regards..