Adaptor Module creating wrong version of class

Hi Guys,
I wonder if anyone can possibly shed any light on the following problem.
I am trying to create an instance of apache Axis' MessageFactory
However every time the Adaptor Module (Called ClientAuthentication) is called the following class is created - copied from the Message Display Tool
ClientAuthentication: com.sap.engine.services.webservices.jaxm.soap.MessageFactoryImpl created
I have the following in my imports
import org.apache.axis.soap.MessageFactoryImpl;
import javax.xml.soap.SOAPBody;
import javax.xml.soap.SOAPEnvelope;
import javax.xml.soap.SOAPHeader;
import javax.xml.soap.SOAPMessage;
import javax.xml.soap.SOAPPart;
And, at this stage, I have explicitly referenced the axis class when creating the instance:
// MessageFactory mf = MessageFactory.newInstance();
// Creating com.sap.engine.services.webservices.jaxm.soap.SOAPMessageImpl
javax.xml.soap.MessageFactory mf= org.apache.axis.soap.MessageFactoryImpl.newInstance();
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "ClientAuthentication: " + mf.getClass().getName() + " created");
Looking at the class in the exported EJB via a decompiler shows
MessageFactory mf = MessageFactoryImpl.newInstance();
Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS, "ClientAuthentication: " + mf.getClass().getName() + " created");
And the result is a com.sap.engine.services.webservices.jaxm.soap.MessageFactoryImpl is created resulting in the wrong SOAPMessage which crashes when returning it's SOAPPart
Any help would be appreciated,
John

Hi,
It is possible to bypass the call to an implementation of MessageFactory and ensure the axis library is used to create the SOAPEnvelope using
org.apache.axis.message.SOAPEnvelope env = new org.apache.axis.message.SOAPEnvelope();
env.setSAAJEncodingCompliance(true);
org.apache.axis.Message iSoapMessage = new org.apache.axis.Message(env);
iSoapMessage.setMessageType("request");
SOAPMessage sm = iSoapMessage;
Instead of
javax.xml.soap.MessageFactory mf= org.apache.axis.soap.MessageFactoryImpl.newInstance();
SOAPMessage sm = mf.createMessage();
Which wasn't returning the right implementation of MessageFactory and hence SOAPEnvelope.
The addDocument to the SOAPBody is still crashing the same way, but this questionis answered.
All the best,
John

