CONTAINER:atg.service.pipeline.RunProcessException: An exception was thrown from the context of the link named [loadCommerceItemObjects].; SOURCE:java.lang.RuntimeException:

Can Any one help me in finding the cause of following error
16:18:27,565 INFO  [PipelineManager] DEBUG Cancel Link Transaction
16:18:27,565 INFO  [PipelineManager] DEBUG Transaction is TX_MANDATORY
16:18:27,565 INFO  [PipelineManager] DEBUG Setting transaction to rollback
16:18:27,565 INFO  [PipelineManager] DEBUG Cancel Chain Transaction
16:18:27,565 INFO  [PipelineManager] DEBUG Transaction is TX_REQUIRED
16:18:27,565 INFO  [PipelineManager] DEBUG Setting transaction to rollback
16:18:27,565 ERROR [OrderManager]
CAUGHT AT:
CONTAINER:atg.service.pipeline.RunProcessException: An exception was thrown from the context of the link named [loadCommerceItemObjects].; SOURCE:java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (ja
        at atg.service.pipeline.PipelineChain.runProcess(PipelineChain.java:393)
        at atg.service.pipeline.PipelineChainContext.runProcess(PipelineChainContext.java:207)
        at atg.service.pipeline.PipelineManager.runProcess(PipelineManager.java:475)
        at atg.commerce.pipeline.CommercePipelineManager.runProcess(CommercePipelineManager.java:123)
        at atg.commerce.order.OrderImpl.ensureContainers(OrderImpl.java:1745)
        at atg.commerce.order.OrderImpl.getShippingGroups(OrderImpl.java:1084)
        at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.processShippingGroups(EpicorSalesAuditDataManager.java:477)
        at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.constructSalesAuditFeed(EpicorSalesAuditDataManager.java:431)
        at com.mk.integration.epicor.salesAudit.datamanager.EpicorSalesAuditDataManager.exportFullfilledOrder(EpicorSalesAuditDataManager.java:213)
        at com.mk.integration.epicor.salesAudit.processor.EpicorSalesAuditProcessor.exportFullfilledOrder(EpicorSalesAuditProcessor.java:42)
        at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.startSalesAuditExport(EpicorSalesAuditScheduler.java:65)
        at com.mk.integration.epicor.salesAudit.scheduler.EpicorSalesAuditScheduler.doScheduledTask(EpicorSalesAuditScheduler.java:49)
        at atg.service.scheduler.SingletonSchedulableService.performScheduledTask(SingletonSchedulableService.java:253)
        at atg.service.scheduler.ScheduledJob.runJobs(ScheduledJob.java:466)
        at atg.service.scheduler.Scheduler$2handler.run(Scheduler.java:782)
Caused by: java.lang.RuntimeException: CONTAINER:atg.repository.RepositoryException; SOURCE:org.jboss.util.NestedSQLException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status: ActionStatus.ABORT_ONLY >; - nested throwable: (javax.resource.ResourceException: Transaction is not active: tx=TransactionImple < ac, BasicAction: -53eaeff2:f142:52c29876:2a4f status:
        at atg.adapter.gsa.GSAItemDescriptor.loadProperty(GSAItemDescriptor.java:5994)
        at atg.adapter.gsa.GSAItem.getPersistentPropertyValue(GSAItem.java:1315)
        at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1208)
        at atg.adapter.gsa.GSAItem.getPropertyValue(GSAItem.java:1405)
        at atg.repository.RepositoryItemImpl.getPropertyValue(RepositoryItemImpl.java:151)

Hi,
I seems like you don't have any active transaction. Try start or get transaction before execute your required operations.
After it, commit (or rollback, if something wrong happens) the transaction.
Hope it helps.

Similar Messages

  • SCSM 2012 R2 error 'An exception was thrown while processing ProcessDiscoveryData for session ID uuid:

    Hi All,
    My environment details:
    SCSM 2012 R2
    SCCM 2012 R2 connector configured
    When I looked into the event viewer , I find the following error occurring continuously while the SCCM 2012 synchronization
    Error Event 26319
    An exception was thrown while processing ProcessDiscoveryData for session ID uuid:xxxxx
    Exception message: The relationship source specified in the discovery data item is not valid.
    Relationship source ID: xxxx
    Rule ID: xxxxxx
    Full Exception: Microsoft.EnterpriseManagement.Common.DiscoveryDataInvalidRelationshipSourceException: The relationship source specified in the discovery data item is not valid.
    This error is accompanied by the below warning
    Event:34113
    Connector SCCM Connector -Primary Site 
    Error writing changes to entity of type Microsoft.Windows.Peripheral.LogicalDisk with DisplayName XXXXXXX
    Message: The relationship source specified in the discovery data item is not valid.
    Relationship source ID: XXXXXXX
    Rule ID: XXXXXXX
    If this error occurs with every synchronization, examine view Cached_CMv5_LogicalDisks for correctness or the schema for type Microsoft.Windows.Peripheral.LogicalDisk in management pack Microsoft.Windows.Peripheral.Library.
    Event:33333
    Data Access Layer rejected retry on SqlError:
    Request: p_RelationshipDiscovered -- (RelationshipId=f449d88a-ecbf-5b16-40be-c085391a6380), (SourceEntityId=ccdf084d-254f-0ad4-ba2e-189b75ff109a), (TargetEntityId=07734206-0880-a4ec-a638-df20ccbdcbaf), (RelationshipTypeId=e4c6f8ce-0763-51c6-6421-c424a93a1eb6),
    (DiscoverySourceId=df6eae9f-f14f-4e6e-9f3c-c1effa193fbe), (HealthServiceEntityId=34b1c704-120c-1175-9fe3-411e2c0aac30), (PerformHealthServiceCheck=False), (TimeGenerated=09/01/2015 04:15:26), (SourceEntityLastModified=), (IsRelationshipAlreadyDiscovered=False),
    (RelationshipInserted=False), (LastModified=), (ChangeId=), (RETURN_VALUE=1)
    Class: 16
    Number: 777980002
    Message: The specified relationship doesn't have a valid source.
    From the events, it is clear that the problem is with SCCM connector and in the warning it mention to check the management pack ,
    Microsoft.Windows.Peripheral.Library
    whether need to update any MP ??
    I tried to resolve this, but ended up in aforum which suggested to do a restart of server .But since it is Prod , restart will not be easy.
    If any suggestions , it will be good to resolve this
    Thank you  

    Hi,
    Please install UR3 and check the result:
    Update Rollup 3 for System Center 2012 R2 Service Manager
    http://support.microsoft.com/kb/2962041
    Regards,
    Yan Li
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Enable Audit on SCOM Agent An exception was thrown while processing Submit Tasks does not have sufficient permission to perform the operation.

    Hi All,
    An exception was thrown while processing Submit Tasks Domain\"SDK Account" does not have sufficient permission to perform the operation.
    am getting this error when try to enable audit in one of Domain controllers.

    Dear Mark,
    i face similar problem before, i had resolve it be adding SDK service account to Operation Manager Administration group.
    Regards, Ibrahim Hamdy

  • EJB5018: An exception was thrown during an ejb invocation on [ResultFacade]

    I have a problem to access from application client to methods of session beans
    the problem haw to call this method "getcodesresultcampbean("ARTV")"
    EJB5018: An exception was thrown during an ejb invocation on [ResultFacade]
    javax.ejb.TransactionRolledbackLocalException: Exception thrown from bean: java.lang.NoClassDefFoundError: org/postgresql/jdbc3/Jdbc3PreparedStatement
    at com.sun.ejb.containers.BaseContainer.checkExceptionClientTx(BaseContainer.java:3591)
    at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3436)
    at com.sun.ejb.containers.BaseContainer.postInvoke(BaseContainer.java:1247)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandler.invoke(EJBLocalObjectInvocationHandler.java:192)
    at com.sun.ejb.containers.EJBLocalObjectInvocationHandlerDelegate.invoke(EJBLocalObjectInvocationHandlerDelegate.java:71)
    at $Proxy306.findByRefCampagne(Unknown Source)
    at com.bellconsulting.praxys.stats.service.StatCampagneBean.getcodesresultcampbean(StatCampagneBean.java:77)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at com.sun.enterprise.security.application.EJBSecurityManager.runMethod(EJBSecurityManager.java:1050)
    at com.sun.enterprise.security.SecurityUtil.invoke(SecurityUtil.java:165)
    at com.sun.ejb.containers.BaseContainer.invokeTargetBeanMethod(BaseContainer.java:2766)
    at com.sun.ejb.containers.BaseContainer.intercept(BaseContainer.java:3847)
    at com.sun.ejb.containers.EJBObjectInvocationHandler.invoke(EJBObjectInvocationHandler.java:190)
    at com.sun.ejb.containers.EJBObjectInvocationHandlerDelegate.invoke(EJBObjectInvocationHandlerDelegate.java:67)
    at $Proxy305.getcodesresultcampbean(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:589)
    at com.sun.corba.ee.impl.presentation.rmi.ReflectiveTie._invoke(ReflectiveTie.java:121)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatchToServant(CorbaServerRequestDispatcherImpl.java:650)
    at com.sun.corba.ee.impl.protocol.CorbaServerRequestDispatcherImpl.dispatch(CorbaServerRequestDispatcherImpl.java:193)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequestRequest(CorbaMessageMediatorImpl.java:1705)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:1565)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleInput(CorbaMessageMediatorImpl.java:947)
    at com.sun.corba.ee.impl.protocol.giopmsgheaders.RequestMessage_1_2.callback(RequestMessage_1_2.java:178)
    at com.sun.corba.ee.impl.protocol.CorbaMessageMediatorImpl.handleRequest(CorbaMessageMediatorImpl.java:717)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.dispatch(SocketOrChannelConnectionImpl.java:473)
    at com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.doWork(SocketOrChannelConnectionImpl.java:1270)
    at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:479)
    Caused by: java.lang.NoClassDefFoundError: org/postgresql/jdbc3/Jdbc3PreparedStatement
    at org.postgresql.jdbc3.Jdbc3Connection.prepareStatement(Jdbc3Connection.java:37)
    at org.postgresql.jdbc3.AbstractJdbc3Connection.prepareStatement(AbstractJdbc3Connection.java:266)
    at org.postgresql.jdbc2.AbstractJdbc2Connection.prepareStatement(AbstractJdbc2Connection.java:151)
    at com.sun.gjc.spi.ConnectionHolder.prepareStatement(ConnectionHolder.java:413)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:497)
    at org.hibernate.jdbc.AbstractBatcher.getPreparedStatement(AbstractBatcher.java:415)
    at org.hibernate.jdbc.AbstractBatcher.prepareQueryStatement(AbstractBatcher.java:139)
    at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1538)
    at org.hibernate.loader.Loader.doQuery(Loader.java:661)
    at org.hibernate.loader.Loader.doQueryAndInitializeNonLazyCollections(Loader.java:224)
    at org.hibernate.loader.Loader.doList(Loader.java:2211)
    at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java:2095)
    at org.hibernate.loader.Loader.list(Loader.java:2090)
    at org.hibernate.loader.hql.QueryLoader.list(QueryLoader.java:388)
    at org.hibernate.hql.ast.QueryTranslatorImpl.list(QueryTranslatorImpl.java:338)
    at org.hibernate.engine.query.HQLQueryPlan.performList(HQLQueryPlan.java:172)
    at org.hibernate.impl.SessionImpl.list(SessionImpl.java:1121)
    at org.hibernate.impl.QueryImpl.list(QueryImpl.java:79)
    at org.hibernate.ejb.QueryImpl.getResultList(QueryImpl.java:64)
    at com.bellconsulting.praxys.stats.facades.ResultFacade.findByRefCampagne(ResultFacade.java:54)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    **************************code source************** ResultFacade******
    package com.bellconsulting.praxys.stats.facades;
    import java.util.List;
    import javax.ejb.Stateless;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import com.bellconsulting.praxys.stats.entities.Result;
    * @author idriss
    @Stateless
    public class ResultFacade implements ResultFacadeLocal {
    @PersistenceContext
    private EntityManager em;
    /** Creates a new instance of ResultFacade */
    public ResultFacade() {
    public void create(Result result) {
    em.persist(result);
    public void edit(Result result) {
    em.merge(result);
    public void destroy(Result result) {
    em.merge(result);
    em.remove(result);
    public Result find(Object pk) {
    return (Result) em.find(Result.class, pk);
    public List findAll() {
    return em.createQuery("select object(o) from Result as o").getResultList();
    public List findByRefCampagne (String campaignCode) {
    return em.createNamedQuery("Result.findByRefcampagne").setParameter("refcampagne", campaignCode).getResultList();
    *****************StatCampagneBean********
    package com.bellconsulting.praxys.stats.service;
    import com.bellconsulting.praxys.stats.facades.ResultFacadeLocal;
    import java.sql.Date;
    import javax.ejb.EJB;
    import javax.ejb.Stateful;
    import javax.persistence.EntityManager;
    import javax.persistence.PersistenceContext;
    import com.bellconsulting.praxys.stats.entities.Campaign;
    import com.bellconsulting.praxys.stats.entities.Result;
    import com.bellconsulting.praxys.stats.facades.CampaignFacadeLocal;
    import java.util.Iterator;
    import java.util.List;
    * @author idriss
    @Stateful
    public class StatCampagneBean implements StatCampagneRemote {
    @EJB
    private CampaignFacadeLocal campaignFacade;
    private @EJB ResultFacadeLocal resultFacade;
    private String _campagnecode;
    /** Creates a new instance of StatCampagneBean */
    public StatCampagneBean() {
    public StatCampagneBean(String campagnecode)
    this._campagnecode= campagnecode;
    @PersistenceContext
    private EntityManager _manager;
    public int getnbreOKbean(String codecampagne) {
    //TODO implement getnbreOK
    Campaign camp= _manager.find(Campaign.class,codecampagne);
    return camp.getNbRepPositive();
    public void statCodesResultats(String nomcamp, String codecamp, Date datedebut, Date datefin) {
    //TODO implement statCodesResultats
    public String[ ] getcodesresultcampbean(String codecamp) {
    //TODO implement getcodesresultcampbean
    // _manager.getTransaction().begin();
    /* EntityManagerFactory emf = Persistence.createEntityManagerFactory("Result");
    EntityManager em = emf.createEntityManager();
    String querystring = "select object(r) from Result r"+" where r.refcampagne = ?1";
    Query query =em.createQuery(querystring).setParameter(1,codecamp);
    *for (Result r : coderesultList)
    coderesult[j++]= r.getResultPK().getCode().toString();
    // List<Result> coderesultList = query.getResultList();
    List<Result> coderesultList = resultFacade.findByRefCampagne(codecamp);
    Iterator<Result> itr = coderesultList.iterator();
    String[]codesresult =null;
    int j= 0;
    while (itr.hasNext()){
    codesresult[j++] =itr.next().getResultPK().getCode().toString();
    // _manager.getTransaction().commit();
    return codesresult;
    *********************Application client *************
    package application.praxys;
    import com.bellconsulting.praxys.stats.service.StatCampagneRemote;
    import javax.swing.JOptionPane;
    import stats.praxys.*;
    * @author idriss
    public class Main {
    /** Creates a new instance of Main */
    public Main() {
    * @param args the command line arguments
    public static void main(String[] args) {
    // TODO code application logic here
    // InitialContext ctx;
    String[] nbreok =null ;
    int c =0;
    /* try {
    ctx = new InitialContext();
    StatCampagneRemote simpleSession = (StatCampagneRemote) ctx.lookup(StatCampagneRemote.class.getName());
    nbreok = simpleSession.getnbreOK("ARTV");
    System.out.println("voici un resultaaaaaaaaaaaaaaaaaaaaa"+" "+nbreok);
    } catch (NamingException ex)
    TeleVenteServiceLocator tvLocator = new TeleVenteServiceLocator();
    StatCampagneRemote statCampagneBean = (StatCampagneRemote)tvLocator.getCampaignService();
    JOptionPane.showMessageDialog(null, "dfsdfsdfsfsq");
    nbreok=statCampagneBean.getcodesresultcampbean("ARTV");
    //nbreok =statCampagneBean.getnbreOKbean("ARTV");
    System.out.println("voici un resultaaaaaaaaaaaaaaaaaaaaa "+ nbreok[1]);
    JOptionPane.showMessageDialog(null, "dfsdfsdfsfsq"+nbreok[2]);
    ***************Result entity bean*********
    package com.bellconsulting.praxys.stats.entities;
    import java.io.Serializable;
    import javax.persistence.Column;
    import javax.persistence.EmbeddedId;
    import javax.persistence.Entity;
    import javax.persistence.JoinColumn;
    import javax.persistence.ManyToOne;
    import javax.persistence.NamedQueries;
    import javax.persistence.NamedQuery;
    import javax.persistence.Table;
    * Entity class Result
    * @author idriss
    @Entity
    @Table(name = "result")
    @NamedQueries( {
    @NamedQuery(name = "Result.findByCode", query = "SELECT r FROM Result r WHERE r.resultPK.code = :code"),
    @NamedQuery(name = "Result.findByLibelle", query = "SELECT r FROM Result r WHERE r.libelle = :libelle"),
    @NamedQuery(name = "Result.findByPriorite", query = "SELECT r FROM Result r WHERE r.priorite = :priorite"),
    @NamedQuery(name = "Result.findByPrix", query = "SELECT r FROM Result r WHERE r.prix = :prix"),
    @NamedQuery(name = "Result.findByResType", query = "SELECT r FROM Result r WHERE r.resType = :resType"),
    @NamedQuery(name = "Result.findByRefcampagne", query = "SELECT r FROM Result r WHERE r.resultPK.refcampagne = :refcampagne"),
    @NamedQuery(name = "Result.findByRetValue", query = "SELECT r FROM Result r WHERE r.retValue = :retValue"),
    @NamedQuery(name = "Result.findByRetUnit", query = "SELECT r FROM Result r WHERE r.retUnit = :retUnit")
    public class Result implements Serializable {
    * EmbeddedId primary key field
    @EmbeddedId
    protected ResultPK resultPK;
    @Column(name = "libelle")
    private String libelle;
    @Column(name = "priorite", nullable = false)
    private int priorite;
    @Column(name = "prix", nullable = false)
    private float prix;
    @Column(name = "resType")
    private Integer resType;
    @Column(name = "retValue")
    private Integer retValue;
    @Column(name = "retUnit")
    private String retUnit;
    @JoinColumn(name = "refcampagne", referencedColumnName = "code", insertable = false, updatable = false)
    @ManyToOne
    private Campaign campaign;
    /** Creates a new instance of Result */
    public Result() {
    * Creates a new instance of Result with the specified values.
    * @param resultPK the resultPK of the Result
    public Result(ResultPK resultPK) {
    this.resultPK = resultPK;
    * Creates a new instance of Result with the specified values.
    * @param resultPK the resultPK of the Result
    * @param priorite the priorite of the Result
    * @param prix the prix of the Result
    public Result(ResultPK resultPK, int priorite, float prix) {
    this.resultPK = resultPK;
    this.priorite = priorite;
    this.prix = prix;
    * Creates a new instance of ResultPK with the specified values.
    * @param refcampagne the refcampagne of the ResultPK
    * @param code the code of the ResultPK
    public Result(String refcampagne, String code) {
    this.resultPK = new ResultPK(refcampagne, code);
    * Gets the resultPK of this Result.
    * @return the resultPK
    public ResultPK getResultPK() {
    return this.resultPK;
    * Sets the resultPK of this Result to the specified value.
    * @param resultPK the new resultPK
    public void setResultPK(ResultPK resultPK) {
    this.resultPK = resultPK;
    * Gets the libelle of this Result.
    * @return the libelle
    public String getLibelle() {
    return this.libelle;
    * Sets the libelle of this Result to the specified value.
    * @param libelle the new libelle
    public void setLibelle(String libelle) {
    this.libelle = libelle;
    * Gets the priorite of this Result.
    * @return the priorite
    public int getPriorite() {
    return this.priorite;
    * Sets the priorite of this Result to the specified value.
    * @param priorite the new priorite
    public void setPriorite(int priorite) {
    this.priorite = priorite;
    * Gets the prix of this Result.
    * @return the prix
    public float getPrix() {
    return this.prix;
    * Sets the prix of this Result to the specified value.
    * @param prix the new prix
    public void setPrix(float prix) {
    this.prix = prix;
    * Gets the resType of this Result.
    * @return the resType
    public Integer getResType() {
    return this.resType;
    * Sets the resType of this Result to the specified value.
    * @param resType the new resType
    public void setResType(Integer resType) {
    this.resType = resType;
    * Gets the retValue of this Result.
    * @return the retValue
    public Integer getRetValue() {
    return this.retValue;
    * Sets the retValue of this Result to the specified value.
    * @param retValue the new retValue
    public void setRetValue(Integer retValue) {
    this.retValue = retValue;
    * Gets the retUnit of this Result.
    * @return the retUnit
    public String getRetUnit() {
    return this.retUnit;
    * Sets the retUnit of this Result to the specified value.
    * @param retUnit the new retUnit
    public void setRetUnit(String retUnit) {
    this.retUnit = retUnit;
    * Gets the campaign of this Result.
    * @return the campaign
    public Campaign getCampaign() {
    return this.campaign;
    * Sets the campaign of this Result to the specified value.
    * @param campaign the new campaign
    public void setCampaign(Campaign campaign) {
    this.campaign = campaign;
    * Returns a hash code value for the object. This implementation computes
    * a hash code value based on the id fields in this object.
    * @return a hash code value for this object.
    @Override
    public int hashCode() {
    int hash = 0;
    hash += (this.resultPK != null ? this.resultPK.hashCode() : 0);
    return hash;
    * Determines whether another object is equal to this Result. The result is
    * <code>true</code> if and only if the argument is not null and is a Result object that
    * has the same id field values as this object.
    * @param object the reference object with which to compare
    * @return <code>true</code> if this object is the same as the argument;
    * <code>false</code> otherwise.
    @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 Result)) {
    return false;
    Result other = (Result)object;
    if (this.resultPK != other.resultPK && (this.resultPK == null || !this.resultPK.equals(other.resultPK))) return false;
    return true;
    * Returns a string representation of the object. This implementation constructs
    * that representation based on the id fields.
    * @return a string representation of the object.
    @Override
    public String toString() {
    return "com.bellconsulting.praxys.stats.entities.Result[resultPK=" + resultPK + "]";
    Message was edited by:
    081283

    Try posting this on the EJB forum:
    http://forum.java.sun.com/forum.jspa?forumID=13

  • Detecting when exception was thrown using custom class loader

    Hello all,
    I would like to implement the solution described here - http://stackoverflow.com/questions/75218/how-can-i-detect-when-an-exceptions-been-thrown-globally-in-java - that uses custom class loader in order to detect when an Exeption thrown somewhere in the JVM hosting my app, please note that exceptions might be thrown from 3rd party jars the app is using. So, thanks to help I got from another post, I've managed to code the custom class loader. My question is how can the class loader wrap the original exception, as the methods in ClassLoader deals with classes, not instances. So where should I set the original exception?
    Thanks!
    Edited by: user9355666 on Sep 28, 2010 10:48 PM

    user9355666 wrote:
    I think I'm missing something fundumental, forgive me for being slow...
    This is what I did so far. For the exception wrapper I made a simple class extens Exception that recieve Exception in its ctor and store it. I also subclassed ClassLoader and override its loadClass(). I've registered it as the system classloader. My thinking was to check in that point that if the requested class is instance of Exception and if yes, returning my wrapper class wrapping this exception. But, since loadClass() return class, how can I set in the wrapper the original exception?
    In addition, let's say 2 different places in the code throws NPE, to my understanding the classloader will load NPE only once, so how throwing the NPE in the second time can be detected?you are missing a key point. you should creating a custom implementation of the NPE class which hooks into your detection code in its constructor. from that point forward, anytime any NPE (which is your custom class) is constructed, you can detect it.

  • Exception of type  'System.OutOfMemory Exception' was thrown while running

    We have a web application develeoped in ASP.Net, SQL Server 2005 , Crystal Reports 10.2. When I try to run a report which has around 5 lakh records (the query to fetch the records in sql server takes around 1.5 to 2 minutes) gives an error Exception of type  'System.OutOfMemory Exception' was thrown.
    Can anybody help !!
    Thanks

    Hello, Balla;
    the first thing to check is that the ASP.NET Worker process has rights to your Temp folder. You will find where it is by checking your Environment variables.
    Use the correct name for the ASP.NET worker process depending on your operating system - LocalMachine\IIS_WPG(Windows 2003 Server) or ASPNET(XP) or (Vista) IIS_IUSRS
    To give the IIS_WPG account full control of a folder:
    1. Right-click the folder and select 'Properties'.
    2. Go to the 'Security' tab and click the 'Add' button.
    3. Click the 'Locations' button and select the
    computer name. Click 'OK'.
    4. Type "IIS_WPG" under the 'Enter the object names to
    select' box.
    5. Click 'Check Names'. <Your machine name>\IIS_WPG
    appears. Click 'OK'.
    6. Check 'Full Control' from 'Permissions for IIS_WPG'.
    Click 'OK'.
    ====================
    NOTE:
    The IIS_WPG includes the LocalService,
    System, and NetworkService accounts.
    ====================
    If that is not the issue:
    What database driver are you using in the design of your report? Go to Database|Set datasource location and tell me the properties of the database connection.
    Do you logon to the database in your code or pass the data to it using Datasets?
    Are there subreports in the design? How many are there? What section are they in? What data source does each one use?
    Do you have a lot of formulas in the report?
    Elaine

  • Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain

    Hi All,
      I have created a custom web part in VS 2008 for Share point server 2010 with DevExpress v12.2.17, and deployed as Sandboxed solution. when i add that web parts in web part zone i am getting the error as "Web Part Error:
    Unhandled exception was thrown by the sandboxed code wrapper's Execute method in the partial trust app domain: An unexpected error has occurred. ".
    If there is any way to get detailed error either log file or event viewer.
    Kindly advice to find the cause of the problem.
    Thanks,
    Selvakumar.S

    Hello,
    Are you impersonating your code? Have you tried to debug your code by attaching SPUCHostService.exe? if not please do so.
    You also need to check ULS log for more information about this error. Here is one ref link if this could help
    http://sohilmakwana.wordpress.com/2013/11/29/sandbox-error-unhandled-exception-was-thrown-by-the-sandboxed-code-wrappers-execute-method-in-the-partial-trust-app-domain/
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • How can i solve this Exception that "How can i solve this exception that "End of stack trace from previous location where exception was thrown" in Windows phone 8.

    Hi Sir/Mam,
    Please give me solution for this problem.I tried this in all ways for solve this problem like i checked my all class objects cleared or not when leaving current page to come to before page.
    This Exception came at After saved data in the wp8 device database,then it is coming to back page(when i navigate to another page) then that navigated page running and go to "Public Asyn Void Listmenu()" method ,in this method again retrieve the
    data from database after getting this data,it shows this Exception.
    Note :-This Exception came in WP8 Device only,not in Emulator.In the Emulator it is working fine.
    My Exception:-
    Exception:- System.Exception.Exception.HRESULT:0*80040015
    at
    System.Runtime.CompliterServices.TaskAwaiter.ThrowForNonSuccess(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter'1.GetResult()
    at
    _10Min._10MinUserPages.<checkStatusAndSavedDataExistinFormTable>d_e3.MoveNext()
    End of stack trace from previous location where exception was thrown
    at
    system.runtime.Compilerservices.TaskAwater.throwForNonSuccess(Task task)
    at
    System.Runtime.compilerservices.TaskAwaiter.HandlerNonSuccessAndDebuggerNotification(Task task)
    at
    System.Runtime.ComplierServices.TaskAwaiter'1.GetResult()
    at
    _10Min._10MinUserPages.<listmenu>d_8.MoveNext().
    How can i solve this problem please help me. I am suffering from 1 week days with this problem.
    Please help me.any one.
    Thanks & Regards,
    SrinivaaS.

    Is the flow of code to the point where exception occurs:
    1) Data saved in Db
    2) Navigated back
    3)Navigated to another page
    4) Method ListMenu() is called(as soon as navigated to page in step 3) to retrieve the saved data from db & exception occurs.
    Can you paste here the definition of ListMenu(), also does the exception occurs as soon as db is accessed inside this method or else.
    http://developer.nokia.com/community/wiki/Using_Crypto%2B%2B_library_with_Windows_Phone_8

  • I was migrating from a 3gs to the 4s. Big mistake. Have lost contacts and access to music and apps.

    I was migrating from a 3gs to the 4s. Having never upgraded the IOS before, I thought that I should do that before handed the phone down to my daughter to replace her broken 3g. Big mistake. Even using Google sync for my contacts, following instruction from the Google webpage (ambiguous: cancel or not when error message is displayed?) the contacts did not sync to gmail. iTunes says it will sync contacts, but doesn't from the phone, only from the few that were in my old Gmail account. The iCloud set up asks for email and a new password- not specifying that you should use your old email and password for your old iTunes account or your phone will be instantly locked out of those apps and tunes stored there. The web info says you can't merge accounts or passwords, so, I bet I have to cancel the new set up and start over with the old password if it will even let me. I've spent 8 hrs reading, syncing, et c., on this! It will be a long time before I casually buy a new phone from them! I wonder how much time it will take to switch from the 3GS to the 4S? I now have a 3GS without contacts, no way to get the data from those files back, and can't get the apps to it or the 4S until Apple support helps fix the double identity problem.
    Considering that I had verbal instructions from the Apple store prior to the IOS upgrade, reviewed all the details on line, I think this process is woefully lacking in clarity and transparency. The local ATT branch offered nothing except backing up to avoid loss of contacts if both phones were taken to the store, but not any help with the IOS or iTunes content. Cable internet for the 3GS backup and IOS 5 upgrade seemed to take about 2 hours. At least calender, notes, etc. were done correctly and 2500 picture and videos were not removed.

    After the last post,I went to the local ATT for some feedback. The manager there, Stephen, was helpful and spent a long time, even after i had gotten the abbreviated list of contacts I had constructed from the 3GS to the 4S by an iTunes sync with the correct options selected. This however, would not sync notes. I took screen pix of my many stock symbols for future reference, and got them to transfer with Bump (as photos, in case I want to refresh my memory on some of the symbols added previously). I emailed myself copies of 28 notes i did not want to lose, because the iCloud back up would not initially work. After what seemed like years, I finally was able to get it working, following repeated refusal to Merge because of "not enough space available" @5GB even though everything was turned off except contacts and calendar.
    My old phone is finally backed up to the cloud after I turned off location service on new phone, and a bunch of apps and photo data showed up for the first time, as icons to be turned off on the old phone in the  Manage Storage window. It said it was going to back up 8 GB of photos when the photo backup had been turned off on the prior screen. (The screws are loose, and the worm has turned on this software at Apple.)
    Backup for notes, a few contacts, and calendar, over high speed wifi, took 25 minutes to complete without photos.
    I have never seen anything this troublesome in the Apple OS!
    You will need to set your own Apple ID and a .me email ID if you want to use the cloud. My recommendation and that of the store manager for the first time is don't back up any photos, let it erase the photo stream if it wants to. The camera roll should be ok.
    Backing up to the iCloud removed all my stocks from the old phone! It wasn't supposed to. Be sure to select leave data on phone at every opportunity- even so, there they went. It did not remove contacts or calendar when backing up, though the IOS 5 upgrade had lost my years of contacts since I had not specified that they should be saved when I hit the simple sync in iTunes the first time and since Googlesync failed to connect properly for me over wifi as noted above.
    All in all it appears nothing is going to clone your phone or preserve all the data through a IOS 4.x to 5 migration, though I did not do it right the first time with iTunes, and complicated matters by starting with a new ID instead of my old iTunes account and password, living in a small town, away from any Apple store, though if you can't be there at an Apple store with both phones in hand, they probably can't help much unless they walk you through each option in iTunes and you are very attentive. The store genius I saw did not do this, though I had yet to order the phone at that point.
    Good Luck!
    Message was edited by: richardfromel dorado

  • Java.lang.RuntimeException: Failed to start Service "ReplicatedCache"

    I'm seeing an exception from coherence when I attempt to shutdown our application. The error indicates that Coherence is attempting to start the "ReplicatedCache" service, but the JVM is shutting down.
    Is this perhaps a timing issue where our application leaves the grid and Coherence attempts to restart the "ReplicatedCache" service even though we're actually shutting down? Do we need to explicitly shutdown Coherence services before our application exits?
    The exception creates the following log message:
    Exception in thread "main" java.lang.RuntimeException: Failed to start Service "ReplicatedCache" (ServiceState=SERVICE_STOPPED)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.Service.waitAcceptingClients(Service.CDB:12)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:9)
    at com.tangosol.coherence.component.util.daemon.queueProcessor.service.Grid.poll(Grid.CDB:11)
    Thanks in advance!
    Stacy

    Tom,
    The "Rejecting connection to member" message comes from the TcpRingListener and indicates that some process (not Coherence software) attempts to open a TCP socket on port 8088, which is used by Coherence for the TcpRing communications (life cycle support).
    I would suggest changing the base port number used by the Coherence cluster nodes by either creating/modifying your tangosol-coherence-override.xml or supplying a command line override: -Dtangosol.coherence.localport=NNNN, where NNNN is a number in a range that is not used by any other applications.
    Regards,
    Gene

  • NO EXCEPTION IS THROWN FROM THE PERSIST

    We are using Glassfish and MySQL. When we do a persist with a bad object/query, internal DB errors are NOT being reported back to the caller in any way, but Glassfish knows that the error occurred. Here is a schematic of the situation:
         Glassfish starts a CMP transaction and calls our bean
              Inside the bean we have code like this:
                   obj = (a new object that will cause a DB error when persisted)
                   try {
                        entityManager.persist(obj)
                   } catch (Throwable t) {
                        report to the user that the throwable happened
              bean returns
         Glassfish manages CMP transaction
    What we see is the following:
         - The persist has an internal failure and generates error messages in the Glassfish system.log file.
         - NO EXCEPTION IS THROWN FROM THE PERSIST, so the application code thinks that the persist completed correctly
         - At the end of the bean operation, Glassfish (correctly) rolls back the transaction.
    At the user level the result is that the request succeeds but nothing is put into the Database!
    We are not asking about the cause of the DB error. From reading the system log we know what happened and can fix it. Our problem is that problems in our field-deployed systems cannot be detected by the application code so failures cannot be reported to the user.
    The critical question is:
         Is there a way for the application code in the bean to see that an error occurred?
    By the way, we also have a secondary question: Why is the erroneous persist tried 6 times before deciding it won't work? Is there an option somewhere that says to try 6 times?
    The Exception as reported in the system log (only one copy of it) is included below.
    [#|2008-10-22T08:32:25.992-0400|WARNING|sun-appserver9.1|oracle.toplink.essentials.session.file:/opt/localVendors/glassfish/tems-glassfish-v1/domains/domain1/applications/j2ee-apps/im-app/im-ejb_jar/-local|_ThreadID=138;_ThreadName=p: thread-pool-1; w: 156;_RequestID=509e7043-21bb-410c-b795-19e9953afeec;|
    Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b04-fcs (04/11/2008))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'STATIONCODE' cannot be null
    Error Code: 1048
    Call: INSERT INTO <exact operation and table contents elided from this trace file>
         at oracle.toplink.essentials.exceptions.DatabaseException.sqlException(DatabaseException.java:311)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:654)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeNoSelect(DatabaseAccessor.java:703)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:492)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeCall(DatabaseAccessor.java:452)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeCall(AbstractSession.java:690)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:228)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.executeCall(DatasourceCallQueryMechanism.java:214)
         at oracle.toplink.essentials.internal.queryframework.DatasourceCallQueryMechanism.insertObject(DatasourceCallQueryMechanism.java:346)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:191)
         at oracle.toplink.essentials.internal.queryframework.StatementQueryMechanism.insertObject(StatementQueryMechanism.java:205)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWrite(DatabaseQueryMechanism.java:564)
         at oracle.toplink.essentials.queryframework.InsertObjectQuery.executeCommit(InsertObjectQuery.java:89)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedWrite(DatabaseQueryMechanism.java:750)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.performUserDefinedInsert(DatabaseQueryMechanism.java:714)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.insertObjectForWriteWithChangeSet(DatabaseQueryMechanism.java:602)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeCommitWithChangeSet(WriteObjectQuery.java:162)
         at oracle.toplink.essentials.internal.queryframework.DatabaseQueryMechanism.executeWriteWithChangeSet(DatabaseQueryMechanism.java:390)
         at oracle.toplink.essentials.queryframework.WriteObjectQuery.executeDatabaseQuery(WriteObjectQuery.java:109)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.execute(DatabaseQuery.java:628)
         at oracle.toplink.essentials.queryframework.DatabaseQuery.executeInUnitOfWork(DatabaseQuery.java:555)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWorkObjectLevelModifyQuery(ObjectLevelModifyQuery.java:138)
         at oracle.toplink.essentials.queryframework.ObjectLevelModifyQuery.executeInUnitOfWork(ObjectLevelModifyQuery.java:110)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.internalExecuteQuery(UnitOfWorkImpl.java:2233)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:952)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.executeQuery(AbstractSession.java:909)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitNewObjectsForClassWithChangeSet(CommitManager.java:269)
         at oracle.toplink.essentials.internal.sessions.CommitManager.commitAllObjectsWithChangeSet(CommitManager.java:190)
         at oracle.toplink.essentials.internal.sessions.AbstractSession.writeAllObjectsWithChangeSet(AbstractSession.java:2657)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabase(UnitOfWorkImpl.java:1044)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitToDatabase(RepeatableWriteUnitOfWork.java:403)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitToDatabaseWithChangeSet(UnitOfWorkImpl.java:1126)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.issueSQLbeforeCompletion(UnitOfWorkImpl.java:2443)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.issueSQLbeforeCompletion(RepeatableWriteUnitOfWork.java:202)
         at oracle.toplink.essentials.transaction.AbstractSynchronizationListener.beforeCompletion(AbstractSynchronizationListener.java:131)
         at oracle.toplink.essentials.transaction.JTASynchronizationListener.beforeCompletion(JTASynchronizationListener.java:91)
         at com.sun.jts.jta.SynchronizationImpl.before_completion(SynchronizationImpl.java:99)
         at com.sun.jts.CosTransactions.RegisteredSyncs.distributeBefore(RegisteredSyncs.java:158)
         at com.sun.jts.CosTransactions.TopCoordinator.beforeCompletion(TopCoordinator.java:2548)
         at com.sun.jts.CosTransactions.CoordinatorTerm.commit(CoordinatorTerm.java:278)
         at com.sun.jts.CosTransactions.TerminatorImpl.commit(TerminatorImpl.java:249)
         at com.sun.jts.CosTransactions.CurrentImpl.commit(CurrentImpl.java:623)
         at com.sun.jts.jta.TransactionManagerImpl.commit(TransactionManagerImpl.java:309)
         at com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.commit(J2EETransactionManagerImpl.java:1030)
         at com.sun.enterprise.distributedtx.J2EETransactionManagerOpt.commit(J2EETransactionManagerOpt.java:397)
         at com.sun.ejb.containers.BaseContainer.completeNewTx(BaseContainer.java:3792)
         at com.sun.ejb.containers.BaseContainer.postInvokeTx(BaseContainer.java:3571)
         at com.sun.ejb.containers.MessageBeanContainer.afterMessageDeliveryInternal(MessageBeanContainer.java:1226)
         at com.sun.ejb.containers.MessageBeanContainer.afterMessageDelivery(MessageBeanContainer.java:1197)
         at com.sun.ejb.containers.MessageBeanListenerImpl.afterMessageDelivery(MessageBeanListenerImpl.java:79)
         at com.sun.enterprise.connectors.inflow.MessageEndpointInvocationHandler.invoke(MessageEndpointInvocationHandler.java:139)
         at $Proxy364.afterDelivery(Unknown Source)
         at com.sun.messaging.jms.ra.OnMessageRunner.run(OnMessageRunner.java:324)
         at com.sun.enterprise.connectors.work.OneWork.doWork(OneWork.java:76)
         at com.sun.corba.ee.impl.orbutil.threadpool.ThreadPoolImpl$WorkerThread.run(ThreadPoolImpl.java:555)
    Caused by: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Column 'STATIONCODE' cannot be null
         at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:931)
         at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2985)
         at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1631)
         at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1723)
         at com.mysql.jdbc.Connection.execSQL(Connection.java:3283)
         at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1332)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1604)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1519)
         at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:1504)
         at com.mysql.jdbc.jdbc2.optional.PreparedStatementWrapper.executeUpdate(PreparedStatementWrapper.java:840)
         at oracle.toplink.essentials.internal.databaseaccess.DatabaseAccessor.executeDirectNoSelect(DatabaseAccessor.java:647)
         ... 53 more
    |#]

    This is because the persistent context is not synchronized with the database until the commit is being executed.
    You might 'force' this by calling entityManager.flush() right after the call to persist(...).
    Or you register a transaction synchronizer and check the transaction status on afeterCompletion().
    - Roy

  • EJBGen Exception --- java.lang.RuntimeException

    hi,
    If i use the 2.16 version of the ejbgen.jar , the ejbgen is working fine but
    the following mdb variables are cannot be set in the bean class.
    the variables are
    * jms-polling-interval-seconds=4
    * dispatch-policy=JMSDispatcher
    But these variables can be set in the latest version i.e 2.19 version of ejbgen.jar.
    But the following error is comming.....
    compile.ejbgen:
    [java] java.lang.RuntimeException: Unknown javadoc problem: result=1, root=null:
    [java] JAM: Illegal package name: "D:\cvsmain\asap_root\application\setup\dev\tavant\common\common.properties"
    [java] JAM: Illegal package name: "D:\cvsmain\asap_root\application\-propertyFile"
    [java] Loading source file D:\cvsmain\asap_root\application\common\build\commonEJB\mdbJar\tavant\app\asap\integrati
    on\invoker\ProcessInvokerBean.java...
    [java] JAM: Illegal package name: "D:\cvsmain\asap_root\application\DTO"
    [java] 3 errors
    [java]
    [java] at com.bea.util.jam.internal.javadoc.JavadocRunner.run(JavadocRunner.java:113)
    [java] at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.init(JavadocClassBuilder.java:132)
    [java] at com.bea.util.jam.provider.CompositeJamClassBuilder.init(CompositeJamClassBuilder.java:46)
    [java] at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:177)
    [java] at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:136)
    [java] at com.bea.util.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
    [java] at com.bea.sgen.SGen.loadClassesNew(SGen.java:330)
    [java] at com.bea.sgen.SGen.run(SGen.java:187)
    [java] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:303)
    [java] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:311)
    [java] at weblogic.tools.ejbgen.EJBGen.main(EJBGen.java:21)
    [java] Exception in thread "main"
    [if] Error in class net.sf.antcontrib.logic.IfTask
    [if] Error in class net.sf.antcontrib.logic.IfTask
    [if] Error in class net.sf.antcontrib.logic.IfTask
    BUILD FAILED
    file:D:/cvsmain/asap_root/application/build_sds.xml:662: Java returned: 1
    The build script is as follows
    <target name="compile.ejbgen" description="Generates the interfaces and descriptors for a bean.">
    <java
    classname="weblogic.tools.ejbgen.EJBGen"
    failonerror="yes"
    fork="yes">
    <classpath refid="compile.classpath"/>
    <arg value="-sourcepath" />
    <arg value="${src.ejb.dir}" />
    <arg value="-d" />
    <arg value="${dest.ejb.dir}" />
    <arg value="-forceGeneration" />
    <arg value="-descriptorDir" />
    <arg value="${dest.ejb.dir}/${module}/META-INF" />
    <arg value="-valuePackage" />
    <arg value="${valPackage}" />
    <arg value="-valueObjectSuffix" />
    <arg value="DTO" />
    <arg value="-propertyFile" />
    <arg value="setup/${config}/tavant/${application.name}/${application.name}.properties" />
    <arg value="${src.ejb.dir}/${package}/${subpackage}/*Bean.java" />
    </java>
    <jar destfile="${destExp.dir}/${module}.jar">
    <fileset dir="${dest.dir}/${application.name}EJB/${submodule}Jar/${module}" includes="**/*.xml"/>
    </jar>
    </target>
    Can u plz help me ...
    thanks,
    vinod reddy.

    hello vinod,
    i had the same problem. have you got the solution already? if yes,
    please help me! it's an urgent problem.
    thx before!
    bye,
    zoltan baji
    vinod reddy wrote:
    hi,
    If i use the 2.16 version of the ejbgen.jar , the ejbgen is working fine but
    the following mdb variables are cannot be set in the bean class.
    the variables are
    * jms-polling-interval-seconds=4
    * dispatch-policy=JMSDispatcher
    But these variables can be set in the latest version i.e 2.19 version of ejbgen.jar.
    But the following error is comming.....
    compile.ejbgen:
    [java] java.lang.RuntimeException: Unknown javadoc problem: result=1, root=null:
    [java] JAM: Illegal package name: "D:\cvsmain\asap_root\application\setup\dev\tavant\common\common.properties"
    [java] JAM: Illegal package name: "D:\cvsmain\asap_root\application\-propertyFile"
    [java] Loading source file D:\cvsmain\asap_root\application\common\build\commonEJB\mdbJar\tavant\app\asap\integrati
    on\invoker\ProcessInvokerBean.java...
    [java] JAM: Illegal package name: "D:\cvsmain\asap_root\application\DTO"
    [java] 3 errors
    [java]
    [java] at com.bea.util.jam.internal.javadoc.JavadocRunner.run(JavadocRunner.java:113)
    [java] at com.bea.util.jam.internal.javadoc.JavadocClassBuilder.init(JavadocClassBuilder.java:132)
    [java] at com.bea.util.jam.provider.CompositeJamClassBuilder.init(CompositeJamClassBuilder.java:46)
    [java] at com.bea.util.jam.provider.JamServiceFactoryImpl.createBuilder(JamServiceFactoryImpl.java:177)
    [java] at com.bea.util.jam.provider.JamServiceFactoryImpl.createClassLoader(JamServiceFactoryImpl.java:136)
    [java] at com.bea.util.jam.provider.JamServiceFactoryImpl.createService(JamServiceFactoryImpl.java:78)
    [java] at com.bea.sgen.SGen.loadClassesNew(SGen.java:330)
    [java] at com.bea.sgen.SGen.run(SGen.java:187)
    [java] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:303)
    [java] at com.bea.wls.ejbgen.EJBGen.main(EJBGen.java:311)
    [java] at weblogic.tools.ejbgen.EJBGen.main(EJBGen.java:21)
    [java] Exception in thread "main"
    [if] Error in class net.sf.antcontrib.logic.IfTask
    [if] Error in class net.sf.antcontrib.logic.IfTask
    [if] Error in class net.sf.antcontrib.logic.IfTask
    BUILD FAILED
    file:D:/cvsmain/asap_root/application/build_sds.xml:662: Java returned: 1
    The build script is as follows
    <target name="compile.ejbgen" description="Generates the interfaces and descriptors for a bean.">
    <java
    classname="weblogic.tools.ejbgen.EJBGen"
    failonerror="yes"
    fork="yes">
    <classpath refid="compile.classpath"/>
    <arg value="-sourcepath" />
    <arg value="${src.ejb.dir}" />
    <arg value="-d" />
    <arg value="${dest.ejb.dir}" />
    <arg value="-forceGeneration" />
    <arg value="-descriptorDir" />
    <arg value="${dest.ejb.dir}/${module}/META-INF" />
    <arg value="-valuePackage" />
    <arg value="${valPackage}" />
    <arg value="-valueObjectSuffix" />
    <arg value="DTO" />
    <arg value="-propertyFile" />
    <arg value="setup/${config}/tavant/${application.name}/${application.name}.properties"
    />
    <arg value="${src.ejb.dir}/${package}/${subpackage}/*Bean.java" />
    </java>
    <jar destfile="${destExp.dir}/${module}.jar">
    <fileset dir="${dest.dir}/${application.name}EJB/${submodule}Jar/${module}"
    includes="**/*.xml"/>
    </jar>
    </target>
    Can u plz help me ...
    thanks,
    vinod reddy.

  • Exception java.lang.RuntimeException

    hello,
    I have received the following error on my browser
    "Exception java.lang.RuntimeException: Data is not Base64 encoded. occured while processing your Request"
    how can I fix this error?
    regards,
    Hisham

    Hi Vamsi.P,
    Try something like below... Using weblogic admin credentials...
    Hashtable props = new Hashtable();
    props.put(Context.SECURITY_PRINCIPAL,   "fred");
    props.put(Context.SECURITY_CREDENTIALS, "seafood");
    Locator locator = LocatorFactory.createLocator(props);  
    Cheers,
    Vlad

  • Hello,I am a phone dealer in Nigeria. please how can i track a brand new iphone 5 64gb and 16gb that was stolen from my shop with the last 4 digit IMEI numbers?

    Hello,I am a phone dealer in Nigeria. please how can i track a brand new iphone 5 64gb and 16gb that was stolen from my shop with the last 4 digit IMEI numbers?

    What To Do If Your iDevice or Computer Is Lost Or Stolen
    If your Mac, iPhone, iPod, iPod Touch, or iPad is lost or stolen what do you do? There are things you should do in advance - before you lose it or it's stolen - and some things to do after the fact. Here are some suggestions:
      1. Reporting a lost or stolen Apple product
      2. Find my lost iPod Touch
      3. AT&T, Sprint, and Verizon can block stolen phones/tablets
      4. What-To-Do-When-Iphone-Is-Stolen
      5. Lost or Stolen iPhone? Here’s What to do
      6. 6 Ways to Track and Recover Your Lost/Stolen iPhone
      7. Find My iPhone
    It pays to be proactive by following the advice on using Find My Phone before you lose your device:
      1. Find My iPhone
      2. Setup your iDevice on MobileMe
      3. OS X Lion- About Find My Mac
      4. How To Set Up Free Find Your iPhone (Even on Unsupported Devices)

  • Exception: java.lang.RuntimeException: Caller doesn't have enough permission to call this method.

    Hi All,
        I am getting the exception "Exception: java.lang.RuntimeException: Caller doesn't have enough permission to call this method.", when i try to execute the code  "Composite MFTComposite = (Composite)locator.lookupComposite(compositeNameRevision); ".Below mentioned the sample code , i am using this code for getting the running instances.
    try{   
              String componentInstanceID = new Long(getInstanceId()).toString();   
              addAuditTrailEntry("Component Instance ID is "+componentInstanceID);   
              Locator locator = LocatorFactory.createLocator();   
              addAuditTrailEntry("Created locator..");   
             String compositeRevision = (String)getVariableData("compositeRevision"); 
    addAuditTrailEntry("compositeRevision..1111"+compositeRevision);   
              String compositeNameRevision = "ManagedFileTransfer/MFT!" + compositeRevision;
              Composite MFTComposite = (Composite)locator.lookupComposite(compositeNameRevision);  
              addAuditTrailEntry("MFT Composite lookup complete..setting filter");   
              CompositeInstanceFilter filter = new CompositeInstanceFilter();   
              filter.setState(CompositeInstance.STATE_RUNNING);  
              filter.setTitle((String) getVariableData("transferName"));  
              List<CompositeInstance> instances = MFTComposite.getInstances(filter);   
              StringBuffer message = new StringBuffer();  
              if ((instances != null) && (instances.size() > 1)) {   
                  addAuditTrailEntry("currently running MFT Instances..");   
                  for (CompositeInstance instance : instances) {   
                    message.append("Instance: " + instance.getId() + " Creation date: " + instance.getCreationDate() + ",");        
                    addAuditTrailEntry("Instance: " + instance.getId() +   
                                 " creation-date: " + instance.getCreationDate());  
              setVariableData("runningInstance", message.toString());    
            } catch (Exception ex) {   
                setVariableData("runningInstance", ex.getMessage());  
                addAuditTrailEntry("Exception: " + ex);   
    Appreaciate your quick response.
    Thank You,
    Vamsi.P

    Hi Vamsi.P,
    Try something like below... Using weblogic admin credentials...
    Hashtable props = new Hashtable();
    props.put(Context.SECURITY_PRINCIPAL,   "fred");
    props.put(Context.SECURITY_CREDENTIALS, "seafood");
    Locator locator = LocatorFactory.createLocator(props);  
    Cheers,
    Vlad

Maybe you are looking for

  • Scriptable Plugin not working in firefox 4 and above

    Using firefox 4 on opensuse. Using JSP to access scriptable plugin which is scripted in .js file. here is the summary of how I am using it- at the head of the .jsp file - <SCRIPT language="JavaScript"> if (someCondition) { document.write("<OBJECT ID=

  • How to get unlimited JCE

    Due to import control restrictions of some countries, the JCE jurisdiction >policy files shipped with the J2SDK, v 1.4 allow "strong" but limited >cryptography to be used. An "unlimited strength" version of these files >indicating no restrictions on

  • Time capsule not working as wireless router

    I am having trouble with my time capsule working as a wireless router.  It appears in airport utility and the green light is on.  It is backing up my computer which is hardwired with via ethernet.  The network setting is on bridge.  Any thoughts?

  • Crashes on run and save form

    In the same form: When I run the form from Forms Runtime, it works. If I run the form from Developer without compiling it before (just after open), the form crashes silently. If I compile it before run, the form is working well, but if I try to save

  • Add a stamp TAX to an invoice

    Hi experts, Can you tell me the steps to add a new stamp TAX to an invoice. The stamp tax is a fixed amount in Tunisia (currency: TND). Best Regards, Mimouni