[JPA] Exception Description: Missing meta data

I'm getting the following error message trying to compile a simple EE App that
contains a single Entity Class.
Exception Description: Missing meta data for class [java.lang.Integer].
Ensure the class is not being excluded from your persistence unit by a
<exclude-unlisted-classes>true</exclude-unlisted-classes> setting.
If this is the case, you will need to include the class directly by adding a
<class>[java.lang.Integer]</class> entry for your persistence-unit.That class contains a private Map<Long, Integer> list and I'm using SJSAS 9 and NetBeans 5.5.
Thanks in advance,
Stefano

I'm also experiencing this problem.
I'm pretty sure the cause of this is your "Map<Long, Integer>" and my "List<Integer>".
Doesn't GlassFish implement this JPA specification?
I see the post is been unreplied for a month: Please, somebody help us!
Tks,
Raul Oliver

Similar Messages

  • Exception Description: Missing descriptor

    Hello,
    I am dumping data from one table to another table with 2 database connection, 2 sessions.xml and 2 descriptors.
    When I run the code and while trying to write to table, I am getting
    oracle.toplink.exceptions.ValidationException
    Exception Description: Missing descriptor for [class toplink.TestHist]. 
    Verify that the descriptor has been properly registered with the Session.I think the exception is throwing from this line
    uow2.registerAllObjects(v1);where v1 is a vector which reads data from another table.
    What could be the reason for getting the above exception?
    Regards

    Hello,
    Do all the object types in the v1 collection have a descriptor? The exception suggests that the collection contains a toplink.TestHist instance, and that the toplink.TestHist doesn't have a descriptor in this session.
    Best Regards,
    Chris

  • Exception Description: Missing descriptor for ...

    I have this to query:
    codes:
    UnitOfWork uow = getSessionFactory().acquireUnitOfWork();
    Vector params = new Vector(1);
    params.add(argCompanyId);
    VsaSpaVendor result = (VsaSpaVendor)uow.executeQuery("findVendorByCompanyId", VsaSpaVendor.class, params);
    uow.commit();
    return result;
    then I startup the embedded oc4j in jdeveloper,I got the following errors,
    but when I deploy my application to a standalone oc4j server, it works.
    errors:
    Caused by: Exception [TOPLINK-6007] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.QueryException
    Exception Description: Missing descriptor for [class com.vs.espa.model.VsaSpaVendor].
    Query: ReadObjectQuery(com.vs.espa.model.VsaSpaVendor)
         at oracle.toplink.exceptions.QueryException.descriptorIsMissing(QueryException.java:358)
         at oracle.toplink.queryframework.ReadObjectQuery.checkDescriptor(ReadObjectQuery.java:211)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.checkPrePrepare(ObjectLevelReadQuery.java:566)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.checkEarlyReturn(ObjectLevelReadQuery.java:501)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:564)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.execute(ObjectLevelReadQuery.java:779)
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:388)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.executeInUnitOfWork(ObjectLevelReadQuery.java:836)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2604)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:993)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:950)
         at oracle.toplink.publicinterface.Session.readObject(Session.java:2541)
         at com.vs.espa.model.EspaPublicFacadeBean.findVendorByCompanyId(EspaPublicFacadeBean.java:1037)
         at com.vs.espa.model.EspaPublicFacadeBean.findUserByUserName(EspaPublicFacadeBean.java:796)
         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 com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 129 more
    Anyone can tell me why?
    Jerry

    Thank you, James
    I create SessionFactory by this:
    public EspaPublicFacadeBean() {
    this.sessionFactory =
    new SessionFactory("META-INF/sessions.xml", "default");
    the sessions.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <!DOCTYPE toplink-configuration PUBLIC "-//Oracle Corp.//DTD TopLink Sessions 9.0.4//EN" "sessions_9_0_4.dtd">
    <toplink-configuration>
    <session>
    <name>default</name>
    <project-xml>META-INF/espaMap.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <datasource>jdbc/devvsDS</datasource>
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>vsc</user-name>
    <encryption-class-name>oracle.toplink.internal.security.JCEEncryptor</encryption-class-name>
    <encrypted-password>03B2E88B1EC44B3883BEF6EB790DF0F8D62D1A19DF561D1E</encrypted-password>
    <uses-native-sequencing>true</uses-native-sequencing>
    <sequence-preallocation-size>1</sequence-preallocation-size>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    <external-transaction-controller-class>oracle.toplink.transaction.oc4j.Oc4jTransactionController</external-transaction-controller-class>
    <enable-logging>true</enable-logging>
    <logging-options>
    <log-debug>true</log-debug>
              <log-level>fine</log-level>
    <print-thread>true</print-thread>
    </logging-options>
    </session>
    </toplink-configuration>
    class-mapping-descriptor defined in espaMap.xml
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>com.vs.espa.model.VsaSpaVendor</opm:class>
    <opm:alias>VsaSpaVendor</opm:alias>
    <opm:primary-key>
    <opm:field table="VSA_SPA_VENDOR" name="COMPANY_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy">
    <opm:queries>
    <opm:query name="findVendorByCompanyId" xsi:type="toplink:read-object-query">
    <opm:criteria operator="equal" xsi:type="toplink:relation-expression">
    <toplink:left name="companyId" xsi:type="toplink:query-key-expression">
    <toplink:base xsi:type="toplink:base-expression"/>
    </toplink:left>
    <toplink:right xsi:type="toplink:parameter-expression">
    <toplink:parameter name="argCompanyId" xsi:type="opm:column"/>
    </toplink:right>
    </opm:criteria>
    <opm:arguments>
    <opm:argument name="argCompanyId">
    <opm:type>java.lang.Integer</opm:type>
    </opm:argument>
    </opm:arguments>
    <toplink:timeout>0</toplink:timeout>
    <toplink:reference-class>com.vs.espa.model.VsaSpaVendor</toplink:reference-class>
    <toplink:cache-usage>primary-key</toplink:cache-usage>
    <toplink:lock-mode>none</toplink:lock-mode>
    </opm:query>
    Any ideas? Or could you give me some sample codes?
    Jerry

  • How to deal with FLV with missing meta data?

    I have and will get flvs in the future with missing meta
    data.
    I think for the most part the meta data that is missig is the
    file length.
    The exact files that are not working on our server are
    working on some other companies FMS.
    They must have some workaround actionscript on the server or
    configuration that is making it work.
    I'd like to know that workaround or that configuration
    change. That would be the ideal fix.
    I already know how to fix the FLV after I download it but I
    wanted to know if there is another way to deal with this problem.
    One were I can leave the FLVs alone.
    Is there some serverside actionscript that would tell FMS the
    length of the movie or change the configuration of fms to deal with
    this somehow.
    Any ideas?

    If you are using the same database and referencing two tables then you dont need special configuration for it. You use single jdbc adapter. In ESR you create two statment structure one for each table. This is one option. The second option is use join statment and write query and in this case one statment data structure.
    Please go through the help sap link for the jdbc document structure.
    http://help.sap.com/SAPHELP_NW04s/helpdata/EN/2e/96fd3f2d14e869e10000000a155106/content.htm
    The second option can be done using the below structure.
    <StatementName>
    <anyName action=u201D SQL_QUERYu201D >
    <access>SQL-String with optional placeholder(s)</access>
    <key>
      <placeholder1>value1</placeholder1>
      <placeholder2>value2<placeholder2>
    </key>
    </anyName > 
    </StatementName>

  • [TOPLINK-6007]: Exception Description: Missing descriptor for

    Hi,
    We developed an ADF application with TopLink in JDeveloper 10.1.3.3. All things are right in JDeveloper's embedded OC4J.
    But after we deployed it to standalone OC4J 10.1.3.3, we find following errors (in CMD window):
    TOPLINK-6007] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 07
    *0428)): oracle.toplink.exceptions.QueryException*
    *Exception Description: Missing descriptor for [class oracle.model.class1].*
    Query: ReadObjectQuery(oracle.model.class1)
    And find other erros related to this class1 (in this application's application.log)
    javax.faces.el.EvaluationException: javax.faces.el.EvaluationException: Error getting property 'allNameList' from bean of type oracle.view.backing.UserPrivilege: java.lang.ClassCastException: oracle.model.class1
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143)
         at javax.faces.component.UISelectItems.getValue(UISelectItems.java:130)
         at oracle.adfinternal.view.faces.renderkit.uix.SelectItemSupport.addSelectItems(SelectItemSupport.java:262)
         at oracle.adfinternal.view.faces.renderkit.uix.SelectManyShuttleRenderer._getSelectItems(SelectManyShuttleRenderer.java:178)
         at oracle.adfinternal.view.faces.renderkit.uix.SelectManyShuttleRenderer.encodeBegin(SelectManyShuttleRenderer.java:60)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeBegin(UIXComponentBase.java:593)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:297)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
         at oracle.adfinternal.view.faces.ui.composite.ContextPoppingUINode$ContextPoppingRenderer.render(ContextPoppingUINode.java:224)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderIndexedChildren(BorderLayoutRenderer.java:42)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.BorderLayoutRenderer.renderContent(BorderLayoutRenderer.java:71)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:346)
         at oracle.adfinternal.view.faces.ui.BaseUINode.render(BaseUINode.java:301)
         at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.renderWithNode(UINodeRenderer.java:90)
         at oracle.adfinternal.view.faces.ui.composite.UINodeRenderer.render(UINodeRenderer.java:36)
         at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
         at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
         at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
         at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.RowLayoutRenderer.renderChild(RowLayoutRenderer.java:95)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
         at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
         at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode._renderComponent(UIComponentUINode.java:317)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:262)
         at oracle.adfinternal.view.faces.uinode.UIComponentUINode.render(UIComponentUINode.java:239)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderChild(BaseRenderer.java:412)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:330)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderIndexedChild(BaseRenderer.java:222)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.renderContent(BaseRenderer.java:129)
         at oracle.adfinternal.view.faces.ui.BaseRenderer.render(BaseRenderer.java:81)
         at oracle.adfinternal.view.faces.ui.laf.base.xhtml.XhtmlLafRenderer.render(XhtmlLafRenderer.java:69)
         at oracle.adfinternal.view.faces.uinode.UIXComponentUINode.renderInternal(UIXComponentUINode.java:177)
         at oracle.adfinternal.view.faces.uinode.UINodeRendererBase.encodeEnd(UINodeRendererBase.java:53)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at oracle.adfinternal.view.faces.renderkit.RenderUtils.encodeRecursive(RenderUtils.java:54)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeChild(CoreRenderer.java:242)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeAllChildren(CoreRenderer.java:265)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.renderContent(PanelPartialRootRenderer.java:65)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.renderContent(BodyRenderer.java:117)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.PanelPartialRootRenderer.encodeAll(PanelPartialRootRenderer.java:147)
         at oracle.adfinternal.view.faces.renderkit.core.xhtml.BodyRenderer.encodeAll(BodyRenderer.java:60)
         at oracle.adfinternal.view.faces.renderkit.core.CoreRenderer.encodeEnd(CoreRenderer.java:169)
         at oracle.adf.view.faces.component.UIXComponentBase.encodeEnd(UIXComponentBase.java:624)
         at javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:645)
         at javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:568)
         at oracle.adf.view.faces.webapp.UIXComponentTag.doEndTag(UIXComponentTag.java:100)
         at UserPrivilegejspx._jspService(_UserPrivilege_jspx.java:1169)
         at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
         at oracle.jsp.runtimev2.JspPageTable.compileAndServe(JspPageTable.java:724)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:414)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:287)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
         at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:283)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:346)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:152)
         at oracle.adfinternal.view.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:157)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:107)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:137)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:214)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:228)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:197)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:123)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:103)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:221)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:122)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.HttpRequestHandler.run(HttpRequestHandler.java:111)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: Error getting property 'allNameList' from bean of type oracle.view.backing.UserPrivilege: java.lang.ClassCastException: oracle.model.class1
         at com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:109)
         at oracle.adfinternal.view.faces.model.FacesPropertyResolver.getValue(FacesPropertyResolver.java:92)
         at com.sun.faces.el.impl.ArraySuffix.evaluate(ArraySuffix.java:187)
         at com.sun.faces.el.impl.ComplexValue.evaluate(ComplexValue.java:171)
         at com.sun.faces.el.impl.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263)
         at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:160)
         ... 138 more
    Caused by: java.lang.ClassCastException: oracle.model.class1
         at oracle.view.backing.UserPrivilege.getAllNameList(UserPrivilege.java:60)
         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 com.sun.faces.el.PropertyResolverImpl.getValue(PropertyResolverImpl.java:99)
         ... 143 more
    How to resolve?
    Thanks,
    Melody

    There was a recent thread on this issue,
    Missing Descriptor in Servlet
    Basically TopLink does not get notified of the undeployment of an app, so cannot remove the session from the SessionManager. (unless you are using CMP)
    If you can receive notification of the deploy/undeploy you could remove or refresh the session from the session manager.
    A simple way to do this would be to keep a static boolean variable in your apps class that accesses the session from the session manager. The first time you access the session refresh it and set the static to true.
    To refresh a session from the session manager use the API,
    SessionManager.getSession(XMLSessionConfigLoader/XMLLoader xmlLoader, String sessionName, ClassLoader classLoader, boolean shouldLoginSession, boolean shouldRefreshSession)
    i.e.
    SessionManager.getManager().getSession(new XMLSessionConfigLoader/XMLLoader("sessions.xml/or your file name/path"), "yourSessionName", yourClassLoader, true, true);
    Only use this API the first time you access the session from the app.
    You can also use the following code to remove a session,
    SessionManager.getManager().getSessions().remove("yourSessionName");
    I have logged this issue internally, hopefully a better solution will be provided in the 10.1.3 release.

  • Missing Meta data in Gallery JSON file

    I have bought a GEOtagger device and I am using GPS2Aperture to get the meta data into my Aperture library. But when you export the pictures to a Web Gallery Album the meta data is not exported. I found out it is not MobileMe too blame. When you look at the JSON file that is created by the Aperture export function you will see that the meta data is missing! The JSON file is located at: iDisk (iDisk > Web > Sites > _gallery > yourgalleryname), you'll see a list of folders each containing the photos in that particular gallery. And within each folder, there's a file called exif.json, which is a type of JavaScript that holds the EXIF information.
    I looked on the Internet to see if other users have this problem but it seems I am the only one This automatically raises the question: Is it just me or is noby using GeoTags?
    Anybody else has this problem?
    Message was edited by: kwarts

    I am having the same problem whereby Aperture sometimes exports the EXIF information and sometimes it doesn't. The photos are geotagged, and Aperture shows this information. But, sometimes it appears with the info command in a Gallery and sometimes not.
    I've got to check more closely, but it did appear in a gallery for which I allowed downloading. But, it did not appear in a gallery for which I did not allow downloading. I'm not sure, yet, if this is what does it.

  • Adding alternative text (meta data)

    How do you add Alternative Text to an existing jpeg?
    Thanks

    Good day!
    A jpg can not have »proper« editable text (except in the meta data etc.) but rather presents an image of text.
    So changing text in the image would require removing the old text (if it is not completely covered by the new text at least) by using the various tools available for such a task in Photoshop (Clone Stamp Tool, Content Aware Fill, …) and writing in the new one (with the Type Tool for example).
    In such a case it might pay off to keep the layered psd file and save a jpg off of that (File > Save As).
    Regards,
    Pfaffenbichler

  • Descriptor exception for "missing mapping for field"

    I am using TopLink 9.0.3, oracle database 9, JVM 1.4.
    I got one DescirptorException that states that the descriptor misses mapping for one database field.
    However I have such field mapped through workbench.
    The is the exception.
    -----------------exception-----------------------
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-45] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.DescriptorException
    EXCEPTION DESCRIPTION: Missing mapping for field [DatabaseField(DEVICEDB.DEVICEID)].
    DESCRIPTOR: Descriptor(ContactDB --> [DatabaseTable(DEVICEDB)])
    at oracle.toplink.exceptions.DescriptorException.missingMappingForField(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractValueFromObjectForField(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.extractValueFromObjectForField(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.extractForeignKeyFromReferenceObject(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.executeBatchQuery(Unknown Source)
    at oracle.toplink.mappings.OneToManyMapping.extractResultFromBatchQuery(Unknown Source)
    at oracle.toplink.internal.indirection.NoIndirectionPolicy.valueFromBatchQuery(Unknown Source)
    at oracle.toplink.mappings.ForeignReferenceMapping.batchedValueFromRow(Unknown Source)
    at oracle.toplink.mappings.ForeignReferenceMapping.valueFromRow(Unknown Source)
    at oracle.toplink.mappings.DatabaseMapping.readFromRowIntoObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(Unknown Source)
    at oracle.toplink.internal.descriptors.ObjectBuilder.buildObjectsInto(Unknown Source)
    at oracle.toplink.internal.queryframework.DatabaseQueryMechanism.buildObjectsFromRows(Unknown Source)
    at oracle.toplink.queryframework.ReadAllQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)
    at oracle.toplink.publicinterface.Session.internalExecuteQuery(Unknown Source)
    at oracle.toplink.threetier.ServerSession.internalExecuteQuery(Unknown Source)
    at oracle.toplink.publicinterface.Session.executeQuery(Unknown Source)
    at oracle.toplink.internal.indirection.QueryBasedValueHolder.instantiate(Unknown Source)
    at oracle.toplink.internal.indirection.DatabaseValueHolder.getValue(Unknown Source)
    at oracle.toplink.indirection.IndirectList.buildDelegate(Unknown Source)
    at oracle.toplink.indirection.IndirectList.getDelegate(Unknown Source)
    at oracle.toplink.indirection.IndirectList.isEmpty(Unknown Source)
    The is my mapping file for DeviceDB and ContactDB. The ContactDB is a subclass of the DeviceDB.
    Clearly from the mapping below, the DeviceDB has a mapping for the database filed DeviceID.
    The ContactDB is a subclass of DeviceDB. Therefore the ContactDB also should have a mapping for
    database field deviceID
    ----------------------- partial mapping file for DeviceDB----------
    public Descriptor buildDeviceDBDescriptor() {
         Descriptor descriptor = new Descriptor();
         descriptor.setJavaClass(DeviceDB.class);
         descriptor.addTableName("DEVICEDB");
         descriptor.addPrimaryKeyFieldName("DEVICEDB.DBID");
         // Inheritance properties.
         descriptor.getInheritancePolicy().setClassIndicatorFieldName("DEVICEDB.CLASS");
         descriptor.getInheritancePolicy().addClassIndicator(ContactDB.class, "c");
         descriptor.getInheritancePolicy().addClassIndicator(ContentDB.class, "f");
         OneToOneMapping deviceMapping = new OneToOneMapping();
         deviceMapping.setAttributeName("device");
         deviceMapping.setReferenceClass(Device.class);
         deviceMapping.setRelationshipPartnerAttributeName("databases");
         deviceMapping.dontUseIndirection();
         deviceMapping.readOnly();
         deviceMapping.addForeignKeyFieldName("DEVICEDB.DEVICEID", "DEVICE.DEVICEID");
         descriptor.addMapping(deviceMapping);
         return descriptor;
    ---------------------------partial mapping for ContactDB --------------
    public Descriptor buildContactDBDescriptor() {
         Descriptor descriptor = new Descriptor();
         descriptor.setJavaClass(com.access.sync.business.contact.ContactDB.class);
         descriptor.addTableName("DEVICEDB");
         // Inheritance properties.
         descriptor.getInheritancePolicy().setParentClass(com.access.sync.framework.systemObj.DeviceDB.class);
    Any help is really appreciated.
    jason

    Your 1-1 mapping must not be read-only.
    deviceMapping.readOnly();Read-only means the mapping will not write the field, and should only be used when another mapping does write the field.

  • MDM Meta Data Provider Exception

    Hi,
    I am getting this exception while making the Metadata Provider
    Stack Trace of Exception
    oracle.express.olapi.data.full.ExpressDataProvider@71b246
    29-Apr-2003 10:19 FATAL - Olap helper class : MDM Meta Data Provider Exception
    com.sun.corba.ee.internal.corba.AnyImpl@3744bc
         at oracle.express.idl.util.OlapiExceptionHelper.SQL2Java(OlapiExceptionHelper.java:15)
         at oracle.express.idl.ExpressConnectionModule.ServerInterfaceStub.getVersionInfo(ServerInterfaceStub.java:137)
         at oracle.express.olapi.data.full.ExpressDataProvider._checkVersion(ExpressDataProvider.java:263)
         at oracle.express.olapi.data.full.ExpressDataProvider.connect(ExpressDataProvider.java:194)
         at oracle.express.olapi.data.full.ExpressDataProvider.initialize(ExpressDataProvider.java:179)
         at com.pg.emfg.eops.helperclasses.Olap.startUp(D:/Source Code/src/com/pg/emfg/eops/helperclasses/Olap.java:83)
    .pg.emfg.eops.component.dynamicviewreport.eventaction.DynamicViewReportEventAction.perform
    Code Segment Used
    // Makes the connection
    objConnection = (oracle.jdbc.OracleConnection) DBManager.getOlapConnection();
    objTranProvider = new ExpressTransactionProvider();
    objDataProvider = new ExpressDataProvider(objConnection, objTranProvider); // Create the ExpressData Provider
    objDataProvider.initialize();
    mdp = (MdmMetadataProvider) objDataProvider.getDefaultMetadataProvider();
    This exception occurs randomly most of the times the code works fine, but then sometimes it throws this.
    I am unable to determine the root cause of the exception.
    Please help me with the actual cause for this exception and the likely solution.
    Thanks

    Anthony
    This problem is coming on HP and windows both
    with the 9.2.0.2 olap api jar files.
    I had raised a tar regarding this and was told to post the problem on OTN on this thread.
    Current status still using ORACLE connection pooling.
    Got exceptions with OCI Connection Pool
    Olap API excepiotn are encountered during Cursor,(Cursor Manager) Creation.
    There are three different exception encountered.
    1>>
    oracle.express.ExpressServerExceptionError class: OLAPI
    Server error descriptions:
    DPR: Unable to execute the query, Generic at
    TxsOqCursorManager::fetchInitialBlocks
    OES: ORA-040, Generic at TxsRdbSelectStatement:execute()
    at
    oracle.express.olapi.data.full.FullCursorBlockFetcher.fetchAnyCursorBlock(FullCu
    rsorBlockFetcher.java:111)
    at
    oracle.express.olapi.data.full.ExpressSpecifiedCursorManager.prepareForOpenCurso
    r(ExpressSpecifiedCursorManager.java:350)
    at
    oracle.express.olapi.data.full.ExpressSpecifiedCursorManager.createCursor(Expres
    sSpecifiedCursorManager.java:191)
    at
    oracle.express.olapi.data.full.ExpressSpecifiedCursorManager.createCursor(Expres
    sSpecifiedCursorManager.java:150)
    at com.pg.emfg.eops.helperclasses.Olap.obtainCursor(D:/Source
    2>>
    oracle.express.idl.util.OlapiException
    at
    oracle.express.idl.ExpressOlapiDataCursorModule.CursorManagerInterfaceStub.fetch
    InitialBlocks(CursorManagerInterfaceStub.java:204)
    at
    oracle.express.olapi.data.full.FullCursorBlockFetcher.fetchAnyCursorBlock(FullCu
    rsorBlockFetcher.java:102)
    at
    oracle.express.olapi.data.full.ExpressSpecifiedCursorManager.prepareForOpenCurso
    r(ExpressSpecifiedCursorManager.java:350)
    at
    oracle.express.olapi.data.full.ExpressSpecifiedCursorManager.createCursor(Expres
    sSpecifiedCursorManager.java:191)
    at
    oracle.express.olapi.data.full.ExpressSpecifiedCursorManager.createCursor(Expres
    sSpecifiedCursorManager.java:150)
    at com.pg.emfg.eops.helperclasses.Olap.obtainCursor(Olap.java:1171)
    3>>
    oracle.express.idl.util.OlapiException
    at
    oracle.express.idl.ExpressOlapiDataSourceModule.DefinitionManagerInterfaceStub.c
    reateCursorManager(DefinitionManagerInterfaceStub.java:103)
    at
    oracle.express.olapi.data.full.DefinitionManager.createCursorManager(DefinitionM
    anager.java:339)
    at
    oracle.express.olapi.data.full.ExpressDataProvider.createCursorManager(ExpressDa
    taProvider.java:426)
    at
    oracle.olapi.data.source.DataProvider.createCursorManager(DataProvider.java:151)
    at com.pg.emfg.eops.helperclasses.Olap.obtainCursor(Olap.java:1220)
    After these exceptions that user session can no longer use the application, thesame exception will prop up for all cursors creation attempts.
    Also sometimes the only way to make the application work is to restart the
    Application Server (JRUN).
    The compound Cursor is then traversed to obtain the data fetch shown in the
    report.
    Now the user can select say 10 measures, Based on that 10 cursorManagers and
    subesequent cursors are created.
    Also this was one request, the user can make subsequent requests, during which
    new cursors will be made.
    No where in the Code am I actually closing cursorManager or the cursor
    Could you provide a specific root cause, which i can target.

  • Meta-Data are missing for table

    Dear ALL ,
    I am trying to call "HR_READ_INFOTYPE" from a Java program using rfc and I got this error:
    " Meta data equal to null is not allowed for field INFTY_TAB with type TABLE in meta data instance TABLES "
    the required table INFTY_TAB is used as a generic table in the function module. I tried to use PA0008 but it seems it is not possible to use it through  RFC call.  How can I avoid this exception?
    Thanks in advance.
    Mehdi.

    Hi,
    This function by default is not remote enabled. Loot at BAPI to access/modify infotype data?
    Regards,
    Jarek

  • Edit meta data? Title,description, keywords, etc.

    Can this be done through ICE? It would appear not, but maybe I'm missing something

    YES!!!
    Sorry, Tommy Logic was only partially correct. When using the "Duplicate Page" button they CAN change the Title only, but not the meta description or meta keywords. Title = Yes, remaining metas = No.

  • Meta data missing in Web Gallery

    When uploading images to my web gallery Aperture generates small and medium size jpeg files of my images. These jpegs does not include meta data. Has anyone seen this too?
    If I select to "Allow" "Downloading of:" (Optimized Images, Actual Size Images, Optimized & Master Images) then Aperture will generate large size jpegs that include meta data.
    Can it be right that you have to upload and generate the larger optimized jpegs in order to show meta data in your web galleries?
    I am running Aperture 2.0.1 and Leopard 10.5.2
    Karsten

    It seams that others have seen the same minor bug or feature as outlined above. Question seams answered.
    Karsten

  • I use Windows XP. The problem now is that on two consecutive occasions when I open iTunes it either says the library is corrupt and creates a new one or will not load a previous one from the file. All my meta data and 2K  songs are "missing".

    Can I recreate my proper library with its 8700+ songs and a load of meta data from the iPod. Since two upgrades ago iTunes, for me, has become very unreliable.

    Hi there caunsall!
    I have an article for you that can help you re-create your iTunes library. That article can be found right here:
    iTunes: How to re-create your iTunes library and playlists
    http://support.apple.com/kb/ht1451
    That article will walk you through all the steps to take care of re-creating your library. Take care, and thanks for visiting the Apple Support Communities.
    -Braden

  • Bridge CS4 Meta data in web album

    Hi,
    I am looking all over for a way which makes it posibly to show ONLY the description meta data in a web album created with adobe bridge cs4.
    I have been able to have a text for each image in a slide show in every free web album I have tryed. Since I started to use bridge, I have been happy to use it for rating images and stuff like that. But can it really be that Meta data is so difficult to handle in bridges web album?... I think only one of the templates makes it possible to check 'Show metadata', but this is ALL metadata.. very many metadata, and definately not what I want. It can not be the case that bridges web album can not show a description or title only from an images meta or can it? Can anyone help me, have I missed something.
    Hope someone can help me with some hints.. is it possible to make a web album including only description Meta data for each image?
    Thank you very much
    Regards
    Jens

    hmm, maybe bridge is not the right choice after all, maybe Fireworks are better.. but still wondering why this simple possibility is not present in bridge,..

  • How to use Meta Data in List Definition

    Hi there, In Custom List , I could create a Meta Data Column by UI, but don't know how to create a Meta Data column in my list definition by programming anyone has experiense? -Regards, Chi

    Yeah, it's tricky creating a metadata column in CAML. You can do it, but it still requires a bit of code to wire up the column during feature activation. 
    Basically, you need to define your taxonomy field (and a hidden field for the label), include the taxonomy catchall fields (in your list definition), add an event handler to the list definition (that will update the taxonomy catch all fields when items are
    added and updated), and then wire up your taxonomy field during feature activation (this is when you would check if the termset has been created, and assign the termset id to the field, etc).
    Here's an example from a test project I created (with help from others). I've posted the whole project up to the TechNet Gallery, here:
    http://gallery.technet.microsoft.com/Declaratively-Adding-c4dc6c81.
    Column Markup:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Field
    ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" Name="inceAnimal" DisplayName="Animal" StaticName="inceAnimal" Type="TaxonomyFieldType"
    Required="FALSE" Group="Ince Managed Fields" SourceID="http://schemas.microsoft.com/sharepoint/v3" ShowField="Term1033">
    <Customization>
    <ArrayOfProperty>
    <Property>
    <Name>TextField</Name>
    <Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{24c4e3ff-5d11-4412-a7ae-287f187d5fff}</Value>
    </Property>
    </ArrayOfProperty>
    </Customization>
    </Field>
    <Field Type="Note" ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" Name="inceAnimalTaxHTField0" DisplayName="Animal_0" StaticName="inceAnimalTaxHTField0" ShowInViewForms="FALSE" Hidden="TRUE"
    RowOrdinal="0"/>
    </Elements>
    Content Type:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Parent ContentType: Item (0x01) -->
    <ContentType ID="0x01001D68D1E8F73D4ED5BF5259CF2BCF5209" Name="Animal" Group="Ince Content Types" Description="A content type for storing information on animals." Inherits="TRUE" Version="0">
    <FieldRefs>
    <FieldRef ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" DisplayName="Animal" Required="FALSE" Name="inceAnimal" />
    <FieldRef ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" DisplayName="Animal_0" Hidden="TRUE" Name="inceAnimalTaxHTField0" />
    <FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" Name="TaxCatchAll"/>
    <FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" Name="TaxCatchAllLabel"/>
    </FieldRefs>
    </ContentType>
    </Elements>
    List Definition (Elements.xml):
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <!-- Do not change the value of the Name attribute below. If it does not match the folder name of the List project item, an error will occur when the project is run. -->
    <ListTemplate
    Name="ldAnimal"
    Type="14000"
    BaseType="0"
    OnQuickLaunch="TRUE"
    SecurityBits="11"
    Sequence="410"
    DisplayName="Animals"
    Description="List for recording animals"
    Image="/_layouts/images/itgen.png"/>
    </Elements>
    List Definition (Schema.xml)
    <?xml version="1.0" encoding="utf-8"?>
    <List xmlns:ows="Microsoft SharePoint" Title="ldAnimal" FolderCreation="FALSE" Direction="$Resources:Direction;" Url="Lists/ldAnimal" BaseType="0" xmlns="http://schemas.microsoft.com/sharepoint/" EnableContentTypes="TRUE">
    <MetaData>
    <ContentTypes>
    <ContentType ID="0x01001D68D1E8F73D4ED5BF5259CF2BCF5209" Name="Animal" Group="Ince Content Types" Description="A content type for storing information on animals." Inherits="TRUE" Version="0">
    <FieldRefs>
    <FieldRef ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" DisplayName="Animal" Required="FALSE" Name="inceAnimal" />
    <FieldRef ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" DisplayName="Animal_0" Hidden="TRUE" Name="inceAnimalTaxHTField0" />
    <FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" Name="TaxCatchAll"/>
    <FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" Name="TaxCatchAllLabel"/>
    </FieldRefs>
    </ContentType>
    </ContentTypes>
    <Fields>
    <Field ID="{fa564e0f-0c70-4ab9-b863-0177e6ddd247}" Type="Text" Name="Title" DisplayName="$Resources:core,Title;" Required="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="Title" MaxLength="255" />
    <Field ID="{14c4e3ff-5d11-4412-a7ae-287f187d5eef}" Name="inceAnimal" DisplayName="Animal" StaticName="inceAnimal" Type="TaxonomyFieldType" Required="FALSE" Group="Ince Managed Fields" SourceID="http://schemas.microsoft.com/sharepoint/v3">
    <Customization>
    <ArrayOfProperty>
    <Property>
    <Name>TextField</Name>
    <Value xmlns:q6="http://www.w3.org/2001/XMLSchema" p4:type="q6:string" xmlns:p4="http://www.w3.org/2001/XMLSchema-instance">{24c4e3ff-5d11-4412-a7ae-287f187d5fff}</Value>
    </Property>
    </ArrayOfProperty>
    </Customization>
    </Field>
    <Field Type="Note" ID="{24c4e3ff-5d11-4412-a7ae-287f187d5fff}" Name="inceAnimalTaxHTField0" DisplayName="Animal_0" StaticName="inceAnimalTaxHTField0" ShowInViewForms="FALSE" Hidden="TRUE" RowOrdinal="0"/>
    </Fields>
    <Views>
    <View BaseViewID="0" Type="HTML" MobileView="TRUE" TabularView="FALSE">
    <Toolbar Type="Standard" />
    <XslLink Default="TRUE">main.xsl</XslLink>
    <RowLimit Paged="TRUE">30</RowLimit>
    <ViewFields>
    <FieldRef Name="LinkTitleNoMenu"></FieldRef>
    </ViewFields>
    <Query>
    <OrderBy>
    <FieldRef Name="Modified" Ascending="FALSE"></FieldRef>
    </OrderBy>
    </Query>
    <ParameterBindings>
    <ParameterBinding Name="AddNewAnnouncement" Location="Resource(wss,addnewitem)" />
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_ONET_HOME)" />
    </ParameterBindings>
    </View>
    <View BaseViewID="1" Type="HTML" WebPartZoneID="Main" DisplayName="$Resources:core,objectiv_schema_mwsidcamlidC24;" DefaultView="TRUE" MobileView="TRUE" MobileDefaultView="TRUE" SetupPath="pages\viewpage.aspx" ImageUrl="/_layouts/images/generic.png" Url="AllItems.aspx">
    <Toolbar Type="Standard" />
    <XslLink Default="TRUE">main.xsl</XslLink>
    <RowLimit Paged="TRUE">30</RowLimit>
    <ViewFields>
    <FieldRef Name="Attachments"></FieldRef>
    <FieldRef Name="LinkTitle"></FieldRef>
    <FieldRef Name="inceAnimal" />
    </ViewFields>
    <Query>
    <OrderBy>
    <FieldRef Name="ID"></FieldRef>
    </OrderBy>
    </Query>
    <ParameterBindings>
    <ParameterBinding Name="NoAnnouncements" Location="Resource(wss,noXinviewofY_LIST)" />
    <ParameterBinding Name="NoAnnouncementsHowTo" Location="Resource(wss,noXinviewofY_DEFAULT)" />
    </ParameterBindings>
    </View>
    </Views>
    <Forms>
    <Form Type="DisplayForm" Url="DispForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    <Form Type="EditForm" Url="EditForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    <Form Type="NewForm" Url="NewForm.aspx" SetupPath="pages\form.aspx" WebPartZoneID="Main" />
    </Forms>
    </MetaData>
    </List>
    Taxonomy List Event Receiver Markup:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Receivers ListTemplateId="14000" ListUrl="Lists/ldAnimal">
    <Receiver>
    <Name>TaxonomyItemSynchronousAddedEventReceiver</Name>
    <Type>ItemAdding</Type>
    <Assembly>Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
    <Synchronization>Synchronous</Synchronization>
    <SequenceNumber>10000</SequenceNumber>
    </Receiver>
    <Receiver>
    <Name>TaxonomyItemUpdatingEventReceiver</Name>
    <Type>ItemUpdating</Type>
    <Assembly>Microsoft.SharePoint.Taxonomy, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c</Assembly>
    <Class>Microsoft.SharePoint.Taxonomy.TaxonomyItemEventReceiver</Class>
    <Synchronization>Synchronous</Synchronization>
    <SequenceNumber>10000</SequenceNumber>
    </Receiver>
    </Receivers>
    </Elements>
    Feature Activation Code:
    [Guid("8b0a27ee-22dd-4a4e-940e-9cce3a596c49")]
    public class AnimalFieldsandContentTypeEventReceiver : SPFeatureReceiver
    private const String TermGroupName = "Zoology";
    private const String TermSetName = "Animals";
    private readonly Guid _termSetId = new Guid("{8CC56BE3-93A0-4007-81AF-30EB39A42959}");
    private readonly Guid _animalFiedId = new Guid("{14c4e3ff-5d11-4412-a7ae-287f187d5eef}");
    private const String ClassName = "AnimalFieldsandContentTypeEventReceiver";
    public override void FeatureActivated(SPFeatureReceiverProperties properties)
    try
    Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Activating feature."), LogType.Information);
    var site = properties.Feature.Parent as SPSite;
    if (site == null)
    Logging.Log(ClassName, "The Site is null. Feature not activated.", LogType.Error);
    throw new NullReferenceException("The Site is null. Couldn't activate the feature.");
    var termStore = Taxonomy.GetDefaultTermStore(site);
    if (termStore == null)
    Logging.Log(ClassName, "The Taxonomy Termstore is null. Feature not activated.", LogType.Error);
    throw new NullReferenceException("The Taxonomy Termstore is null. Feature not activated.");
    var termGroup = Taxonomy.GetTermGroup(termStore, TermGroupName, true);
    var termSet = Taxonomy.GetTermSet(termGroup, TermSetName, _termSetId, true);
    Taxonomy.ConnectTaxonomyTerm(site, termSet, termGroup, _animalFiedId);
    Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Successfully activated feature."), LogType.Information);
    catch (Exception e)
    Logging.Log(String.Format("{0}.FeatureActivated", ClassName), String.Format("Unexpected error activating the feature. Error: {0}", e.Message), LogType.Error);
    throw;
    Taxonomy Helper Class:
    namespace TaxonomyTesting
    public class Taxonomy
    private const String ClassName = "Taxonomy";
    public static TermStore GetDefaultTermStore(SPSite site)
    var taxonomySession = new TaxonomySession(site);
    var termStore = taxonomySession.DefaultSiteCollectionTermStore;
    if (termStore != null) return termStore;
    return taxonomySession.TermStores.Count == 0 ? null : taxonomySession.TermStores[0];
    public static TermSet GetTermSet(Group group, String termsetName, Guid termsetId, Boolean createIfMissing)
    try
    foreach (var termSet in @group.TermSets.Where(set => set.Name.ToLower().Equals(termsetName.ToLower())))
    return termSet;
    if (createIfMissing)
    Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Termset does not exist. Creating termset: {0}", termsetName), LogType.Information);
    var termSet = group.CreateTermSet(termsetName, termsetId, 1033);
    group.TermStore.CommitAll();
    Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Successfully create termset: {0}", termsetName), LogType.Information);
    return termSet;
    return null;
    catch (Exception e)
    Logging.Log(String.Format("{0}.GetTermSet", ClassName), String.Format("Unexpected error getting a termset. Error: {0}", e.Message), LogType.Error);
    throw new Exception("[GetTermSet] Exception getting term set.");
    public static Group GetTermGroup(TermStore store, String groupName, Boolean createIfMissing)
    try
    foreach (var termGroup in @store.Groups.Where(termGroup => termGroup.Name.ToLower().Equals(groupName.ToLower())))
    return termGroup;
    if(createIfMissing)
    Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Termgroup does not exist. Creating term store group: {0}", groupName), LogType.Information);
    store.CreateGroup(groupName);
    store.CommitAll();
    Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Successfully create term store group: {0}", groupName), LogType.Information);
    return store.Groups[groupName];
    return null;
    catch (Exception e)
    Logging.Log(String.Format("{0}.GetTermGroup", ClassName), String.Format("Unexpected error getting a term store group. Error: {0}", e.Message), LogType.Error);
    throw new Exception("[GetTermGroup] Exception getting term store group.");
    public static void ConnectTaxonomyTerm(SPWeb web, TermSet termSet, Group termGroup, Guid taxonomyFieldId)
    if (web.Fields.Contains(taxonomyFieldId))
    var field = web.Fields[taxonomyFieldId] as TaxonomyField;
    if (field == null)
    throw new ArgumentException(String.Format("The field with id {0} is not a TaxonomyField.",taxonomyFieldId));
    field.SspId = termSet.TermStore.Id;
    field.TermSetId = termSet.Id;
    field.TargetTemplate = String.Empty;
    field.AnchorId = Guid.Empty;
    field.Update(true);
    return;
    throw new ArgumentException(String.Format("The field with id {0} could not be found on the current web, {1}", taxonomyFieldId, web.Url));
    public static void ConnectTaxonomyTerm(SPSite site, TermSet termSet, Group termGroup, Guid taxonomyFieldId)
    ConnectTaxonomyTerm(site.RootWeb, termSet, termGroup, taxonomyFieldId);
    Logging class (just a helper class, that isn't required if you don't want to log to the ULS)
    namespace TaxonomyTesting
    public static class Logging
    private const String SolutionName = "TaxonomyTesting";
    public static void Log(String callingClass, String message, LogType logType)
    switch (logType)
    case LogType.Error:
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.Unexpected, EventSeverity.ErrorCritical), TraceSeverity.Unexpected, String.Format("[{0}][{1}] [Error] {2}", SolutionName, callingClass, message), message);
    return;
    case LogType.Warning:
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.High, EventSeverity.Warning), TraceSeverity.High, String.Format("[{0}][{1}] [Warning] {2}", SolutionName, callingClass, message), message);
    return;
    case LogType.Information:
    SPDiagnosticsService.Local.WriteTrace(0, new SPDiagnosticsCategory(SolutionName, TraceSeverity.Medium, EventSeverity.Information), TraceSeverity.Medium, String.Format("[{0}][{1}] {2}", SolutionName, callingClass, message), message);
    return;
    public enum LogType
    Information,
    Warning,
    Error
    Regards, Matthew
    MCPD | MCITP
    My Blog
    View
    Matthew Yarlett's profile
    See my webpart on the TechNet Gallery that allows administrative users to upload, crop and format user profile photos. Check it out here:
    Upload and Crop User Profile Photos

Maybe you are looking for

  • Two bugs in Acrobat 9?

    I'm trying out a Document in Acrobat 9. I found two apparent bugs. On my PowerBook 17" I have installed correct Driver for my Printer a HP DJ 990cse. However when I go to set as default printer inside Page Setup within Acrobat 9 the is no indication

  • Problems with wifi and airplay

    I recently purchased an apple tv 3rd generation I have been having issues like: 1) No video but audio plays and also no audio but video playing, when I use mirroring on my mid 2011 macbook pro running mountain lion 2) I have to restart my router ever

  • Can Photoshop CS3 be used with files from Lightroom 5?

    I have Photoshop CS3 and I am considering buying Lightroom 5. Does anyone know if output from Lightroom 5 can be processed in Photoshop CS3?

  • Restarting loop after update to 10.5.7!

    Hey Guys, I have a serious problem with OSX after updating to 10.5.7! I updated through Software Update and the macbook restarted. After that it went into a restarting loop. It boots-up, the logo and moving circle appears, and then it restarts. I tri

  • I need help synching my new ipod

    I need help synching my new ipod.  My previous ipod went thru the washing machine so I bought a new device.  I'm having toruble synching the new ipod to my computer