Getting Problem while publishing Problem while publishing java.lang.IllegalArgumentExcep
getting Problem while publishing Problem while publishing java.lang.IllegalArgumentExcep while deploying persistance with ejb sample application into cloud. can any one please tell me why i am getting this?
Hi Goutham,
I am facing the same issue. Please let me know how you have resolved it.
Similar Messages
-
I get the message Exception in thread "main" java.lang.StackOverflowError
I'm trying to make a program for my class and when I run the program I get the error Exception in thread "main" java.lang.StackOverflowError, I have looked up what it means and I don't see where in my program would be giving the error, can someone please help me, here is the program
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
// This visual application allows users to "shop" for items,
// maintaining a "shopping cart" of items purchased so far.
public class ShoppingApp extends JFrame
implements ActionListener {
private JButton addButton, // Add item to cart
removeButton; // Remove item from cart
private JTextArea itemsArea, // Where list of items for sale displayed
cartArea; // Where shopping cart displayed
private JTextField itemField, // Where name of item entered
messageField; // Status messages displayed
private ShoppingCart cart; // Reference to support object representing
// Shopping cart (that is, the business logic)
String itemEntered;
public ShoppingApp() {
// This array of items is used to set up the cart
String[] items = new String[5];
items[0] = "Computer";
items[1] = "Monitor";
items[2] = "Printer";
items[3] = "Scanner";
items[4] = "Camera";
// Construct the shopping cart support object
cart = new ShoppingCart(items);
// Contruct visual components
addButton = new JButton("ADD");
removeButton = new JButton("REMOVE");
itemsArea = new JTextArea(6, 8);
cartArea = new JTextArea(6, 20);
itemField = new JTextField(12);
messageField = new JTextField(20);
// Listen for events on buttons
addButton.addActionListener(this);
removeButton.addActionListener(this);
// The list of items is not editable, and is in light grey (to
// make it distinct from the cart area -- this would be done
// better by using the BorderFactory class).
itemsArea.setEditable(false);
itemsArea.setBackground(Color.lightGray);
cartArea.setEditable(false);
// Write the list of items into the itemsArea
itemsArea.setText("Items for sale:");
for (int i = 0; i < items.length; i++)
itemsArea.append("\n" + items);
// Write the initial state of the cart into the cartArea
cartArea.setText("No items in cart");
// Construct layouts and add components
JPanel mainPanel = new JPanel(new BorderLayout());
getContentPane().add(mainPanel);
JPanel controlPanel = new JPanel(new GridLayout(1, 4));
controlPanel.add(new JLabel("Item: ", JLabel.RIGHT));
controlPanel.add(itemField);
controlPanel.add(addButton);
controlPanel.add(removeButton);
mainPanel.add(controlPanel, "North");
mainPanel.add(itemsArea, "West");
mainPanel.add(cartArea, "Center");
mainPanel.add(messageField, "South");
public void actionPerformed(ActionEvent e)
itemEntered=itemField.getText();
if (addButton==e.getSource())
cart.addComputer();
messageField.setText("Computer added to the shopping cart");
public static void main(String[] args) {
ShoppingApp s = new ShoppingApp();
s.setSize(360, 180);
s.show();
this is a seperate file called ShoppingCart
public class ShoppingCart extends ShoppingApp
private String[] items;
private int[] quantity;
public ShoppingCart (String[] inputitems)
super();
items=inputitems;
quantity=new int[items.length];
public void addComputer()
int x;
for (x=0; "computer".equals(itemEntered); x++)
items[x]="computer";
please somebody help me, this thing is due tomorrow I need help asap!First, whenever you post, there is a link for Formatting Help. This link takes you to here: http://forum.java.sun.com/features.jsp#Formatting and tells you how to use the code and /code tags so any code you post will be easily readable.
Your problem is this: ShoppingApp has a ShoppingCart and ShoppingCart is a ShoppingApp - that is ShoppingCart extends ShoppintApp. You are saying that ShoppingCart is a ShoppingApp - which probably doesn't make sense. But the problem is a child class always calls one of its parent's constructors. So when you create a ShoppingApp, the ShoppingApp constructor tries to create a ShoppingCart. The ShoppingCart calls its superclass constructor, which tries to create a ShoppingCart, which calls its superclass constructor, which tries to create a ShoppingCart, which...
It seems like ShoppingCart should not extend ShoppingApp. -
When attempting to add the ADT to HANA Studio I get the error:
Error getting the version of the native layer: java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path
Additionally I get something about a possibly missing Microsoft Runtime DLL VS2010.
When I then attempt to add ABAP Projects I get the error:
An error has occurred. See error log for more details.
com/sap/mw/jco3/eclipse/Registry
I have tried with sites:
SAP Development Tools for Eclipse - Juno Software Repository
SAP Development Tools for Eclipse - Kepler Software Repository
I have been able to install the ADT on Eclipse-Kepler which is running fine.I did and on that page the following is stated:
For Windows OS: DLLs VS2010 for communication with the back-end system is required.
NOTE: Install either the x86 or the x64 variant, accordingly to your 32- or 64-Bit Eclipse installation.
This seems exactly to address the issue I am grapling with, but when downloading and trying to install the file I get the message that the current version on my frontend is more recent than the version I am trying to install.
Is that not strange? -
Error while opening a dwg file :java.lang.NoSuchMethodException: Method
Hello Experts,
I tried to integrate WebCenter Content with Autovue ,the integration was good untill i get this error while trying to open a dwg file checked in Content Server using View in Autovue option in Actions :
java.lang.NoSuchMethodException: Method fileOpen(com.cimmetry.core.SessionID, com.cimmetry.core.DocID, com.cimmetry.core.Authorization, <null>, java.lang.Boolean, <null>) not found in class com.cimmetry.jvueserver.VCETConnection
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ar.d(Unknown Source)
at com.cimmetry.jvueserver.ar.a(Unknown Source)
at com.cimmetry.jvueserver.ah.run(Unknown Source)
Any suggestions would help me,
Thanks in Advance
RajHi Raj,
The solution to this problem is posted in My Oracle Support:
Error: "java.lang.NoSuchMethodException: Method fileOpen" when Trying to View Files Using AutoVue Integrated to Oracle Universal Content Management (UCM) (Doc ID 1341644.1).
It has all the details, step by step.
Jeff -
Error while connecting to DB's - java.lang.NullPointerException
I am getting this error while connecting to any db using SQL dev.
1. I was able to connect to all before something happaned (unrealted install/uninstalls)
2. I also have two errors in the "Logging Page- Log" window
I have seen this errors in other threads, but dont think thay have a resolution to this.
Let me know if any other info is required and I will append to this thread.
-MAIN ERROR-
java.lang.NullPointerException
at oracle.dbtools.raptor.conntypes.RaptorClassLoader.findClassLoader(RaptorClassLoader.java:48)
at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.createConnectionImpl(RaptorConnectionWrapper.java:213)
at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.createConnection(RaptorConnectionWrapper.java:171)
at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.getJdbcConnection(RaptorConnectionWrapper.java:202)
at oracle.dbtools.raptor.conntypes.RaptorConnectionWrapper.getPresentation(RaptorConnectionWrapper.java:68)
at oracle.dbtools.raptor.utils.Connections$ConnectionInfo.createConnection(Connections.java:1004)
at oracle.dbtools.raptor.utils.Connections$ConnectionInfo$ConnectRunnable.doWork(Connections.java:876)
at oracle.ide.dialogs.ProgressRunnable.run(ProgressRunnable.java:159)
at oracle.ide.dialogs.ProgressBar.run(ProgressBar.java:553)
at java.lang.Thread.run(Thread.java:619)
-Two ERRORs in the log window-
1 ------------------
SEVERE 88 0 oracle.jdbc.driver.OracleDriver Error while registering Oracle JDBC Diagnosability MBean.
2---------------
SEVERE 95 63 oracle.ideimpl.extension.AddinManagerImpl Failed to create addin oracle.report.addin.ReportAddin
Thanks
-SJInterestingly when I go to Preferences/Database I get this error:
Internal Error when attempting to create this panel: - Do you think I should just reinstall the whole thing?
java.lang.NullPointerException
at oracle.dbtools.raptor.config.AdvancedInfo.onEntry(AdvancedInfo.java:40)
at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:921)
at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:894)
at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:104)
at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1343)
at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1211)
at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1205)
at javax.swing.Timer.fireActionPerformed(Timer.java:271)
at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:177)
at java.awt.Dialog$1.run(Dialog.java:1045)
at java.awt.Dialog$3.run(Dialog.java:1097)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Dialog.show(Dialog.java:1095)
at java.awt.Component.show(Component.java:1422)
at java.awt.Component.setVisible(Component.java:1375)
at java.awt.Window.setVisible(Window.java:806)
at java.awt.Dialog.setVisible(Dialog.java:985)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:202)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:795)
at oracle.ide.config.IdeSettings.showDialog(IdeSettings.java:580)
at oracle.ide.cmd.IdeSettingsCommand.doit(IdeSettingsCommand.java:47)
at oracle.ide.controller.CommandProcessor.invoke(CommandProcessor.java:265)
at oracle.ide.controller.IdeAction.performAction(IdeAction.java:571)
at oracle.ide.controller.IdeAction$2.run(IdeAction.java:804)
at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:823)
at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:521)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1220)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1261)
at java.awt.Component.processMouseEvent(Component.java:6041)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
at java.awt.Component.processEvent(Component.java:5806)
at java.awt.Container.processEvent(Container.java:2058)
at java.awt.Component.dispatchEventImpl(Component.java:4413)
at java.awt.Container.dispatchEventImpl(Container.java:2116)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4322)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3986)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
at java.awt.Container.dispatchEventImpl(Container.java:2102)
at java.awt.Window.dispatchEventImpl(Window.java:2440)
at java.awt.Component.dispatchEvent(Component.java:4243)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:121) -
XML Publisher report failing with java.lang.outofmemoryerror.
Hi,
We have developed a custom Oracle report that produces an XML output file that is about 13M in size (about 18K rows from the database). When running report as concurrent request, post processing fails with java.lang.outofmemoryerror. The failure occurs when specifying output format as Excel, RTF or HTML. However, the process completes successfully when specifying output format as PDF. We have also noticed that Excel, RTF and HTML will complete successfully if the XML data file is smaller (around 3M).
Is anyone aware of a restriction on the size of the XML data file when specifying output formats Excel, RTF or HTML? We have tried setting temp directory but that has not helped.
Thanks.Hi
I found this at metalink [Note:390968.1].. hope it helps =)
Symptoms: When attempting to run an XML Publisher concurrent program the following error occurs:
ERROR: Warning!!! Got out of memory exception, retrying with scalable option..
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
Oracle.apps.xdo.oa.cp.JCP4XDODataEngine
Program exited with status 1
Solution: To implement the solution, please execute the following steps:
1. Login select the responsibility: System Administrator.
2. Navigate to Concurrent > Program > Define.
3. Query for concurrent program that is receiving the error.
4. In the 'Options' field please enter -Xmx512M.
5. Save the change and retest the issue.
6. If the report still fails with the option set to -Xmx512M change the value to -Xmx1024M, save and try again
7. Migrate the solution as appropriate to other environments. -
Problem about "Exception in thread "main" java.lang.NullPointerException"
This is t error message once i run the file
Exception in thread "main" java.lang.NullPointerException
at sendInterface.<init>(sendInterface.java:64)
at sendInterface.main(sendInterface.java:133)
* @(#)sendInterface.java
* @author
* @version 1.00 2008/7/18
import java.awt.BorderLayout;
import java.awt.Image;
import java.awt.GridLayout;
import java.awt.Panel;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.DefaultListModel;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.JFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JList;
import javax.swing.JRadioButton;
import javax.swing.JScrollPane;
import javax.swing.ListModel;
import javax.swing.UIManager;
import javax.swing.SwingConstants;
import java.io.*;
import java.sql.*;
import java.net.*;
public class sendInterface /*implements ActionListener*/{
JFrame frame = new JFrame();
private Panel topPanel;
private Panel sendMessagePanel;
private Panel sendFilePanel;
private JLabel senderID;
private JLabel receiverID;
private JLabel senderDisplay;
private DefaultListModel receiverListModel = new DefaultListModel();
private JList receiverID_lst = new JList(receiverListModel);
private JRadioButton sendType;
String userName;
String[] userList = null ;
int i=0;
Connection con;
public sendInterface() {
String ListName;
try
JFrame.setDefaultLookAndFeelDecorated( true );
catch (Exception e)
System.err.println( "Look and feel not set." );
frame.setTitle( "Send Interface" );
topPanel.setLayout( new GridLayout( 2 , 1 ) ); //line 64*************************
senderID = new JLabel( "Sender:", SwingConstants.LEFT );
senderDisplay = new JLabel( "'+...+'", SwingConstants.LEFT );
receiverID = new JLabel( "Receiver:", SwingConstants.LEFT);
// receiverID_lst = new JList( ListName );
frame.add(senderID);
frame.add(senderDisplay);
frame.add(receiverID);
// frame.add(receiverListModel);
frame.add(new JScrollPane(receiverID_lst), BorderLayout.CENTER);
frame.setLocation(200, 200);
frame.setSize(250, 90);
frame.setVisible(true);
public void setListName(String user)
try{
userName = user;
Class.forName("com.mysql.jdbc.Driver");
String url = "jdbc:mysql://localhost:3306/thesis";
con = DriverManager.getConnection(url, "root", "");
Statement stmt = con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE, ResultSet.CONCUR_READ_ONLY);
ResultSet rs = stmt.executeQuery("select * from user where User_ID!= '" + userName + "'");
System.out.println("Display all results:");
while(rs.next()){
String user_id = rs.getString("User_ID");
System.out.println("\tuser_id= " + user_id );
// receiverListModel.addElement(user_id);
userList=user_id;
i++;
}//end while loop
receiverListModel.addElement(userList);
catch(Exception ex)
ex.printStackTrace();
finally
if (con != null)
try
con.close ();
System.out.println ("Database connection terminated");
catch (Exception e) { /* ignore close errors */ }
public String getUserName()
return userName;
public String[] getUserList()
return userList;
public static void main(String[] args) {
new sendInterface(); //line 133******************************************
thank ur reply:D
Edited by: ocibala on Aug 3, 2008 9:54 AMAnd where do you instantiate topPanel before you invoke setLayout?
db -
Problem using JFreechart. What is java.lang.ExceptionInInitializerError?
Hi
I am using the JFreechart APIs to make a graph.I have been able to create a CategoryDataSet. But when i try to create a chart using the createBarChart function, I get the following errors:
Exception in thread "main" java.lang.ExceptionInInitializerError
at org.jfree.chart.ChartFactory.createBarChart(ChartFactory.java:823)
at StackedBarChartTest.createChart(StackedBarChartTest.java:96)
at StackedBarChartTest.<init>(StackedBarChartTest.java:35)
at StackedBarChartTest.main(StackedBarChartTest.java:161)
Caused by: java.util.MissingResourceException: Can't find bundle for base name org.jfree.chart.plot.LocalizationBundle, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1508)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1262)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:717)
at org.jfree.chart.plot.CategoryPlot.<clinit>(CategoryPlot.java:278)
... 4 moreThis is how I am trying to create the chart
JFreeChart chart = ChartFactory.createBarChart("Bar Chart Demo", "Category", "Value", dataset, PlotOrientation.VERTICAL, true, true, false );What is java.lang.ExceptionInInitializerError?{color:0000ff}http://java.sun.com/javase/6/docs/api/java/lang/ExceptionInInitializerError.html{color}
db -
XML Publisher errors out with java.lang.IndexArrayOutofBounds 5 =5 when out
Hi Everyone,
I have a particular report which has some dynamic columns involved.
On certain cases (more than 5 dynamic columns) when the report is run with output as PDF it gives out an error java.lang.IndexArrayOutofBounds 5>=5 (where the number differs for each case)
But for the same data when i use output type as HTML or EXCEL the output is coming out to be fine.
<?for-each-group@column: G_TRADING_PARTNER_NAME3;BID_NUMBER2?> for the column header of the dynamic columns
<?for-each-group@cell:G_TRADING_PARTNER_NAME3;BID_NUMBER2?> for the column data
My version of XMLP is 5.6.0
and apps version is 11.5.10.2
Is there anything that needs to be changed for the PDF output ?
Kindly let me know in case your have come across such issues.
Thanks
AnoopGlad you have sorted this - note that the fnd_concurrent_requests table has the fields pp_Start_date and pp_end_date which will show how long post processing is taking.
Good to a good idea to monitor this in relation to the setting you have made in the profile option Concurrent:OPP Timeout profile option though 3 hours should cover most things!!!! -
Problem creating schema source while using WebService in MessageMapping
Hi, scenario is RFC2WS.
Problem that occurs is that when i want to use a method from WebService in MessageMapping XI won't import the structure. I am getting following error. The WSDL is from an external portal on which a WebService is ready to invoke.
<b>What might be the problem?! </b>
<i>
Problem when creating schema source:
Details
java.lang.NullPointerException
STACKTRACE:
com.sap.aii.utilxi.misc.api.BaseException: java.lang.NullPointerException
at com.sap.aii.ib.gui.xmleditor.docview.views.XsdSchemaTextable.setSchema(XsdSchemaTextable.java:86)
at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.setSchema(XsdContainerTextView.java:46)
at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.<init>(XsdContainerTextView.java:36)
at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.makeFromTreeDoc(MultiViewEditor.java:216)
at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.<init>(MultiViewEditor.java:64)
at com.sap.aii.mappingtool.mf.TransformationPanel.createTargetView(TransformationPanel.java:264)
at com.sap.aii.mappingtool.mf.TransformationPanel.<init>(TransformationPanel.java:100)
at com.sap.aii.mappingtool.mf.MappingTool.<init>(MappingTool.java:32)
at com.sap.aii.mappingtool.api.MappingToolFactory.getInstance(MappingToolFactory.java:96)
at com.sap.aii.mappingtool.fwutil.util.ToolUtil.restartTool(ToolUtil.java:315)
at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView.loadIfrSchema(XiTransformationView.java:274)
at com.sap.aii.ibrep.gui.mapping.xitrafo.XiMappingView$LinkDataTarget.setData(XiMappingView.java:378)
at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView$MessageDataTarget.setData(XiTransformationView.java:973)
at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.setData(DataTarget.java:514)
at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.drop(DataTarget.java:462)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
STACKTRACE:
java.lang.NullPointerException
at com.sap.aii.utilxi.xsd.api.XsdHandler.saveSchemaToDocument(XsdHandler.java:61)
at com.sap.aii.ib.gui.xmleditor.docview.views.XsdSchemaTextable.setSchema(XsdSchemaTextable.java:82)
at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.setSchema(XsdContainerTextView.java:46)
at com.sap.aii.ib.gui.xmleditor.docview.views.XsdContainerTextView.<init>(XsdContainerTextView.java:36)
at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.makeFromTreeDoc(MultiViewEditor.java:216)
at com.sap.aii.ib.gui.xmleditor.docview.MultiViewEditor.<init>(MultiViewEditor.java:64)
at com.sap.aii.mappingtool.mf.TransformationPanel.createTargetView(TransformationPanel.java:264)
at com.sap.aii.mappingtool.mf.TransformationPanel.<init>(TransformationPanel.java:100)
at com.sap.aii.mappingtool.mf.MappingTool.<init>(MappingTool.java:32)
at com.sap.aii.mappingtool.api.MappingToolFactory.getInstance(MappingToolFactory.java:96)
at com.sap.aii.mappingtool.fwutil.util.ToolUtil.restartTool(ToolUtil.java:315)
at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView.loadIfrSchema(XiTransformationView.java:274)
at com.sap.aii.ibrep.gui.mapping.xitrafo.XiMappingView$LinkDataTarget.setData(XiMappingView.java:378)
at com.sap.aii.ibrep.gui.mapping.xitrafo.XiTransformationView$MessageDataTarget.setData(XiTransformationView.java:973)
at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.setData(DataTarget.java:514)
at com.sap.aii.utilxi.swing.toolkit.dnd.DataTarget.drop(DataTarget.java:462)
at java.awt.dnd.DropTarget.drop(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.processDropMessage(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer.access$800(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchDropEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetContextPeer$EventDispatcher.dispatchEvent(Unknown Source)
at sun.awt.dnd.SunDropTargetEvent.dispatch(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processDropTargetEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
</i>Hi ,
Can you please cross check these steps carefully.
1. After importing the WSDL using external definition, did you checked msges Tab for for the included msg to see what msges you have added.
and be careful that the namespaces of the messages are part of the WSDL description and can differ from the namespace of the external definition object.
2.Did you created message Interface corresponding to the message types from the external definition? it is needed to route the message to webService. Here select message types of the external definition object. Assign input and output messages.
3. Creating a SOAP Receiver Channel
To call the Web service, you create a communication channel with type SOAP and
direction receiver in the Integration Directory. The obligatory parameters in the
configuration are Target URL and SOAP action. You get the values you have to enter
here from the WSDL file.
Creating a SOAP Sender Channel
When you create a SOAP sender channel you have to define the namespace and the
name of a message interface. Since no input help is provided, you copy and paste the
values from your Integration Repository.
Select the Quality of Service according to your interface type. If you are using a
synchronous interface, select Best Effort. Otherwise, select Exactly Once or EOIO.
Hope this will help you to figure out.
Regards
Aashish Sinha
PS : reward points if helpful -
Java.lang.StringIndexOutOfBoundsException while deploying webapp
Hi all,
I'm trying to deploy an expanded webapp on WebLogic 6.0sp1. It's a
migration from 5.1, some hundred JSPs, some servlets and custom tags in
WEB-INF/classes and a few static pages. I placed the web-application
folder in the applications folder and the server begins the deployment.
During deployment I get a StringIndexOutOfBoundsException and the
deployment stops (see log extract below). By the time when this happens,
there is a new .ear file and a war file (seem to be the same) containing
my web application. This is a real show-stopper for me, so I'd be glad
for any recommendations.
Thanks,
Daniel
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LastModified)
modified from (0) to (984590891366).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(Application) modified from (null) to (fbsdomain:Name=f
utuna,Type=Application).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(Application) modified from (fbsdomain:Name=futuna,Type
=Application) to (fbsdomain:Name=futuna,Type=Application).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(URI) modified from (null) to (futuna).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(ContextPath) modified from (null) to (futuna).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LoadError)
modified from (null) to (null).>
[java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
fbsserver] Loading web app: futuna>
[java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
fbsserver] Loading futuna from WAR file:
c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
ete\wl_local_comp19242
.war>
[java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[Default
WebApp] extracting classfiles to
c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
ete\WEB-INF\_tmp_war_fbsser
ver_fbsserver_futuna:>
[java] <14.03.2001 18:28:17 GMT+01:00> <Info> <HTTP> <[Default
WebApp] extracted classfiles successfully...>
[java] <14.03.2001 18:28:17 GMT+01:00> <Debug> <HTTP> <Exception
thrown while loading futuna: java.lang.StringIndexOutOfBoundsException:
String index out of range: -1>
[java] <14.03.2001 18:28:17 GMT+01:00> <Error> <J2EE> <Error
deploying application futuna: Could not load futuna>
[java] <14.03.2001 18:28:17 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(Deployed)
modified from (true) to (true).>
[java] <14.03.2001 18:28:36 GMT+01:00> <Error> <HTTP>
<HttpServer(4062427,null default ctx,fbsserver) found no context for
"GET /futuna HTTP/1.1". This should not happen unless the default contex
t failed to deploy.>
[java] <14.03.2001 18:28:45 GMT+01:00> <Error> <HTTP>
<HttpServer(4062427,null default ctx,fbsserver) found no context for
"GET /futuna/ HTTP/1.1". This should not happen unless the default conte
xt failed to deploy.>
[java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
<[WebAppServletContext(4114264,console)] *.html: init>
[java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
<[WebAppServletContext(4114264,console)] *.html: Using standard I/O>Hi Kumar,
thanks for the hint, but that did not solve the problem. I reworked
web.xml and weblogic.xml (some 5.1 things inside) and now it works.
Daniel
-----Ursprüngliche Nachricht-----
Von: Kumar Allamraju [mailto:[email protected]]
Bereitgestellt: Mittwoch, 14. März 2001 22:35
Bereitgestellt in: install
Unterhaltung: java.lang.StringIndexOutOfBoundsException while deploying
webapp
Betreff: Re: java.lang.StringIndexOutOfBoundsException while deploying
webapp
It appears your default webapp failed to deploy.
Add the following entry (red ink) in your config.xml (carefully) and see
if you are able to deploy default webapp
<Application
Deployed="true"
Name="DefaultWebApp_myserver"
Path="./config/myserver/applications"
>
<WebAppComponent
Name="DefaultWebApp_myserver"
Targets="myserver"
WebServers="myserver"
URI="DefaultWebApp_myserver"
/>
</Application>
Daniel Hoppe wrote:
Hi all,
I'm trying to deploy an expanded webapp on WebLogic 6.0sp1. It's a
migration from 5.1, some hundred JSPs, some servlets and custom tags in
WEB-INF/classes and a few static pages. I placed the web-application
folder in the applications folder and the server begins the deployment.
During deployment I get a StringIndexOutOfBoundsException and the
deployment stops (see log extract below). By the time when this happens,
there is a new .ear file and a war file (seem to be the same) containing
my web application. This is a real show-stopper for me, so I'd be glad
for any recommendations.
Thanks,
Daniel
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LastModified)
modified from (0) to (984590891366).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(Application) modified from (null) to (fbsdomain:Name=f
utuna,Type=Application).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(Application) modified from (fbsdomain:Name=futuna,Type
=Application) to (fbsdomain:Name=futuna,Type=Application).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(URI) modified from (null) to (futuna).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=WebAppComponent,Application=futuna)
Attribute=(ContextPath) modified from (null) to (futuna).>
[java] <14.03.2001 18:28:11 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(LoadError)
modified from (null) to (null).>
[java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
fbsserver] Loading web app: futuna>
[java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[HTTP
fbsserver] Loading futuna from WAR file:
c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
ete\wl_local_comp19242
.war>
[java] <14.03.2001 18:28:16 GMT+01:00> <Info> <HTTP> <[Default
WebApp] extracting classfiles to
c:\dev\fbs\application\config\fbsdomain\applications\.wl_temp_do_not_del
ete\WEB-INF\_tmp_war_fbsser
ver_fbsserver_futuna:>
[java] <14.03.2001 18:28:17 GMT+01:00> <Info> <HTTP> <[Default
WebApp] extracted classfiles successfully...>
[java] <14.03.2001 18:28:17 GMT+01:00> <Debug> <HTTP> <Exception
thrown while loading futuna: java.lang.StringIndexOutOfBoundsException:
String index out of range: -1>
[java] <14.03.2001 18:28:17 GMT+01:00> <Error> <J2EE> <Error
deploying application futuna: Could not load futuna>
[java] <14.03.2001 18:28:17 GMT+01:00> <Info> <Management>
<MBean=(fbsdomain:Name=futuna,Type=Application) Attribute=(Deployed)
modified from (true) to (true).>
[java] <14.03.2001 18:28:36 GMT+01:00> <Error> <HTTP>
<HttpServer(4062427,null default ctx,fbsserver) found no context for
"GET /futuna HTTP/1.1". This should not happen unless the default contex
t failed to deploy.>
[java] <14.03.2001 18:28:45 GMT+01:00> <Error> <HTTP>
<HttpServer(4062427,null default ctx,fbsserver) found no context for
"GET /futuna/ HTTP/1.1". This should not happen unless the default conte
xt failed to deploy.>
[java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
<[WebAppServletContext(4114264,console)] *.html: init>
[java] <14.03.2001 18:30:27 GMT+01:00> <Info> <HTTP>
<[WebAppServletContext(4114264,console)] *.html: Using standard I/O> -
Hi , After installing the latest Webservice pack ,
i'am trying to run the Sample application in examples directory .
( JAXB ).while running the XJC command i am getting follwing exception .
I tried to run the same command by pointing the Classpath to JDK 1.3 as well as Jsdk 1.4 but no luck .
Can any one tell me what's wrong with my setup any help is appriciated .
Thanks in advance,
Abhijit Choudhary .
X:\Abhijit\JAXB\jaxb-1.0\examples\users-guide\SampleApp1>xjc po.xsd -p primer.po
parsing a schema...
compiling a schema...
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:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: java.lang.InternalError: internal error: SHA-1 not available.
at sun.security.provider.SecureRandom.init(SecureRandom.java:86)
at sun.security.provider.SecureRandom.<init>(SecureRandom.java:65)
at java.security.SecureRandom.<init>(SecureRandom.java:131)
at com.sun.crypto.provider.SunJCE.<clinit>(DashoA6275)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:274)
at java.lang.Class.newInstance0(Class.java:306)
at java.lang.Class.newInstance(Class.java:259)
at java.security.Provider.loadProvider(Provider.java:153)
at java.security.Security$3.run(Security.java:349)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.Security.loadOneMoreProvider(Security.java:346)
at java.security.Security.getEngineClassName(Security.java:557)
at java.security.Security.getEngineClassName(Security.java:594)
at java.security.Security.getImpl(Security.java:1043)
at java.security.MessageDigest.getInstance(MessageDigest.java:120)
at java.io.ObjectStreamClass.computeDefaultSUID(ObjectStreamClass.java:1568)
at java.io.ObjectStreamClass.access$100(ObjectStreamClass.java:45)
at java.io.ObjectStreamClass$1.run(ObjectStreamClass.java:169)
at java.security.AccessController.doPrivileged(Native Method)
at java.io.ObjectStreamClass.getSerialVersionUID(ObjectStreamClass.java:166)
at java.io.ObjectStreamClass.writeNonProxy(ObjectStreamClass.java:553)
at java.io.ObjectOutputStream.writeClassDescriptor(ObjectOutputStream.java:591)
at java.io.ObjectOutputStream.writeNonProxyDesc(ObjectOutputStream.java:1142)
at java.io.ObjectOutputStream.writeClassDesc(ObjectOutputStream.java:1100)
at java.io.ObjectOutputStream.writeArray(ObjectOutputStream.java:1179)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1050)
at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1330)
at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1302)
at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1245)
at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1052)
at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:278)
at com.sun.codemodel.fmt.JSerializedObject.<init>(JSerializedObject.java:27)
at com.sun.tools.xjc.generator.ObjectFactoryGenerator.generate(ObjectFactoryGenerator.java:290)
at com.sun.tools.xjc.generator.ObjectFactoryGenerator.<init>(ObjectFactoryGenerator.java:111)
at com.sun.tools.xjc.generator.SkeletonGenerator.<init>(SkeletonGenerator.java:114)
at com.sun.tools.xjc.generator.SkeletonGenerator.generate(SkeletonGenerator.java:92)
at com.sun.tools.xjc.Driver.generateCode(Driver.java:728)
at com.sun.tools.xjc.Driver.run(Driver.java:423)
at com.sun.tools.xjc.Driver._main(Driver.java:113)
at com.sun.tools.xjc.Driver.access$000(Driver.java:77)
at com.sun.tools.xjc.Driver$1.run(Driver.java:93)HI,
I also got the same problem. It were throwing the java.lang.reflect.InvocationTargetException while the running xjc.bat from <jaxb installed dir>\bin\ and refering the schema through full path.
I am current running with j2sdk1.4.1_01 and jwsdp1.1.
The solution which worked out for me was
Just go to directory where you saved the xml schema file(.xsd file).just modify the System path to refer xjc.bat and taht's it.
Run the xjc with XmlSchema file name with output package name and target directory like follows:
xjc "XmlSchema.xsd" -d <targetdirectory> -p <packagename>
Hope this will help
Regards,
Atul -
XML Publisher Report - java.lang.OutOfMemoryError
Hi All,
Apps - 11.5.10.2
XML Publisher - 5.6.3
When the request being run for huge data, its getting out of momory error.
We have already tried the below options
Modified the teo profiles and 3 Fo processing properties in both the template and the data definition as follows as given in the notes 563181.1 and 563945.1
Error in OPP logs
[12/30/09 2:49:05 AM] [STATEMENT] [GSMServiceController:2921265] Getting next event...
Exception: java.lang.OutOfMemoryError
[12/30/09 2:49:46 AM] [java.lang.OutOfMemoryError
[12/30/09 2:54:24 AM] [STATEMENT] [OPPServiceThread1] 1 threads running
[12/30/09 2:55:18 AM] [java.lang.OutOfMemoryErrorjava.lang.OutOfMemoryError
java.lang.OutOfMemoryError
And finally the request ended in warning and the OPP got terminated.
[java.io.tmpdir] - Has about 3 G of free space
[APPLTMP] - Has more than 50G of free space
Please advice.
Thanks & Regards,
RakeshHi Hussein,
Reviewed those notes.... initially we got errors like
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:324)
at oracle.apps.xdo.common.xml.XSLT10gR1.invokeProcessXSL(XSLT10gR1.java:624)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:421)
at oracle.apps.xdo.common.xml.XSLT10gR1.transform(XSLT10gR1.java:233)
at oracle.apps.xdo.common.xml.XSLTWrapper.transform(XSLTWrapper.java:177)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:1044)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:997)
at oracle.apps.xdo.template.fo.util.FOUtility.generateFO(FOUtility.java:212)
at oracle.apps.xdo.template.FOProcessor.createFO(FOProcessor.java:1657)
at oracle.apps.xdo.template.FOProcessor.generate(FOProcessor.java:967)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.runProcessTemplate(TemplateHelper.java:5926)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3458)
at oracle.apps.xdo.oa.schema.server.TemplateHelper.processTemplate(TemplateHelper.java:3547)
at oracle.apps.fnd.cp.opp.XMLPublisherProcessor.process(XMLPublisherProcessor.java:247)
at oracle.apps.fnd.cp.opp.OPPRequestThread.run(OPPRequestThread.java:157)
Caused by: java.lang.ThreadDeath
at java.lang.Thread.stop(Thread.java:630)
at oracle.apps.fnd.cp.opp.OPPRequestThreadManager.terminateThread(OPPRequestThreadManager.java:207)
at oracle.apps.fnd.cp.opp.OPPTerminateCommand.execute(OPPTerminateCommand.java:45)
at oracle.apps.fnd.cp.opp.OPPServiceThread.processMessage(OPPServiceThread.java:240)
at oracle.apps.fnd.cp.opp.OPPServiceThread.waitForMessages(OPPServiceThread.java:227)
at oracle.apps.fnd.cp.opp.OPPServiceThread.mainLoop(OPPServiceThread.java:128)
at oracle.apps.fnd.cp.gsf.BaseServiceThread.run(BaseServiceThread.java:135)
then....
java.lang.ThreadDeath
at java.lang.Thread.stop(Thread.java:630)
at oracle.apps.fnd.cp.opp.OPPRequestThreadManager.terminateThread(OPPRequestThreadManager.java:207)
at oracle.apps.fnd.cp.opp.OPPTerminateCommand.execute(OPPTerminateCommand.java:45)
at oracle.apps.fnd.cp.opp.OPPServiceThread.processMessage(OPPServiceThread.java:240)
at oracle.apps.fnd.cp.opp.OPPServiceThread.waitForMessages(OPPServiceThread.java:227)
at oracle.apps.fnd.cp.opp.OPPServiceThread.mainLoop(OPPServiceThread.java:128)
at oracle.apps.fnd.cp.gsf.BaseServiceThread.run(BaseServiceThread.java:135)
then we have made these changes
change the Profile option "Concurrent: OPP Process timeout" as 108000 and
Use XML Publisher's XSLT processor: True
Enable scalable feature of XSLT processor: False
Enable XSLT runtime optimization: True
now we are getting only a single line error in the opp log
12/30/09 2:55:18 AM] java.lang.OutOfMemoryErrorjava.lang.OutOfMemoryError
java.lang.OutOfMemoryError
the request is running for more than 3.5 hrs and ending in warning.
The concurrent manager has timed out waiting for the Output Post-processor to finish this request.
Thansk & Regards,
Rakesh -
Problem with java.lang.OutOfMemoryError
hi
i am developping a web application
i am using jfreechart in my jsf application to generate statistic diagrams
to update my diagrams i am calling the methode ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null) every 10 seconds
my application become more and more slow and the cpnsommatio of memory is more and more important until getting this exception:
javax.faces.el.EvaluationException: java.lang.OutOfMemoryError: Java heap space
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:102)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at TimeoutFilter.doFilter(TimeoutFilter.java:64)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.awt.image.DataBufferInt.<init>(Unknown Source)
at java.awt.image.Raster.createPackedRaster(Unknown Source)
at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
at java.awt.image.BufferedImage.<init>(Unknown Source)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1407)
at org.jfree.chart.JFreeChart.createBufferedImage(JFreeChart.java:1389)
at org.jfree.chart.ChartUtilities.writeChartAsPNG(ChartUtilities.java:183)
at org.jfree.chart.ChartUtilities.saveChartAsPNG(ChartUtilities.java:320)
at SWIMLogStatistiques.generateChartMethod(SWIMLogStatistiques.java:98)
at SWIMmoduleStatistiques.generateChartMethod(SWIMmoduleStatistiques.java:39)
at ListModules.mesServicesAttributs(ListModules.java:199)
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.apache.el.parser.AstValue.invoke(AstValue.java:172)
at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
at org.apache.jasper.el.JspMethodExpression.invoke(JspMethodExpression.java:68)
at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:88)
at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:102)
at javax.faces.component.UICommand.broadcast(UICommand.java:387)
at org.ajax4jsf.component.AjaxActionComponent.broadcast(AjaxActionComponent.java:55)
at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:321)
at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:296)
at org.ajax4jsf.component.AjaxViewRoot.processPhase(AjaxViewRoot.java:253)
at org.ajax4jsf.component.AjaxViewRoot.processDecodes(AjaxViewRoot.java:409)
at com.sun.faces.lifecycle.ApplyRequestValuesPhase.execute(ApplyRequestValuesPhase.java:78)
at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
after doing some searches, i found that the solution is to change the memory allocated for the JVM but in my case, the memory consommed by my application is increasing along with time.
i think that the problem is with:*ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null);*:does this instruction consume a lot of memory and how can i resolve thos problem?riadhhwajdii wrote:
i am using jfreechart in my jsf application to generate statistic diagrams
to update my diagrams i am calling the methode ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null) every 10 seconds
my application become more and more slow and the cpnsommatio of memory is more and more important until getting this exception:This bit (slowing down over several cycles of the code)..and this bit:
after doing some searches, i found that the solution is to change the memory allocated for the JVM but in my case, the memory consommed by my application is increasing along with time.(increasing memory simply delays the exception), are usually a pointer that you have a memory leak somewhere.
i think that the problem is with:*ChartUtilities.saveChartAsPNG(file1, chart, 400, 300, null);*:does this instruction consume a lot of memory and how can i resolve thos problem?Take some heap dumps (especially when the out of memory occurs) and stick them in a memory analyser. Just because the exception is being thrown during saveChartAsPNG() does not mean that's the culprit. All that means is it was the final straw. -
"java.lang.NoClassDefFoundError" error while run t-code SXMB_IFR in XI
Hi
When I am trying to run t-code <b>SXMB_IFR</b> in Xi it give me below error.
<b>Exception Details
Exception class: java.lang.NoClassDefFoundError
Message
java.lang.NoClassDefFoundError
Stacktrace
Thrown:
java.lang.NoClassDefFoundError: null
at com.sap.aii.ibrep.server.transport.api.RepTransportServiceStartup.startupIbrepTransportServices(RepTransportServiceStartup.java:22)
at com.sap.aii.ibrep.server.applcomp.StartupCodeEntry.startup(StartupCodeEntry.java:426)
at com.sap.aii.ib.core.applcomp.IStartupCodeEntry.startupIfNotAlreadyDone(IStartupCodeEntry.java:33)
at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponentImpl.startup(ExplicitApplicationComponentImpl.java:116)
at com.sap.aii.ib.core.applcomp.ExplicitApplicationComponents.startup(ExplicitApplicationComponents.java:374)
at com.sap.aii.ib.core.applcomp.ApplicationComponent.startup(ApplicationComponent.java:201)
at jsp_Main1172666584171._jspService(jsp_Main1172666584171.java:21)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:467)
at com.sap.engine.services.servlets_jsp.server.servlet.JSPServlet.service(JSPServlet.java:181)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:385)
at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:263)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:340)
at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:318)
at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:821)
at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:239)
at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:147)
at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
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:94)
at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)</b>
Reg,
Hiren PatelHi Hiren,
Check these threads:
Problem starting SXMB_IFR and J2EE Engine
java.lang.NoClassDefFoundError
Regards,
Subhasha Ranjan
Maybe you are looking for
-
I have a Mac Pro with CS3 and it has been updated from a previous version of CS. I don't have the previous version, so if I need to upgrade my Mac Pro can I just clone it (Snow Leopard) with the already installed CS applications onto a Lion hard driv
-
Callable Statement wot working properly
I have a situation where using CallableStatement only executes the stored proc intermittenly, while utilizing Statement works all the time. This didn't happen under WLS 5.1 SP 6. Does anyone else have the same problems. Also in both cases the jdbc lo
-
Yellow tint (lower part of screen)
Good day! I am a very satisfied Z2 user for quite a while now. My problem started recently when I noticed the lower part of my screen developing a yellowish color. Should I send it to Sony service center or should I wait for a firmware update? And wo
-
Sybase ASE 12.5.4 EBF 14124 ESD#4 running out of connections
I am working on a web application which works on SQL sever back end as well as Sybase ASE 12.5.4 EA server. Our project main focus was to move everything to sybase backend. Earlier there were 2 databases, the app was connecting to - db1 on sql server
-
Access BEx Query resultset Clientside
How can we manipulate the output of a bex query client side (internet explorer). We have an output of a query which we would like change before data is exported to excel. Can we somehow access and change the query resultset client side with e.g.. Jav