Exception in method: ejbPostCreate: java.lang.IllegalArgumentException

Hi,
when i ported our application from 6.1(SP3) to 7.0(SP1),
I am getting the java.lang.IllegalArgumentException.
I am attaching the relevent stack trace
<Info> <EJB> <010051> <EJB Exception during invoc
ation from home: com.ibsplc.gulfshare.reservation.booking.ejb.ReservationManager
EJB_5uuvrj_LocalHomeImpl@1824d6 threw exception: javax.ejb.TransactionRolledback
LocalException: EJB Exception:; nested exception is: java.lang.IllegalArgumentException:
Illegal attempt to assign a removed bean to a CMR field. The EJB with primary
key 'com.ibsplc.gulfshare.reservation.booking.ejb.ReservationPK@1920' has been
removed and cannot be assigned to this CMR field.
javax.ejb.TransactionRolledbackLocalException: EJB Exception:; nested exceptionis:
java.lang.IllegalArgumentException: Illegal attempt to assign a removed bean to
a CMR field.

Hi satheesh,
am kamal. am also getting the same exception
" nested exception is: java.lang.IllegalArgumentException: [EJB:010133]Illegal attempt to assign a removed bean to a CMR field. The EJB with primary key '1' has been removed and cannot be assigned to this CMR field."
in my case am using two entity beans one for customer-order and the other for customer-Address. am creating the address bean within ejbPostcreate of order.
while running the client am getting the exception "Illegal attempt to assign a removed bean to a CMR field"
have you found any solution for it. can you pls hlp me on this. am held up whith this problem.
regards,
kamal.