Similar Messages

  • Function Modules for creating production version.

    Hi,
    Is there any function module available in SAP to create Production version?
    I'm aware of CM_FV_PROD_VERS_MAINTAIN function module but this one works on dialog mode.
    Please let me know if there are any other function module/class available to create production version.
    Many Thanks!
    James....

    Dear,
    For  C223 production version,
    CM_FV_PROD_VERS_MAINTAIN
    CM_FV_PROD_VERS_SAVE
    Please refer this thread,
    Re: Create "Production version".
    Regards,
    R.Brahmankar

  • Initialization error : class file has wrong version 49.0, should be 45.3 or

    I have Jdeveloper Base installation and JDK 1.5..the classpath and JAVA_HOME environment variables are set to the respective JDK1.5\bin folders. Even then when i try to make a web application, with a simple JSP page i get the following error :
    Initialization error: class file has wrong version 49.0, should be 45.3 or 46.0 or 47.0 or 48.0 on CLASSPATH ..(followed by a long list of paths)
    pls help,
    thanks

    i have windows XP. i have tried to unset the class path...i get the same error.
    i have JDeveloper 10g 10.1.2.
    i have changed the jdev.conf file to set the Java Home to the path that contains the JDK 1.5..

  • Error: invalid file 'java/lang/Object.class' (wrong version: 48, expected 4

    hi all
    ive installed jdk1.4.1 from jdk1.3 .
    When i try to compile a java file i get this error.
    Error: invalid file 'java/lang/Object.class' (wrong version: 48, expected 45)
    anyone has any idea abt this.
    im stuck :( pls help.
    thanks
    Jan

    Did you uninstall 1.3 completely? Completely in the sense both jdk and jre.
    You may get this error if you use javac of one version and the rt.jar of another version.
    Sudha

  • Class file has wrong version 51.0,should be 49.0

    Dear All,
    I have 2 jdk in my computer, one is 1.7 and another is 1.5. I got a eclipse from my co-worker, checkout project from svn, complied it successful. However, there is error : class file has wrong version 51.0,should be 49.0 when I run it in eclipse( this is google gwt project).
    One of my colleague said I should modify one cache file under the eclipse direcotry, but he forgot the loaction of this file.
    Anyone knows?

    After modified this file : org.eclipse.jdt.launching.prefs under : <project folder>\.metadata\.plugins\org.eclipse.core.runtime\.settings,
    this problem has been fixed.
    The modification is :
    add
    <libraryLocations>\r\n<libraryLocation
    jreJar\="D\:/Java/jdk7/jre/lib/resources.jar"
    jreJavadoc\="http\://docs.oracle.com/javase/7/docs/api/"
    jreSrc\="D\:/Java/jdk7/src.zip" pkgRoot\=""/>\r\n
    to it.
    eclipse is :
    Eclipse Java EE IDE for Web Developers.
    Version: Luna Release (4.4.0)
    Build id: 20140612-0600
    my questions are :
    1. what is this file used for?
    2. when use this file?
    3. why I have to add these information to it by hand rather than generate these automatically when I set jdk in eclipse preference?
    4. why this error occur if this file doesn't has <libraryLocations> when running project(the project compile success before running)?

  • Accessing SOAP header information in a custom adaptor module

    Hi Guys,
    Could anyone point me in the direction of information on how to access the SOAP:Header element when writing a custom adaptor module for a http/ SOAP communication channel?
    I'm trying to add some WS-Security stuff which isn't available in XI 3.0.
    Many thanks,
    John

    The solution is as follows:
    Mark as Do Not Use SOAPEnvelope in the communication channel.
    It may be possible to use the SAP implementation of MessageFactory, SOAPEnvelope etc., I forced XI the Apache Axis implementation, a thread on which can be found here Link: [Accessing SOAP header information in a custom adaptor module;
    The SOAP Envelope is created by
    javax.xml.soap.MessageFactory mf= org.apache.axis.soap.MessageFactoryImpl.newInstance();
    This doesn't work it creates a com.sap.engine.services.webservices.jaxm.soap.SOAPMessageImpl
    org.apache.axis.message.SOAPEnvelope env = new org.apache.axis.message.SOAPEnvelope();
    org.apache.axis.Message iSoapMessage = new org.apache.axis.Message(env);
    SOAPMessage sm = iSoapMessage;
    SOAPBody iBody = se.getBody();
    if(iBody!=null)
         iBody.addDocument(iDoc);
         addDocument failed for some reason when called in XI returning
         Exception caught by adapter framework: Exception in method process.
         The code below is copied straight from the addDocument method, but it works.
         org.w3c.dom.Element iDocRoot= iDoc.getDocumentElement();
         org.apache.axis.message.SOAPBodyElement bodyElement = new org.apache.axis.message.SOAPBodyElement(iDocRoot);
         iBody.addChildElement(bodyElement);
    In order to get a document representation of the Envelope you can use
    Document iEnvelopeDoc = ((org.apache.axis.message.SOAPEnvelope)env).getAsDocument();
    You are now in a position to add or adjust the SOAP Envelope as your require. It enabled me to add WS-Security information to a message.
    It is normally possible to use javax.xml.transform.Transformer on the various classes SOAPEnvelope, SOAPBody etc. as they implement Node. However doing this in XI caused a crash.
    The final document can be then be set in the xmlPayload before being sent out the door.
    Hope this helps someone,
    John

  • Dump while creating Planning Version

    Hi,
    While I am Creating Panning Version Through /SAPAPO/MVM
    its giving Dump
    What happened?
    Error "-4016" occurred in the current database connection "LCA".
    Exception
    Exception Class                  CX_SY_NATIVE_SQL_ERROR
    Error analysis
    An exception occurred. This exception is dealt with in more detail below
    . The exception, which is assigned to the class 'CX_SY_NATIVE_SQL_ERROR', was
    neither
    caught nor passed along using a RAISING clause, in the procedure
    "/SAPAPO/OM_PLAN_VERSION_GET" "(FUNCTION)"
    Since the caller of the procedure could not have expected this exception
    to occur, the running program was terminated.
    The reason for the exception is:
    Missing RAISING Clause in Interface of:
    Program Name                     /SAPAPO/SAPLOM_CORE
    Include                          /SAPAPO/LOM_CORE$11
    Row                              5
    Module type                      (FUNCTION)
    Module Name                      /SAPAPO/OM_PLAN_VERSION_GET
    Trigger Location of Exception:
    Program Name                     /SAPAPO/SAPLOM_CORE
    Include                          /SAPAPO/LOM_COREU11
    Row                              31
    Module type                      (FUNCTION)
    Module Name                      /SAPAPO/OM_PLAN_VERSION_GET
    ""Lokale Schnittstelle:
    *"  IMPORTING
    *"     REFERENCE(IT_PLAN_VERSION_ID) TYPE
    *"        /SAPAPO/OM_PLAN_VERSION_ID_TAB
    *"  EXPORTING
    *"     REFERENCE(ET_PLAN_VERSION) TYPE  /SAPAPO/OM_PLAN_VERSION_TAB
    *"     REFERENCE(ET_RC) TYPE  /SAPAPO/OM_LC_RC_TAB
    *"  EXCEPTIONS
    *"      LC_CONNECT_FAILED
    *"      LC_COM_ERROR
    *"      LC_APPL_ERROR
    Variablen:
       DATA: lv_rc             TYPE /sapapo/om_lc_rc_str,
             lv_subrc_sav      LIKE sy-subrc,
             ls_gen_com_params TYPE /sapapo/om_gen_com_params.
    Allg. Parameterstruktur füllen (Planversionsdaten werden im liveCache
    mandantenübergreifend abgespeichert):
       create_gen_com_params_1 gc_om_simsession_def.
       CLEAR ls_gen_com_params-client.
       start_function 'OM_PLAN_VERSION_GET'.                     "#EC *
    Verbindung zum liveCache aufbauen
       check_server.
       connect_to_livecache.
    COM-Routine zum Auslesen von Propagationsbereichen
       EXEC SQL.
         EXECUTE PROCEDURE                  "APS_PLAN_VERSION_GET" (
          EXECUTE PROCEDURE                  "APS_PLAN_VERSION_GET" (
    000320                           IN  :LS_GEN_COM_PARAMS,
    000330                           OUT :LV_RC,
    000340                           IN  :ET_RC,
    000350                           IN  :IT_PLAN_VERSION_ID,
    000360                           IN  :ET_PLAN_VERSION)
    000370     ENDEXEC.
    000380     lv_subrc_sav = sy-subrc.
    000390     end_function om_plan_version_get it_plan_version_id.
    000400   * Returncodes pruefen und evtl. Exception raisen
    000410     check_returncodes.
    000420   ENDFUNCTION.
    Thanks
    sreeni

    Dear Sreenivasu ,
    you should upgrade to the lastest available LCA build in your current Release.
    If you have scm 5.0 then this is the LCA build 17. The corresponding installation note is 1275061.
    If you have other release you can find the necessary LCA build as per instructions in note 753528.
    This should solve the error!                                        
    Regards,
    Tibor

  • Wrong version of an entity bean object being updated

    We are having a problem with an entity bean that uses bean managed persistence. The "order" entity bean has
    been used as part of our Order Routing System for the last 2 years with no problems. The entity bean is
    accessed via calls from a "Order Manager" session bean. No change has been done to the entity bean but the
    frequency of calls from the session bean to update the entity bean have increased significantly.
    The "order" entity bean wraps an Order object that contains order properties (i.e. id, quantity, price,
    version, etc). The entity bean has a "void setOrder(Order param)" function that writes the Order to a database
    and a "Order getOrder()" function that clones and returns the internal Order object. The "ejbLoad()" function
    reads the Order object from the database and the "ejbStore()" function is not implemented.
    The "OrderEntityPK ejbFindByPrimaryKey()" function checks if the order entity primary key (an "int") exists
    on the database.
    We are using the SilverStream 3.5 application server as our EJB container. According to the SilverStream manual
    it does not maintain a pool of idle/unused entity beans, instead it instantiates beans as requested.
    Our problem is:
    1) The wrong version of the entity object is sometimes being updated (i.e. an old instance of the order entity is being
    picked up and updated on the database).
    2) We sometimes get a TransactionRequired exception thrown when we have concurrent updates to two different
    objects of the entity bean.
    Any idea as to what our problem could be?
    Thanks in advance for your help,
    The following are the main code snippets:
    Original Code
    Session Bean A
    Method 1 --- gets entity Bean B and calls a method on a different object passing this entity bean
              in as a parameter to enable a method on this bean to be called.
    EntityBean lOrderEntity = findOrderEntity(callerUnixLogin, currOrderId);
                   currOrder = lOrderEntity.getOrder();
                   //Logic to update the currOrder object via a method call.
                   persistManager.persistOrder(lOrderEntity, callerUnixLogin, currOrder, psTransactionType);
         persistManager.persistOrder Method:
                   lOrderEntity.setOrder(callerUnixLogin, order);
         findOrderEntity method:
    OrderEntity lOrderEntity = null;
              OrderEntityBeanPK orderPK = new OrderEntityBeanPK(orderId);
              try
                   if (orderEntityHome == null)
                        connectToOrderEntityBean(callerUnixLogin);
                   lOrderEntity = orderEntityHome.findByPrimaryKey(orderPK);
              ... etc
    Current Code
    Session Bean C
    Method 2 ---- calls method 1 in Session Bean A
    Calls to method 2 above happens in quick succession.
    OrderEntityBean class
    ... important methods ...
         private Order order = null;
         public OrderEntityBeanPK ejbFindByPrimaryKey(OrderEntityBeanPK primaryKey)
              throws FinderException, RemoteException, DBOException
              try
                   orderObjectManager.orderIdExists(primaryKey.orderId);
              catch (OMOrderValidationException exc)
                   throw new FinderException(exc.getMessage());
              return primaryKey;
         public void setOrder(String userUnixLogin, Order newOrder)
              throws EJBException, RemoteException, DBOException, OMFormattingException, OMOrderValidationException
              callerUnixLogin = userUnixLogin;
              int version = newOrder.getOrderVersion().intValue();
              if (order.getOrderVersion().intValue() == version)
                   order = null;
                   order = newOrder;
                   Integer newVersion = new Integer(version + 1);
                   order.setOrderVersion(newVersion);
                   newVersion = null;
                   order.setSysUser(callerUnixLogin);
                   orderObjectManager.updateOrder(callerUnixLogin, order);
              else
                   Debug.Print(userUnixLogin, "OrderEntityBean.setOrder: wrong version number for order " + newOrder.getOrdId() +
                        ": expected " + order.getOrderVersion() + " and got " + newOrder.getOrderVersion(), 0);
                   throw new OMOrderValidationException("wrongVersion", order, order.getOrdId(), IName.Order.VERSION, newOrder.getOrderVersion());
         public Order getOrder()
              throws EJBException, RemoteException
    return ((Order)order.clone());
    The following transactions exists for the entity bean ...
    Required:
         create and setOrder methods
    Not Supported
         findByPrimary and getOrder methods

    "The entity bean has a "void setOrder(Order param)" function that writes the Order to a database"
    This functionality should be performed in the ejbStore method().
    "a "Order getOrder()" function that clones and returns the internal Order object."
    Sounds reasonable, except for the cloning part.
    "The "ejbLoad()" function reads the Order object from the database"
    Cool.
    ""ejbStore()" function is not implemented."
    Whoops. Looks like your setOrder method is doing too much. It should do the inverse of getOrder (namely, setting the interal Order object), nothing more. Defer the persistence code to the ejbStore method.
    "According to the SilverStream manual it does not maintain a pool of idle/unused entity beans, instead it instantiates beans as requested."
    Manual? What's that? Assuming that is correct, better hope you don't ever get a high load. You might wanna look into JBoss.
    "2) We sometimes get a TransactionRequired exception thrown when we have concurrent updates to two different objects of the entity bean."
    How can you have concurrent access to two different objects?? Concurrency is inherently applicable to only one object.
    In summary:
    Write your beans properly, ejbLoad populates the bean with data, ejbStore persists the bean's data.
    Get a better (and possibly free) appserver.

  • Tomcat 6.0.18, Cannot create JDBC driver of class '' for connect URL 'null'

    hi,
    I have searched through the web, none of the solution works for me. Hope I could get some suggestion from you.
    I am running tomcat 6.0.18 + eclipse 3.4.1 + jre 1.6 + jsp + jsf + mysql 5.0 on Ubuntu 8.10.
    The <GlobalNamingResources> configuration of TOMCAT_HOME/conf/server.xml
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/db" auth="Container"
    type="javax.sql.DataSource"
    factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/db?autoReconnect=true"
    username="xxx"
    password="xxx"
    maxActive="20"
    maxIdle="10"
    poolPreparedStatements="true" />
      </GlobalNamingResources>TOMCAT_HOME/conf/context.xml
    <Context>
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
        <!-- Uncomment this to enable Comet connection tacking (provides events
             on session expiration as well as webapp lifecycle) -->
        <!--
        <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
        -->
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                
    </Context>An additional context.xml at eclipse'sworkspace/MyApplication/WebContent/META-INF
    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                  
    </Context>web.xml of my application
      <resource-ref>
          <description>DB Connection</description>
          <res-ref-name>jdbc/db</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
      </resource-ref>This is the current configuration of the application, before this, I have followed the guidance of:
    [Apache Tomcat 6.0 JNDI Datasource HOW-TO|http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations]
    and all the solutions from
    [Cannot create JDBC driver of class..|http://www.theserverside.com/discussions/thread.tss?thread_id=25459]
    Please advice, what's going wrong?

    hi,
    I have searched through the web, none of the solution works for me. Hope I could get some suggestion from you.
    I am running tomcat 6.0.18 + eclipse 3.4.1 + jre 1.6 + jsp + jsf + mysql 5.0 on Ubuntu 8.10.
    The <GlobalNamingResources> configuration of TOMCAT_HOME/conf/server.xml
    <GlobalNamingResources>
        <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
        -->
        <Resource name="UserDatabase" auth="Container"
                  type="org.apache.catalina.UserDatabase"
                  description="User database that can be updated and saved"
                  factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                  pathname="conf/tomcat-users.xml" />
    <Resource name="jdbc/db" auth="Container"
    type="javax.sql.DataSource"
    factory="org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory"
    driverClassName="com.mysql.jdbc.Driver"
    url="jdbc:mysql://localhost:3306/db?autoReconnect=true"
    username="xxx"
    password="xxx"
    maxActive="20"
    maxIdle="10"
    poolPreparedStatements="true" />
      </GlobalNamingResources>TOMCAT_HOME/conf/context.xml
    <Context>
        <!-- Default set of monitored resources -->
        <WatchedResource>WEB-INF/web.xml</WatchedResource>
        <!-- Uncomment this to disable session persistence across Tomcat restarts -->
        <!--
        <Manager pathname="" />
        -->
        <!-- Uncomment this to enable Comet connection tacking (provides events
             on session expiration as well as webapp lifecycle) -->
        <!--
        <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" />
        -->
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                
    </Context>An additional context.xml at eclipse'sworkspace/MyApplication/WebContent/META-INF
    <?xml version="1.0" encoding="UTF-8"?>
    <Context>
    <ResourceLink global="jdbc/db" name="jdbc/db" type="javax.sql.DataSource"/>                  
    </Context>web.xml of my application
      <resource-ref>
          <description>DB Connection</description>
          <res-ref-name>jdbc/db</res-ref-name>
          <res-type>javax.sql.DataSource</res-type>
          <res-auth>Container</res-auth>
      </resource-ref>This is the current configuration of the application, before this, I have followed the guidance of:
    [Apache Tomcat 6.0 JNDI Datasource HOW-TO|http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html#Database%20Connection%20Pool%20(DBCP)%20Configurations]
    and all the solutions from
    [Cannot create JDBC driver of class..|http://www.theserverside.com/discussions/thread.tss?thread_id=25459]
    Please advice, what's going wrong?

  • How do I call an Application Module method from a EntityImpl class?

    Guys and Gals,
    Using Studio Edition Version 11.1.1.3.0.
    I've got a price update form, that when submitted, takes the part numbers and prices in the form and updates the corresponding Parts' price in the Parts table. Anytime this Parts view object's ReplacementPrice attribute is changed, an application module method needs to be called which updates a whole slew of related view objects. I know you can modify view objects via associations (How do I call an Application Module method from a ViewObjectImpl class? but that's not what I'm trying to do. These AppModuleImpl methods are the hub for all price updates, as many different operations may affect related pricing (base price lists, price buckets, etc) and hence, call the updatePartPricing(key) method.
    For some reason, the below code does not call / run / activate the application module's method. The AppModuleDataControl exists and recordPartHistory(key) is registered and public. At runtime, the am.<method> code is simply ignored, and as a weird side-effect, I cannot navigate out of my current page flow.
      public void setReplacementPrice(Number value)
        setAttributeInternal(REPLACEMENTPRICE, value);
        AppModuleImpl am = (AppModuleImpl)this.getDBTransaction().findApplicationModule("AppModuleDataControl");
        Key key = new Key(new Object[]
            { getPartNumber() });
        am.recordPartHistory(key);  // AppModuleImpl method which records pricing history
        am.updatePartPricing(key); // AppModuleImpl method which updates a whole slew of related pricing tables
      }Any ideas?

    Thanks Timo.
    Turns out the code provided was correct, but the AppModuleImpl method being called was not. A dependent ViewObject wasn't returning the row I was expecting. I then tried to perform some operations on that row, which in turn ... just stopped everything, but didn't give me an error.
    It was the lack of the error that threw me off. I had never messed with calling an AppModuleImpl method from the EntityImpl so I assumed that's what was messing up.
    You are correct. It is available from the ViewRow, but I thought it better to put it in the EntityImpl. This method will be called every time the replacement cost is modified. If I didn't put it in the EntityImpl, I'd have to remember to call it every time a replacement cost changed.

  • Aperture creating new versions unexpectedly

    One of my projects in Aperture started behaving unexpectedly yesterday and I still haven't figured out why. I was reviewing proofs with a client and we were making selections and adjustments to some of the images. We were working in a smart album that was filtered on 5-star ratings. We made a few new versions of some of these images within the smart album, made adjustments, and ultimately selected her picks by adding the keyword "pick" to her selected images. In retrospect I probably will change that flow so that when I make my original selects I will rate them as a 4-star and then up it to a 5-star when the client makes their picks.
    But for now, back to the problem. All was going well with the workflow until I tried to rearrange some of the images within the smart album. When I dragged the first image to a new location it created new versions of several images. I think this happened multiple times before I realized what had happened, so before I new it the album was filled with duplicate versions. I deleted the duplicate versions, but I find that they keep cropping up unexpectedly. If I go to the parent project and then return to the smart album, it makes a duplicate version of every image in the album.
    A light table and a book within the project are now also giving me trouble in that they claim to have images in them, but even with all queries turned off they do not show any of the images (and yes, the "show all images" button is selected).
    Any thoughts on what could be wrong?
    G5   Mac OS X (10.4.3)  

    Mmm...I don't think this explanation tells the whole story.
    Dragging an image out of the project container and into an enclosed (non-smart) album does NOT automatically generate a new version of the master image local to that album; instead, the album is populated with a new reference to the original version. Dragging that same image again out of the project container - or the first album - to yet another album generates yet another reference to the same underlying version.
    Edits performed in any of these containers propagate to the images in all containers (within a particular project, of course), demonstrating that each type of container holds merely a reference to the project's single original version.
    The Aperture User Manual is a bit ambiguous in its description (Chapter 5 pg 113) of the distinction between "copying" and "moving" images between projects and albums; I believe that when it refers to copying versions it's really talking about copying REFERENCES to versions between various containers.
    So, long story short, I don't think moving images between the various types of containers within a single project can explain your duplicated images.
    15" Alu PB 1.25GHZ G4 FW800 1GB RAM 100GB HDD   Mac OS X (10.4.6)   Aperture 1.1.1

  • Error while receivind a pdu - wrong version  grrr

    Hi,
    I work on Solaris 8.0 and I installed SDK toolkit. I wrote my own subagent starting with the demoAgent into the toolkit.
    I created X.acl and X.reg
    Also, I configured into snmpdx.acl my traps exactly like I did into my X.acl
    I started snmpdx in debug mode (-d 4) and from another window I started my subagent X
    I receive this error from snmpdx agent:
    error while receiving a pdu from hostname.164: The message has a wrong version (2)SESSIONS:
    Where hostname is the name of my hostname hehe.
    Any clues?
    Thanks
    Danielle

    Some playing with
    http://java.sun.com/j2se/1.5.0/docs/api/java/io/StringReader.html
    should get you want you want.

  • Create AAC Version failing in iTunes 8 for large files

    Hi,
    I'm having trouble converting a few large (1gb+) MP3 files to AAC versions.
    The files are Audiobooks which have been ripped from CD, then merged into a single MP3 file (with a track CUE file created so I can add the chapter marks and create a final resulting M4B file).
    The MP3 files are all encoded at 44.1KHz sample rate, 64Kbps bitrate, Mono audio. When converting anything under 1GB (using iTunes' Create AAC Version option), it seems to convert fine, however as soon as I try a file over 1GB it seems to start as expected, then get approx 2/3rds through, then restart. the restart however, does not start from the beginning, it starts from the point where it had got to. The resulting M4A file is corrupt and unplayable.
    Am I doing anything wrong here, or is there some sort of size/length limitation on AAC encoded audio in MP4 containers?
    On a side note, I have set the AAC import options to 44.1KHz, 64KBps bitrate, Mono audio, but this does not seem to be adhered to when converting an MP3 file, instead taking whatever settings iTunes seems to think as right...

    Hi,
    That software looks to be working perfectly so far - not only has it changed me from using three tools to do what this one does on its own, but it's also the first that's given me a clue as to why the other tools were failing!
    When I first got it to convert the chaptered MP3 files across to AAC, it came up with a warning message saying something along the lines of "The audio files you have queued are a total of x,xxx,xxx,xxx frames long, which is longer than the AAC standards can accomodate. The following tracks will be removed...". Looks like it wasn't the filesize at all, but the bitrate was too high, and went over the file's limits that way instead.
    Quick note on the settings: I tried the iTunes standard "64K Podcast" settings first of all, but the sample rate got set to 22K, which caused the speech to go all robot-like, and the S's slurred. Had to bump it back up to 44K (with 32K stereo bitrate, set to mono so 16K overall).
    Overall, a very useful tool, thanks Chris!

  • I do not have the ability to edit my .pdf once converted into a word document. Did I purchase the wrong version?

    When I covert my pdf into a word document it does not allow me to edit the actual text. I can add random text to the document, not following the format of the document (not aligned, not the same font, etc.). I can add text, but I cannot what is already in a sentence or paragraph.
    Did I purchase the wrong version?
    Thanks,
    Cindy.

    Hi cindyjay,
    You have the right tool for converting PDF files to Word. For starters, please try triple-clicking in the text block that you want to edit. If that doesn't work, we'll need to take a closer look at how the PDF that you converted was created (did it start out as a scanned document, for example). If it did start as a scanned document, it's important that OCR (optical character recognition) was performed during conversion to convert scanned text to editable text. OCR is on by default when you convert via the ExportPDF website, but can be turned off if you convert via Reader.
    If triple-clicking doesn't work, let me know, and then we'll take a closer look at your file.
    Best,
    Sara

  • SharePoint Designer workflow - update list item field without creating new version?

    Hello,
    I have a list that uses versioning.
    I have a workflow, designed in SharePoint Designer, that will track changes in some columns, and if there is a change it will send out an email.
    To track the changes eg in the Status column, I have a hidden "OldStatus" column so I can compare the current value with the previous value.
    If it's different it means it has been changed, and I send out an email, then update the OldStatus with the current value so they're in sync again.
    Problem I have now is that when I update the OldStatus column in my workflow it will create a new version of the listitem. I don't want that. This is a system value change and has no value at all to the end user.
    In C# I can do a systemupdate to avoid this, but how can I do this in SharePoint Designer?
    Please don't tell me I should write the entire workflow in code, only to get access to the systemupdate command....

    I created a Worfklow Activity class, called "UpdateFieldInCurrentItemSilentMode".
    I add the default context properties to work with:
    #region Context properties
    public static DependencyProperty __ContextProperty = DependencyProperty.Register("__Context", typeof(WorkflowContext), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions")]
    [Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public WorkflowContext __Context
    get
    return ((WorkflowContext)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ContextProperty, value);
    public static DependencyProperty __ListIdProperty = DependencyProperty.Register("__ListId", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public string __ListId
    get
    return ((string)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListIdProperty, value);
    public static DependencyProperty __ListItemProperty = DependencyProperty.Register("__ListItem", typeof(int), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public int __ListItem
    get
    return ((int)(base.GetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty)));
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ListItemProperty, value);
    public static DependencyProperty __ActivationPropertiesProperty = DependencyProperty.Register("__ActivationProperties", typeof(SPWorkflowActivationProperties), typeof(UpdateFieldInCurrentItemSilentMode));
    [ValidationOption(ValidationOption.Required)]
    public SPWorkflowActivationProperties __ActivationProperties
    get
    return (SPWorkflowActivationProperties)base.GetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty);
    set
    base.SetValue(UpdateFieldInCurrentItemSilentMode.__ActivationPropertiesProperty, value);
    #endregion
    Then I add my own input parameters to work with:
    public static DependencyProperty StaticFieldNameProperty = DependencyProperty.Register("StaticFieldName", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string StaticFieldName
    get
    return Convert.ToString(base.GetValue(StaticFieldNameProperty));
    set
    base.SetValue(StaticFieldNameProperty, value);
    public static DependencyProperty FieldValueProperty = DependencyProperty.Register("FieldValue", typeof(string), typeof(UpdateFieldInCurrentItemSilentMode));
    [Category("My Workflow Actions"), Browsable(true)]
    [DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
    public string FieldValue
    get
    return Convert.ToString(base.GetValue(FieldValueProperty));
    set
    base.SetValue(FieldValueProperty, value);
    Then the actual workflow action code:
    protected override ActivityExecutionStatus Execute(ActivityExecutionContext executionContext)
    try
    if (this.__Context == null)
    throw new Exception("__Context is NULL");
    if (this.__Context.Site == null)
    throw new Exception("__Context.Site is NULL");
    //reload the web using the SPSite object to work around any limitations on the objects
    //applied to the user running the workflow
    SPWeb tmpweb = __Context.Web;
    SPSecurity.RunWithElevatedPrivileges(delegate()
    using (SPSite site = new SPSite(tmpweb.Url))
    using (SPWeb web = site.OpenWeb())
    //load list
    SPList lst = web.Lists[new Guid(__ListId)];
    //load listitem
    SPListItem item = lst.GetItemById(__ListItem);
    //update field value
    item[this.StaticFieldName] = this.FieldValue;
    //commit changes
    item.SystemUpdate();
    //return success workflow status
    return ActivityExecutionStatus.Closed;
    catch (Exception exc)
    string sMsg = "Error in 'UpdateFieldInCurrentItemSilentMode':" + Environment.NewLine
    + exc.Message + Environment.NewLine + Environment.NewLine +
    "StaticFieldName: " + this.StaticFieldName + Environment.NewLine +
    "FieldValue: " + this.FieldValue;
    Common.WriteErrorToLog(sMsg);
    //return failed workflow status
    return ActivityExecutionStatus.Faulting;
    Note: the WriteErrorToLog function is a custom function that writes the error to the event log. It's located in another class. You can replace it with your own error handling approach.
    Then we need to specify the workflow action in the .actions file, so SharePoint Designer knows about it and which parameters are required:
    <Action Name="Set field in current item (silent mode)"
    ClassName="My.WorkflowActions.UpdateFieldInCurrentItemSilentMode"
    Assembly="My.WorkflowActions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=0f8d2d9e2dfb2160"
    AppliesTo="all"
    Category="My Workflow Actions">
    <RuleDesigner Sentence="Set field %1 in current item to value %2 (silent mode)">
    <FieldBind Field="StaticFieldName" DesignerType="ParameterNames" Id="1" Text="StaticFieldName" />
    <FieldBind Field="FieldValue" DesignerType="ParameterNames" Id="2" Text="FieldValue" />
    </RuleDesigner>
    <Parameters>
    <Parameter Name="StaticFieldName" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="FieldValue" Type="System.String, mscorlib" DesignerType="ParameterNames" Direction="In" />
    <Parameter Name="__Context" Type="Microsoft.SharePoint.WorkflowActions.WorkflowContext" Direction="In" />
    <Parameter Name="__ListId" Type="System.String, mscorlib" Direction="In" />
    <Parameter Name="__ListItem" Type="System.Int32, mscorlib" Direction="In" />
    <Parameter Name="__ActivationProperties" Type="Microsoft.SharePoint.Workflow.SPWorkflowActivationProperties, Microsoft.SharePoint" Direction="Out" />
    </Parameters>
    </Action>
    That is all you need for the specific code, the rest is common code to build custom workflow actions, which you can find on many blogposts or this forum.

Maybe you are looking for

  • Topic Text disappears when upgrading to RoboHelp 7

    When upgrading a French webhelp project from RoboHelp 5 to RoboHelp 7, the topic text is deleted in context-sensitive help topics. When you click the Help button in the application, the topic appears, but is blank. When I rechecked the input, the top

  • Entity won't calculate

    We are running HFM 11.1.1.3.0. In trying to open our HFM application for July processing, we encountered one base entity that refuses to be calculated. When we attempt to calculate in the process control screen, the process finishes immediately, no e

  • Where is the user guide?

    Anybody has any idea where the Lion user guide is? Is it even part of the Lion download?

  • Please I really need a help!

    I am trying to use this kind of font: www.asappaving.com , where it says: ASAPPAVING, so what kind of product of adobe I could use to do this. Please I would appreciate if somebody could help me with that. Thanks

  • Update/upgrade older iMac

    I'm a computer novice. My older iMac is no longer able properly to use many current websites and I get messages saying update to safari of firefox; but to get current versions of safari or firefox I need something beyond Mac OS X v 10.1.5, my current