Loading classes for basic information on them.

Hey guys,
I'm creating a custom deployment application. Basically the developer will select all of the .class files he wants to roll out to production. They are put into a JList and then I go through them and place them in their appropriate packages to be rolled out at a future date.
The problem arises when there is a .class file that is not in the right directory structure as the package it's supposed to be in.
Translation:
Example:
the package the class is in com.test.MyPackage
But the class siting on root of C:\
What I'm hoping to accomplish is to load the class briefly enough into the JVM to get the package name of it and place it in the correct deployment directory. Remember i'm only dealing with .class files.
I have thought of decompiling and searching for the package name in a regex but then I saw URLClassLoader and ClassLoader but have had a crazy time trying to get the class loaded at all.
In Short: I won't know the package name of the file. I don't care where it's eing loaded from and I don't know where it's going to. I'm hoping I can load the class into the JVM, get the package name, and move the class to the correct package.
Thanks for your help!
Any thoughts on what I can do, even if it's totally different (programs that will do it for me, the RIGHT way I should be doing it, ETC), would be greatly appreciated.
-Ryan

If you are completely sure you can trust the classes not to do anything on load (and many do), you can load the class file into a byte array and pass that to a classloader to load the class, without knowing the package. But it is far safer to use a bytecode library, eg BCELimport org.apache.bcel.*;
import org.apache.bcel.classfile.*;
public class WhichPackage {
  public static void main (String[] args) {
    try {
      System.out.println(new ClassParser(args[0]).parse().getPackageName());
    } catch (Exception ex) {
      ex.printStackTrace(System.out);
}Pete

Similar Messages

  • NAM 3.2.1 Custom Authentication Class for BASIC not loaded

    Hi!
    Im trying to write a custom authentication class for
    BASIC/PROTECTED_BASIC, so I started with the PasswordClass sample from
    SDK novell-nacm3_2-devel-2012.08.10.tar.gz, stripped out the
    STSAuthenticationClass and changed the type to
    AuthnConstants.PROTECTED_PASSWORD --> and it works!
    public String getType() {
    return AuthnConstants.PROTECTED_PASSWORD;
    Next I wanted to create a custom BASIC auth class by changing the type
    to AuthnConstants.BASIC / AuthnConstants.PROTECTED_BASIC
    public String getType() {
    return AuthnConstants.PROTECTED_BASIC;
    but now IDP complains about the unsupported type.
    <amLogEntry> 2012-12-20T15:11:17Z WARNING NIDS Application:
    AM#300105006: AMDEVICEID#FC77EC2A45509E7B: Failed to load
    authentication class due to unsupported type: ITdBasicTestClass
    </amLogEntry>
    Im running NAM 3.2.1 single box appliance for development/testing.
    There is an old thread here, that looks like the same issue:
    http://tinyurl.com/c6eawj6
    Any hits?
    regards
    Thomas
    PS: What i really want to solve is strip out the Domain from the
    username on basic authentication since most MS apps/clients provide the
    username in format DOMAIN\USER...
    reibenwein
    reibenwein's Profile: https://forums.netiq.com/member.php?userid=1382
    View this thread: https://forums.netiq.com/showthread.php?t=46430

    hmmm, well try writing the value out to stderr and see if you can at least make sure you are getting
    a good read.
    Like a System.out.println(AuthnConstants.PROTECTED_PASSWO RD);
    I ran into some strange stuff where some constants had no values for no apparent reason when they
    should.
    I would also try supplying the actual value instead of the constant and see if it goes through that
    way. ("ProtectedBasic")
    On 1/10/2013 11:14 AM, reibenwein wrote:
    >
    > Hi!
    >
    >
    > I copied com.novell.nam.authentication.PasswordClass to start with my
    > test custom auth class. It includes a method getType() like this:
    >
    > /**
    > * Get the authentication type this class implements
    > *
    > * @return returns the authentication type represented by this
    > class
    > */
    > public String getType() {
    > return AuthnConstants.PROTECTED_PASSWORD;
    > }
    >
    >
    > --> IDP loads my custom auth class, as long as a leave getType()
    > returning AuthnConstants.PROTECTED_PASSWORD! But this is form base
    > authentication. According to the API documentation (see page 17 in
    > namc_enu.pfd within the sdk download), getType should
    > returnAuthnConstants. PROTECTED_BASIC for secure Basic authentication
    > (or AuthnConstants.BASIC for non SSL Basic auth). So i changed getType()
    > like this:
    >
    >
    > /**
    > * Get the authentication type this class implements
    > *
    > * @return returns the authentication type represented by this class
    > */
    > public String getType() {
    > return AuthnConstants.PROTECTED_BASIC;
    > }
    >
    >
    > --> and then IPD comes with the error "Failed to load authentication
    > class due to unsupported type"...
    >
    >
    > regards,
    > Thomas
    >
    >

  • Cannot load classes for custom user store

    I implemented a custom user store and deployed as sda library into NetWeaver preview SP16. NetWeaver is not able to load those classes when configuring that user store through Visual Administrator. Below is the error message I got,
    Unable to register user store!
    java.lang.SecurityException: com.sap.engine.services.security.exceptions.BaseSecurityException: Can not instantiate UserContext.
         at com.sap.engine.services.security.server.UserStoreImpl.<init>(UserStoreImpl.java:78)
         at com.sap.engine.services.security.server.UserStoreFactoryCache.registerUserStore(UserStoreFactoryCache.java:120)
         at com.sap.engine.services.security.server.UserStoreFactoryImpl.registerUserStore(UserStoreFactoryImpl.java:150)
         at com.sap.engine.services.security.userstore.RemoteUserStoreFactoryImpl.registerUserStore(RemoteUserStoreFactoryImpl.java:64)
         at com.sap.engine.services.security.userstore.RemoteUserStoreFactoryImplp4_Skel.dispatch(RemoteUserStoreFactoryImplp4_Skel.java:99)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:304)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.ClassNotFoundException: mypackage.myusercontextimpl
    Found in negative cache
    Loader Info -
    ClassLoader name: [common:library:com.sap.security.api.sda;library:com.sap.security.core.sda;library:security.class;library:webservices_lib;service:adminadapter;service:basicadmin;service:com.sap.security.core.ume.service;service:configuration;service:connector;service:dbpool;service:deploy;service:jmx;service:jmx_notification;service:keystore;service:security;service:userstore]
    Parent loader name: [Frame ClassLoader]
    References:
       library:com.sap.ip.basecomps
       library:core_lib
       common:library:IAIKSecurity;library:activation;library:mail;library:tcsecssl
       library:servlet
       library:sapxmltoolkit
       library:com.sap.mw.jco
       library:com.sap.util.monitor.jarm
       library:j2eeca
       library:opensql
       interface:security
       interface:log
       interface:shell
       interface:keystore_api
       library:ejb20
       interface:webservices
       library:com.sap.guid
       interface:appcontext
       interface:endpoint_api
       interface:resourceset_api
       interface:resourcecontext_api
       common:service:iiop;service:naming;service:p4;service:ts
       interface:ejbcomponent
       interface:container
       interface:visual_administration
       interface:transactionext
       interface:dsr_ejbcontext_api
       service:timeout
       library:tc~jmx
       interface:cross
       service:file
       service:locking
       library:tcSLUTIL
       service:memory
       library:antlr
       library:jdbdictionary
       library:opensqlextensions
    Resources:
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\dbpool\dbpool.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\basicadmin\basicadmin.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_compat.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\adminadapter\adminadapter.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\basicadmin\jstartupimpl.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\jmx_notification\jmx_notification.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\security\security.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\com.sap.security.core.ume.service\com.sap.security.core.ume.service.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_toolkit_api.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_userstore_lib.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\webservices_lib.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\basicadmin\jstartupapi.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_jaas_test.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\dbpool\sqljimpl.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.core.sda\com.sap.security.core.tpd.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.api.sda\com.sap.security.api.perm.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\connector\connectorimpl.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\saaj-api.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\configuration\configuration.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_jaas.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_xmlbind.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_util.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_csi.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_toolkit_core.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_ssf.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\userstore\userstore.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_https.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_saml_service_api.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\jaxrpc-api.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\dbpool\opensqllib.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\deploy\deploy.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\security.class\tc_sec_jaas.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\jmx\jmx_sec.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.api.sda\com.sap.security.api.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\com.sap.security.core.sda\com.sap.security.core.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\jmx\jmx.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\ext\webservices_lib\jaxm-api.jar
       C:\usr\sap\J2E\JC00\j2ee\cluster\server0\bin\services\keystore\keystore.jar
    Loading model: {parent,local,references}
         at com.sap.engine.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:348)
         at com.sap.engine.services.security.server.UserStoreImpl.<init>(UserStoreImpl.java:75)
         ... 13 more
         at com.sap.engine.services.security.exceptions.BaseSecurityException.writeReplace(BaseSecurityException.java:349)
         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:324)
         at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:896)
         at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1011)
         at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
         at com.sap.engine.services.rmi_p4.DispatchImpl.throwException(DispatchImpl.java:139)
         at com.sap.engine.services.rmi_p4.DispatchImpl._runInternal(DispatchImpl.java:306)
         at com.sap.engine.services.rmi_p4.DispatchImpl._run(DispatchImpl.java:193)
         at com.sap.engine.services.rmi_p4.server.P4SessionProcessor.request(P4SessionProcessor.java:122)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)

    Hi sheshu0022,
    Based on my research, the issue can be occurred due to something get corrupted in the script task. To fix this issue, please copy the code in the task, then rebuild the script task with the same code to test again.
    The following similar thread is for your reference:
    http://stackoverflow.com/questions/15165760/ssis-script-task-fails-on-server-with-error-cannot-load-script-for-execution
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • "Newbie Unable to load class for custom tag"

    I have recently written a custom tag but I have been unable to implement it in a JSP because the server is unable to load the .class file. Below I have supplied the files that contribute to make up the custom tag, aswell as the JSP file used to implement it.
    genericDBConnect.java
    stored in C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF\classes\jsp\tags\dbase
    package jsp.tags.dbase;
    import java.io.*;
    import java.sql.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class genericDBConnect extends BodyTagSupport
    private String odbcDriver;
    private String dataSource;
    public void setOdbcDriver(String driver)
    odbcDriver = driver;
    public void setDataSource(String source)
    dataSource = source;
    public int doStartTag() throws JspException
    return EVAL_BODY_INCLUDE;
    public int doEndTag() throws JspException
    try{
    pageContext.getOut().print("This is the value of odbcDriver = " + odbcDriver + "and dataSource = " + dataSource);
         catch(Exception ioException)
         System.err.println("Exception thrown in genericDBConnect.doEndTag():");
         System.err.println(ioException);
         throw new JspException(ioException);
    return EVAL_PAGE;
    WEB.XML
    Stored in: C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
    <!DOCTYPE web-app PUBLIC
         "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
         "http://java.sun.com/dtd/web-app_2_2.dtd">
    <web-app>
         <display-name>Generic database Connector</display-name>
         <description>
         Connecting to a database using dataSource and OdbcDriver
              Attributes as well as sending a query to the database;
         </description>
         <taglib>
              <taglib-uri>/genericdbconnecttags.tld</taglib-uri>
              <taglib-location>/WEB-INF/genericdbconnecttags.tld</taglib-location>
         </taglib>
    </web-app>     
    genericdbconnecttags.tld
    C:\jakarta-tomcat-3.2.3\webapps\exper\WEB-INF
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <!DOCTYPE taglib
    PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN"
         "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>genericDBConnect</short-name>
         <tag>
              <name>dbconnect</name>
              <tag-class>jsp.tags.dbase.genericDBConnect</tag-class>          
              <attribute>
                   <name>dataSource</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
    </attribute>
    <attribute>
                   <name>odbcDriver</name>
                   <required>true</required>
                   <rtexprvalue>true</rtexprvalue>
         </attribute>
         </tag>
    </taglib>
    DBTester.jsp
    Stored in:C:\jakarta-tomcat-3.2.3\webapps\exper
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html>
    <head>
         <title>Generic dataBase Connection</title>
    </head>
    <body>
    <%@ taglib uri="/genericdbconnecttags.tld" prefix="database" %>
    <database:dbconnect odbcDriver="sun.my.tag.lib" dataSource="hello">
    this is the the begining of the end of life as we know it
    </database:dbconnect>
    </body>
    </html>
    And this is the error I get:
    Error: 500
    Location: /exper/DBtester.jsp
    Internal Servlet Error:
    org.apache.jasper.compiler.CompileException: C:\jakarta-tomcat-3.2.3\webapps\exper\DBtester.jsp(8,0) Unable to load class null
         at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java:129)
         at org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java:759)
         at org.apache.jasper.compiler.JspParseEventListener.addGenerator(JspParseEventListener.java:138)
         at org.apache.jasper.compiler.JspParseEventListener.handleTagBegin(JspParseEventListener.java:909)
         at org.apache.jasper.compiler.DelegatingListener.handleTagBegin(DelegatingListener.java:194)
         at org.apache.jasper.compiler.Parser$Tag.accept(Parser.java:825)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1077)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1042)
         at org.apache.jasper.compiler.Parser.parse(Parser.java:1038)
         at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209)
         at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612)
         at org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
         at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:258)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:268)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
         at org.apache.tomcat.core.Handler.service(Handler.java:287)
         at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
         at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:812)
         at org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
         at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:213)
         at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
         at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501)
         at java.lang.Thread.run(Thread.java:484)
    Please if you can help I will be very grateful

    I was searching about this problem and I found here.
    I'm using WSAD 4.0.3 and I'm making my first custom tag.
    Here is my files:
    ======================= CLASS ======================
    package sas.ric.tags.teste;
    import javax.servlet.jsp.tagext.TagSupport;
    import javax.servlet.jsp.JspWriter;
    import javax.servlet.jsp.PageContext;
    import java.io.IOException;
    public class ClTagHello extends TagSupport {
    public int doStartTag() {
         try {
              JspWriter out = pageContext.getOut();
              out.println("HELLO!");
         } catch (IOException ioe) {
              System.out.println("Erro in ClTagHello: " + ioe);
    return (SKIP_BODY);
    ================= TLD ==========================
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
    <taglib>
         <tlib-version>1.0</tlib-version>
         <jsp-version>1.2</jsp-version>
         <short-name>ric</short-name>
         <uri></uri>
         <info>Exemple</info>
         <tag>
              <name>hello</name>
              <tag-class>sas.ric.tags.teste.ClTagHello</tag-class>
              <body-content>empty</body-content>
         </tag>
    </taglib>
    ======================== JSP =====================
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <HEAD>
    <META name="GENERATOR" content="IBM WebSphere Studio">
    <META http-equiv="Content-Style-Type" content="text/css">
    </HEAD>
    <%@ taglib uri="WEB-INF/app-tlds/tag-hello.tld" prefix="ric" %>
    <BODY>
    <ric:hello />
    </BODY>
    </HTML>
    ==========================================================
    Please, help me.
    Occur this error "JSPG0058E: Unable to load class null"
    Thank's

  • How to load classes for a particular package

    I have a package name say com.test
    i need to get the names of all the classes starting with "Test" under this package. Also, i need to get the names of all the methods starting with "test" in each of these classes.
    ideas/suggestions welcome :)
    cheers
    yogesh

    Kaj,
    thnx for ur time :)
    i am developing a testing framework for our web applications. all our applications wd require to have com.test as the package which will contain all the JUnit test classes. the package name (com.test) will be provided by the tester thru a properties file. my framework will load all the classes (and also fetch the method names starting with "test" in those classes) and display them on a gui in a html form. the tester will just select the junit test cases he wants to run and my framework will expose this service thru a servlet. the servlet will then invoke all the methods selected by the tester via reflection.
    if the way i want to do it is not possible cd u please suggest any alternatives ?
    cheers
    yogesh

  • C++ - Unable to load class for user type- ClassNotFoundException

    Hi ,
    I'm getting ClassNotFoundException when i try to start the coherence server. I've no clue to solve it.
    Any help would be appreciated.
    i'm using POF serializer and registering the class using the macro
    COH_REGISTER_POF_SERIALIZER(1234,TypedClass<CVOG_AllocationInquiry>::create(), PortableObjectSerializer::create(1234));
    i've set the CLASSPATH to my source folder.
    i read some posts saying we need java wrapper for this? is that true, do we need java wrapper for all the c++classes that we register.
    Here are the details:
    my C++ class :
    class CVOG_AllocationInquiry : public cloneable_spec<CVOG_AllocationInquiry, extends<Object>, implements< PortableObject> >
         friend class factory<CVOG_AllocationInquiry>;
    protected:
         CVOG_AllocationInquiry()
         : m_modl_yr_nbr(self()), m_sellng_src_cd(self()), m_alloc_grp_cd(self()),
         m_namplt_cd(self()), m_veh_prod_cd(self()), m_alloc_grp_desc(self())
         CVOG_AllocationInquiry(String::View modl_yr_nbr, String::View sellng_src_cd, String::View alloc_grp_cd, String::View namplt_cd, String::View veh_prod_cd, String::View alloc_grp_desc)
                             :m_modl_yr_nbr(self(),modl_yr_nbr),m_sellng_src_cd(self(),sellng_src_cd),m_alloc_grp_cd(self(),alloc_grp_cd),m_namplt_cd(self(),namplt_cd),
                             m_veh_prod_cd(self(),veh_prod_cd),m_alloc_grp_desc(self(),alloc_grp_desc)
    // initialize(m_modl_yr_nbr, modl_yr_nbr);
         CVOG_AllocationInquiry(const CVOG_AllocationInquiry& alloc)
                        :super(alloc),m_modl_yr_nbr(self(),alloc.m_modl_yr_nbr),m_sellng_src_cd(self(),alloc.m_sellng_src_cd),
                        m_alloc_grp_cd(self(),alloc.m_alloc_grp_cd),m_namplt_cd(self(),alloc.m_namplt_cd),
                        m_veh_prod_cd(self(),alloc.m_veh_prod_cd),m_alloc_grp_desc(self(),alloc.m_alloc_grp_desc)
    public:
         virtual String::View getGrpCd() const {return m_alloc_grp_cd; }
         virtual String::View getGrpDesc() const { return m_alloc_grp_desc;}
         virtual String::View getModlYr() const { return m_modl_yr_nbr;}
         virtual String::View getNmPltCd() const {return m_namplt_cd; }
         virtual String::View getSelSrcCd() const {return m_sellng_src_cd; }
         virtual String::View getVehProdCd() const { return m_veh_prod_cd ;}
    virtual void writeExternal(PofWriter::Handle hOut) const
         hOut->writeString(0, getModlYr());
         hOut->writeString (1, getSelSrcCd());
         hOut->writeString (2, getGrpCd());
         hOut->writeString (3, getNmPltCd());
         hOut->writeString (4, getVehProdCd());
         hOut->writeString (5, getGrpDesc());
    virtual void readExternal(PofReader::Handle hIn)
         // add for other members also here
    initialize(m_modl_yr_nbr, hIn->readString(0));
    initialize(m_sellng_src_cd, hIn->readString(1));
    initialize(m_alloc_grp_cd, hIn->readString(2));
    initialize(m_namplt_cd, hIn->readString(3));
    initialize(m_veh_prod_cd, hIn->readString(4));
    initialize(m_alloc_grp_desc, hIn->readString(5));
    public: // Object interface
    virtual bool equals(Object::View that) const
    if (instanceof<CVOG_AllocationInquiry::View>(that))
         CVOG_AllocationInquiry::View vThat = cast<CVOG_AllocationInquiry::View>(that);
    return Object::equals(getGrpCd() ,vThat->getGrpCd()) &&
                   Object::equals(getGrpDesc() ,vThat->getGrpDesc()) &&
                   Object::equals(getModlYr() ,vThat->getModlYr()) &&
                   Object::equals(getNmPltCd() ,vThat->getNmPltCd()) &&
                   Object::equals(getSelSrcCd() ,vThat->getSelSrcCd()) &&
                   Object::equals(getVehProdCd() ,vThat->getVehProdCd());
    return false;
    virtual size32_t hashCode() const
         size32_t m_nNum;
    return (size32_t) m_nNum;
    virtual void toStream(std::ostream& out) const
    out << getGrpCd() << ", " << getGrpDesc() << " " << getModlYr();
    private:
    FinalView<String> m_modl_yr_nbr;
    FinalView<String> m_sellng_src_cd;
    FinalView<String> m_alloc_grp_cd;
    FinalView<String> m_namplt_cd;
    FinalView<String> m_veh_prod_cd;
    FinalView<String> m_alloc_grp_desc;
    cache config file -
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>AllocInq-extend</cache-name>
    <scheme-name>extend-dist</scheme-name>
    </cache-mapping>
    <cache-mapping>
    <cache-name>dist-extend-near</cache-name>
    <scheme-name>extend-near</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <near-scheme>
    <scheme-name>extend-near</scheme-name>
    <front-scheme>
    <local-scheme>
    <high-units>1000</high-units>
    </local-scheme>
    </front-scheme>
    <back-scheme>
    <remote-cache-scheme>
    <scheme-ref>extend-dist</scheme-ref>
    </remote-cache-scheme>
    </back-scheme>
    <invalidation-strategy>all</invalidation-strategy>
    </near-scheme>
    <remote-cache-scheme>
    <scheme-name>extend-dist</scheme-name>
    <service-name>ExtendTcpProxyService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address>localhost</address>
    <port>9099</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    </initiator-config>
    </remote-cache-scheme>
    <remote-invocation-scheme>
    <scheme-name>extend-invocation</scheme-name>
    <service-name>ExtendTcpInvocationService</service-name>
    <initiator-config>
    <tcp-initiator>
    <remote-addresses>
    <socket-address>
    <address>localhost</address>
    <port>9099</port>
    </socket-address>
    </remote-addresses>
    <connect-timeout>10s</connect-timeout>
    </tcp-initiator>
    <outgoing-message-handler>
    <request-timeout>5s</request-timeout>
    </outgoing-message-handler>
    </initiator-config>
    </remote-invocation-scheme>
    </caching-schemes>
    </cache-config>
    server config file :
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
    <caching-scheme-mapping>
    <cache-mapping>
    <cache-name>AllocInq-*</cache-name>
    <scheme-name>dist-default</scheme-name>
    </cache-mapping>
    </caching-scheme-mapping>
    <caching-schemes>
    <distributed-scheme>
    <scheme-name>dist-default</scheme-name>
    <lease-granularity>member</lease-granularity>
    <thread-count>8</thread-count>
    <backing-map-scheme>
    <local-scheme/>
    </backing-map-scheme>
    <autostart>true</autostart>
    </distributed-scheme>
    <proxy-scheme>
    <service-name>ExtendTcpProxyService</service-name>
    <thread-count>5</thread-count>
    <acceptor-config>
    <serializer>
    <class-name>com.tangosol.io.pof.ConfigurablePofContext</class-name>
    <init-params>
    <init-param>
    <param-type>String</param-type>
    <param-value>/home/hema/workspace/CoherenceClient/config/pof.xml</param-value>
    </init-param>
    </init-params>
    </serializer>
    <tcp-acceptor>
    <local-address>
    <address>localhost</address>
    <port>9099</port>
    </local-address>
    </tcp-acceptor>
    </acceptor-config>
    <proxy-config>
    <cache-service-proxy>
    <lock-enabled>true</lock-enabled>
    </cache-service-proxy>
    </proxy-config>
    <autostart>true</autostart>
    </proxy-scheme>
    </caching-schemes>
    </cache-config>
    pof.xml
    <?xml version="1.0"?>
    <!DOCTYPE pof-config SYSTEM "pof-config.dtd">
    <pof-config>
    <user-type-list>
    <!-- include all "standard" Coherence POF user types -->
    <include>coherence-pof-config.xml</include>
    <!-- include all application POF user types -->
    <user-type>
    <type-id>1234</type-id>
    <class-name>CVOG_AllocationInquiry</class-name>
    <serializer>
    <class-name>CVOG_AllocationInquiry</class-name>
    <init-params>
    <init-param>
    <param-type>string</param-type>
    <param-value>1</param-value>
    </init-param>
    </init-params>
    </serializer>
    </user-type>
    </user-type-list>
    </pof-config>

    Hi Mark,
    i did go thru' the thread and understood that no "pof " mentioning in the cache xml file. I removed the pof config details from the cache xml config file and registersd the c++ class using the macro.
    after these, iwas able to start the extended proxy server from consol:
    When i try to do the same from my program as :
    String::View vsCacheName = "AllocInq-extend";
              CacheFactory::configure(CacheFactory::loadXmlFile(String::create ("/home/hema/workspace/CoherenceClient/config/cache-config_TCP.xml")),CacheFactory::loadXmlFile(String::create("/home/hema/workspace/CoherenceClient/config/tangosol-coherence-override.xml")));
              NamedCache::Handle hCache = NULL;
              hCache = CacheFactory::getCache(vsCacheName);
    i get the following error,
    Oracle Coherence for C++ Version 3.7.0.0 Build 23257
    RTC Linux x64 Release g++ build
    Copyright (c) 2000, 2011, Oracle and/or its affiliates. All rights reserved.
    2011-09-06 08:01:48.185/13.197 Oracle Coherence for C++ RTC 3.7.0.0 <D5> (thread=ExtendTcpProxyService:coherence::component::util::TcpInitiator): Started: coherence::component::util::TcpInitiator@0x73d3c8{Name=ExtendTcpProxyService:coherence::component::util::TcpInitiator, State=(service_started), ThreadCount=0, Codec=coherence::component::net::extend::PofCodec@0x744300{Format=POF}, PingInterval=0, PingTimeout=5000, RequestTimeout=5000, ConnectTimeout=10000, RemoteAddresses=[sles/192.168.1.5:9099], KeepAliveEnabled=0, TcpDelayEnabled=0, ReceiveBufferSize=0, SendBufferSize=0, LingerTimeout=0}
    2011-09-06 08:01:48.187/13.199 Oracle Coherence for C++ RTC 3.7.0.0 <D5> (thread=main): Connecting Socket to sles/192.168.1.5:9099
    2011-09-06 08:01:51.199/16.211 Oracle Coherence for C++ RTC 3.7.0.0 <Info> (thread=main): Error connecting Socket to sles/192.168.1.5:9099: coherence::io::IOException: getpeername(nSocket, &addrPeer, &cbPeer) failed; errno[107]
    at virtual bool coherence::native::posix::PosixSocket::connect(coherence::lang::TypedHandle<const coherence::net::SocketAddress>, int64_t)(PosixSocket.hpp:640)
    at coherence::native::posix::PosixSocket::connect(coherence::lang::TypedHandle<coherence::net::SocketAddress const>, long)
    at coherence::net::Socket::connect(coherence::lang::TypedHandle<coherence::net::SocketAddress const>, long)
    at coherence::component::util::TcpInitiator::openConnection()
    at coherence::component::util::Initiator::ensureConnection()
    at coherence::component::net::extend::RemoteCacheService::openChannel()
    at coherence::component::net::extend::RemoteService::doStart()
    at coherence::component::net::extend::RemoteService::start()
    at coherence::component::util::SafeService::startService(coherence::lang::TypedHandle<coherence::net::Service>) const
    at coherence::component::util::SafeService::restartService() const
    at coherence::component::util::SafeService::ensureRunningServiceInternal(bool) const
    at coherence::component::util::SafeService::start()
    at coherence::net::DefaultConfigurableCacheFactory::configureService(coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureService(coherence::lang::String::StringHandle<coherence::lang::String const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache(coherence::lang::TypedHandle<coherence::net::DefaultConfigurableCacheFactory::CacheInfo const>, coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::configureCache(coherence::lang::TypedHandle<coherence::net::DefaultConfigurableCacheFactory::CacheInfo const>, coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
    at coherence::net::CacheFactory::getCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
    <stack frame symbol unavailable>
    at __libc_start_main
    on thread "main"
    2011-09-06 08:01:51.210/16.222 Oracle Coherence for C++ RTC 3.7.0.0 <Error> (thread=main): Unable to start service ExtendTcpProxyService: coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {sles/192.168.1.5:9099}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor
    at virtual coherence::lang::TypedHandle<coherence::component::net::extend::PofConnection> coherence::component::util::TcpInitiator::openConnection()(TcpInitiator.cpp:284)
    at coherence::component::util::TcpInitiator::openConnection()
    at coherence::component::util::Initiator::ensureConnection()
    at coherence::component::net::extend::RemoteCacheService::openChannel()
    at coherence::component::net::extend::RemoteService::doStart()
    at coherence::component::net::extend::RemoteService::start()
    at coherence::component::util::SafeService::startService(coherence::lang::TypedHandle<coherence::net::Service>) const
    at coherence::component::util::SafeService::restartService() const
    at coherence::component::util::SafeService::ensureRunningServiceInternal(bool) const
    at coherence::component::util::SafeService::start()
    at coherence::net::DefaultConfigurableCacheFactory::configureService(coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureService(coherence::lang::String::StringHandle<coherence::lang::String const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache(coherence::lang::TypedHandle<coherence::net::DefaultConfigurableCacheFactory::CacheInfo const>, coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::configureCache(coherence::lang::TypedHandle<coherence::net::DefaultConfigurableCacheFactory::CacheInfo const>, coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
    at coherence::net::CacheFactory::getCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
    <stack frame symbol unavailable>
    at __libc_start_main
    on thread "main"
    coherence::net::messaging::ConnectionException: could not establish a connection to one of the following addresses: {sles/192.168.1.5:9099}; make sure the "remote-addresses" configuration element contains an address and port of a running TcpAcceptor
    at virtual coherence::lang::TypedHandle<coherence::component::net::extend::PofConnection> coherence::component::util::TcpInitiator::openConnection()(TcpInitiator.cpp:284)
    at coherence::component::util::TcpInitiator::openConnection()
    at coherence::component::util::Initiator::ensureConnection()
    at coherence::component::net::extend::RemoteCacheService::openChannel()
    at coherence::component::net::extend::RemoteService::doStart()
    at coherence::component::net::extend::RemoteService::start()
    at coherence::component::util::SafeService::startService(coherence::lang::TypedHandle<coherence::net::Service>) const
    at coherence::component::util::SafeService::restartService() const
    at coherence::component::util::SafeService::ensureRunningServiceInternal(bool) const
    at coherence::component::util::SafeService::start()
    at coherence::net::DefaultConfigurableCacheFactory::configureService(coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureService(coherence::lang::String::StringHandle<coherence::lang::String const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureRemoteCache(coherence::lang::TypedHandle<coherence::net::DefaultConfigurableCacheFactory::CacheInfo const>, coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::configureCache(coherence::lang::TypedHandle<coherence::net::DefaultConfigurableCacheFactory::CacheInfo const>, coherence::lang::TypedHandle<coherence::run::xml::XmlElement const>)
    at coherence::net::DefaultConfigurableCacheFactory::ensureCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
    at coherence::net::CacheFactory::getCache(coherence::lang::String::StringHandle<coherence::lang::String const>)
    <stack frame symbol unavailable>
    at __libc_start_main
    on thread "main"
    Pls can you suggest something, greatly appreciated in advance.
    althouh i did observe one thing,, when i start the service from console, the ip is different. But from the program, it displays the different ip that it looks for connection and fails.

  • Overriding eventdistributionpattern-pof throwing unable to load class error

    Hi,
    We were trying to override the "coherence-eventdistributionpattern-pof-config.xml" with our own event distribution pof due to conflicintg type-id's. We changed type-id's for few of the classes. We changed the type-id for the following classes and left others as such.
    com.oracle.coherence.patterns.eventdistribution.EventDistributor$Identifier
    com.oracle.coherence.patterns.eventdistribution.events.DistributableEntry
    com.oracle.coherence.patterns.eventdistribution.events.DistributableEntryInsertedEvent
    com.oracle.coherence.patterns.eventdistribution.events.DistributableEntryUpdatedEvent
    com.oracle.coherence.patterns.eventdistribution.events.DistributableEntryRemovedEvent
    When i start the coherence server, i get error in loading class "com.oracle.coherence.patterns.eventdistribution.channels.cache.ParallelLocalCacheEventChannelBuilder" for which we did not change the typ-id at all.
    Coherence version 3.7.10
    Error Trace:
    (thread=DistributedCache:DistributedCacheForSequenceGenerators, member=2): PartitionedCache caught an unhandled exception (com.tangosol.util.WrapperException: (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Unable to load class for user type (Config=test/coherence/grid/obj-pof-config.xml, Type-Id=13402, Class-Name=com.oracle.coherence.patterns.eventdistribution.channels.cache.ParallelLocalCacheEventChannelBuilder)) (Wrapped) com.oracle.coherence.patterns.eventdistribution.channels.cache.ParallelLocalCacheEventChannelBuilder) while exiting.
    <Error> (thread=DistributedCache:DistributedCacheForSequenceGenerators, member=2): ClusterService.doServiceLeft: Unknown Service PartitionedCache{Name=DistributedCacheForSequenceGenerators, State=(SERVICE_STOPPED), Not initialized}
    (thread=DistributedCache:DistributedCacheForSequenceGenerators, member=2): Service DistributedCacheForSequenceGenerators left the cluster
    <Error> (thread=main, member=2): Error while starting service "DistributedCacheForSequenceGenerators": (Wrapped) (Wrapped: error creating class "com.tangosol.io.pof.ConfigurablePofContext") (Wrapped: Unable to load class for user type (Config=test/coherence/grid/obj-pof-config.xml, Type-Id=13402, Class-Name=com.oracle.coherence.patterns.eventdistribution.channels.cache.ParallelLocalCacheEventChannelBuilder)) (Wrapped) java.lang.ClassNotFoundException: com.oracle.coherence.patterns.eventdistribution.channels.cache.ParallelLocalCacheEventChannelBuilder
            at com.tangosol.coherence.component.util.Daemon.start(Daemon.CDB:52)
    Thanks,

    File's permissions?

  • Basic information about RED EPIC importer software

    See this page for basic information about RED EPIC importer software:
    http://labs.adobe.com/technologies/redepic_importer/

    Guess you better change your website then    oops guess that's 5.0--my mistake
    http://help.adobe.com/en_US/premierepro/cs/using/WSd79b3ca3b623cac96dad58361274a3aab8f-800 0.html

  • Setting Up Basic Information Broadcasting

    Hi All,
        I need to config for Basic Information Broadcasting, means I do not want to use portal only simple broadcasting on mail.  I tried a little bit to config settings under 'BEx Web' and 'Settings for Information Broadcasting' in SPRO but I am confused what should be proper parameters to be maintained in those settings.
    Please guide. I am using SAP BW SP19.
    Regards:
    Jitendra

    Hi Gupta,
    Add on to previous response, you need not to have Pre-calculation server for Broadcasting reports.
    Pre calculation server is required for work books only, you could make your PC as pre-calclation server for testing purpose.
    We have plenty of documents for IB configurations, please check out in forum.
    Regards,
    Venki
    Edited by: VENKAT78 on Aug 28, 2010 11:01 PM

  • Loading .class files for reflection

    I'm trying to write a program that lets the user select thier .class files to gather
    information about those classes with reflection.
    I can't figure out how to get ClassLoader to load .class files outside the program
    directory.

    I've tried both these options, and spent some time on it too,
    but failed. If can't find a class that can load clases form a URL
    how can I write my own ClassLoader that does it.
    The ClassLoaders all seem to assume that they already know where
    to look for the class files. Perhaps if I could tell them where to look,
    but I don't see how.

  • The document information panel was unable to load. the document will continue to open. For more information, contact your system adminsitrator.

    Hi Guys,
    I am creating the library using object model with custom content type.  When i am opening document from custom content type, the meta data fields are not displaying in the document and throwing below error.
    The document information panel was unable to load. the document will continue to open. For more information, contact your system adminsitrator.
    Document Information Panel cannot open a new form.
    The form contains schema validation errors.
    Content for element '{http://schemas.microsoft.com/office/2006/metadata/propertiesRoot}properties' is incomplete according to the DTD/Schema.
    Expecting: {http://schemas.microsoft.com/office/2006/metadata/properties}properties.
    But after saving the document, then meta data is enabled.
    Thanks in advance for suggested solutions.
    thanks
    Santhosh G

    Hi,
    For a better troubleshooting, I suggest to do as follows:
    1. Please try to update the Location column's schema by following the steps below.
     1) Go to Site Settings -> "Site Columns"
     2) Click on "Location", after the page is opened. Don't modify any settings, click "OK"  to forcibly update the field's schema.
    2. Re-edit the document information panel template to see if the issue still occurs.
    Please go to the Library setting > click the corresponding content type(need to enable managed of content types in Advanced settings) > click Document Information Panel settings.
    3. Here are some similar links about your issue, please take some time to look at them:
    http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomizationlegacy/thread/243b4852-3f17-4a3a-b6d7-187d65a5f088/
    http://blogs.msdn.com/b/raresm/archive/2010/03/30/document-information-panel-cannot-open-the-form.aspx
    https://joranmarkx.wordpress.com/2012/02/10/sharepoint-document-information-panel-cannot-create-a-new-blank-form/
    If the issue still occurs, please check if the command below can help(change the site URL and the library name in the code):
    Apply-Fix -siteUrl "http://your site URL "
    function Apply-Fix($siteUrl)
    clear
    Add-PSSnapin "Microsoft.SharePoint.Powershell" -ErrorAction SilentlyContinue # -EA 0
    [Environment]::CurrentDirectory=(Get-Location -PSProvider FileSystem).ProviderPath
    foreach ($spwTarget in (Get-SPSite $siteUrl).RootWeb.Webs) {
    Write-Host "Checking Web: " $spwTarget.Url
    $list = $spwTarget.Lists["your library name"]
    $fields = $list.fields
    foreach($field in $fields)
    if($field.SourceId -eq '{$ListId:your library name;}')
    $schemaxml = $field.SchemaXML
    $schemaxmldata = [xml]$schemaxml
    $schemaxmldata.Field.SetAttribute("SourceID", $list.ID)
    $schemaxml = $schemaxmldata.get_InnerXml()
    $field.SchemaXML = $schemaxml
    $field.Update()
    Write-Host "Fixed" $field.Title "field in the library"
    Write-Host "Done."
    More information:
    SharePoint 2010: Creating a Custom Content Type using Visual Studio
    http://www.codeproject.com/Articles/410880/SharePoint-Creating-a-Custom-Content-Type-usi
    Thanks,
    Dennis Guo
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
    [email protected].
    Dennis Guo
    TechNet Community Support

  • Do not seem to be able to backup iPad via iTunes on to my PC. Message after connecting is "iTunes was unable to load class information from Sync Services, Reconnect or try later"  Have tried that but get the same result. Can anyone assist?

    Do not seem to be able to backup iPad via iTunes on to my PC.
    Message after connecting is "iTunes was unable to load class information from Sync Services, Reconnect or try later" 
    Have tried that but get the same result.
    Remedies I've tried are:
    wait and try again
    reboot
    reload iTunes
    NB hp is a relatively new machine and has previously backed up quite happily.
    Can anyone assist?

    RHoodnkt-
    Try rebooting the iPad.  Hold down both the Home and Sleep buttons for several seconds until the Apple logo appears.  Ignore the "Slide to power off" arrow.  It takes a minute or two to restart.
    Also be sure your iPad battery is not completely discharged.
    Fred

  • "iTunes was unable to load class data information from sync services"

    I own iTunes 10.5 beta 3 64-bit for my 64-bit windows 7 pc, and it gives me this message whenever I try to sync ANY of my devices: "iTunes was unable to load class data information from Sync Services". I own an old iPod video and an iPhone 4 with iOS 5 beta 3. I've tried uninstalling all Apple products, searching through my hard drive and deleting everything Apple, cleaning the registry, EVERYTHING. I've reinstalled at least 4 times now. The problem refuses to become fixed. I've searched every article online possible, and none of the solutions have worked. Is there anything I can do to get my stuff back on to my devices???

    In the course of your troubleshooting to date, have you worked through the following document?
    iTunes for Windows: "Unable to load data class" or "Unable to load provider data" sync services alert

  • Failed to load class properties and qualifiers for class BDD_UsePackage in task sequence. 0x80041002

    Following situation. In SCCM we have one Standalone Primray Site Server and two Site Server. The two site server are also SMS Provider. MDT 2012 was installed on all three Servers and the Config Manager Integration was run. When starting the Console
    on any of this server and editing an MDT Task Sequence, it occasionally pops up an error "An error occured when loading the task sequence". TaskSequenceProvider.log File throws a lot of errors:
    [PID: 2824] Invoking method SMS_TaskSequence.LoadFromXml TaskSequenceProvider 20.06.2012 10:28:50 4916 (0x1334)
    Failed to load class properties and qualifiers for class BDD_UsePackage in task sequence. 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:28:50 4916 (0x1334)
    Failed to load node Use Toolkit Package from XML into WMI 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:28:50 4916 (0x1334)
    Failed to load children steps for node "Applikation" from XML 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:28:50 4916 (0x1334)
    Failed to load children steps for node "" from XML 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:28:50 4916 (0x1334)
    Failed to load XML for the task sequence into WMI 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:28:50 4916 (0x1334)
    [PID: 2824] Done with method SMS_TaskSequence.LoadFromXml TaskSequenceProvider 20.06.2012 10:28:50 4916 (0x1334)
    Tried removing the integration on all SMS Provider Machines and readded them. It does not make a differenence. Does anyone know if MDT supports the use of multiple SMS Providers? When I only use one Provider and deinstall the other two, it works ok.

    Some more info from the log files:
    TaskSequenceProvider.log
    [1680680 PID:5228] Initializing provider for namespace root\sms\site_P01 TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    [1680680  PID:5228] Initialization of provider for namespace root\sms\site_P01 succeeded TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    [PID: 5228] Invoking method SMS_TaskSequence.ExportXml TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Failed to load class properties and qualifiers for class BDD_UsePackage in task sequence. 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Failed to export task sequence to XML 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    [PID: 5228] Done with method SMS_TaskSequence.ExportXml TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Setting status complete:  status code = 0x80041002; Failed to load class properties and qualifiers for class BDD_UsePackage in task sequence. TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    [PID: 5228] Invoking method SMS_TaskSequence.LoadFromXml TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Failed to load class properties and qualifiers for class BDD_UsePackage in task sequence. 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Failed to load node Use Toolkit Package from XML into WMI 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Failed to load children steps for node "Applikation" from XML 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Failed to load children steps for node "" from XML 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Failed to load XML for the task sequence into WMI 0x80041002 (2147749890) TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    [PID: 5228] Done with method SMS_TaskSequence.LoadFromXml TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    Setting status complete:  status code = 0x80041002; Failed to load class properties and qualifiers for class BDD_UsePackage in task sequence. TaskSequenceProvider 20.06.2012 10:51:38 4424 (0x1148)
    SMS Provider logs the following:
    CExtUserContext::EnterThread : User=A2\trth1 Sid=0x0105000000000005150000001BB949E9D7F6AADBC3309AA56BAB0000 Caching IWbemContextPtr=0000000005777900 in Process 0x9f8 (2552) SMS Provider 20.06.2012 10:51:47 3008
    (0x0BC0)
    Context: SMSAppName=SMS Administrator Console SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: MachineName=vswlieca2146.A2.loc SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: UserName=A2\trth1 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: ObjectLockContext=fdf8ab87-cf50-43bd-a48a-d5bb99c8034f SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: ApplicationName=Microsoft.ConfigurationManagement.exe SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: ApplicationVersion=5.0.0.0 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: LocaleID=MS\0x409 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: __ProviderArchitecture=32 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: __RequiredArchitecture=0 (Bool) SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: __ClientPreferredLanguages=en-US,en SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: __GroupOperationId=590802 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Context: __WBEM_CLIENT_AUTHENTICATION_LEVEL=6 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    CExtUserContext : Set ThreadLocaleID OK to: 1033 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    CSspClassManager::PreCallAction, dbname=CM_P01 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    ExecMethodAsync : SMS_ObjectLock::ReleaseLocks SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Requested class =SMS_ObjectLock SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    Requested num keys =0 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    CExtProviderClassObject::DoExecuteMethod ReleaseLocks SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    CSspSEDO::ReleaseLocks: ********** Releasing SEDO Lock for object SMS_TaskSequencePackage.PackageID="P010013A" for user A2\trth1. ********** SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)
    CExtUserContext::LeaveThread : Releasing IWbemContextPtr=91715840 SMS Provider 20.06.2012 10:51:47 3008 (0x0BC0)

  • Playing video in labview with some basic information output for my program.

    I'm trying to program something similar to NI's product DIAdem CLIP in LabVIEW.  A program that synchronizes test data with video.  I'm trying to find a decent video component that gives me basic information about what is being played.
    My first thought is to use Windows Media Player 10 w/ LabVIEW ActiveX container.  I'm a little confussed as to what I'm doing with it, however.  I can't find any information about Windows Media Player 10 in the Class Browser.
    All I really need is:
    Input:
    1. The file for the embedded media player to play.
    Output:
    1. The framerate of the file being played.
    2. The current frame.
    I think with that I should be able to put a marker in my data graphs that indicates where that data correlates with the playing video.
    Thank you for your input!
    -Nic

    Your best source of information regarding the Windows Media Player object model is MSDN. I've only done a little bit of playing with Windows Media embedded in LabVIEW, but enough to know it was a pain and not worth the effort. NI has a KnowledgeBase article that indicates you will probably need LV8. In terms of your specific query regarding position, you should take a look at the "Controls" object in the object model, as that has properties I think you're going to need.

Maybe you are looking for

  • How to keep my Aperture library from showing up in other user's iPhoto?

    I use an iMac 24 with OS 10.8.2  I use Aperture on my account and my wife and kids use iPhoto on their separate accounts on the same computer. For some reason, over the last few months, everytime they open thier iPhoto, my Aperture photos show up fir

  • Looking for a USB 3.0 HUB recommendation....

    I have bought at least 2 different USB 3.0 Hubs and while they work with my MBP Retina they only support devices at USB 2.0 speed.  I have converted my Time Machine to a USB 3.0 Enclosure and when connected directly to my MBP Retina I get 3.0 speeds.

  • 7.4 on Vista, iPhone gone

    Well, just upgraded to 7.4. No hangs with iTunes for now. However. It doesn't recognize my iPhone, I get some USB driver thing that comes up, 1st time it was searching for the driver, then said it succeeded. Now starting up iTunes with phone connecte

  • Face tagging to Facebook

    Faces is great. It would save me a ton of time when uploading photos to Facebook if all the time spent tagging and correcting Faces in Aperture would also carry over to tags on Facebook. Ok, granted, in the Facebook album, I see the person's name, bu

  • IE 7.0.6000.16386 crashes on close/quit after QT streaming

    IE7 always crashes on close/quit after I played (without problems) an Apple trailer. Doesn't matter if I closed the tab and surfed other sites after streaming... IE7 will always crash on close. Here is the log (Italian): Firma del problema Nome event