Similar Messages

  • Java.lang.IllegalArgumentException: References to entities are not allowed

    Hi,
    I am using Berkely DB(native edition) 5.0.21 version. I have a couple classes as defined below:
    Class - 1:
    package bdb.test;
    import java.util.List;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.PrimaryKey;
    @Entity
    public class Employee {
         @PrimaryKey
         private String id ;
         private String name;
         private List<Employee> reportingManagers ;
         public String getId() {
              return id;
         public void setId(String id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public List<Employee> getReportingManagers() {
              return reportingManagers;
         public void setReportingManagers(List<Employee> managers) {
              this.reportingManagers = managers;
    Class - 2 :
    package bdb.test;
    import java.io.File;
    import java.io.FileNotFoundException;
    import java.util.ArrayList;
    import java.util.List;
    import com.sleepycat.db.DatabaseException;
    import com.sleepycat.db.Environment;
    import com.sleepycat.db.EnvironmentConfig;
    import com.sleepycat.persist.EntityStore;
    import com.sleepycat.persist.PrimaryIndex;
    import com.sleepycat.persist.StoreConfig;
         public class BDBTest{
              public static void main(String agrs[]){
                   Environment myEnv;
                   EntityStore store;
                   try {
                        EnvironmentConfig myEnvConfig = new EnvironmentConfig();
                        myEnvConfig.setCacheSize(30000);
                        StoreConfig storeConfig = new StoreConfig();
                        myEnvConfig.setAllowCreate(true);
                        myEnvConfig.setInitializeCache(true);
                        storeConfig.setAllowCreate(true);
                        try {
                        // Open the environment and entity store
                        myEnv = new Environment(new File("c:\\BDBTEST\\"), myEnvConfig);
                        store = new EntityStore(myEnv, "MyStore", storeConfig);
                        PrimaryIndex<String, Employee> primaryIndex = store.getPrimaryIndex(String.class, Employee.class);
                        // write Employee
                        Employee employee = buildEmployee("E1", "EMP1");
                        primaryIndex.putNoReturn(employee);
                   } catch (FileNotFoundException fnfe) {
                        System.err.println(fnfe.toString());
                        System.exit(-1);
                   } catch(DatabaseException dbe) {
                        System.err.println("Error opening environment and store: " +
                        dbe.toString());
                        System.exit(-1);
              public static Employee buildEmployee(String id,String name){
                   Employee employee = new Employee();
                   employee.setId(id);
                   employee.setName(name);
                   employee.setManagers(buildManager());
                   return employee;
              public static List<Employee> buildManager(){
                   List <Employee> managers = new ArrayList<Employee>();
                   Employee manager1 = new Employee();
                   manager1.setId("M111");
                   manager1.setName("Manager1");
                   Employee manager2 = new Employee();
                   manager2.setId("M222");
                   manager2.setName("Manager2");
                   managers.add(manager2);
                   return managers;
    While running the Class 2, I am getting the following exception :
    Exception in thread "main" java.lang.IllegalArgumentException: References to entities are not allowed: bdb.test.Employee
         at com.sleepycat.persist.impl.RecordOutput.writeObject(RecordOutput.java:94)
         at com.sleepycat.persist.impl.ObjectArrayFormat.writeObject(ObjectArrayFormat.java:137)
         at com.sleepycat.persist.impl.RecordOutput.writeObject(RecordOutput.java:114)
         at com.sleepycat.persist.impl.ReflectionAccessor$ObjectAccess.write(ReflectionAccessor.java:398)
         at com.sleepycat.persist.impl.ReflectionAccessor.writeNonKeyFields(ReflectionAccessor.java:258)
         at com.sleepycat.persist.impl.ReflectionAccessor.writeNonKeyFields(ReflectionAccessor.java:255)
         at com.sleepycat.persist.impl.ComplexFormat.writeObject(ComplexFormat.java:528)
         at com.sleepycat.persist.impl.ProxiedFormat.writeObject(ProxiedFormat.java:116)
         at com.sleepycat.persist.impl.RecordOutput.writeObject(RecordOutput.java:114)
         at com.sleepycat.persist.impl.ReflectionAccessor$ObjectAccess.write(ReflectionAccessor.java:398)
         at com.sleepycat.persist.impl.ReflectionAccessor.writeNonKeyFields(ReflectionAccessor.java:258)
         at com.sleepycat.persist.impl.ComplexFormat.writeObject(ComplexFormat.java:528)
         at com.sleepycat.persist.impl.PersistEntityBinding.writeEntity(PersistEntityBinding.java:103)
         at com.sleepycat.persist.impl.PersistEntityBinding.objectToData(PersistEntityBinding.java:83)
         at com.sleepycat.persist.PrimaryIndex.putNoOverwrite(PrimaryIndex.java:474)
         at com.sleepycat.persist.PrimaryIndex.putNoOverwrite(PrimaryIndex.java:449)
         at bdb.test.BDBTest.main(BDBTest.java:42)
    Question : In the above example reportingManagers is also a list of Employee classes. Can't I self reference a object with in the same object ? How do I store list of reportingManagers in this example? Any help is highly appreciated.
    Thanks,
    Bibhu

    Hi Sandra,
    Thanks for the reply.
    Is there any restrictions in Berkeley DB to store cyclic referencing objects?
    API documentation for Entity annotation talks about cyclic references in one of section but contradicts the same in another section. Please refer the link below:
    [ http://download.oracle.com/docs/cd/E17076_02/html/java/com/sleepycat/persist/model/Entity.html]
    Following sections of this documentation contradicts each other. I have highlighted both of them in bold.
    Other Type Restrictions:
    Entity classes and subclasses may not be used in field declarations for persistent types. Fields of entity classes and subclasses must be simple types or non-entity persistent types (annotated with Persistent not with Entity).
    If a field of an Entity needs to reference an object, the referenced object should be marked with @Persistent and not with @Entity. So, self referencing is not possible as the main class would have been marked with @Entity.
    Embedded Objects
    As stated above, the embedded (or member) non-transient non-static fields of an entity class are themselves persistent and are stored along with their parent entity object. This allows embedded objects to be stored in an entity to an arbitrary depth.
    There is no arbitrary limit to the nesting depth of embedded objects within an entity; however, there is a practical limit. When an entity is marshalled, each level of nesting is implemented internally via recursive method calls. If the nesting depth is large enough, a StackOverflowError can occur. In practice, this has been observed with a nesting depth of 12,000, using the default Java stack size. This restriction on the nesting depth of embedded objects does not apply to cyclic references, since these are handled specially as described below.
    Self referencing is possible.
    Object Graphs
    When an entity instance is stored, the graph of objects referenced via its fields is stored and retrieved as a graph. In other words, if a single instance is referenced by two or more fields when the entity is stored, the same will be true when the entity is retrieved. When a reference to a particular object is stored as a member field inside that object or one of its embedded objects, this is called a cyclic reference. Because multiple references to a single object are stored as such, cycles are also represented correctly and do not cause infinite recursion or infinite processing loops. If an entity containing a cyclic reference is stored, the cyclic reference will be present when the entity is retrieved.
    My question:
    In the above first highlighted section says to store a referenced/embedded object it needs be marked with @Persistent and not with @Entity annotation. That rules out storage of cyclic referencing object since the main object would have been already marked with @Entity annotation. The second section indicates having support for cyclic references.
    So, Is it possible to store cyclic referencing objects in BDB? if yes, how it should be done?
    Thanks,
    Bibhu
    Edited by: user12848956 on Jan 20, 2011 7:19 AM

  • Exception:[java.lang.IllegalArgumentException: Cannot cast 02 to boolean]

    Hi Friends,
    I am facing a issue in mapping. My scenario is IDOC to JDBC.
    I have done mapping in the give below way.
    If segment1 and segment2 both exists and attyp(field of segment1) is equal to '00' or '01' then segment1 replicate into table.
    I am facing a error while testing the mapping is:
    RuntimeException in Message-Mapping transformation: Exception:[java.lang.IllegalArgumentException: Cannot cast 02 to boolean] in class com.sap.aii.mappingtool.flib3.Bool method or[02, 01, com.sap.aii.mappingtool.tf3.rt.Context@459926e5]
    Kindly suggest me on this.
    Regards,
    Narendra Goyal

    My Mapping in such a way:
                              01      attyp
                                \          \               segment1
                                or   -  equals           \
                                 /          \                then
                               02         and   -    if              ->       Table
    segment1 - exists   \      /                 else
                                  and                      /
    segmen2 - exists   /             some more condition

  • JDeveloper design-time exception (java.lang.IllegalArgumentException)

    Using JDev 11.1.1.3; to speed up the chart renders in pages, we've switched the chart from dynamic-size to fixed-size which brings the chart in 1 - 2 seconds quicker which is good, but in order to continue supporting expand/reduce functionality (requested by user via af:commandImageLink press) the width on the chart is set via EL or managed-bean. Either way, now when we load up the page in JDeveloper we get ...
    13/09/2010 4:27:19 PM oracle.adfinternal.view.faces.bi.renderkit.imageView.ImageViewRenderer
    WARNING: Exception in parsing the inlineStyle.
    java.lang.IllegalArgumentException: Invalid length: #{viewScope.AdminActivity.trend1Width}
         at oracle.adfinternal.view.faces.bi.util.CSSStyleUtils.parseLength(CSSStyleUtils.java:645)
    ... appearing in the Messages - Log view for each chart when switching the editor to Design mode.
    Is there some way to turn this off, or is it considered a bug to be fixed, or should we (despite the fact the run-time works) consider this bad design. (NB: client rates performance highly and the improvement delivered here important).
    Thanks,

    Hi,
    exception:java.lang.IllegalArgumentException.1 .This means that u passed an illegal or inappropriate argument to some method.
    page first loads then the error appears, if I go to
    next page and come back to the initial page, then the
    applet works!2. This means that the value of the argument u are passing changes between init,start,stop of the Applets methods.
    3.So u should be checking the values of the arg are passing .
    Hope it helps
    Cheers!

  • Dynamic Configuration Error:  Exception:[java.lang.IllegalArgumentException

    Hi All,
    I am using dynamic configuration to put a string to the message header. i have created a tilde delimited string with the length more than 200(length=928). During mapping i am using dynamic configuration to put this in SOAP header. But everytime i execute scenario i get an error:
    "com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping; root message: Exception:[java.lang.IllegalArgumentException: Value is too long (928/200): "
    Is there a limit to the length of the string that can be placed in the dynamic configuration ?
    Please help.
    Regards,
    Meenakshi Pradhan

    meenakshipradhan wrote:>
    > "com.sap.aii.mappingtool.tf7.MessageMappingException: Runtime exception when processing target-field mapping; root message: Exception:[java.lang.IllegalArgumentException: Value is too long (928/200): "
    >
    I think the above error does say about that..!! Try putting data like 201 chars and the 200 chars, then see what happens.
    VJ

  • Exception Details: java.lang.IllegalArgumentException table1.

    Hi when i try to add some of the data to the database from the jsp page it is showing like Unhandled Exception:
    Exception Details: java.lang.IllegalArgumentException srni.Table1.ID
    Really i am frustrated by doing this from past 2 months. Any help would be appreciated.
    Thank You in Advance.

    Are you using JavaDb/Derby bundled with Creator?
    If Yes, this shouldn't happen with this DB. Please restart your database server and refresh and the datasouce.
    If you are using any other driver, it is possible that the JDBC driver is not JDBC 3.0 compliant. I would suggest you to check out the bundled SUn JDBC Drivers.
    Refer to database tutorials for some quick start on this:
    http://developers.sun.com/prodtech/javatools/jscreator/learning/tutorials/index.jsp#Access_Databases
    HTH,
    Sakthi

  • Java.lang.IllegalArgumentException when trying to create debug setting

    Hello all,
    I have just performed an install of EHP1 on a W2K3 EE machine, and I'm trying to setup to debug my Web Dynpro app on the Java server.  I have defined the system instance correctly SAP AS Java in the Window --> Preferences --> SAP AS Java section. My Web Dynpro app deploys and runs without problems.
    However, when I use Run -> Open Debug Dialog and then click on "Run on Server" and use the "New launch configuration" option, I get a message box stating "java.lang.IllegalArgumentException (check log file)".
    So I switch to Plug-in Development perspective and take a look at the log file. The exception appears in the list of messages; double-clicking the exception provides this data:
    Severity: Error
    Message: Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    Exception Stack Trace:
    java.lang.IllegalArgumentException
         at org.eclipse.wst.server.core.internal.ResourceManager.getServer(ResourceManager.java:758)
         at org.eclipse.wst.server.core.ServerCore.findServer(ServerCore.java:286)
         at org.eclipse.wst.server.ui.internal.RunOnServerLaunchConfigurationTab.initializeFrom(RunOnServerLaunchConfigurationTab.java:105)
         at org.eclipse.debug.ui.AbstractLaunchConfigurationTabGroup.initializeFrom(AbstractLaunchConfigurationTabGroup.java:86)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupWrapper.initializeFrom(LaunchConfigurationTabGroupWrapper.java:143)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.displayInstanceTabs(LaunchConfigurationTabGroupViewer.java:784)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer$8.run(LaunchConfigurationTabGroupViewer.java:658)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.inputChanged(LaunchConfigurationTabGroupViewer.java:676)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput0(LaunchConfigurationTabGroupViewer.java:637)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationTabGroupViewer.setInput(LaunchConfigurationTabGroupViewer.java:613)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.handleLaunchConfigurationSelectionChanged(LaunchConfigurationsDialog.java:975)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$4.selectionChanged(LaunchConfigurationsDialog.java:570)
         at org.eclipse.jface.viewers.StructuredViewer$3.run(StructuredViewer.java:842)
         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
         at org.eclipse.core.runtime.Platform.run(Platform.java:857)
         at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:46)
         at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:199)
         at org.eclipse.jface.viewers.StructuredViewer.firePostSelectionChanged(StructuredViewer.java:840)
         at org.eclipse.jface.viewers.StructuredViewer.handlePostSelect(StructuredViewer.java:1153)
         at org.eclipse.jface.viewers.StructuredViewer$5.widgetSelected(StructuredViewer.java:1178)
         at org.eclipse.jface.util.OpenStrategy.firePostSelectionEvent(OpenStrategy.java:250)
         at org.eclipse.jface.util.OpenStrategy.access$4(OpenStrategy.java:244)
         at org.eclipse.jface.util.OpenStrategy$3.run(OpenStrategy.java:418)
         at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)
         at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:129)
         at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:3659)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3296)
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
         at org.eclipse.jface.window.Window.open(Window.java:796)
         at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1133)
         at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:387)
         at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:391)
         at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:333)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:82)
         at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.runWithEvent(OpenLaunchDialogAction.java:90)
         at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:246)
         at org.eclipse.ui.internal.WWinPluginAction.runWithEvent(WWinPluginAction.java:229)
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
         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:585)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
         at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    Session Data:
    eclipse.buildId=M20080221-1800
    I've done some hunting around the internet for this error and I did find a problem that looks quite similar under a JBOSS forum: https://jira.jboss.org/jira/browse/JBIDE-3689 ("Creating new run configuration of type Run in Server fails with exception, jbds eclipse.buildId=1.1.0.GA"). The information presented there is almost exactly what I'm seeing:
    <cut>
    Steps to Recreate:
    1. From Run menu, select "Open Run Dialog..." or "Open Debug Dialog..."
    2. Right click on "Run on Server"
    3. Select "New"
    What you see is an "Error" dialog of Reason "java.lang.IllegalArgumentException".
    The error log records the following:
    Error
    Thu Jan 29 08:13:48 PST 2009
    Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    </cut>
    In the JBOSS case, the response is:
    <cut>
    It is is a known bug in WTP 2.x and in WTP 3.x this option does not exist anymore thus you should just use Run As -> Run in Server.
    Marked as out of date since latest version of WTP 3 has the fix.
    </cut>
    I have the EHP1 installed on a couple other servers where this is not happening. Anyone run into this before?
    Alternatively, anyone know how I can check the WTP of the SAP-specific eclipse released as the EHP1 developer studio?
    Thanks very much,
    Andy

    Hi Andy,
    I think there is a very siple proces which you need to follow for debug. Please have a look:-
    Please check you mentioned the correct server and instance name. As you are saying that all you applications are running fine therefore I think you would have mentioned all the required parameters correctly.
    After checking all these things, follow the steps below:-
    1) From the menu in NWDS -> Click on the Debug symbol. Select "Open Debug Dialoug".
    2) Right click on the "Remote Java Application" and select New.
    3) Clickon the Source tab. Check whether you application is included under the Defualt folder. Only those projects will be debugged which are under this folder.
    4) If you application is not there. Click on Add-> Java Project -> Select your Project - > OK. Doing this will add your project in debug instance.
    5) Go to Connect tab. Mention the Host name (Same as server name you have mentioned under Window --> Preferences --> SAP AS Java ) AND the Message server port. Please note that this server port is diffrent from the http port.
    6) Just click on Debug.
    I hope after all these steps debug should work. If not please revert back.
    Thanks and Regards,
    Pravesh

  • Invoking web service from EJB3 throw java.lang.IllegalArgumentException

    I used JAX-WS to develop a web service and deployed it on webloigc 10.3.5. The web service was invoked from web application and it worked fine. However, when I tried to invoke the web service from a stateless session bean, java.lang.IllegalArgumentException was thrown out and complained that "*interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader*". I tried following three ways to solve the problem
    1. put the web service client artifacts under APP-INF/classes of the EAR
    2. bundle the web service client artifacts into a jar file and put it under APP-INF/lib of the EAR
    3. put the web service client artifacts into the same jar file of the EJB
    However, none of the above approaches worked out, every time same exception thrown out.
    I used following commands in my ant script to generate the web service client artifacts
    <path id="deploypathref">
    <fileset dir="${wl.server}">
    <include name="server/lib/weblogic.jar"/>
    <include name="server/lib/weblogic_sp.jar"/>
    <include name="server/lib/xqrl.jar"/>
    <include name="server/lib/webservices.jar"/>
    <include name="../modules/features/weblogic.server.modules_10.3.3.0.jar"/>
    </fileset>
    </path>
    <taskdef name="clientgen"
    classname="weblogic.wsee.tools.anttasks.ClientGenTask" >
         <classpath refid="deploypathref"/>
    </taskdef>
    <clientgen
                   wsdl="http://${wls.hostname}:${wls.port}/nimscast/UpdateEmailService?WSDL"
                   destDir="${path.service}/src"
                   packageName="gov.fema.web.nimcast.service.client"
                   type="JAXWS"/>
                   <javac
                   srcdir="${path.service}/src" destdir="${path.assembly}/ear/APP-INF/classes"
                   includes="**/*.java"/>
    and following is the detail information from the stack trace:
    Caused By: java.lang.IllegalArgumentException: interface gov.fema.web.nimcast.service.client.UpdateEmailPortType is not visible from class loader
         at java.lang.reflect.Proxy.getProxyClass(Proxy.java:353)
         at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:581)
         at weblogic.wsee.jaxws.spi.ClientInstance.createProxyInstance(ClientInstance.java:143)
         at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:855)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:344)
         at weblogic.wsee.jaxws.spi.WLSProvider$ServiceDelegate.getPort(WLSProvider.java:792)
         at com.sun.xml.ws.client.WSServiceDelegate.getPort(WSServiceDelegate.java:326)
         at javax.xml.ws.Service.getPort(Service.java:92)
         at gov.fema.web.nimcast.service.client.UpdateEmailService.getUpdateEmailPortTypePort(Unknown Source)
         at gov.fema.prepcast.beans.UserManagement.updateUserEmailInNimscast(UserManagement.java:622)
         at gov.fema.prepcast.beans.UserManagement.changeUserProfileInfo(UserManagement.java:324)
         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:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy144.changeUserProfileInfo(Unknown Source)
         at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
         at gov.fema.prepcast.beans.UserManagement_dinn8k_UserManagementLocalImpl.changeUserProfileInfo(Unknown Source)
         at gov.fema.prepcast.actions.secret.UpdateUserAction.saveProfileInfo(UpdateUserAction.java:287)
         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:597)
         at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:452)
         at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:291)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:254)
         at com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept(DefaultWorkflowInterceptor.java:176)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:263)
         at org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept(AnnotationValidationInterceptor.java:68)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:133)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java:207)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java:190)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.MultiselectInterceptor.intercept(MultiselectInterceptor.java:75)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java:94)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java:243)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java:100)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java:141)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java:267)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java:142)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java:166)
         at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:98)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java:176)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java:164)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java:190)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java:187)
         at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248)
         at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java:52)
         at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:485)
         at org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java:395)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    Edited by: 938276 on Jul 25, 2012 7:55 AM

    No you haven't, because
    Caused by: java.lang.NoClassDefFoundError: org.example.www.Sample_PortType a relevant class can still not be found and Java really is not going to lie to you; this class is not on your application's classpath so it is either missing or put in the wrong place. Note that missing classes can be caused by you forgetting to properly redeploying your application - its usually something silly like that. Figure out what you did wrong and correct your mistake.
    The fact that you have to mention that you "setup the classpath" is questionable; in web applications you don't touch the classpath at all. So what exactly did you do?

  • Help diagnosing java.lang.IllegalArgumentException

    Hello,
    I have an Eclipse RCP desktop app that I have been working on for the past few months, without incident. In the process of upgrading to the standard com.sleepycat.je version "4.0.92" plugin in Eclipse 3.5, I am getting the exception below. When I try to back up to the older version, it does not matter, the exception below will not go away. The class in question is in the application's codebase, and I see the .class in the bin tree.
    I am using the DPL assistant (latest update from this site).
    In addition, this is not a web app, but rather a desktop app. I have checked the runtime classpath to confirm that the class is indeed there. When I access the same code from a unit test project inside the same workspace, I do not see this exception.
    I am happy to attach/upload anything that would provide any information needed to help me diagnose this problem.
    My class declaration is below the exception.
    java.lang.IllegalArgumentException: Class could not be loaded or is not an entity class: com.patholase.core.entity.Patient
         at com.sleepycat.persist.impl.Store.checkEntityClass(Store.java:1391)
         at com.sleepycat.persist.impl.Store.getPrimaryIndex(Store.java:316)
         at com.sleepycat.persist.EntityStore.getPrimaryIndex(EntityStore.java:308)
         at com.patholase.core.entity.mgr.PatientManager.<init>(PatientManager.java:59)
         at com.patholase.core.entity.mgr.PatientManager.<clinit>(PatientManager.java:27)
         at com.patholase.g3.system.SystemInitializer.initDataStore(SystemInitializer.java:78)
         at com.patholase.g3.system.SystemInitializer.init(SystemInitializer.java:42)
         at com.patholase.g3.product.Application.start(Application.java:25)
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:367)
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:611)
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:566)
         at org.eclipse.equinox.launcher.Main.run(Main.java:1363)
    ======= class
    package com.acme.core.entity;
    import static com.sleepycat.persist.model.Relationship.ONE_TO_MANY;
    import static com.sleepycat.persist.model.Relationship.MANY_TO_ONE;
    import static com.sleepycat.persist.model.DeleteAction.NULLIFY;
    import com.sleepycat.persist.model.Entity;
    import com.sleepycat.persist.model.PrimaryKey;
    import com.sleepycat.persist.model.SecondaryKey;
    import java.util.Date;
    import java.util.Set;
    import java.util.HashSet;
    @Entity public class Patient implements java.io.Serializable {
         public static final long serialVersionUID = 1L;
    @PrimaryKey(sequence="ID")
    public long id;
         public String firstName;
         public String lastName;
         public Date DOB;
         public String internalPracticeId;// internal to practice
         // for tree view
         public Object parent;
         public Patient(){
         public Patient(String firstName, String lastName)
         this.firstName = firstName;
         this.lastName = lastName;
         public String getFirstName() {
              return firstName;
         public void setFirstName(String firstName) {
              this.firstName = firstName;
         public String getLastName() {
              return lastName;
         public void setLastName(String lastName) {
              this.lastName = lastName;
         public long getId() {
              return id;
         public void setId(long id) {
              this.id = id;
         public Date getDOB() {
              return DOB;
         public void setDOB(Date dob) {
              DOB = dob;
         public Object getParent() {
              return parent;
         public void setParent(Object parent) {
              this.parent = parent;
         public String getInternalPracticeId() {
              return internalPracticeId;
         public void setInternalPracticeId(String internalPracticeId) {
              this.internalPracticeId = internalPracticeId;
         public String nameTreeString(){
              return " [" + this.internalPracticeId + "] " + lastName + ", "+ firstName;
         public String toString()
         return "[PatientData: id=" + id + " lastName=" + lastName +
                        " firstName=" + firstName + " DOB= " + DOB + ']';
    }

    I think you have interpreted the exception message correctly, but just to be sure, such an exception means that the Patient class cannot be found when getPrimaryIndex() is called. That means that either the class does not have the @Entity annotation, or that there is a classloader/classpath issue. Your code shows that @Entity is there, so it must be a classpath issue.
    Since it seems to have happened around the upgrade, presumably it did something unexpected to your classpath settings. When you say that you have checked your runtime classpath, do you mean your project's build path/library variables? Would printing the program's classpath from within JAVA by displaying the java.class.path system variable give a hint? Perhaps checking to see if you have the expected JE version (system.out.println(com.sleepycat.je.JEVersion.CURRENT_VERSION)) would help debug. The JE version shouldn't be an issue, but if your code sees an unexpected JE version, it might tell you something.
    There is always the last option of creating a new Eclipse workspace and creating a new project, which points at this code. I did that once when an Eclipse project stopped working for unknown reasons (not with this sort of problem) as a debugging step.

  • WebEngine unexpectly throws java.lang.IllegalArgumentException: Image scanl

    When I use webEngine load below site: http://w133.hg3088.com/ (Need login in), I always get below exception(throw in endless loop). While I do nothing, just load this site, I don't know why throw this exception, and who to fix it.
    java.lang.IllegalArgumentException: Image scanlineStride is too small
         at com.sun.prism.Image.<init>(Unknown Source)
         at com.sun.prism.Image.fromByteBgraPreData(Unknown Source)
         at com.sun.prism.ImageFormatTool.convertImageFrame(Unknown Source)
         at com.sun.webpane.sg.prism.WCImageImpl.<init>(Unknown Source)
         at com.sun.webpane.sg.prism.WCImgDecoderImpl.getPrismImage(Unknown Source)
         at com.sun.webpane.sg.prism.WCImgDecoderImpl.getFrame(Unknown Source)
         at com.sun.webpane.platform.WebPage.twkUpdateContent(Native Method)
         at com.sun.webpane.platform.WebPage.updateDirty(Unknown Source)
         at com.sun.webpane.platform.WebPage.updateContent(Unknown Source)
         at com.sun.javafx.sg.prism.NGWebView.update(Unknown Source)
         at javafx.scene.web.WebView.handleStagePulse(Unknown Source)
         at javafx.scene.web.WebView.access$100(Unknown Source)
         at javafx.scene.web.WebView$2.pulse(Unknown Source)
         at com.sun.javafx.tk.Toolkit.firePulse(Unknown Source)
         at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(Unknown Source)
         at com.sun.javafx.tk.quantum.QuantumToolkit$8.run(Unknown Source)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
         at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
         at java.lang.Thread.run(Thread.java:722)Edited by: Owen on Jun 9, 2012 4:14 AM
    Edited by: Owen on Jun 9, 2012 4:14 AM

    I tried JavaFX 2.2(curretly build b13), it throw another exception.
    java.lang.ArrayIndexOutOfBoundsException: 34346
         at com.sun.javafx.image.impl.BaseByteToByteConverter$FourByteReorderer.doConvert(BaseByteToByteConverter.java:236)
         at com.sun.javafx.image.impl.BaseByteToByteConverter.convert(BaseByteToByteConverter.java:97)
         at com.sun.javafx.image.impl.BaseByteToByteConverter$FourByteReorderer.convert(BaseByteToByteConverter.java:212)
         at com.sun.prism.Image.convertImageFrame(Image.java:162)
         at com.sun.webpane.sg.prism.WCImageImpl.<init>(WCImageImpl.java:106)
         at com.sun.webpane.sg.prism.WCImgDecoderImpl.getPrismImage(WCImgDecoderImpl.java:270)
         at com.sun.webpane.sg.prism.WCImgDecoderImpl.getFrame(WCImgDecoderImpl.java:230)
         at com.sun.webpane.platform.WebPage.twkUpdateContent(Native Method)
         at com.sun.webpane.platform.WebPage.updateDirty(WebPage.java:345)
         at com.sun.webpane.platform.WebPage.updateContent(WebPage.java:609)
         at com.sun.javafx.sg.prism.NGWebView.update(NGWebView.java:52)
         at javafx.scene.web.WebView.handleStagePulse(WebView.java:897)
         at javafx.scene.web.WebView.access$200(WebView.java:81)
         at javafx.scene.web.WebView$2.pulse(WebView.java:209)
         at com.sun.javafx.tk.Toolkit.firePulse(Toolkit.java:360)
         at com.sun.javafx.tk.quantum.QuantumToolkit.pulse(QuantumToolkit.java:460)
         at com.sun.javafx.tk.quantum.QuantumToolkit$9.run(QuantumToolkit.java:329)
         at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
         at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
         at com.sun.glass.ui.win.WinApplication$2$1.run(WinApplication.java:62)
         at java.lang.Thread.run(Thread.java:722)Another bug?

  • EJB3.0:JPA :java.lang.IllegalArgumentException

    Im pretty new to this, so Im trying to post everything you need to understand my problem,try to be more clear, i'm in lack of ideas in this problem, even it sounds like a classic
    /*Bean class*/
    public class BookCatalogBean implements Serializable, BookCatalogInterface {
    @PersistenceContext(unitName="EntityBean")
    // @PersistenceContext
    EntityManager em;
    protected BookBank book;
    protected Collection <BookBank> pmnList;
    public void addBook(String title, String author, double price) {
    // Initialize the form
    if (book == null)
    book = new BookBank(title, author, price);
    em.persist(book);
    public Collection <BookBank>getAllBooks() {
    System.out.println("BookCatalogInterface.java:getAllBooks");
    pmnList=em.createQuery("from BookBank book ").getResultList();
    System.out.println("BookCatalogInterface.java:getAllBooks...111:"+pmnList);
    return pmnList;
    /*and this is another class BookBank.java */
    package entity.library;
    import javax.persistence.Entity;
    import javax.persistence.GeneratedValue;
    import javax.persistence.GenerationType;
    import javax.persistence.Id;
    import javax.persistence.Table;
    import java.util.Collection;
    import javax.persistence.*;
    import java.io.Serializable;
    @Entity
    @Table(name="BookBank")
    public class BookBank implements Serializable {
    long id;
    /*variable declaration*/
    public BookBank() {
    super();
    public BookBank(String title, String author, double price) {
    super();
    this.title = title;
    this.author = author;
    this.price = price;
    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    // Getter and setter methods for the defined properties..
    and I am getting error :-
    BookCatalogInterface.java:getAllBooks
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [from entity.library.ConfPmno conf ], line 1, column 0: unexpected token [from].
    Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );]); nested exception is: java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [from entity.library.ConfPmno conf ], line 1, column 0: unexpected token [from].
    Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );])
    java.lang.IllegalArgumentException: An exception occurred while creating a query in EntityManager:
    Exception Description: Syntax error parsing the query [from BookBank book ], line 1, column 0: unexpected token [from].
    Internal Exception: NoViableAltException(32!=[197:1: document : (root= selectStatement | root= updateStatement | root= deleteStatement );])
    at org.eclipse.persistence.internal.jpa.EntityManagerImpl.createQuery(EntityManagerImpl.java:1328)
    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:597)
    at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:93)
    at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:91)
    at weblogic.deployment.BasePersistenceContextProxyImpl.invoke(BasePersistenceContextProxyImpl.java:80)
    at weblogic.deployment.TransactionalEntityManagerProxyImpl.invoke(TransactionalEntityManagerProxyImpl.java:26)
    at $Proxy140.createQuery(Unknown Source)
    at entity.library.ConfPmnoBean.getAllBooks(ConfPmnoBean.java:37)
    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:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proc
    persistent.xml :-
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="EntityBean" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>DB_DS</jta-data-source>
    <non-jta-data-source>DB_DS</non-jta-data-source>
    <properties>
    <property name="eclipselink.target-server" value="WebLogic_10"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    </properties>
    </persistence-unit>
    </persistence>
    I am not able to resolve the issue,getting error while calling getAllBooks method(createQuery line) of BookCatalogBean.java file.
    Any help is much appreciated,Please suggest solution

    Try using:
    em.createQuery("select book from BookBank book").getResultList();instead of
    em.createQuery("from BookBank book ").getResultList();The "from Entity e" only works for the Hibernate query language not the JPA query language.
    Also in your persistence.xml, define only one data-source: a jta-data-source or a non-jta-data-source.

  • Java.lang.IllegalArgumentException: MONTH Error

    I am maintaining an very old website built with ColdFusion 7 in my org, but I am very new to ColdFusion. We have a newsbriefs module which worked very well before last week. However, from last week, it started throwing me an error when I try to search the articles (Please see below for the error messages). Can anybody tell me what's wrong? Is it something wrong with the java environment on the server or something wrong with the code? How should I fix this problem? Everything else works fine on this site except for the searching articles by date or keywords. Any advices or suggestions would be greatly appreciated!!!
    Resources:   
    Check the ColdFusion documentation to verify that you are using the correct syntax.
    Search the Knowledge Base to find a solution to your problem.
    Browser 
    Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1) ;
    InfoPath.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET4.0C)
    Remote Address 
    192.198.46.55
    Referrer 
    http://siteroot/sitename/newsbriefs/CF/viewbydate.cfm
    Date/Time 
    14-Dec-11 09:54 AM
    Stack Trace (click to expand)
    at cfviewbydate_action2ecfm1313219662.runPage(E:\InetPub\wwwroot\sitename\newsbriefs\CF\view bydate_action.cfm:49) 
    java.lang.IllegalArgumentException: MONTH
    at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2482) 
    at java.util.Calendar.updateTime(Calendar.java:2463) 
    at java.util.Calendar.getTimeInMillis(Calendar.java:1082) 
    at java.util.Calendar.getTime(Calendar.java:1055) 
    at coldfusion.runtime.CFPage.CreateDate(CFPage.java:937) 
    at cfviewbydate_action2ecfm1313219662.runPage(E:\InetPub\wwwroot\sitename\newsbriefs\CF\viewbydate_action.cfm:49) 
    at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:192) 
    at coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:366) 
    at coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65) 
    at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:279) 
    at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40) 
    at coldfusion.filter.PathFilter.invoke(PathFilter.java:86) 
    at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70) 
    at coldfusion.filter.BrowserDebugFilter.invoke(BrowserDebugFilter.java:74) 
    at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28) 
    at coldfusion.filter.BrowserFilter.invoke(BrowserFilter.java:38) 
    at coldfusion.filter.NoCacheFilter.invoke(NoCacheFilter.java:46) 
    at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38) 
    at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22) 
    at coldfusion.filter.RequestThrottleFilter.invoke(RequestThrottleFilter.java:126) 
    at coldfusion.CfmServlet.service(CfmServlet.java:175) 
    at coldfusion.bootstrap.BootstrapServlet.service(BootstrapServlet.java:89) 
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:86) 
    at coldfusion.monitor.event.MonitoringServletFilter.doFilter(MonitoringServletFilter.java:42) 
    at coldfusion.bootstrap.BootstrapFilter.doFilter(BootstrapFilter.java:46) 
    at jrun.servlet.FilterChain.doFilter(FilterChain.java:94) 
    at jrun.servlet.FilterChain.service(FilterChain.java:101) 
    at jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:106) 
    at jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42) 
    at jrun.servlet.JRunRequestDispatcher.invoke(JRunRequestDispatcher.java:284) 
    at jrun.servlet.ServletEngineService.dispatch(ServletEngineService.java:543) 
    at jrun.servlet.jrpp.JRunProxyService.invokeRunnable(JRunProxyService.java:203) 
    at jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable(ThreadPool.java:320) 
    at jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable(ThreadPool.java:428)
      at jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable(ThreadPool.java:266) 
    at jrunx.scheduler.WorkerThread.run(WorkerThread.java:66) 

    Thanks very much for you quick response! Here are some codes related to this action:
    Page viewbydate.cfm (no problem on this page, but on the following page):
    <cfoutput>
    <cfinclude template="menu.cfm">
    <cfif isdefined('news_title')>
    <cfupdate datasource="newsbriefs" tablename="news">
    The article titled #news_title# has been updated in the database.<br />
    </cfif>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>View By Date</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <form name="form" method="post" action="viewbydate_action.cfm">
    <cfif isdefined('makeissue') and #makeissue# eq true>
    <cfquery datasource="newsbriefs" name="ii">
    SELECT TOP 1 ISSUE.ISSUE_ID, finalize
    FROM ISSUE
    ORDER BY ISSUE.ISSUE_ID DESC;
    </cfquery>
    <cfif #ii.finalize# eq false>
    <cfset form.issue_id = #ii.issue_id#>
    <cfelse>
    <cfset form.issue_id = #ii.issue_id#+1>
    </cfif>
    Create Issue: Step 1<input type="hidden" name="issue_id" value="#form.issue_id#"></cfif>
      <table border="0">
        <tr>
          <td colspan="3"><div align="right">Select stories by </div></td>
          <td colspan="3"><select name="criteria">
              <option value="added">date added</option>
              <option value="story">story date</option>
                </select></td>
        </tr>
    <cfset current = now()>
    <cfset twoweeks = current-14>
        <tr>
          <td colspan="6"> </td>
        </tr>
        <tr>
          <td>Month</td>
          <td>
    <select name="frommonth">
    <cfloop from="0" to="11" step="1" index="add">
    <option value="#dateformat(dateadd('m', add, twoweeks), 'm')#">
    #dateformat(dateadd('m', add, twoweeks), 'mmmm')#</option>
    </cfloop>
    </select>
       </td>
          <td>Day</td>
          <td>
       <select name="fromday">
    <cfloop from="1" to="31" step="1" index="add">
    <option value="#add#" <cfif #dateformat(twoweeks, 'd')# eq #add#>selected</cfif>>#add#</option>
    </cfloop>
    </select>
    </td>
          <td>Year</td>
          <td>
       <select name="fromyear">
    <cfloop from="-1" to="1" step="1" index="add">
    <option value="#dateformat(dateadd('yyyy', add, twoweeks), 'yyyy')#"
    <cfif #dateformat(dateadd('yyyy', add, twoweeks), 'yyyy')# eq #dateformat(twoweeks, 'yyyy')#>selected</cfif>>
    #dateformat(dateadd('yyyy', add, twoweeks), 'yyyy')#</option>
    </cfloop>
    </select>
    </td>
        </tr>
        <tr>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
          <td> </td>
        </tr>
        <tr>
          <td>Month</td>
          <td><select name="tomonth">
    <cfloop from="0" to="11" step="1" index="add">
    <option value="#dateformat(dateadd('m', add, current), 'm')#">
    #dateformat(dateadd('m', add, current), 'mmmm')#</option>
    </cfloop>
    </select>
    </td>
          <td>Day</td>
          <td>   <select name="today">
    <cfloop from="1" to="31" step="1" index="add">
    <option value="#add#" <cfif #dateformat(current, 'd')# eq #add#>selected</cfif>>#add#</option>
    </cfloop>
    </select>
    </td>
          <td>Year</td>
          <td>   <select name="toyear">
    <cfloop from="-1" to="1" step="1" index="add">
    <option value="#dateformat(dateadd('yyyy', add, current), 'yyyy')#"
    <cfif #dateformat(dateadd('yyyy', add, current), 'yyyy')# eq #dateformat(current, 'yyyy')#>selected</cfif>>
    #dateformat(dateadd('yyyy', add, current), 'yyyy')#</option>
    </cfloop>
    </select>
    </td>
        </tr>
        <tr>
          <td colspan="6"><input type="submit" value="Get Articles"></td>
        </tr>
      </table>
    </form>
    </body>
    </html>
    </cfoutput>
    Here is the viewbydateaction.cfm (error message returned on this page):
    <cfoutput>
    <!--- CREATE DATES FOR THE FROM AND TO DATES ON SUBMIT PAGE --->
    <cfif isdefined('form.fromyear')>
    <cfset fromdate = #createdatetime(form.fromyear,form.frommonth,form.fromday,0,0,0)#>
    <cfset todate = #createdatetime(form.toyear,form.tomonth,form.today,23,59,59)#>
    </cfif>
    <!--- GET ALL STORIES --->
    <cfquery name="z" datasource="newsbriefs" cachedwithin="#createtimespan(0,0,15,0)#">
    select *
    from news
    </cfquery>
    <cfquery  datasource="newsbriefs" name="y">
    select distinct news_category
    from news
    order by news_category
    </cfquery>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <html>
    <head>
    <title>View Articles</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>
    <body>
    <cfinclude template="menu.cfm">
    <form name="form" method="post" action="preview.cfm">
    <cfif isdefined('form.issue_id') and #form.issue_id# neq "">Create Issue: Step 2<input type="hidden" name="issue_id" value="#form.issue_id#"><cfset makeissue = true></cfif>
    <table border="1">
    <cfloop query="y">
    <cfquery datasource="newsbriefs" name="a">
    select *
    from category
    where category_id = #y.news_category#
    </cfquery>
    <tr><td colspan="2"><h1>#a.category_name#</h1></td></tr>
    <cfquery datasource="newsbriefs" name="x">
    select *
    from news
    where news_category = #y.news_category#
    order by news_category,news_year desc,news_month desc,news_day desc
    </cfquery>
    <cfquery datasource="newsbriefs" name="ii">
    SELECT TOP 1 ISSUE.ISSUE_ID, finalize
    FROM ISSUE
    ORDER BY ISSUE.ISSUE_ID DESC;
    </cfquery>
    <cfloop query="x">
    <cfset storydate = '#dateformat(createdate(x.news_year,x.news_month,x.news_day), 'd mmmm yyyy')#'>
    <cfif #form.criteria# eq 'story'>
    <cfif #storydate# gte #fromdate# and #storydate# lte #todate#>
    #x.news_title#<br>
    #storydate#
    <br>
    <br></cfif>
    <cfelse>
    <cfif #x.added# gte #fromdate# and #x.added# lte #todate#>
    <tr><td rowspan="4" width="20">
    <cfif isdefined('makeissue') and #makeissue# eq true><input type="checkbox" name="storyid" value="#x.news_id#">Add
    <cfif #ii.finalize# eq false>to temp issue</cfif></cfif><br>
    <br>
    <cfquery datasource="newsbriefs" name="b">
    select *
    from news_issue
    where news_id = #x.news_id#
    </cfquery>
    <cfif isdefined('b.issue_id') and #b.issue_id# neq "">
    <cfloop query="b">
    issue #b.issue_id#<Br>
    </cfloop><cfelse> </cfif>
    </td><td><a href="editarticle.cfm?news_id=#x.news_id#">#x.news_title#</a></td></tr>
    <tr><td>#storydate#</td></tr>
      <tr><td>#news_text#</td></tr>
        <tr><td>#news_source#</td></tr>
    </cfif>
    </cfif>
    </cfloop>
    <tr><td colspan="2"> </td></tr>
    </cfloop>
    </table>
    <input type="submit" value="NEXT >>">
    </form>
    </body>
    </html>
    </cfoutput>

  • Table Filter error:   java.lang.IllegalArgumentException:

    Hi All,
        I am unable to trace where this error is being thrown. please help me.
    java.lang.IllegalArgumentException:
        at com.sap.tc.webdynpro.clientserver.data.DataContainer.createLocalPath(DataContainer.java:1350)
        at com.sap.tc.webdynpro.clientserver.data.DataContainer.updateAttribute(DataContainer.java:454)
        at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateAttribute(AbstractAdapter.java:653)
        at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$FilterField.onINPUTFIELDCHANGE(TableAdapter.java:4231)
        at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter.onINPUTFIELDCHANGE(TableAdapter.java:10597)
        ... 46 more
    com.sap.tc.webdynpro.services.exceptions.WDRuntimeException
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:981)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.updateEventQueue(HtmlClient.java:380)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.prepareTasks(AbstractClient.java:93)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:308)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.localwd.LocalApplicationProxy.sendDataAndProcessAction(LocalApplicationProxy.java:77)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1257)
         at com.sap.portal.pb.PageBuilder.SendDataAndProcessAction(PageBuilder.java:325)
         at com.sap.portal.pb.PageBuilder$1.doPhase(PageBuilder.java:826)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processPhaseListener(WindowPhaseModel.java:755)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doPortalDispatch(WindowPhaseModel.java:717)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:136)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:313)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:365)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:944)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:266)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:100)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:170)
    Caused by: java.lang.reflect.InvocationTargetException
         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:331)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.handleUIElementEvent(HtmlClient.java:973)
         ... 41 more
    Caused by: java.lang.IllegalArgumentException:
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.createLocalPath(DataContainer.java:1350)
         at com.sap.tc.webdynpro.clientserver.data.DataContainer.updateAttribute(DataContainer.java:454)
         at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.updateAttribute(AbstractAdapter.java:653)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter$FilterField.onINPUTFIELDCHANGE(TableAdapter.java:4231)
         at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter.onINPUTFIELDCHANGE(TableAdapter.java:10597)
         ... 46 more
    Thanks
    Uday

    Hi
    while re import the RFC u will get some error. By cache invalidation and Re Start the J2EE Engine Server you can solve the problem.
    After Re-Import the model you can do cache invalidation
    There is a need to restart the portal system to clear the cache. Once its done your application would work fine.
    Another thing that you can try to clear the cache is
    1. Go to link http://<servername> : <portname> /webdynpro/dispatcher/sap.com/tcwdtools/WebDynproConsole
    2. Click on the last link in detail navigation "Invalidation of ARFC Metadata Cache"
    3. From "Adaptive RFC Metadata Cache Invalidation " tray, choose the JCO that you are using
    4. From " Dictionaries Cache Invalidation" tray, choose the dictionary(model) whose cache you want to clear.
    The above option saves time but in case it doesnu2019t work, you can go in for Portal restart. It would surely work.
    If you have more clarification please read the [Document|http://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/10465350-b4f5-2910-61ba-a58282b3b6df]
    Hope this helps!!
    Best Regards
    Vijay K

  • Help me! java.lang.IllegalArgumentException: call on closed handle

    Java Edition 4.3.9
    Server : Linux/Resin-3.x
    1 : when underside error , Appliction not run.
    java.lang.IllegalArgumentException: call on closed handle
    at com.sleepycat.db.internal.db_javaJNI.Db_get(Native Method)
    at com.sleepycat.db.internal.Db.get(Db.java:264)
    at com.sleepycat.db.Database.get(Database.java:161)
    2 when underside error ,application can run,but some DB file not run.
    com.sleepycat.db.DatabaseException: DB_PAGE_NOTFOUND: Requested page not found:
    Note: the application intercurrent visitation count very high.
    db files frequency writer and read.
    Thanks.

    Hi,
    What was the line of code (api call) were you were running when you got this error?
    Was an exception generated (perhaps a deadlock?) just prioor to this?
    The error suggests you are trying to close a handle that was previously closed? Have you done any analysis on that? I'm wondering if you had an exception or an error and in your error handler you tried to close a resource that was already close.
    Whatever the operation is, (say a cursor for example) you could try something like the following:
    if (cursor != null)
    cursor.close();
    Ron

  • Java.lang.IllegalArgumentException: Session: null does not exist

    These days I am getting an exception (java.lang.IllegalArgumentException: Session: null does not exist) when I restart the weblogic managed server. I have a work around to get away with this error. I completely delete the dataspace from ALDSP console and redeploy the artifacts jar file. This is a tedious process. Can anyone suggest a permanent fix to resolve this issue.
    ALDSP version: 3.01
    Weblogic Server: 9.2.2
    Thanks.

    Hey ,Can you please help me?can you tell me how you resolved this issue.Our production is down due to
    java.lang.IllegalArgumentException: Session: null does not exist.
         at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:118)
         at com.bea.dsp.management.persistence.primitives.ServerPersistencePrimitives.getDataspaceRoot(ServerPersistencePrimitives.java:73)
         at com.bea.dsp.management.activation.ActivationService.dataSpaceAlreadyExists(ActivationService.java:342)
         at com.bea.dsp.management.activation.ActivationService.setRequestHandlerClassLoader(ActivationService.java:206)
         at com.bea.ld.server.bootstrap.RequestHandlerListener.postStart(RequestHandlerListener.java:46)
         Truncated. see log file for complete stacktrace.
    Its urgent plz

