Structural Exception thrown during Automatic Import in MDM
Hello Experts,
While importing material records automatically MDM throws a structural exception. When i try importing the same exception file using Import Manager Import status=Ready for Import and the records are imported successfully.
The same Import map and properties when applied on the TEST environment also works properly for both Automatic and Manual import.
Can anyone advice a solution to this.
Thanks in advance,
Elizabeth.
Hi Jacob,
Just check your source file if any new segment occur or segment value is repeating but ideally it should not because in manual import it will work by ignoring this value where during automiz it gives an error
Also i mention in previous thread provide us MDM server log details snaps when structural exception occure along with date and time information so based on log detail we can provide suggestion
Thanks,
Jignesh Patel
Edited by: jignesh patel on Aug 20, 2010 1:43 PM
Similar Messages
-
Revision: 1043
Author: [email protected]
Date: 2008-03-31 15:22:13 -0700 (Mon, 31 Mar 2008)
Log Message:
Bug: LCDS-184 - Concurrent modification exception thrown during remote subscription management
QA: Yes
Doc: No
Details:
Make the 'subscriptions' set in MessageClient/RemoteMessageClient concurrent modification safe.
Ticket Links:
http://bugs.adobe.com/jira/browse/LCDS-184
Modified Paths:
blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/services/messaging/RemoteMess ageClient.java -
Revision: 1044
Author: [email protected]
Date: 2008-03-31 15:23:07 -0700 (Mon, 31 Mar 2008)
Log Message:
Bug: LCDS-184 - Concurrent modification exception thrown during remote subscription management
QA: Yes
Doc: No
Details:
Make the 'subscriptions' set in MessageClient/RemoteMessageClient concurrent modification safe.
Ticket Links:
http://bugs.adobe.com/jira/browse/LCDS-184
Modified Paths:
blazeds/branches/3.0.x/modules/core/src/java/flex/messaging/MessageClient.java -
Structural Exception During Auto Imports In MDM
Hi All,
We are facing a problem while auto importing bulk data.
System is throwing structural exception and preventing data from importing automatically.
Is there any way that we could identify which segment in XML is causing this structural exception?
Also if we try to import data manually by loading the XML file, system throws a message "Unknown Exception".
Is there a possibility that some data in XML will be causing this problem?
Kindly provide your valuable inputs. Thank You.
Regards,
Ankush BhardwajHi,
I have checked the settings for the Port and Block on Structural Exception is already set to Yes.
And Save Update did not help either.
Apart from this, Log files for MDIS server points to some error saying ImportRecordSliceInternal471.
So we are now trying to change Slicing Parameter for Import in MDS.ini and see if it still throws exceptions or not.
Please suggest if i could try some other thing also.
Also i have one question as to if this problem could be due to the Data in the XML file because we have so many qualified Table links to be updated along with Main table record values?
Thank You. -
Exception thrown during OSM7 installation-unresolved lib references
Hi,
I am using jdevstudio11113install.exe to install WL Server + ADF.
During OSM 7.0.3 installation, i am getting exception as
<Oct 17, 2012 4:53:31 PM IST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1350473008281' for task '0'. Error is: 'weblogic.management.DeploymentException: [J2EE:160149]*Error while processing library references. Unresolved application library references, defined in*
*weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false], [Extension-Name: oracle.jsp.next, exact-match: false].*'weblogic.management.DeploymentException: [J2EE:160149]Error while processing library references. Unresolved application library references, defined in weblogic-application.xml: [Extension-Name: adf.oracle.domain, exact-match: false], [Extension-Name: oracle.jsp.next, exact-match: false].
at weblogic.application.internal.flow.CheckLibraryReferenceFlow.prepare(CheckLibraryReferenceFlow.java:26)
at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:1221)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:41)
at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:367)
at weblogic.application.internal.EarDeployment.prepare(EarDeployment.java:58)
Truncated. see log file for complete stacktrace
>
However, i have checked weblogic-application.xml file and could not find any entry for these extension-name. Can anybody help me in solving this issue please?
Thanks and Regards,
ShitalYou have not created WebLogic domain correctly . OSM is developed using ADF framework and you need to select "Oracle JRF-11.1.1.0[Oracle_common]" & "Oracle JJRF WEbServices Asynchronous services -11.1.1.0[oracle _common]"while creating the WebLogic domain.
-
JAXB: Exception thrown during Unmarshalling ! HELP !
Hi, my JAXB works fine when the input XML conforms with the schema. But sometimes the input XML contains some extra non-business related fields (populated by the client application) that are absent from my schema definitions and cannot be predicted. In such scenarios JAXB fails during unmarshalling. Is there a way round this ? I have tried Unmarshaller.setValidating( false), but still fails ! Ideally I would want the parser to ignore such fields. Do I need to write a custom EventHandler as means of a way out? Kindly suggest
RajI found the following in JAXB specification 1.0, Section 5.9.5
Bind wildcard schema component:
A wildcard is mapped to a simple content-property with:
● Content-property name set to the constant �any�. A binding schema customization could provide a more semantically meaningful contentproperty name.
● Content-property base type set to java.lang.Object by default. Wildcard content encountering during unmarshalling is supported if global XML element tags occurring in �strict� or �lax� wildcard context
are known to the instance of javax.xml.bind.JAXBContext, meaning that the schema(s) describing the element content occurring in the wildcard context is registered with the JAXBContext instance, see
Section 3.2, �JAXBContext,� on page 24 on how bindings are registered with a JAXBContext instance. A JAXB implementation is only required to be able to marshall and unmarshal global element content to/
from �strict�/�lax� wildcard context that is registered and valid5 according to the schema(s) registered to JAXBContext. The specification does not specify how a JAXB implementation handles element content that it does not know how to map to a Java representation.
● See content-property predicate for a wildcard.
● If the maxOccurs is greater than one, the content property is mapped
to a collection property. The default collection property is a List
property.
● These is no default value.
Does anyone know how to go about setting Content-property name & Content-property base type as the specification suggests ? -
Exception Thrown During an EJB Invocation
Hi,
I am using J2EE 1.4_01 and PointBase Database and try to invoke a CustomerBean which loads customer information in PointBase. The throw exception "javax.ejb.EJBException: nested exception is:j ava.lang.NullanksointerException" occur when invoking the EJB. Would like to ask what the meaning on the excpetion and how to solve it?
ThanksI am using J2EE 1.4_01 and PointBase Database and try
to invoke a CustomerBean which loads customer
information in PointBase. The throw exception
"javax.ejb.EJBException: nested exception is:j
ava.lang.NullanksointerException" occur when invoking
the EJB. Would like to ask what the meaning on the
excpetion and how to solve it?I have never heard about this exception in particular. If you mean NullPointerException, it is a runtime exception caused by performing some operation of a null reference instead of an initialized object. This could be accessing member variables (if they are accessible) or invoking methods... -
Exception thrown during Federation
I am using SUN Access Manager 2005Q1 on SUN SPARC/Solaris 9 platform. I am trying to deploy the liberty "sample1" program bundled with Access manager, that demonstrates federation between one IDP and one SP. When doing so, federation fails and i get the follwoing exception in the file "/var/opt/SUNWam/debug/amFederation" :
ERROR: FSAccountManager.writeAccountFedInfo(): AMException :
com.iplanet.am.sdk.AMException: Unable to set attribute(s).
at com.iplanet.am.sdk.ldap.DirectoryManager.processInternalException(DirectoryManager.java:425)
at com.iplanet.am.sdk.ldap.DirectoryManager.setAttributes(DirectoryManager.java:2493)
at com.iplanet.am.sdk.AMDirectoryManager.setAttributes(AMDirectoryManager.java:602)
at com.iplanet.am.sdk.AMCacheManager.setAttributes(AMCacheManager.java:862)
at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1733)
at com.iplanet.am.sdk.AMObjectImpl.store(AMObjectImpl.java:1673)
at com.sun.identity.federation.accountmgmt.FSAccountManager.writeAccountFedInfo(FSAccountManager.java:301)
at com.sun.identity.federation.services.fednsso.FSSSOAndFedHandler.doAccountFederation(FSSSOAndFedHandler.j
ava:1007)
at com.sun.identity.federation.services.fednsso.FSSSOAndFedHandler.processPostAuthnSSO(FSSSOAndFedHandler.j
ava:739)
at com.sun.identity.federation.services.fednsso.FSSSOBrowserArtifactProfileHandler.processAuthnRequest(FSSS
OBrowserArtifactProfileHandler.java:161)
at com.sun.identity.federation.services.fednsso.FSSSOAndFedService.handleAuthnRequest(FSSSOAndFedService.ja
va:546)
at com.sun.identity.federation.services.fednsso.FSSSOAndFedService.handleAuthnRequest(FSSSOAndFedService.ja
va:485)
at com.sun.identity.federation.services.fednsso.FSSSOAndFedService.doGet(FSSSOAndFedService.java:194)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:723)
at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:482)
at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:417)
at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:80)
at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:95)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:313)
at com.sun.identity.federation.common.FSUtils.forwardRequest(FSUtils.java:359)
at com.sun.identity.federation.login.FSPostLogin.sendResponse(FSPostLogin.java:287)
at com.sun.identity.federation.login.FSPostLogin.doPostLogin(FSPostLogin.java:241)
at com.sun.identity.federation.login.FSPostLoginHandler.processRequest(FSPostLoginHandler.java:84)
at com.sun.identity.federation.login.FSPostLoginHandler.doGet(FSPostLoginHandler.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:747)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:860)
at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:249)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:282)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:165)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:257)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at com.sun.mobile.filter.AMLController.doFilter(AMLController.java:163)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:55)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:161)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:263)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:225)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:173)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:161)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:551)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:933)
at com.sun.enterprise.web.connector.httpservice.HttpServiceProcessor.process(HttpServiceProcessor.java:221)
at com.sun.enterprise.web.HttpServiceWebContainer.service(HttpServiceWebContainer.java:2072)
08/12/2005 07:06:06:994 PM IST: Thread[service-j2ee,5,main]
ERROR: FSSSOAndFedHandler.doAccountFederation: Exception when doing account federation
08/12/2005 07:06:06:994 PM IST: Thread[service-j2ee,5,main]
ERROR: FSSSOAndFedHandler.processPostAuthnSSO: Accountfederation failed
08/12/2005 07:06:06:994 PM IST: Thread[service-j2ee,5,main]
ERROR: FSSSOBrowserArtifactProfileHandler.processAuthnRequest: AuthnRequest Processing failed
Do i need to configure something on the directory server? Or does this error imply something else?
Any pointers in this regard will be highly appreciated!You have not created WebLogic domain correctly . OSM is developed using ADF framework and you need to select "Oracle JRF-11.1.1.0[Oracle_common]" & "Oracle JJRF WEbServices Asynchronous services -11.1.1.0[oracle _common]"while creating the WebLogic domain.
-
Connection allocation problem - exception thrown during allocateConnection().
I am using WebLogic 6.1 sp1. In an multithreaded environment, when there are
8 or more threads, I get the following exception-
javax.ejb.EJBException: Unable to acquire connection: ResourceAdapterExc
eption: allocateConnection could not create new or free any connections
javax.ejb.EJBException: Unable to acquire connection: ResourceAdapterException:
allocateConnection could not create new or free any connections
Is this a connection pooling issue.
Thanks.
Hi,
Its probably due to equals and hashcode methods of
ManagedConnectionFactoryImpl. Check that you have implemented them properly.
May be that helps.
Thanks
Amit
Shiva Hunts <[email protected]> wrote in message
news:3bc4bd75$[email protected]..
>
> I am using WebLogic 6.1 sp1. In an multithreaded environment, when there
are
> 8 or more threads, I get the following exception-
>
> javax.ejb.EJBException: Unable to acquire connection: ResourceAdapterExc
> eption: allocateConnection could not create new or free any connections
> javax.ejb.EJBException: Unable to acquire connection:
ResourceAdapterException:
>
> allocateConnection could not create new or free any connections
>
> Is this a connection pooling issue.
>
> Thanks.
-
MDIS blocking XML files with Structural exceptions
Hi,
I am importing Article master records into a repository with MDIS. The files are blocking with structural exceptions. I can import the same files fine with the Import Manager - only some extra value mapping has to be done. I have set to MDIS to perform automatic addition of unmapped values, the port is set using the correct map, it is set to inbound and it is using the correct schema for the article records.
Any files that do not import with the MDIS can be imported with the Import Manager. Any ideas?
Thanks,
Keith
Pts generously rewarded for helpful answers.Hi Keith,
I can see only one cause of the problem taht you are facing.
Probably for the "value mapping" you can make it automatic by setting the MDIS.
You will have to set it as:
1. Automap Unmapped value-- YES
2. Always use Unmapped Value handling- ADD ( this is for adding values which cant be mapped as there as no such values present in MDM).
Kindly let me know if the problem still prevails...
Thanks,
Nitin jain. -
Preserve the sorting of a hierarchy during import to MDM
Hi experts
I have imported a hierarchy from a legacy publishing system
The file is XML and itu2019s close to perfect except for one very important thing
The hierarch is sorted manually in the legacy system and not by any number or letters
This sorting has to be preserved throughout the entire migration
I know itu2019s possible to sort the hierarchy by hand in MDM by inserting a category as sibling.
This is what I need to avoid for potentially over 300.000 categories in all in many hierarchies.
Using the "create hierarchy filed" in the import manager, should display 4 fields instead of only 3
The last filed should be used to sort the hierarchy during import.
Iu2019m able to get a running number from the legacy to control the sorting of the categories.
Hope you have a solution.
Please do not tell me that I just have to live with one more missing function in MDM.Hi again
Nobody had the same problem as me? -
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:
081283Try posting this on the EJB forum:
http://forum.java.sun.com/forum.jspa?forumID=13 -
Automatic import mass data regional structure - Program RSADRLSM01
Hello,
regarding the automatic import mass data to the regional structure via
program RSADRLSM02, we are working in order to replace our third party
provider.
That is why, we need to deleted all the data imported from the city
file and the references before to import new provider data.
We have checked the SAP procedure defined in SAP note 132948 and the
mentioned program RSADRLSM01 but we need confirm that the regional estructure informed in the old documents saved in the system could be impacted if the program RSADRLSM01 is executed.
Any experience in this kind of process?
Thanks in advance.
Juan CarlosSince no one has replied - why not just try this in your test system and see what happens?
-
Automatic import of roles to BI from MDM system?
Hi,
we do have custom MDM system. Since our authorization system is complex and heavily based on master data I wonder is it possible to achieve automatisation of transfering roles from MDM system to SAP BI?
General idea is to make a templates (PFCG - download template role to file) for BI roles which will be kept in MDM and used to generate a new role (based on new master data by simple search/replace in template file). Next issues are to transfer and import newly generated role to BI form MDM. At the moment we are using services and XML to transfer master data from MDM to BI and intend to use it in case of roles.
What we are missing, at the moment, is a way to automatically import role to BI (report which would do job of manual GUI role upload in PFCG)?
We were considering puting a such report for importing roles to BI to a process chain.
Any other ideas?
Kind regards.Hi Josko.
You should definitely use the possibility to generate BI Analysis Authorization from data
rather than creating PFCG roles in BI system:
http://help.sap.com/saphelp_nw70/helpdata/EN/59/fd8b41b5b3b45fe10000000a1550b0/frameset.htm
You should define your own datasource in MDM system to extract the current authorizations there
and then create data flow to store the data in copies of the template DSOs for generating authorizations.
Finally use the program RSEC_GENERATE_AUTHORIZATIONS as described in the above link.
Regards,
Lars -
Structural Exception.. Urgent
Hi MDM Experts,
I have a situation over here wherein I am trying to use the Automatic Import for a XML file through an XML Schema.
XMl Xchema and the port have been mentioned in the port settings. Everything else has also been configured.
But when I place a file in ready Folder it moves into the Structural Exception Folder.
And if I Open the same file through Import Manager Via XML Schema, it shows me, ready to import.
Can somebody tell me, what can be the reason of file moving into Structural Folder. And how should i correct it ?
Please note: The Schema is working fine with Import Manager but not with MDIS.
Help will be appreciated.
Thanks and regards
Nitin JainSee Error handling in Help.sap.com for MDM:
http://help.sap.com/saphelp_mdmgds55/helpdata/EN/dd/a0eca720ce47ef91be87fe7e6f6e1d/content.htm
http://help.sap.com/saphelp_mdmgds55/helpdata/EN/16/fbe28d652c4280a006b2870af2a83e/content.htm
http://help.sap.com/saphelp_mdmgds55/helpdata/EN/c4/ef067c42dc44eaa3688932b0927215/content.htm
How to Fix??
http://help.sap.com/saphelp_mdmgds55/helpdata/EN/e0/6b2eb7d399469bb4235cc8d3dc3529/content.htm
BR,
Alok
Maybe you are looking for
-
Sort functionality in Data Grid
Hi Gurus, I am new to this DataGrid control.I want to establish the sort functionality when clicking on the headercolumns as in matrices. (ie.When double clicking the header column , sort the data in ascending or descending order of that column) like
-
Configuring Runtime systems for a Track
Hello Experts, I am new to the NWDI administration,here am having some quries for configuring Track related data. We are using NWDI 7.0 SP18 having local SLD with both roles as landscape and Name server. We have a requirement to build a new .
-
How long to download an album?
I am trying to download an album (60 songs) from itunes onto my ipad3. Six hours later and it is still showing as waiting. What is going wrong and can I cancel this without paying and re-download?
-
Hi, I went through the install doc but cannot launch the EDQ lauchpad. I get an HTTP Status 500 error with the following details: org.apache.jasper.JasperException: An exception occurred processing JSP page /index.jspx at line 8 5: xmlns:a
-
Controlling meta data returned by an MDX query
Hello, I'm retrieving results from Analysis Services then processing them further in SQL via OpenQuery. So I have a query of the form "select * from OpenQuery(LinkedServer, '<mdx>') The query works fine, but because I have a dimension hierarchy with