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.
Similar Messages
-
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
UdayHi
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: JBO-29000: java.lang.IllegalArgumentException
em.createQuery("update Planroleinfo o set o.planroleinfo=:planrole where o.planroleinfoid=:planroleid").setParameter("planroleid",planroleid).setParameter("planrole", planrole).executeUpdate();
Error:
1.JBO-29000: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
2.java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager; nested exception is: java.lang.IllegalArgumentException: An exception occured while creating a query in EntityManager
Help me.Did you run out of memory assigned to the VM?
Maybe you should look at increasing it using the -Xmx option.
-SteveA -
Good morning,
I'm new in java and i'm trying to develop a graphic interface for an agent that i use in the platform Madkit...In brief i manage to see my interface however I have always this message:
Agent launch exception:java.lang.IllegalArgumentException: adding a window to a container
adding a window to a container
java.lang.IllegalArgumentException: adding a window to a container
at java.awt.Container.addImpl(Container.java:616)
at java.awt.Container.add(Container.java:518)
at madkit.platform.desktop.DesktopBooter.makeExternalWindow(DesktopBooter.java:198)
at madkit.platform.desktop.DesktopAgent.addAgent(DesktopAgent.java:173)
at madkit.platform.desktop.DesktopBooter.setupGUI(DesktopBooter.java:168)
at madkit.kernel.Kernel.launchAgent(Kernel.java:260)
at madkit.kernel.AbstractAgent.launchAgent(AbstractAgent.java:440)
at madkit.platform.desktop.DesktopAgent.launchAgent(DesktopAgent.java:148)
at madkit.platform.desktop.JavaAgentNode.execute(JavaAgentNode.java:63)
at treetools.GenericTree.mousePressed(GenericTree.java:103)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:218)
at java.awt.Component.processMouseEvent(Component.java:5131)
at java.awt.Component.processEvent(Component.java:4931)
at java.awt.Container.processEvent(Container.java:1566)
at java.awt.Component.dispatchEventImpl(Component.java:3639)
at java.awt.Container.dispatchEventImpl(Container.java:1623)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3450)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3162)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3095)
at java.awt.Container.dispatchEventImpl(Container.java:1609)
at java.awt.Window.dispatchEventImpl(Window.java:1590)
at java.awt.Component.dispatchEvent(Component.java:3480)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:450)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:197)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:144)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:136)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:99)i forgot to thank u for answering me
here there is a simple example of a code which generate the same problem i told u about ....i hope that this gonna be some helpful for u to understand with me the problem:
import madkit.kernel.*;
import madkit.lib.messages.StringMessage;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import javax.swing.border.*;
public class BosssGUI extends JFrame {
Bosss ar;
JPanel jPanel1 = new JPanel();
JPanel jPanel2 = new JPanel();
JPanel jPanel3 = new JPanel();
JButton jButton1 = new JButton();
JButton jButton2 = new JButton();
JLabel jLabel1 = new JLabel();
BorderLayout borderLayout1 = new BorderLayout();
BorderLayout borderLayout2 = new BorderLayout();
BorderLayout borderLayout3 = new BorderLayout();
public BosssGUI(Bosss _ar) {
ar = _ar;
enableEvents(AWTEvent.WINDOW_EVENT_MASK);
try {
jbInit();
catch(Exception e) {
e.printStackTrace();
pack();
/*public void actionPerformed(ActionEvent e) {
String s = e.getActionCommand();
if (s.equals ("Valider")) ar.sendValider();
private void jbInit() throws Exception {
jPanel1.setLayout(borderLayout1);
jPanel2.setBackground(Color.lightGray);
jPanel2.setLayout(borderLayout2);
jPanel3.setBackground(Color.lightGray);
jPanel3.setLayout(borderLayout3);
jButton1.setText("Valider");
jButton2.setMaximumSize(new Dimension(69, 25));
jButton2.setMinimumSize(new Dimension(69, 25));
jButton2.setText("Annuler");
jLabel1.setFont(new java.awt.Font("DialogInput", 1, 16));
jLabel1.setForeground(Color.white);
jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
jLabel1.setText("Agent Boss");
borderLayout3.setHgap(6);
this.getContentPane().add(jPanel1, BorderLayout.CENTER);
jPanel1.add(jPanel2, BorderLayout.CENTER);
jPanel2.add(jLabel1, BorderLayout.NORTH);
jPanel1.add(jPanel3, BorderLayout.SOUTH);
jPanel3.add(jButton2, BorderLayout.CENTER);
jPanel3.add(jButton1, BorderLayout.WEST);
/*protected void processWindowEvent(WindowEvent e) {
if (e.getID() == WindowEvent.WINDOW_CLOSING) {
cancel();
super.processWindowEvent(e);
/*void sendValider() {
this.broadcastMessage("Zone1","Agent_Responsable",new StringMessage("Valider"));
void sendAnnuler() {
this.broadcastMessage("Zone1","Agent_Responsable",new StringMessage("Annuler")); -
Need help with error java.lang.IllegalArgumentException: timestamp on bar b
My company uses Java based applications for real time streaming stock market information and I have come across 2 users that are generating the same error:
Bar.addBar failed adding com.abwg.bar.BasicBar 20071210-08:27:00.000 104.34 104.35 104.25 104.25 950 to com.abwg.bar.BasicBar 20071210-09:30:00.000 104.11 104.38 104.11 104.38 436 :java.lang.IllegalArgumentException: timestamp on bar being combined older than original bar
I have had no luck trying to determine what the cause of this error is, however both users experience very laggy performance shortly after launching the application. I have not been able to duplicate the problem, and the developers have not been able to provide any response or possible causes yet.
I'd be very appreciative if anyone could help me make some sense of what this error type might mean. It's got something to do with the computer that the application is being run on. One user is on a Mac 10.3 using J2SE 1.4.2_12 and the other is on Win XP using Java 1.6_3Thank you Frank and Carole for your response. The stated issue/error is resolved. It had to do with the upgrade somehow which lead to multiple certs for the same agent. Anyway, I had to delete ADS and all attached Agents, re-create ADS, re-create all Agents and re-register with the new ADS. I then manually re-registered the Directory Server instances on both the Primary and Secondary Servers with the new ADS. Voila, the DSCC Web console no longer prompts for server credentials.
But importing the Wild card cert issue still remains. I added the issuing CA chain to the ldap instance CA store and I see the certs listed. But when I try to import the P12 cert/key combo, I get an error which says something like: "The certificate is already in the database". But it is not, verified using certutil.
Yes internal CA or Self-signed Certs are fine. If I add the internal CA and Root CA to the cert store on my LDAP clients, then I am fine. No SSL errors. But want to avoid using such as we do have quite a few clients which would be connecting to the store. Hence want to use our enterprise wild card Cert. I am not sure if it is an issue importing a wild card pkcs12 format.
As mentioned above I did add the CA chain (which issued the wild card) to the actual instance, not the ADS. I can try that. But are you sure we need to add the Root CA to Tomcat ks.
And while we are at it, the Self-signed certs generated using the Console is only valid for 2 years. Is it possible to change the term ?
Thanks again. -
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 -
Error processing XML request, java.lang.IllegalArgumentException
Hi all,
In my code I can successfully connect to server and send the content which is an XML content:
param = java.net.URLEncoder.encode(s, "UTF-8");
java.io.PrintWriter out = new java.io.PrintWriter(connection.getOutputStream());
out.print(param);
Read the response from server:
java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(connection.getInputStream()));
while((input = in.readLine()) != null)
response += input + "\r";
System.out.println("Client : received : "+response);
Following is the response I receive from server:
Client : received : <html><h1>Error processing XML request</h1>java.lang.IllegalArgumentException: No xml request posted</html>
Has anybody know what the problem is? Why this error is issued?
Any help is greatly appreciated.Dear legosa,
Thanks so much for the replies. What you wrote makes absolute sence, w/o flush() or close(), it seems that I'm sending only balnk to output!
I don't know how can I fix the 500 Internal Server Error; below is my complete code that does this part, can you tell me if you see sth. wrong in this code?
param = java.net.URLEncoder.encode(aTrans.xmlDoc, "UTF-8");
url = new URL("https://xml.test.surepay.com");
connection = (HttpURLConnection)url.openConnection();
connection.setDoInput(true);
connection.setDoOutput(true);
connection.setUseCaches(false);
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-type", "application/x-www-form-urlencoded");
String sLen = "" + param.length();
connection.setRequestProperty("Content-length", sLen);
connection.setRequestProperty("Accept", "text/plain");
connection.connect();
System.out.println("Client : Connected");
java.io.PrintWriter out = new java.io.PrintWriter(connection.getOutputStream());
System.out.println("Client : Writing Content");
out.print(param);
out.close();
System.out.println(connection.getURL());
System.out.println(connection.getResponseCode() + " " + connection.getResponseMessage());
System.out.println(connection.getURL());
System.out.println("Client : Waiting for response from Server");
java.io.BufferedReader in = new java.io.BufferedReader(new java.io.InputStreamReader(connection.getInputStream()));
System.out.println("Client : Opened input stream");
while((input = in.readLine()) != null)
response += input + "\r";
System.out.println("Client : received : "+response); -
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 Pradhanmeenakshipradhan 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 -
Flex 4.5 - java.lang.IllegalArgumentException: argument type mismatch
0 down vote favorite
I am having a problem when sending a soap request from a flex 4.5 application to a coldfusion 9 web service created using a CFC.
The most annoying thing it is only an intermittent problem but I can't work out what is wrong.
There a many methods within the web service of which Flex has no issue, but these are mainly ones that read data. The one I am having a problem with is one that is writing back to the web service.
The issue only arises when I have to restart the Coldfusion service for some reason, which is quite often as the development machine is my laptop. It has now also happened when I have moved the Flex app to a development server for testing and as it's hosted I can't restart the services easily.
I get the response below every time. I have tried tracing the call through the Flash Builder Network monitor and building a dummy call using the same data, all to no avail.
I have tried stripping out all of the code and then rebuilding it, which takes a long time as I am using custom types in ColdFusion.
Also , if I cfinvoke the method through a CFM page, it works fine. It is only when trying to call it through a SOAP request through Flex 4.5.
It will then suddenly start working again however and then it is fine until I restart the CF services again.
I can't tell what I triggers it to start working again.
Does something initialise it in ColdFusion and then it's fine ???. I am really struggling with this and any help would be appreciated.
I have a sample SOAP request that I trapped in the Network Monitor and also the WSDL if needed.
java.lang.IllegalArgumentException: argument type mismatch
<ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/"
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">java.lang.IllegalArgumentException: argument type mismatch
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 org.apache.axis.utils.BeanPropertyDescriptor.set(BeanPropertyDescriptor.java:142)
at org.apache.axis.encoding.ser.BeanPropertyTarget.set(BeanPropertyTarget.java:75)
at org.apache.axis.encoding.DeserializerImpl.valueComplete(DeserializerImpl.java:249)
at org.apache.axis.encoding.DeserializerImpl.endElement(DeserializerImpl.java:509)
at org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:171)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:148)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
at coldfusion.xml.rpc.CFCProvider.invoke(CFCProvider.java:54)
at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
at coldfusion.xml.rpc.CFCServlet.doAxisPost(CFCServlet.java:270)
at coldfusion.filter.AxisFilter.invoke(AxisFilter.java:43)
at coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:356)
at coldfusion.filter.RequestMonitorFilter.invoke(RequestMonitorFilter.java:48)
at coldfusion.filter.MonitoringFilter.invoke(MonitoringFilter.java:40)
at coldfusion.filter.PathFilter.invoke(PathFilter.java:87)
at coldfusion.filter.LicenseFilter.invoke(LicenseFilter.java:27)
at coldfusion.filter.ExceptionFilter.invoke(ExceptionFilter.java:70)
at coldfusion.filter.ClientScopePersistenceFilter.invoke(ClientScopePersistenceFilter.java:28)
at coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
at coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
at coldfusion.xml.rpc.CFCServlet.invoke(CFCServlet.java:138)
at coldfusion.xml.rpc.CFCServlet.doPost(CFCServlet.java:289)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
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:286)
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)</ns1:stackTrace>
<ns2:hostname xmlns:ns2="http://xml.apache.org/axis/" xmlns:soapenv
="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org2001/XMLSchema-instance">Darren-LT</ns2:hostname>Someone suggested it could be a serialisation issue but I I'm not sure how to go about checking that.
Any suggestions ? -
JDBC stored procedure / java.lang.IllegalArgumentException
Hi,
I have created a JDBC adapter to access for a Oracle DB and the connection works successfully. I have tested the posting into the DB via xml-format and it works also fine.
Accordingly i added a stored procedure (SP) into the xml-format and i get following error in the communication channel (in Pi monitoring the message is fine - no error):
com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request
in sax parser: Error when executing statement for table/stored proc.
'em_end_load' (structure 'STATEMENT_StoreProcedure'):
java.lang.IllegalArgumentException
SP in DB:
PROCEDURE em_end_load
p_1 IN VARCHAR2,
p_2 IN VARCHAR2 DEFAULT NULL,
p_3 IN NUMBER,
p_4 IN VARCHAR2 DEFAULT NULL,
p_time IN DATE DEFAULT NULL
AS
I'm not sure if i have to use an output parameter, because in the description of the SP i read following:
USAGE
To compile from the SQL*Plus prompt:
SQL> start [folder spec]/sp_em_end_load.pls
To run from the SQL*Plus prompt:
SQL> exec em_em_end_load
PARAMETERS
INPUT
p_1
p_2
p_3
p_4
p_5
p_6
OUTPUT
p_error_msg
I have created in PI the data type for SP as follow:
value
MT_JDBC
STATEMENT_SP 0..1
action required EXECUTE
table 0..1 em_end_load
p_1 1..1 010
type optional VARCHAR
p2 1..1 main
type optional VARCHAR
p3 1..1 100
type optional VARCHAR
p4 1..1 load
type optional VARCHAR
p5 1..1 26.04.2010
type optional DATE
p_error_msg 0..1
isInput optional 1
type otpional VARCHAR
What is wrong with the processing of this SP? Could anyone help me?
Regards,
LutzSorry the explanation of the data type was a little bit misunderstanding:
data type in PI:
MT_JDBC
-STATEMENT_SP 0..1
--action required EXECUTE
--table 0..1 em_end_load
--p_1 1..1 010
---type optional VARCHAR
--p_2 1..1 main
---type optional VARCHAR
--p_3 1..1 100
---type optional VARCHAR
--p_4 1..1 load
---type optional VARCHAR
--p_time 1..1 26.04.2010
---type optional DATE
--p_error_msg 0..1
---isInput optional 1
---type optional VARCHAR
...but the names of the parameters are identical - that i have checked several times. -
Hi,
I have an FOP application which presents the data retrieved from database in a PDF format.
Now when Iam trying to deploy the FOP application to OC4J and I get the following error.
java.lang.IllegalArgumentException: org.apache.fop.svg.SVGElementMapping is not an ElementMapping
at org.apache.fop.apps.Driver.addElementMapping(Driver.java:464)
at org.apache.fop.apps.Driver.setupDefaultMappings(Driver.java:314)
at org.apache.fop.apps.Driver.<init>(Driver.java:222)
at org.appfuse.fop.FOPHelper.createPDF(FOPHelper.java:48)
at FOPServlet.execute(FOPServlet.java:168)
at FOPServlet.doPost(FOPServlet.java:109)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:765)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:208)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].server.http.AJPRequestHandler.run(AJPRequestHandler.java:125)
at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.0.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
at java.lang.Thread.run(Thread.java:534)
I believe its the problem with the class loaders.
I even configured my orion-web.xml to load the local classes and following is the conf file:
<orion-web-app
deployment-version="9.0.4.0.0"
temporary-directory="./temp"
internationalize-resources="false"
default-mime-type="application/octet-stream"
servlet-webdir="/servlet/"
>
<web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
</orion-web-app>
I have loaded the most stable jar files(fop-0.20.5) required for the generation of PDF.
The same application runs well in JDeveloper(10.1.2.0.0)
Could somebody help me out with this.
Its very urgent.
Need to be able to deploy this by evening.
Thanks
Sridhar
Message was edited by:
SridharThis means the code loading the element mappings does not recognize
the SVGElementMapping as an ElementMapping, as it expects. The most
likely reason is that they are loaded from different class loaders -That was the reason of my simple suggestion above.
There are many ways that you can try now.
One way is to put all libraries in your war into ORACLE_HOME/j2ee/home/applib. Also remove the following line
<web-app-class-loader search-local-classes-first="true" include-war-manifest-class-path="false" />
since this search-local-classes-first is problematic sometimes.
It might be nice if you can verify that the classloader that loads SVGElementMapping is different from the one that loads Elementmapping at that point of code.
Now Could somebody help me out as this is the problem of OC4J .Hmm, I would not say "problem of OC4J". A usage error or a false incompatibility at worst. "False" because there should be many normal and standard ways to make it work. -
Getting Error: java.lang.IllegalArgumentException: can't parse argument 0
HI All,
I am implementing the Message Pool in NWDS.
I have two InputFields: Firstname and Lastname.
and i have a method name: CheckMandatory which takes one argument as String.
I have implemented this Method in the StartView. Now when i am leaving this fields empty and pressing the Go Button.
Then i am getting the Following Error:
java.lang.IllegalArgumentException: can't parse argument number 0
So pls help me out......
Regards,
Dhruv ShahHi,
THis is the Stack Trace:
java.lang.IllegalArgumentException: can't parse argument number 0
at java.text.MessageFormat.makeFormat(MessageFormat.java:1323)
at java.text.MessageFormat.applyPattern(MessageFormat.java:447)
at java.text.MessageFormat.<init>(MessageFormat.java:347)
at java.text.MessageFormat.format(MessageFormat.java:800)
at com.sap.tc.webdynpro.services.datatypes.core.DataTypeFormatter.format(DataTypeFormatter.java:80)
at com.sap.tc.webdynpro.progmodel.controller.MessageItem.getMessage(MessageItem.java:211)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.InputFieldAdapter$DataTip.setMessage(InputFieldAdapter.java:1156)
at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.InputFieldAdapter.getAssociatedAdapters(InputFieldAdapter.java:1323)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:299)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.renderMatrixLayoutCellFragment(MatrixLayoutRenderer.java:729)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.renderMatrixLayoutRowFragment(MatrixLayoutRenderer.java:346)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.renderMatrixLayoutFragment(MatrixLayoutRenderer.java:302)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.MatrixLayoutRenderer.render(MatrixLayoutRenderer.java:71)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:516)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:61)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:45)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:555)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:346)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:255)
at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:157)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:425)
at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:55)
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:390)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
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:95)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
Regards,
Dhruv Shah -
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 solutionTry 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. -
Erro java.lang.IllegalArgumentException: can't parse argument number
We are trying to making an HTTPS post using the SOAP adapter (sending XML message) and have been receiving an error in the MDT. If we open the message details and click the audit log instead of seeing the steps in the audit log we have an error that says "java.lang.IllegalArgumentException: can't parse argument number".
The full stack trace: java.lang.IllegalArgumentException: can't parse argument number
at java.text.MessageFormat.makeFormat(MessageFormat.java:1323)
at java.text.MessageFormat.applyPattern(MessageFormat.java:447)
at java.text.MessageFormat.(MessageFormat.java:347)
at java.text.MessageFormat.format(MessageFormat.java:800)
at jsp_auditlog1236632324953._jspService(jsp_auditlog1236632324953.java:274)
at com.sap.engine.services.servlets_jsp.server.jsp.JspBase.service(JspBase.java:112)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:544)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:186)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.doWork(RequestDispatcherImpl.java:321)
at com.sap.engine.services.servlets_jsp.server.runtime.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:377)
at com.sapportals.htmlb.page.PageProcessorServlet.handleRequest(PageProcessorServlet.java:68)
at com.sapportals.htmlb.page.PageProcessorServlet.doGet(PageProcessorServlet.java:29)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
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)
Any help would be appreciated.
Joehi,
seems you are tryin to conver to integer an string.
if the data type is OK and the WS is sender, regenerate it and try again
Thanks
Rodrigo
Maybe you are looking for
-
I am trying to debug my code in VisualCafe and I get the following error: java.sql.SQLException: java.sql.SQLException: License Problem: The following applies to holders of standard BEA/WebXpress licenses: weblogic.d.h: Error parsing XML license file
-
How do I accept the End User License Agreement (already installed Reader)
I installed Adobe Reader, but everytime I try to view a pdf I get a dialogue box telling me to launch Adobe Reader & accept the End User License Agreement. How do I do that?
-
I recently upgraded to Lion and I had Adobe InDesign which is no longer supported. Problem is, I have several files I need but cannot open because it was PowerPC based. What do I need to do? Thanks in advance!
-
Error Updating Table with "Get Active UnitOfWork" Checked
Hi everyone. I call invoke the a DB Adapter twice to update table in one BPEL, and so I have checked "Get Active UnitOfWork" so that each update can be persisted. I am seeing inconsistent results. What could be causing this?
-
Flash CS4 logtransport stopped working
Hi, Just started using CS4 and I get a message: "LogTransport has stopped working" every few minutes. Vista then says it is closing the application. No idea what logtransport does but when vista closes it, there doesn't seem to be any visible affect