Maybe you are looking for

  • ITunes says I don't have enough space on my iPhone when I do.

    Hi, I am not able to sync my iPhone with new tracks,apps, etc. The bar along the bottom says I have 3.8 GB free, but it skips the adding content. And then tells me I'm 4.92 GB over capacity. I have no idea what's causing it and how to resolve it, I'v

  • Certificate error in Work Manager 6.1

    Hi Experts, I am deploying WM 6.1 in SMP 3.0,getting Communication Error(14). I have issues only on WPF client side as I can see error:The certificate (chain) is not valid in logs. Do I need to install smp server certificate(smp_crt) as well as SSL c

  • Big problem in enhanced backend model

    Hi experts, We are on CRM 4.0 system and we are using the enhanced backend model for organizational data management. Our problem is that we want to assign users to positions in order to determine the organizational data for busisness transactions. Th

  • The data form form name is invalid. Check log for details

    Hi all, i have just built a planning application from scratch and created my first form. i have encountered the error "The data form <form name> is invalid. Check log for details " and i have checked the log file. It reads as follows Unknown calculat

  • HT4759 Incoming mail server reset

    My email on my Mac worked fine for years until a few days ago. I can see the emails in icloud and they are being sent to my iphone and ipad But not to my computer The system is asking me to name the incoming mail server but the box is greyed out and