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
Raj

I 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 ?

Similar Messages

  • [svn] 1043: Bug: LCDS-184 - Concurrent modification exception thrown during remote subscription management

    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

  • [svn] 1044: Bug: LCDS-184 - Concurrent modification exception thrown during remote subscription management

    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

  • 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,
    Shital

    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.

  • 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

  • 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.
              

  • 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?
    Thanks

    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?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.

  • "Exception occurred during event dispatching". Help me, Please!

    Hi, All:
    when I runing my program, often catch below exception, I couldn't found where I'm wrong, and Why?
    Could you please, give the below exception and
    my code a quick search, and tell me how I to do it, and Why?
    sincerely
    yoursUrey
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:987)
    at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:917)
    at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:858)
    at javax.swing.plaf.ComponentUI.update(ComponentUI.java:39)
    at javax.swing.JComponent.paintComponent(JComponent.java:395)
    at javax.swing.JComponent.paint(JComponent.java:687)
    at javax.swing.JComponent.paintChildren(JComponent.java:498)
    at javax.swing.JComponent.paint(JComponent.java:696)
    at javax.swing.JViewport.paint(JViewport.java:668)
    at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
    at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
    at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
    EventQueueUtilities.java:124)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:131)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:98)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.plaf.basic.BasicTableUI.paintCell(BasicTableUI.java:987)
    at javax.swing.plaf.basic.BasicTableUI.paintCells(BasicTableUI.java:917)
    at javax.swing.plaf.basic.BasicTableUI.paint(BasicTableUI.java:858)
    at javax.swing.plaf.ComponentUI.update(ComponentUI.java:39)
    at javax.swing.JComponent.paintComponent(JComponent.java:395)
    at javax.swing.JComponent.paint(JComponent.java:687)
    at javax.swing.JComponent.paintChildren(JComponent.java:498)
    at javax.swing.JComponent.paint(JComponent.java:696)
    at javax.swing.JViewport.paint(JViewport.java:668)
    at javax.swing.JComponent.paintWithBuffer(JComponent.java:3878)
    at javax.swing.JComponent._paintImmediately(JComponent.java:3821)
    at javax.swing.JComponent.paintImmediately(JComponent.java:3672)
    at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:370)
    at javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.run(System
    EventQueueUtilities.java:124)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:154)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:337)
    at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
    read.java:131)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
    ad.java:98)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
    * the code of sort part *
    class TableMouseAdapter extends MouseAdapter{
    public void mouseClicked(MouseEvent env){
    Cursor headerCursor = tableHeader.getCursor();
    String cursorName = headerCursor.getName();
    Debug.println("Cursor Name : "+cursorName);
    TableColumnModel colModel = treeTable.getColumnModel();
    selectedColumnIndex = colModel.getColumnIndexAtX(env.getX());
    boolean isLeftMouse = SwingUtilities.isLeftMouseButton(env);
    if(isLeftMouse){
    if(cursorName.equalsIgnoreCase("Default Cursor")){
    if(env.getClickCount() == 2){
    // Sort the project of that column.
    model.sort(selectedColumnIndex);
    }else if(cursorName.equalsIgnoreCase("East Resize Cursor")){
    if(env.getClickCount() == 2){
    Debug.println("XLocation : "+env.getX());
    selectedColumnIndex = colModel.getColumnIndexAtX(env.getX()-10);
    Debug.println("Column index : "+selectedColumnIndex);
    if(selectedColumnIndex>0){
    // resize the width of this column.
    Vector columnValues = getColumnValues(selectedColumnIndex);
    int maxColumnWidth = getMaxColumnWidth(columnValues, selectedColumnIndex);
    resetColumnWidth(colModel, selectedColumnIndex, maxColumnWidth);
    //>> ******** the sort of the model in TableMouseAdapter
    public void sort(int columnIndex){
    this.sortColumnIndex = columnIndex;
    (new Thread(new ProjectSort(root))).start();
    //<< ******** the sort of the model in TableMouseAdapter
    //>>********** the sort thread run method ********************************
    public void run(){
    // Get the sorter from the stack, if the stack size is 0
    // then create a new sorter for the tree-table.
    MergeSort sorter = getSizeSorter();
    if( sorter == null )
    return ;
    // Set is Ascending sort or not ,
    if(oldSortColumn == sortColumnIndex){
    if(isSortAscending){
    isSortAscending = false;
    }else isSortAscending = true;
    }else {isSortAscending = false;}
    // if sort the tree table could not disply its originality node.
    // it would be disply its sort node
    isNeedOriginalityNode = false;
    sortNode(sorter, node);
    // when sort is over, then push the sort to the stack,
    // for to used at next time.
    recycleSorter(sorter);
    oldSortColumn = sortColumnIndex;
    // After the sort, you need to update the UI, and send the update
    // event to the EventCenter.
    treeTableView.getTreeTable().updateUI();
    EventCenter.broadcast(treeTableView.getTreeTable(), EventCenter.UPDATE, treeTableView.updateHashData());
    //<<********** the sort thread run method ********************************
    //>>********** the updateUI of the treeTableView.getTreeTable() *************
    public void updateUI() {
    TreePath selecedPath= null;
    if(tree!=null){
    selecedPath = tree.getSelectionPath();
    try{
    if(tree != null) {
    tree.updateUI();
    super.updateUI();
    // Use the tree's default foreground and background colors in the
    // table.
    LookAndFeel.installColorsAndFont(this, "Tree.background",
    "Tree.foreground", "Tree.font");
    if(tree != null && selecedPath!=null) {
    //Set the seleted path after updateUI.
    tree.setSelectionPath(selecedPath);
    }catch(Exception exp){ exp.printStackTrace(); };
    //<<********** the updateUI of the treeTableView.getTreeTable() *************

    Dear, turingcomplete :
    Thanks for your help, I was changed the thread in my code, my problem was moved.
    thank you again
    sincerely
    yours Urey

  • 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

  • Help Me, How to catch exception thrown from ejbStore

    Hi,
    I am working on application running on Iplanet Application Server 4.0. Problem is the application exception thrown from the ejbStore don't reach the calling servlet, calling servlet receive TransactionRollback exception which is system exception. But there is no sign of my application exception thrown from ejbStore. Can anybody tell me how I can get my ApplicationException thrown from ejbStore in my calling servlet.
    I am calling entity beans set method in servlet and in entity bean ejbStore method I am throwing Application exception.
    in entity bean
    public void ejbStore() throws MyException
    if(true) throw new MyException();
    in servlet
    try {
    MyEntityHome home = .......
    MyEntityRemote remote = home.findBy.....
    remote.setMyValue(MyValue value); //Transaction required Container managed
    }catch(MyException e) {
    e.printStackTrace(); // Not cahcing My Exception
    }catch(Exception e) {
    e.printStackTrace(); //catching TransactionRolledBackException
    Thanks
    Shakti

    Hi Ravi
                                    Try this
                                                try
                    Object retMsgs = output.get(bapiretrunmsgobject);
                      if(result != null )
    IrecordSet rmsg = (IrecordSet) result
                   catch(Exception ex)
                        printException(ex, "Error getting function result");
    Lemme know for any further questions.
    Regards
    Praveen

  • Exception thrown when trying to create MimeMessage

    Hello,
    I was working on the tutorial for sending SMTP messages using the JavaMail API. I set up the Session using Properties fine, but I begin throwing exceptions when trying to construct a new MimeMessage.
    Properties props = System.getProperties();
    props.put("mail.smtp.host", MAILHOST);
    props.put("mail.transport.protocol", "SMTP" );
    Session session = Session.getInstance(props, null);
    // Exceptions thrown below
    MimeMessage rfc822Msg = new MimeMessage(session);
    The exception error message I receive is:
    Exception occurred during event dispatching:
    java.lang.NoClassDefFoundError: javax/activation/DataSource
    at MailApplet.actionPerformed(MailApplet.java:30)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:10
    at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(Abstra
    ton.java:1101)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel
    :378)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:250
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonL
    er.java:204)
    at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:2
    at java.awt.Component.processMouseEvent(Component.java:3165)
    at java.awt.Component.processEvent(Component.java, Compiled Code)
    at java.awt.Container.processEvent(Container.java, Compiled Code)
    at java.awt.Component.dispatchEventImpl(Component.java, Compiled Code)
    at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2068
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:1852)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java, Compiled
    at java.awt.Container.dispatchEventImpl(Container.java, Compiled Code)
    at java.awt.Window.dispatchEventImpl(Window.java, Compiled Code)
    at java.awt.Component.dispatchEvent(Component.java, Compiled Code)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java, Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEventForComponent(EventDispatchTh
    java, Compiled Code)
    at java.awt.EventDispatchThread.pumpEventsForComponent(EventDispatchThre
    va:95)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:90)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    If you have any idea what is going on your help will be greatly appreciated.
    I am using the jdk1.2.2 build and the JavaMail1.2 distribution.
    Thanks,
    William Mapp

    Thanks for the help. Sorry I goofed. Now I have a question regarding what addresses you can send mail to. It seems that if I attempt send mail to a server other than the SMPT host I get a javax.mail.SendFailedException: Sending failed. The exception continues by stating that the address was Invalid, Relaying Denied.
    What does this actually mean? Should i be supplying more information?
    Thanks,
    Will

  • EJB Exception occurred during invocation from home: com.bea.content.manager

    BEA 8.1 Team,
    Is there any limitation on BEA Repository such as number of nodes, etc.
    I have a serious production issue. All i could see from the LOG file is the stact trace which i have posted it here.
    ####<Aug 24, 2006 8:04:57 AM CDT> <Info> <EJB> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <jdcs1400> <BEA1-60BE09B7462F> <BEA-010051> <EJB Exception occurred during invocation from home: [email protected]67bc75 threw exception: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    ####<Aug 24, 2006 8:04:57 AM CDT> <Error> <HTTP> <websrv11> <PORTALSRVR> <ExecuteThread: '99' for queue: 'weblogic.kernel.Default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=30691960,name=myServicePoint,context-path=/myServicePoint)] Servlet failed with Exception
    javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    ; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
    java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    javax.ejb.EJBException: EJB Exception: : java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at java.lang.String.substring(String.java:1438)
         at java.lang.String.substring(String.java:1411)
         at com.bea.content.PathHelper.removeFirst(PathHelper.java:168)
         at com.bea.content.manager.internal.NodeOpsBean.getNode(NodeOpsBean.java:680)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:111)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    ; nested exception is: java.lang.StringIndexOutOfBoundsException: String index out of range: -1
         at weblogic.ejb20.internal.EJBRuntimeUtils.throwEJBException(EJBRuntimeUtils.java:152)
         at weblogic.ejb20.internal.BaseEJBLocalHome.handleSystemException(BaseEJBLocalHome.java:232)
         at weblogic.ejb20.internal.BaseEJBLocalObject.postInvoke(BaseEJBLocalObject.java:326)
         at com.bea.content.manager.internal.NodeOpsEJB_e40s0j_ELOImpl.getNode(NodeOpsEJB_e40s0j_ELOImpl.java:122)
         at com.bea.content.manager.servlets.ShowPropertyServlet.printNode(ShowPropertyServlet.java:180)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doPost(ShowPropertyServlet.java:72)
         at com.bea.content.manager.servlets.ShowPropertyServlet.doGet(ShowPropertyServlet.java:64)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
         at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at com.bea.p13n.servlets.PortalServletFilter.doFilter(PortalServletFilter.java:293)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
         at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
         at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
         at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)
    >
    Any help would be greatly appreciated!!
    Thanks in Advance,
    -Nach.

    Hi Dragan,
    First of all we need to put some debug (System.out.println) to findout exactly which object reference is actually becoming NULL. From there only we can start diagnosis on this issue. that's the root. It should be very easy for your Developers to put some debug on that...because the NullPointerException is being thrown by your code...I m not Blaming on your Code... WLS may be responsible for that...but first of all we need to find out Which Object is becoming NULL.
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • Strutstestcase problem - exception thrown by action not being caught

    Hi,
    I am experiencing a problem in a test class I wrote to test part of a Struts based application. I have posted this problem on the StrutsTestCase forum but not had a response yet (it doesn't seem to be frequently visited/posted at) so thought I would try my luck here.
    The action performs some back-end processing and if all successful then returns a mapping forward. If an error occurs then an Exception is thrown. The config file contains the entry for the ExceptionHandler which displays the error message on the page (i.e. it calls the same jsp page that the action was first submitted from).
    This all works fine when tested through the browser. Running a successful test via CactusStrutsTestCase also works correctly. But when I try to run a test to validate the error path the test class errors and the cactus output file indicates the Exception was thrown. BUT in my test class method...
    public void testFileUpload()
    this.setRequestPathInfo("/mypath");
    this.addRequestParameter("action", "uploadFile");
    MyForm form = new MyForm();
    form.setFormFile(this.getUploadFile("empty.txt"));
    this.setActionForm(form);
    try
    this.actionPerform();
    System.out.println("got here OK -----------------------");
    catch (Exception e)
    System.out.println("got here ERROR -----------------------" + e.getMessage());
    I try to catch the Exception so I can determine whether the test passed/failed but it is never caught. Instead the test just errors and neither debug line above is printed on the console. Yet the output file indicates that at the 'this.actionPerform();' line an error was uncaught...
    <testcase classname="test.MyCactusTest" name="testFileUpload" time="4.87">
    <error message="An uncaught exception was thrown during actionExecute()" type="org.apache.cactus.internal.client.ServletExceptionWrapper">servletunit.struts.ExceptionDuringTestError: An uncaught exception was thrown during actionExecute()
         at servletunit.struts.CactusStrutsTestCase.actionPerform()V(CactusStrutsTestCase.java:546)
         at test.MyCactusTest.testFileUpload()V(MyCactusTest.java:34)
    I'm bemused! Any help is much appreciated.

    Hi,
    I am experiencing a problem in a test class I wrote to test part of a Struts based application. I have posted this problem on the StrutsTestCase forum but not had a response yet (it doesn't seem to be frequently visited/posted at) so thought I would try my luck here.
    The action performs some back-end processing and if all successful then returns a mapping forward. If an error occurs then an Exception is thrown. The config file contains the entry for the ExceptionHandler which displays the error message on the page (i.e. it calls the same jsp page that the action was first submitted from).
    This all works fine when tested through the browser. Running a successful test via CactusStrutsTestCase also works correctly. But when I try to run a test to validate the error path the test class errors and the cactus output file indicates the Exception was thrown. BUT in my test class method...
    public void testFileUpload()
    this.setRequestPathInfo("/mypath");
    this.addRequestParameter("action", "uploadFile");
    MyForm form = new MyForm();
    form.setFormFile(this.getUploadFile("empty.txt"));
    this.setActionForm(form);
    try
    this.actionPerform();
    System.out.println("got here OK -----------------------");
    catch (Exception e)
    System.out.println("got here ERROR -----------------------" + e.getMessage());
    I try to catch the Exception so I can determine whether the test passed/failed but it is never caught. Instead the test just errors and neither debug line above is printed on the console. Yet the output file indicates that at the 'this.actionPerform();' line an error was uncaught...
    <testcase classname="test.MyCactusTest" name="testFileUpload" time="4.87">
    <error message="An uncaught exception was thrown during actionExecute()" type="org.apache.cactus.internal.client.ServletExceptionWrapper">servletunit.struts.ExceptionDuringTestError: An uncaught exception was thrown during actionExecute()
         at servletunit.struts.CactusStrutsTestCase.actionPerform()V(CactusStrutsTestCase.java:546)
         at test.MyCactusTest.testFileUpload()V(MyCactusTest.java:34)
    I'm bemused! Any help is much appreciated.

  • Event dispatching exception thrown when invoking a webpage in a JEditorPane

    I have a help option in one of the menus of my tool. When this help option is chosen from the menu, the tool invokes a frame which is of JEditorPane type and displays an HTML doc in it. Here is the stack trace I am getting.
    My problem is I get this error only on Unix platforms (Solaris) and despite the exception being thrown the application works alright. Although the help frame has serious performance issues, it takes a while for this frame to load the html doc in it and display it (the html file is about 8 pages long).
    Please let me know how to get rid of this exception. Thanks in advance. Here is the stack trace of the exception I am getting:
    Exception occurred during event dispatching:
    java.lang.NullPointerException
    at javax.swing.text.LabelView.syncFragments(Compiled Code)
    at javax.swing.text.LabelView.getPreferredSpan(Compiled Code)
    at javax.swing.text.ParagraphView.layoutRow(Compiled Code)
    at javax.swing.text.ParagraphView.rebuildRows(Compiled Code)
    at javax.swing.text.ParagraphView.layout(ParagraphView.java:216)
    at javax.swing.text.BoxView.setSize(BoxView.java:259)
    at javax.swing.text.BoxView.layout(Compiled Code)
    at javax.swing.text.BoxView.setSize(BoxView.java:259)
    at javax.swing.text.BoxView.layout(Compiled Code)
    at javax.swing.text.BoxView.setSize(BoxView.java:259)
    at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Compiled Code)
    at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(Compiled Code)
    at javax.swing.JComponent.getPreferredSize(Compiled Code)
    at javax.swing.JEditorPane.getPreferredSize(JEditorPane.java:991)
    at javax.swing.ScrollPaneLayout.layoutContainer(Compiled Code)
    at java.awt.Container.layout(Compiled Code)
    at java.awt.Container.doLayout(Compiled Code)
    at java.awt.Container.validateTree(Compiled Code)
    at java.awt.Container.validateTree(Compiled Code)
    at java.awt.Container.validateTree(Compiled Code)
    at java.awt.Container.validateTree(Compiled Code)
    at java.awt.Container.validateTree(Compiled Code)
    at java.awt.Container.validate(Compiled Code)
    at java.awt.Window.dispatchEventImpl(Compiled Code)
    at java.awt.Component.dispatchEvent(Compiled Code)
    at java.awt.EventQueue.dispatchEvent(Compiled Code)
    at java.awt.EventDispatchThread.pumpOneEvent(Compiled Code)
    at java.awt.EventDispatchThread.pumpEvents(Compiled Code)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:83)

    I am still at a loss, any help/ tips/ guidance is welcome to solve this problem. thanks in advance.

Maybe you are looking for

  • Multiple versions of same computer listed under shared (with a number added)

    Hi, This is not Yosemite specific as  I found numerous posts from earlier systems but no solution. I have 4 macs connected to this specific network. For whatever reason after running for months with no issue the iMac is now listed multiple times and

  • Query on Payment Proposal

    Hi Gurus, We can currently run a payment proposal for US$, is there a way to run a payment proposal for non-US$? Kindly advice the steps to get the payment proposal for non-US $. Thanks for the Support! Early response will be appreciated. JBC

  • How to activate GOS in (e.g.) SU01?

    Hello, a number of SAP standard functions have no GOS button available. Especially for SU01 I have a request, because user administrators want to add offcie documents as attachments to the user master. Is there a possibility to activate GOS for SU01

  • Firmware 1.1.1 size?

    There's about a half gb discrepancy between the total size of my iTunes library and what iTunes says is "Used" on my iPod. Could this mean that the firmware is a half gb? Or why else would my iPod used space be a half gb more than my actual library?

  • OAM OIM OID OVD ?

    I always hear these things from Oracle, OAM, OIM, OID and OVD. are they the same thing? if not, I belive they are related since people always mention them together, then, what's relationship? please clarify I'm new to Oracle identity management produ