Convert to enumeration

I want to convert an integer number to an enumeration (linked to a typdef) and then wire to the selector of a case structure.
It is easier to read the code when the case displays the labels in text instead of numbers.
When I use the  "type cast" this is terrible slow on the realtime target. Why? To my opinion that should be just a reinterpretation of the data, nothing to do during runtime.
On the FPGA targets the "type cast" is not available somehow. Why?
in 8.2 I found somehow a special integer to enumeration converter under the add-ons menue (probably from the supervisory and control). In 8.5 I can not find it anymore and I can not copy it from one VI to another.
Hello, hello!! Did I miss something or am I the only one that has nice typedefs of enumerations (for example for statemachines) and have to convert a integer to an enumerator?

Hi Fritz,
I am either not following you or you are onto simething I want to know more about.
What kind of target are you uisng and are you saying you are taking anoticable performance hit from code like this?
Could you post some example code that demonstrates your concern so we can take a closer look, please?
Regarding the ";DNI_IntToEnum.vi" VI that dwisti mentioned.
Yes that comes with the SDE and is used to type cast the iteration count to the target states. Rumour has it that it and any other VI that is named such that it starts with ";D" is Jeff K winking at you.
Ben
Message Edited by Ben on 10-14-2007 11:13 AM
Ben Rayner
I am currently active on.. MainStream Preppers
Rayner's Ridge is under construction
Attachments:
typecast.PNG ‏21 KB

Similar Messages

  • SIMPLE QUESTION! converting an Enumeration to a String array;

    Enumeration e=request.getParameterNames();
    i have an enumeration that contains some String objects
    how can i convert it to a String array?
    thanks a lot.

    String str = null;
    List list = new ArrayList();
    while(e.hasMoreElements()) {
         str = (String)e.nextElement();
         list.add(str);
    String[] strArray = (String[]) list.toArray();
    Disclaimer: Code not tested; use at your own
    risk ;)Taht piece of code will probably throw class cast exception at the line:
    String[] strArray = (String[]) list.toArray();The array returned is an object array. You should use:
    String[] strArray = (String[]) list.toArray(new String[list.size()]);That methods returns an array of the same type as the argument.
    /Kaj

  • My script only works in Applescript Editor

    HI,
    I am relatively new to writing scripts but this has really baffled me? 
    I have written a script to take the song currently playing track in Spotify and paste it along with the artist to a word document.  I have set up an if statement which decides if there is a song playing and lets the user know if it isn't with a dialog box.  This works in the editor fine but not when I run it as an application or from the scripts menu always displays that nothing is playing.  Am I missing something in the script or is this a bug of some kind?
    Here's my script:
    tell application "Spotify"
              set player_state to player state as string
    end tell
    if player_state ≠ "playing" then
    beep
    display dialog "Nothing is playing" buttons {"OK"} default button 1 with icon 2
    else
              tell application "Spotify"
                        set theTrack to name of current track
                        set theArtist to artist of current track
                        set userClick to display dialog theTrack & " - " & theArtist buttons {"I like", "Not for me"} default button 1
              end tell
              if button returned of userClick is "I like" then
                        tell application "Microsoft Word"
                                  open file name "songs i like.docx"
                                  tell selection
                                            type text text theTrack & " - " & theArtist & return
                                  end tell
                        end tell
              else if button returned of userClick is "not for me" then
              end if
    end if
    This works on my system because I have created a file called "songs i like.docx"
    looking forward to hearing a solution from a pro!
    Kind regards,
    Ben

    Without seeing the source code it's difficult to say, but here's what I think happened.  'playing' is part of an enumeration, so it would actually be a number that the scripting definition converts to a word for the user's benefit. The developer may not have anticipated someone trying to convert the enumeration to its string value, and if not, the phrase 'player state as string' may be returning something other than the literal string 'playing' (e.g. a reference to a property of the enumeration, or an internal coercion routine).  Within the context of the Spotify tell block it would work fine, because Spotify understands what 'playing' refers to, but core applescript would have no idea what to do with a non-string object or reference.
    it's best to avoid referring to application-specific properties or objects outside of the application tell block. Sometmes it works, but sometimes it doesn't.

  • Question about app design with JSF

    I'm new to JSF and have been using MyFaces in combination with Tomcat and Hibernate to write a web application for my institution. We have a fairly clean model implemented and our hibernate persistence layer is also looking good. I'm running into trouble making a clean view layer with JSF. Namely, I can't seem to avoid creating lots of classes to get a given job done.
    As a for instance: I have quite a few enumerations representing various units of measure, conventions, etc. To persist them in the db with hibernate, I needed to make a converter class to convert the Enums to strings. I wrote a class using generics that could convert any enum to strings appropriately given a class object you pass into the constructor. Well, hibernate needs a no arg constructor so it can instantiate one automatically, so I had to make a subclass of this converter for each enumeration I have in my model. Couldn't see a way around it.
    Now, using JSF, I'm needing to implement another converter for enumerations in order convert back and forth from strings. Same deal. I could use a single class to get the job done. The problem is, in the faces-config.xml where you define your converter classes, it doesn't look like I can have 2 converters defined with the same converter class.
    i.e.:
    <converter>
    <converter-for-class>commons.astronomy.Epoch</converter-for-class>
    <converter-class>tools.webapp.EnumConverter</converter-class>
    <property>
         <property-name>enumClass</property-name>
         <property-class>java.lang.Class</property-class>
           <default-value>commons.astronomy.Epoch</default-value>
    </property>
    </converter>
    <converter>
    <converter-for-class>commons.astronomy.VelocityConvention</converter-for-class>
    <converter-class>tools.webapp.EnumConverter</converter-class>
    <property>
         <property-name>enumClass</property-name>
         <property-class>java.lang.Class</property-class>
            <default-value>commons.astronomy.VelocityConvention</default-value>
    </property>
    </converter>MyFaces seems to associate both Epoch and VelocityConvention with the second configuration of the EnumConverter class. So, the long and short of it is, here I am again having to write yet another class PER enumeration.
    I could go on with another example, but this post is getting lengthy, so I'll make it short. Some of my model classes are not java beans because it would create inconsistencies to only set some of the properties one at a time. I.E. I need to call a method obj.set(a, b) not obj.setA(a); obj.setB(b). My first thought was to create a custom component for obj so that I can turn 2 (or more) input fields into 1 set call. There are other advantages in reusability, etc.
    Unfortunately, I have several of those situations and am finding myself leaning toward implementing yet MORE classes to make a separate component for each such instance of a non-java bean set of properties.
    What it all comes down to is I seem to be having a class explosion and I'm wondering if there's a better approach to this whole thing. How do you organize a view layer that talks to a model having enumerations and not quite javaBean pattern properties without a class explosion? That's the question I guess.
    Thanks for your patience in reading all of that and any help you can provide!
    brian

    No, I don't have tables of values. I have a java 1.5 enumeration, like for instance:
    public enum VelocityConvention {
       RELATIVISTIC,
       REDSHIFT;
    }and a class Velocity that contains a convention and a value like so:
    public class Velocity {
       public VelocityConvention getConvention() {...}
       public double getValue() {...}
       public void set(VelocityConvention conv, double value) {...}
    }When I persist the Velocity class to the database, I want a field called convention that holds the appropriate value of the enumeration. That much is done how I explained before.
    I want to have a selectOneMenu for setting the convention. Via trial and error, I found that MyFaces wasn't able to automatically convert from a string back to a proper VelocityConvention enum constant. It can, of course, convert from the enum to a string because it just calls toString(). But I need both directions for any UIInput element I use, be it a selectOne, or just a straight inputText.

  • Converting enumerations to lists with generics

    hello...
    i want to list off system properties and sort them.
    how can you convert enumerations to lists with generics?
    i tried the following in eclipse, but it fails...
         Properties properties = System.getProperties( ) ;
         Enumeration<?> enumeration = properties.propertyNames( ) ;
         ArrayList<String> arrayListEnum = Collections.list( enumeration ) ;
         Collections.sort( arrayListEnum ) ;

    Because the type parameter of Enumeration (<?>) is not compatible with the type parameter of ArrayList (<String>).
    You'll have to do some manual casting yourself.
    Unfortunately, there's nothing to guarantee that system property keys or values are strings (hence why Enumeration<?> and no Enumeration<String>) so you'll need to cope if you find one that isn't.

  • Enumeration convertion in jsf

    Hi all
    I am about dealing with enumerations in my academic JSF project
    so, I have an entity Employee:
    package com.entities;
    import com.enumeration.Gender;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.Entity;
    import javax.persistence.EnumType;
    import javax.persistence.Enumerated;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.NamedQuery;
    @Entity
    @NamedQuery(name="Employee.findAll", query="SELECT e FROM Employee e")
    public class Employee implements Serializable {
        private static final long serialVersionUID = 1L;
        @Id
        @GeneratedValue(strategy = GenerationType.AUTO)
        private Integer id;
        @Column(name="nom", length=30)
        private String nom;
        @Enumerated(EnumType.STRING)
        @Column(length=1)
        private Gender gender;
        public Integer getId() {
            return id;
        public void setId(Integer id) {
            this.id = id;
        public String getNom() {
            return nom;
        public void setNom(String nom) {
            this.nom = nom;
        public Gender getGender() {
            return gender;
        public void setGender(Gender gender) {
            this.gender = gender;
        @Override
        public int hashCode() {
            int hash = 0;
            hash += (id != null ? id.hashCode() : 0);
            return hash;
        @Override
        public boolean equals(Object object) {
            // TODO: Warning - this method won't work in the case the id fields are not set
            if (!(object instanceof Employee)) {
                return false;
            Employee other = (Employee) object;
            if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
                return false;
            return true;
        @Override
        public String toString() {
            return "com.entities.Employee[ id=" + id + " ]";
    }the enumeration:
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package com.enumeration;
    import java.io.Serializable;
    public enum Gender implements Serializable{
        M("Male"), F("Female");
        private String description;
        private Gender(String description) {
            this.description = description;
        public String getDescription() {
            return description;
    }and the index page that shows the list of employees:
    <?xml version='1.0' encoding='UTF-8' ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:p="http://primefaces.org/ui">
        <h:head>
            <title>Facelet Title</title>
        </h:head>
        <h:body>
            <f:view>
                <h:form>
                    <h1><h:outputText value="List"/></h1>
                    <h:dataTable value="#{employee.employees}" var="item" id="liste">
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Id"/>
                            </f:facet>
                            <h:outputText value="#{item.id}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Nom"/>
                            </f:facet>
                            <h:outputText value="#{item.nom}"/>
                        </h:column>
                        <h:column>
                            <f:facet name="header">
                                <h:outputText value="Gender"/>
                            </f:facet>
                            <h:outputText value="#{item.gender}"/>
                        </h:column>
                    </h:dataTable>
                            <h1><h:outputText value="Create/Edit"/></h1>
                            <h:panelGrid columns="2">
                                <h:outputLabel value="Nom:" for="nom" />
                                <h:inputText id="nom" value="#{employee.newEmployee.nom}" title="Nom" />
                                <h:outputLabel value="Gender:" for="gender" />
                                <h:selectOneMenu value="#{employeeBean.newEmployee.gender}" id="gender">
                                    <f:selectItem itemLabel="Male" itemValue="Male"/>
                                    <f:selectItem itemLabel="Female" itemValue="Female"/>
                                </h:selectOneMenu>
                            </h:panelGrid>
                            <h:commandButton value="ajouter" action="index.xhtml" actionListener="#{employeeBean.ajouter}" />
                        </h:form>
            </f:view>
        </h:body>
    </html>with the ejb associated( not included here)
    the problem I am facing is to convert the field selected in the selectOneMenu to an enumeration
    I did some search and I found that I have to add a converter class the faces-config.xml file, but still facing the same problem
    I am sure that I missed understood something with this but cannot detect what it is wrong with
    thanks for any help

    here is the log content after submitting the values:
    WARNING: Local Exception Stack:
    Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.2.0.v20110202-r8913): org.eclipse.persistence.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Duplicate entry '1' for key 'PRIMARY'
    Error Code: 1062
    Call: INSERT INTO EMPLOYEE (ID, GENDER, nom) VALUES (?, ?, ?)
         bind => [3 parameters bound]
    Query: InsertObjectQuery(com.entities.Employee[ id=1 ])
         at org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:798)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:864)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:583)
         at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:526)
         at org.eclipse.persistence.internal.sessions.AbstractSession.basicExecuteCall(AbstractSession.java:1729)
         at org.eclipse.persistence.sessions.server.ClientSession.executeCall(ClientSession.java:234)
         at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:207)
         at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:193)
         at org.eclipse.persistence.internal.queries.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:342)
         at org.eclipse.persistence.internal.queries.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:162)
         at org.eclipse.persistence.internal.queries.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:177)
         at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:469)
         at org.eclipse.persistence.queries.InsertObjectQuery.executeCommit(InsertObjectQuery.java:80)
         at org.eclipse.persistence.queries.InsertObjectQuery.executeCommitWithChangeSet(InsertObjectQuery.java:90)
         at org.eclipse.persistence.internal.queries.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:291)
         at org.eclipse.persistence.queries.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:58)
         at org.eclipse.persistence.queries.DatabaseQuery.execute(DatabaseQuery.java:808)
         at org.eclipse.persistence.queries.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:711)
         at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:108)
         at org.eclipse.persistence.queries.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:85)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2842)
         at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1521)
         at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1503)
         at org.eclipse.persistence.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:1463)
         at org.eclipse.persistence.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:224)
         at org.eclipse.persistence.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:123)
         at org.eclipse.persistence.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:3766)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1404)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:616)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1511)
         at org.eclipse.persistence.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:3115)
         at org.eclipse.persistence.internal.sessions.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:331)
         at org.eclipse.persistence.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:157)
         at org.eclipse.persistence.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:68)
         at com.sun.enterprise.transaction.JavaEETransactionImpl.commit(JavaEETransactionImpl.java:437)
         at com.sun.enterprise.transaction.JavaEETransactionManagerSimplified.commit(JavaEETransactionManagerSimplified.java:867)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:5115)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:4880)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:2039)
         at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1990)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:222)
         at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:88)
         at $Proxy241.persist(Unknown Source)
         at com.sessionBeans.__EJB31_Generated__EmployeeFacade__Intf____Bean__.persist(Unknown Source)
         at com.beans.EmployeeBean.ajouter(EmployeeBean.java:37)

  • "Property value is not valid" when PropertyGridView tries to convert a string to a custom object type.

    Hi,
    I have a problem with an PropertyGrid enum property that uses a type converter.
    In general it works, but when I double clicking or using the scoll wheel,  an error message appears:
    "Property value is not valid"
    Details: "Object of type 'System.String' cannot be converted to type 'myCompany.myProject.CC_myCustomProperty."
    I noticed that the CommitValue method (in PropertyGridView.cs) tries to convert a string value to a CC_myCustomProperty object.
    Here is the code that causes the error (see line 33):
    (Using the .net symbols from the PropertyGridView.cs file)
    1
            internal bool CommitValue(GridEntry ipeCur, object value) {   
    2
    3
                Debug.WriteLineIf(CompModSwitches.DebugGridView.TraceVerbose,  "PropertyGridView:CommitValue(" + (value==null ? "null" :value.ToString()) + ")");   
    4
    5
                int propCount = ipeCur.ChildCount;  
    6
                bool capture = Edit.HookMouseDown;  
    7
                object originalValue = null;   
    8
    9
                try {   
    10
                    originalValue = ipeCur.PropertyValue;   
    11
    12
                catch {   
    13
                    // if the getter is failing, we still want to let  
    14
                    // the set happen.  
    15
    16
    17
                try {  
    18
                    try {   
    19
                        SetFlag(FlagInPropertySet, true);   
    20
    21
                        //if this propentry is enumerable, then once a value is selected from the editor,   
    22
                        //we'll want to close the drop down (like true/false).  Otherwise, if we're  
    23
                        //working with Anchor for ex., then we should be able to select different values  
    24
                        //from the editor, without having it close every time.  
    25
                        if (ipeCur != null &&   
    26
                            ipeCur.Enumerable) {  
    27
                               CloseDropDown();   
    28
    29
    30
                        try {   
    31
                            Edit.DisableMouseHook = true;  
    32
    /*** This Step fails because the commit method is trying to convert a string to myCustom objet ***/ 
    33
                            ipeCur.PropertyValue = value;   
    34
    35
                        finally {   
    36
                            Edit.DisableMouseHook = false;  
    37
                            Edit.HookMouseDown = capture;   
    38
    39
    40
                    catch (Exception ex) {   
    41
                        SetCommitError(ERROR_THROWN);  
    42
                        ShowInvalidMessage(ipeCur.PropertyLabel, value, ex);  
    43
                        return false;  
    44
    I'm stuck.
    I was wondering is there a way to work around this? Maybe extend the string converter class to accept this?
    Thanks in advance,
    Eric

     
    Hi,
    Thank you for your post!  I would suggest posting your question in one of the MS Forums,
     MSDN Forums » Windows Forms » Windows Forms General
     located here:http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=8&SiteID=1.
    Have a great day!

  • Create report in report builder and now want to convert to XML and move EBS

    Tryed to run several different java scripts from web articles and keep getting the same error. I have EBS r12. I've created a report in the report builder then used the rwconverter.exe to convert it to xml I want to get in into EBS as XML but need help to seperate the data. Any help would be great.
    [Loaded java.util.Comparator from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.String$CaseInsensitiveComparator from C:\oracle\BIToolsHome_1\
    jdk\jre\lib\rt.jar]
    [Loaded java.security.AccessController from C:\oracle\BIToolsHome_1\jdk\jre\lib\
    rt.jar]
    [Loaded java.security.Guard from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.security.Permission from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar
    [Loaded java.security.BasicPermission from C:\oracle\BIToolsHome_1\jdk\jre\lib\r
    t.jar]
    [Loaded java.lang.reflect.ReflectPermission from C:\oracle\BIToolsHome_1\jdk\jre
    \lib\rt.jar]
    [Loaded java.security.PrivilegedAction from C:\oracle\BIToolsHome_1\jdk\jre\lib\
    rt.jar]
    [Loaded sun.reflect.ReflectionFactory$GetReflectionFactoryAction from C:\oracle\
    BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.Stack from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.reflect.ReflectionFactory from C:\oracle\BIToolsHome_1\jdk\jre\lib\r
    t.jar]
    [Loaded java.lang.RuntimePermission from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.
    jar]
    [Loaded java.lang.ref.Reference$Lock from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded java.lang.ref.Reference$ReferenceHandler from C:\oracle\BIToolsHome_1\jd
    k\jre\lib\rt.jar]
    [Loaded java.lang.ref.ReferenceQueue from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded java.lang.ref.ReferenceQueue$Null from C:\oracle\BIToolsHome_1\jdk\jre\l
    ib\rt.jar]
    [Loaded java.lang.ref.ReferenceQueue$Lock from C:\oracle\BIToolsHome_1\jdk\jre\l
    ib\rt.jar]
    [Loaded java.lang.ref.Finalizer$FinalizerThread from C:\oracle\BIToolsHome_1\jdk
    \jre\lib\rt.jar]
    [Loaded java.util.Enumeration from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.Hashtable$EmptyEnumerator from C:\oracle\BIToolsHome_1\jdk\jre
    \lib\rt.jar]
    [Loaded java.util.Iterator from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.Hashtable$EmptyIterator from C:\oracle\BIToolsHome_1\jdk\jre\l
    ib\rt.jar]
    [Loaded java.io.ObjectStreamClass from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded java.util.AbstractMap from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.SoftCache from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.HashMap from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.Map$Entry from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.HashMap$Entry from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.IncompatibleClassChangeError from C:\oracle\BIToolsHome_1\jdk\
    jre\lib\rt.jar]
    [Loaded java.lang.NoSuchMethodError from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.
    jar]
    [Loaded java.util.Hashtable$Entry from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded sun.misc.Version from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.InputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.FileInputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.FileDescriptor from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.OutputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.FileOutputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar
    [Loaded java.io.FilterInputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded java.io.BufferedInputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.
    jar]
    [Loaded java.io.FilterOutputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.j
    ar]
    [Loaded java.io.PrintStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.BufferedOutputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded java.io.Writer from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.OutputStreamWriter from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.j
    ar]
    [Loaded sun.nio.cs.StreamEncoder from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar
    [Loaded sun.io.Converters from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.reflect.Reflection from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.security.action.GetPropertyAction from C:\oracle\BIToolsHome_1\jdk\j
    re\lib\rt.jar]
    [Loaded java.nio.charset.Charset from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar
    [Loaded java.nio.charset.spi.CharsetProvider from C:\oracle\BIToolsHome_1\jdk\jr
    e\lib\rt.jar]
    [Loaded sun.nio.cs.AbstractCharsetProvider from C:\oracle\BIToolsHome_1\jdk\jre\
    lib\rt.jar]
    [Loaded sun.nio.cs.StandardCharsets from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.
    jar]
    [Loaded java.util.SortedMap from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.TreeMap from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.ASCIICaseInsensitiveComparator from C:\oracle\BIToolsHome_1\jdk
    \jre\lib\rt.jar]
    [Loaded java.util.TreeMap$Entry from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.CharacterDataLatin1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\r
    t.jar]
    [Loaded java.lang.ThreadLocal from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.nio.cs.HistoricallyNamedCharset from C:\oracle\BIToolsHome_1\jdk\jre
    \lib\rt.jar]
    [Loaded sun.nio.cs.MS1252 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.Class$3 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.reflect.Modifier from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.j
    ar]
    [Loaded sun.reflect.LangReflectAccess from C:\oracle\BIToolsHome_1\jdk\jre\lib\r
    t.jar]
    [Loaded java.lang.reflect.ReflectAccess from C:\oracle\BIToolsHome_1\jdk\jre\lib
    \rt.jar]
    [Loaded java.lang.Class$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.reflect.ReflectionFactory$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib
    \rt.jar]
    [Loaded sun.reflect.NativeConstructorAccessorImpl from C:\oracle\BIToolsHome_1\j
    dk\jre\lib\rt.jar]
    [Loaded sun.reflect.DelegatingConstructorAccessorImpl from C:\oracle\BIToolsHome
    _1\jdk\jre\lib\rt.jar]
    [Loaded sun.nio.cs.StreamEncoder$CharsetSE from C:\oracle\BIToolsHome_1\jdk\jre\
    lib\rt.jar]
    [Loaded java.nio.charset.CharsetEncoder from C:\oracle\BIToolsHome_1\jdk\jre\lib
    \rt.jar]
    [Loaded sun.nio.cs.SingleByteEncoder from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded sun.nio.cs.MS1252$Encoder from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded java.nio.charset.CodingErrorAction from C:\oracle\BIToolsHome_1\jdk\jre\
    lib\rt.jar]
    [Loaded java.nio.charset.CharsetDecoder from C:\oracle\BIToolsHome_1\jdk\jre\lib
    \rt.jar]
    [Loaded sun.nio.cs.SingleByteDecoder from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded sun.nio.cs.MS1252$Decoder from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded java.nio.ByteBuffer from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.nio.HeapByteBuffer from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.nio.Bits from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.Unsafe from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.VM from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.Runtime from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.nio.ByteOrder from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.nio.CharBuffer from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.nio.HeapCharBuffer from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.nio.charset.CoderResult from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded java.nio.charset.CoderResult$Cache from C:\oracle\BIToolsHome_1\jdk\jre\
    lib\rt.jar]
    [Loaded java.nio.charset.CoderResult$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\
    rt.jar]
    [Loaded java.nio.charset.CoderResult$2 from C:\oracle\BIToolsHome_1\jdk\jre\lib\
    rt.jar]
    [Loaded sun.nio.cs.Surrogate$Parser from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.
    jar]
    [Loaded sun.nio.cs.Surrogate from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.BufferedWriter from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.File from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.FileSystem from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.Win32FileSystem from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.WinNTFileSystem from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.ExpiringCache from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.ClassLoader$3 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.ExpiringCache$Entry from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.
    jar]
    [Loaded java.lang.ClassLoader$NativeLibrary from C:\oracle\BIToolsHome_1\jdk\jre
    \lib\rt.jar]
    [Loaded java.lang.Terminator from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.SignalHandler from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.Terminator$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.Signal from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.NativeSignalHandler from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded java.lang.Integer$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.Compiler from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.Compiler$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.Launcher from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.net.URLStreamHandlerFactory from C:\oracle\BIToolsHome_1\jdk\jre\li
    b\rt.jar]
    [Loaded sun.misc.Launcher$Factory from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded java.security.SecureClassLoader from C:\oracle\BIToolsHome_1\jdk\jre\lib
    \rt.jar]
    [Loaded java.net.URLClassLoader from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.Launcher$ExtClassLoader from C:\oracle\BIToolsHome_1\jdk\jre\li
    b\rt.jar]
    [Loaded sun.security.util.Debug from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.StringTokenizer from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded java.security.PrivilegedExceptionAction from C:\oracle\BIToolsHome_1\jdk
    \jre\lib\rt.jar]
    [Loaded sun.misc.Launcher$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.net.www.ParseUtil from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.BitSet from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.net.URL from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.Locale from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.net.Parts from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.net.URLStreamHandler from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded sun.net.www.protocol.file.Handler from C:\oracle\BIToolsHome_1\jdk\jre\l
    ib\rt.jar]
    [Loaded java.util.Set from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.AbstractSet from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.HashSet from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.URLClassPath from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.ArrayList from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.net.www.protocol.jar.Handler from C:\oracle\BIToolsHome_1\jdk\jre\li
    b\rt.jar]
    [Loaded sun.misc.Launcher$AppClassLoader from C:\oracle\BIToolsHome_1\jdk\jre\li
    b\rt.jar]
    [Loaded sun.misc.Launcher$2 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.SystemClassLoaderAction from C:\oracle\BIToolsHome_1\jdk\jre\l
    ib\rt.jar]
    [Loaded java.lang.StringCoding from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.ThreadLocal$ThreadLocalMap from C:\oracle\BIToolsHome_1\jdk\jr
    e\lib\rt.jar]
    [Loaded java.lang.ThreadLocal$ThreadLocalMap$Entry from C:\oracle\BIToolsHome_1\
    jdk\jre\lib\rt.jar]
    [Loaded java.lang.StringCoding$StringDecoder from C:\oracle\BIToolsHome_1\jdk\jr
    e\lib\rt.jar]
    [Loaded java.lang.StringCoding$CharsetSD from C:\oracle\BIToolsHome_1\jdk\jre\li
    b\rt.jar]
    [Loaded java.net.URLClassLoader$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded sun.misc.URLClassPath$3 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.URLClassPath$Loader from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded sun.misc.URLClassPath$JarLoader from C:\oracle\BIToolsHome_1\jdk\jre\lib
    \rt.jar]
    [Loaded sun.misc.FileURLMapper from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.zip.ZipConstants from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.j
    ar]
    [Loaded java.util.zip.ZipFile from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.jar.JarFile from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.security.action.LoadLibraryAction from C:\oracle\BIToolsHome_1\jdk\j
    re\lib\rt.jar]
    [Loaded sun.misc.JavaUtilJarAccess from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.j
    ar]
    [Loaded java.util.jar.JavaUtilJarAccessImpl from C:\oracle\BIToolsHome_1\jdk\jre
    \lib\rt.jar]
    [Loaded sun.misc.SharedSecrets from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.JarIndex from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.misc.ExtensionDependency from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded java.util.zip.ZipEntry from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.jar.JarEntry from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.jar.JarFile$JarFileEntry from C:\oracle\BIToolsHome_1\jdk\jre\
    lib\rt.jar]
    [Loaded java.io.DataInput from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.DataInputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.zip.ZipFile$ZipFileInputStream from C:\oracle\BIToolsHome_1\jd
    k\jre\lib\rt.jar]
    [Loaded java.util.zip.InflaterInputStream from C:\oracle\BIToolsHome_1\jdk\jre\l
    ib\rt.jar]
    [Loaded java.util.zip.ZipFile$1 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.util.zip.Inflater from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.Math from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.security.PrivilegedActionException from C:\oracle\BIToolsHome_1\jdk
    \jre\lib\rt.jar]
    [Loaded java.util.jar.Manifest from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.ByteArrayInputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt
    .jar]
    [Loaded java.util.jar.Attributes from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar
    [Loaded java.util.jar.Manifest$FastInputStream from C:\oracle\BIToolsHome_1\jdk\
    jre\lib\rt.jar]
    [Loaded sun.nio.cs.UTF_8 from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded sun.nio.cs.UTF_8$Decoder from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar
    [Loaded sun.nio.cs.Surrogate$Generator from C:\oracle\BIToolsHome_1\jdk\jre\lib\
    rt.jar]
    [Loaded java.util.jar.Attributes$Name from C:\oracle\BIToolsHome_1\jdk\jre\lib\r
    t.jar]
    [Loaded java.util.jar.JarVerifier from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.ja
    r]
    [Loaded java.io.ByteArrayOutputStream from C:\oracle\BIToolsHome_1\jdk\jre\lib\r
    t.jar]
    [Loaded java.io.IOException from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.io.FileNotFoundException from C:\oracle\BIToolsHome_1\jdk\jre\lib\r
    t.jar]
    Exception in thread "main" java.lang.NoClassDefFoundError: oracle/apps/xdo/rdfpa
    rser/rtftemplategenerator
    [Loaded java.lang.StackTraceElement from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.
    jar]
    [Loaded java.lang.Shutdown from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    [Loaded java.lang.Shutdown$Lock from C:\oracle\BIToolsHome_1\jdk\jre\lib\rt.jar]
    C:\>java.exe -verbose -cp C:\OraHome_1\j2ee\home\applications\xmlpserver\xmlpser
    ver\WEB-INF\lib\xdocore.jar;C:\OraHome_1\j2ee\home\applications\xmlpserver\xmlps
    erver\WEB-INF\lib\collections.jar;C:\OraHome_1\j2ee\home\applications\xmlpserver
    \xmlpserver\WEB-INF\lib\versioninfo.jar;C:\OraHome_1\j2ee\home\applications\xmlp
    server\xmlpserver\WEB-INF\lib\xdoparser.jar;C:\OraHome_1\j2ee\home\applications\
    xmlpserver\xmlpserver\WEB-INF\lib\xmlparserv2-904.jar;C:\OraHome_1\j2ee\home\app
    lications\xmlpserver\WEB-INF\lib\aolj.jarC:\OraHome_1\j2ee\home\applications\xml
    pserver\WEB-INF\lib\j5472959_xdo.zip oracle.apps.xdo.rdfparser.rtftemplategenera
    tor -source C:\otest -target c:\otest

    I am not sure what exactly you are looking for , but these 2 article may help.If not can you just give more detail about what exactly you need.
    http://eoracleapps.blogspot.com/2009/04/how-to-convert-oracle-reports-in-bi.html
    http://eoracleapps.blogspot.com/2009/05/reports-with-bi-publisher-enterprise.html
    [email protected]

  • File Explorer File Enumeration Slowdown in Windows 8.1 - Why?

    File enumeration in Windows 8.1 appears to be slowing down.
    Here's what I mean:
    On a freshly rebooted system (i.e., with few files in the cache), open a File Explorer window on the root folder of drive C:.
    Select all the files, then right-click and choose Properties.
    TIME how long it takes to finish, and divide the number of files enumerated by the seconds it took to do the enumeration.
    Do it again now that the data is all cached.
    I've always thought this was a decent way to gauge real world file system responsiveness, and in fact it really was a pretty good benchmark up until Windows 8.1 came along.  With Windows 8(.0) and earlier, if you saw more than 30,000 files per
    second counted up, you had a very good SSD setup.
    On the workstation on which I'm typing this, my Windows 7 x64 installation would enumerate about 30,000 files per second the first time, and about 50,000 files per second the second time, from the RAM cache.  I have a very responsive I/O subsystem.
    When Windows 8 came out the numbers were about the same, if not a little better.
    When Win 8.1 was released they dropped BIG TIME.  File enumeration was something like 3 to 1 slower.
    Now, with the updates in past months, they appear to have dropped even further!
    Right now, with a fresh bootup I am seeing just under 6,000 files per second enumerated the first time, and a bit over 8,000 from the cached data.  This is DISMAL by comparison to earlier versions.
    Thankfully, typical file system performance - as measured by how long it takes to do real work on a few files in real applications - doesn't seem to have been affected as much, but then most applications don't enumerate lots of files. 
    It seems likely that this enumeration slowdown affects real operations in Explorer beyond just this file count.
    Keep in mind I can run a Windows 7 VM or Windows 8.0 VM on this same hardware and still see 30,000 files/second enumerated inside the VM.  My hardware hasn't degraded.  The older Windows systems are still just as fast.  If
    I run a Win 8.1 VM the 6 to 1 slowdown is obvious.
    That even the RAM-cached directory data can't be run through nearly as quickly in Win 8.1 says that the slowdown is in the file system implementation.
    This isn't a question about why MY workstation is slowing down - it's not.  It's about why WINDOWS is becoming less and less efficient out of the box.  I have measured and compared progressive slowdowns in virtual machine snapshots
    ranging from a fresh, out-of-box installation of Win 8 or 8.1, to one that's been run for years.  Something's becoming less efficient IN THE DESIGN.
    So...
    Why is File Explorer taking longer and longer to simply count up files in folders?
    A corollary question is:  What else is this slowdown affecting?  Explorer doesn't seem as responsive to me as it once did.
    I'd hate to think Microsoft is slipping stuff into Windows to cause it to be slower and slower since its release date, just so they can make it look like the next version is faster.
    -Noel
    Detailed how-to in my eBooks:  
    Configure The Windows 7 "To Work" Options
    Configure The Windows 8 "To Work" Options

     the slowdown is in File Explorer, rather than the file system itself.
    Want some more proof?  And proof that your system is caching the data that is needed.  And proof that stuff may be being ignored by WE which should be counted...
    In an elevated cmd window at the desired drive root enter:
    D:\>dir/a/s | findstr "File(s) Dir(s)"
    The surprise for me is the way the pipe seems to work?   Is it really a separate process that doesn't have to wait for the completion of the first stage's output?
    Anyway, I might be willing to time that--in fact, it may be possible to automate its timing--but I am definitely not interested in hanging around waiting for the number of
    minutes that WE takes to be sure I get an accurate measurement--if you know what I mean.   <eg>
    And apparently that would not be a fair comparison anyway.  WE only finds 2/3 in Size of what the dir finds.  I probably need to tweak WE's Options.  Finding only 2/3 of what another procedure is finding seems suspect even if it does
    take an absurd amount of time longer.  The funny thing is that the number of files is almost the same.  So, what does that imply: that 1/3 of the Size was contained by some very few which could not be counted?
    I should probably also try to convert that pipeline to Powershell and see how it does.  That could at least check the dir measurements in one way or another.  TBD.
    BTW I think I am now on a faster processor than I had with my tx2 but this Surface 2 Pro even with 8 GB RAM still doesn't "scream" for me.  I have noticed that its firmware shuts down cores occasionally. 
    My guess is that could be due to its lack of cooling.  My tx2 always had its fans running full.  Maybe I will get a different result if I do this test in the winter than now in the middle of summer?   <eg>
    Robert Aldwinckle

  • Converting schema in dtd using xsl

    Hey all,
    I have a problem with an xsl transformtion.
    Somewhere on the web I found a xsl-stylesheet to convert schema's into valid dtd's
    http://crism.maden.org/consulting/pub/xsl/xsd2dtd.xsl
    I've used a program from the JavaTM Web Services Developer Pack to run this xsl on existing schema's but the results are definately nothing like a dtd ... what is this n00b doing wrong .... Heeelp ...
    * @(#)Stylizer.java 1.9 98/11/10
    * Copyright 2002 Sun Microsystems, Inc. All Rights Reserved.
    * Redistribution and use in source and binary forms, with or
    * without modification, are permitted provided that the following
    * conditions are met:
    * - Redistributions of source code must retain the above copyright
    *   notice, this list of conditions and the following disclaimer.
    * - Redistribution in binary form must reproduce the above
    *   copyright notice, this list of conditions and the following
    *   disclaimer in the documentation and/or other materials
    *   provided with the distribution.
    * Neither the name of Sun Microsystems, Inc. or the names of
    * contributors may be used to endorse or promote products derived
    * from this software without specific prior written permission.
    * This software is provided "AS IS," without a warranty of any
    * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
    * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
    * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
    * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY
    * DAMAGES OR LIABILITIES SUFFERED BY LICENSEE AS A RESULT OF OR
    * RELATING TO USE, MODIFICATION OR DISTRIBUTION OF THIS SOFTWARE OR
    * ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS LICENSORS BE LIABLE
    * FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT, INDIRECT,
    * SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
    * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF
    * THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF SUN HAS
    * BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
    * You acknowledge that this software is not designed, licensed or
    * intended for use in the design, construction, operation or
    * maintenance of any nuclear facility.
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.FactoryConfigurationError;
    import javax.xml.parsers.ParserConfigurationException;
    import org.xml.sax.SAXException;
    import org.xml.sax.SAXParseException;
    import org.w3c.dom.Document;
    import org.w3c.dom.DOMException;
    // For write operation
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerException;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.TransformerConfigurationException;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.transform.stream.StreamResult;
    import java.io.*;
    public class Stylizer
        // Global value so it can be ref'd by the tree-adapter
        static Document document;
        public static void main (String argv [])
            if (argv.length != 2) {
                System.err.println ("Usage: java Stylizer stylesheet xmlfile");
                System.exit (1);
            DocumentBuilderFactory factory =
                DocumentBuilderFactory.newInstance();
            //factory.setNamespaceAware(true);
            //factory.setValidating(true);
            try {
                File stylesheet = new File(argv[0]);
                File datafile   = new File(argv[1]);
                DocumentBuilder builder = factory.newDocumentBuilder();
                document = builder.parse(datafile);
                // Use a Transformer for output
                TransformerFactory tFactory = TransformerFactory.newInstance();
                StreamSource stylesource = new StreamSource(stylesheet);
                Transformer transformer = tFactory.newTransformer(stylesource);
                DOMSource source = new DOMSource(document);
                StreamResult result = new StreamResult(System.out);
                transformer.transform(source, result);
            } catch (TransformerConfigurationException tce) {
               // Error generated by the parser
               System.out.println ("\n** Transformer Factory error");
               System.out.println("   " + tce.getMessage() );
               // Use the contained exception, if any
               Throwable x = tce;
               if (tce.getException() != null)
                   x = tce.getException();
               x.printStackTrace();
            } catch (TransformerException te) {
               // Error generated by the parser
               System.out.println ("\n** Transformation error");
               System.out.println("   " + te.getMessage() );
               // Use the contained exception, if any
               Throwable x = te;
               if (te.getException() != null)
                   x = te.getException();
               x.printStackTrace();
             } catch (SAXException sxe) {
               // Error generated by this application
               // (or a parser-initialization error)
               Exception  x = sxe;
               if (sxe.getException() != null)
                   x = sxe.getException();
               x.printStackTrace();
            } catch (ParserConfigurationException pce) {
                // Parser with specified options can't be built
                pce.printStackTrace();
            } catch (IOException ioe) {
               // I/O error
               ioe.printStackTrace();
        } // main
    }Cybu

    here is a XSD that is converted okay:
    <?xml version="1.0" encoding="UTF-8"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
         <xs:element name="pvDepot">
              <xs:complexType>
                   <xs:attribute name="pvId" type="xs:ID" use="required"/>
                   <xs:attribute name="status" type="xs:string" use="required"/>
                   <xs:attribute name="languagePivot" type="xs:string"/>
                   <xs:attribute name="versionPivot" type="xs:string"/>
                   <xs:attribute name="finalVersion" default="false">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="true"/>
                                  <xs:enumeration value="false"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="comment" type="xs:string"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="pvIndex">
              <xs:complexType>
                   <xs:choice minOccurs="0" maxOccurs="unbounded">
                        <xs:element ref="pvOOText"/>
                        <xs:element ref="pvDepot"/>
                        <xs:element ref="pvPresence"/>
                        <xs:element ref="resultatVoteAN"/>
                   </xs:choice>
                   <xs:attribute name="pvId" type="xs:ID" use="required"/>
                   <xs:attribute name="pvSittingDate" type="xs:string" use="required"/>
                   <xs:attribute name="pvSittingId" type="xs:string" use="required"/>
                   <xs:attribute name="pvStatus" default="edition">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="edition"/>
                                  <xs:enumeration value="provisional"/>
                                  <xs:enumeration value="final"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
              </xs:complexType>
         </xs:element>
         <xs:element name="pvOOText">
              <xs:complexType>
                   <xs:attribute name="pvId" type="xs:ID" use="required"/>
                   <xs:attribute name="type" default="SESSION">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="FREE"/>
                                  <xs:enumeration value="SESSION"/>
                                  <xs:enumeration value="COVERPAGE"/>
                                  <xs:enumeration value="TRANSFER"/>
                                  <xs:enumeration value="PETITION"/>
                                  <xs:enumeration value="DEPOSIT"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="status" type="xs:string" use="required"/>
                   <xs:attribute name="languagePivot" type="xs:string"/>
                   <xs:attribute name="versionPivot" type="xs:string"/>
                   <xs:attribute name="finalVersion" default="false">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="true"/>
                                  <xs:enumeration value="false"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="comment" type="xs:string"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="pvPresence">
              <xs:complexType>
                   <xs:attribute name="pvId" type="xs:ID" use="required"/>
                   <xs:attribute name="status" type="xs:string" use="required"/>
                   <xs:attribute name="finalVersion" default="false">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="true"/>
                                  <xs:enumeration value="false"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="comment" type="xs:string"/>
              </xs:complexType>
         </xs:element>
         <xs:element name="resultatVoteAN">
              <xs:complexType>
                   <xs:attribute name="pvId" type="xs:ID" use="required"/>
                   <xs:attribute name="status" type="xs:string" use="required"/>
                   <xs:attribute name="finalVersion" default="false">
                        <xs:simpleType>
                             <xs:restriction base="xs:NMTOKEN">
                                  <xs:enumeration value="true"/>
                                  <xs:enumeration value="false"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="comment" type="xs:string"/>
              </xs:complexType>
         </xs:element>
    </xs:schema>

  • USB to SPI Converter

    HiI'm trying to use USC-216 Isolated USB to SPI Converter with Labview.But I can't communicate with the unit Is someone familiar with this converter?Best regardsGuy  
    Solved!
    Go to Solution.

    Sorry about the late response
    I don’t have sample code but after I created inf file with NI driver wizard I managed to see the device by using VISA.
    Now my problem is that there is no response from the device
    The device is in bulk mode using endpoint 0 for enumeration, endpoint 1 for reception (IN endpoint) and endpoint 2 for transmission (OUT endpoint) Can you help me?
    Thank's
      Guy

  • Converting Signature data into PKCS#7 format

    Hi All,
    Is there any java api available to convert signature bytes in to PKCS#7 format.
    Here is the scenario.
    downloaded a trail digital id(abc.pfx) file from verisign site.
    then retrieved the private key, certificate and public key information from the pfx file.
    with the help of private key and pdf data, digital signature created.
    Sample code:
    KeyStore keyStore = KeyStore.getInstance("PKCS12");
    // aa.pfx is the Digital ID got from VeriSign
    keyStore.load(new FileInputStream("aa.pfx"), storepswd);
    for(Enumeration e = keyStore.aliases() ; e.hasMoreElements() ;) {
    alias = e.nextElement().toString();
    PrivateKey privKey = (PrivateKey)keyStore.getKey(alias, storepswd);
    java.security.cert.Certificate cert = keyStore.getCertificate(alias);
    PublicKey pubKey = cert.getPublicKey();
    Signature rsa = Signature.getInstance("MD5withRSA");
    rsa.initSign(privKey);
    /* Update and sign the data */
    FileInputStream fis = new FileInputStream("Testing.pdf");
    BufferedInputStream bufin = new BufferedInputStream(fis);
    byte[] buffer = new byte[1024];
    int len;
    while (bufin.available() != 0) {
    len = bufin.read(buffer);
    rsa.update(buffer, 0, len);
    bufin.close();
    /* Returns the signature of all the data updated*/
    byte[] rsaSign = rsa.sign();
    now i want to convert this signature(rsaSign bytes) in to PKCS#7 format and embed in to pdf file. so acrobat reader can verify the signature in pdf file.
    I've found the PdfSignature class in the iText lib. But it is poor.
    so plz let me know if any body know how to convert signature in to PKCS#7 format. any sample code or any URL.
    Thanks in Advance.
    Subhani.

    Use BouncyCastle provider
    http://www.bouncycastle.org/docs/mdocs1.4/index.html
    The package: org.bouncycastle.cms
    Download the package and get the examples in the package org.bouncycastle.cms.test .
    (CMS stands for Cryptographic Message Syntax and is defined in RFC 3369, and is an evolution of PKCS#7 v. 1.5, that is defined in RFC 2315. )

  • How to list the Enumeration values of a WebService in a Combo Box in VC

    Hi,
    I am trying a typical example of currency converter using Visual Composer in NWCE 7.1 EHP1.
    I am using the webservice http://www.webservicex.net/CurrencyConvertor.asmx?WSDL for this example.
    Is there any way to list all the "Currency" enumerator values in a Combo Box? Currently I am using a simple text box where one has to type in the 3 letter currency symbol manually. I would like to replace this text box with Combo box.
    Thanking in advance.
    Regards,
    Ram.

    Hi
    This can not be done Vc only "sees" the returned data in the webservice, it can not access the meta data from the webservice.
    Jarrod

  • Problem in converting char * to java objects

    Hi All,
    When I am trying to compile the following JNI code, I am getting the under-mentioned errors.
    <code>
    JNIEXPORT jboolean JNICALL Java_XXXAPI_nativeCheckSomeAccess
    (JNIEnv *jnv, jobject jobj, jstring fresource, jstring uname){
         jboolean accessible;
         int     ierror;
         // convert jstring to char pointers
         const char resname = (jnv)->GetStringUTFChars(jnv, fresource, 0);
         const char u = (jnv)->GetStringUTFChars(jnv, uname, 0);
         // pass parameters and check access
         int canAccess = checkSomeAccess(resname, user, &ierror);
         if(!ierror && canAccess == 1)
              accessible = true;
         else
              accessible = false;
         // release variables from JNI environment
         (*jnv)->ReleaseStringUTFChars(jnv, fresource, resname);
         (*jnv)->ReleaseStringUTFChars(jnv, uname, u);
         return accessible;
    the checkSomeAccess in "someCfile.h" actually looks like this:
    int checkSomeAccess(char resname, char u, <enumeration> *ptr_to_enum_containing_integers);
    </code>
    When compiled the code... I am getting the following errors:
    some_jni.c: In function `Java_XXXAPI_nativeCheckSomeAccess':
    some_jni.c:65: warning: passing arg 1 of `checkSomeAccess' discards qualifiers from pointer target type
    some_jni.c:65: warning: passing arg 2 of `checkSomeAccess' discards qualifiers from pointer target type
    some_jni.c:65: warning: passing arg 3 of `checkSomeAccess' from incompatible pointer type
    some_jni.c:67: `true' undeclared (first use in this function)
    some_jni.c:69: `false' undeclared (first use in this function)
    Please tell me, what is the problem here.
    thank you,
    Ran.

    Hi All,
    How to convert an enum in C to Java-JNI ? I have the following enum defined in C.
    typedef enum{
        ERR_NOERROR=0,
        ERR_INTERNAL,
        ERR_NOOBJECT,
        ERR_INVALIDOBJ,
    }error_t;I am using this enum in my C function (in the header file) as:
    int isSuccess(char* some_name, error_t *error);Now, while writing the JNI implementation for this, I have actually passed an integer which is giving compile time warning:
    int result;
    char *sn = (char*)(*env)->GetStringUTFChars(env, jstring_val, 0);
    int errorCode;
    result = isSuccess(sn, &errorCode);I would like to know, how to represent the enum type in JNI. It would be grateful If you provide an example code snippet.
    thanks in advance,
    Ran.

  • Convert Excel into Password Protected PDF Files

    Hello Aandi/Lenoard,
    I believe you are the Adobe Forums administrators so I thought you guys are the right people to approach.
    OTHERS ARE ALSO INVITED TO COMMENT ON THIS TOPIC.
    I have C# desktop app which generates Excel files and our goal is to convert these excel files one at a time into password protected PDF files. We use a 3rd party software currently, but I am challenging myself into saying that I can use Adobe Acrobat 9.0 SDK to achieve what is required .
    I have downloaded Acrobat 9.0 SDK and also have Adobe Professional 8.0(trail) in my development machine. Can you firstly tell me if this is possible and secondly what would be required on the client machines to run it?
    THanks,
    Andy

    "Encrypt with Password" is the policy name, not the policy id.
    Did you try enumerating the policy object to see how to set it up? I ran this from the console to get the policy details:
    var policy = security.chooseSecurityPolicy();
    for ( var i in policy )
    console.println(i + ": " + eval("policy." + i));
    That will pop up your list of policies. Choose "Encrypt with Password" and hit Apply, which returned the following:
    policyId: SP_STD_default
    name: Encrypt with Password
    description: This policy will allow you to set an open or modify password on a document.
    handler: Adobe.Standard
    target: document
    Of course, all you really need are the policyId, handler and target. Make sure you read and thoroughly understand the security requirements documented in the API reference for this method as well.

Maybe you are looking for