Clicking on table header throws exception
I'm using Windows Look and Feel. I made a table and applied the custom renderer to the table header. When I click the table header it throws a NullPointerException relating to the plaf.
javax.swing.plaf.basic.BasicTableHeaderUI$MouseInputHandler.mouseClicked(Unknown Source)+
Anybody any Idea. Adding the mouse Listener solves this problem but I dont want to use the listeners just for that reason.
Take a look here:
http://www.codeguru.com/java/articles/218.shtml
Similar Messages
-
Clicking the table header column programmatically
Hi
For sorting of the JTable I've used the TableSorter API provided in this site. What I need to do is by clicking on another panel the panel containing the JTable should be displayed sorting the respective column. So what I need to do is click the table header column programmatically. Do you know how can I do that.
Thanx.Take a look at setSortingStatus function in TableSorter.
If you want ascending sort just call:
setSortingStatus(columnIndex, 1);This is the code executed when you press table header, it might give you some more insight:public void mouseClicked(MouseEvent e) {
JTableHeader h = (JTableHeader) e.getSource();
TableColumnModel columnModel = h.getColumnModel();
int viewColumn = columnModel.getColumnIndexAtX(e.getX());
int column = columnModel.getColumn(viewColumn).getModelIndex();
if (column != -1) {
int status = getSortingStatus(column);
if (!e.isControlDown()) {
cancelSorting();
// Cycle the sorting states through {NOT_SORTED, ASCENDING, DESCENDING} or
// {NOT_SORTED, DESCENDING, ASCENDING} depending on whether shift is pressed.
status = status + (e.isShiftDown() ? -1 : 1);
status = (status + 4) % 3 - 1; // signed mod, returning {-1, 0, 1}
setSortingStatus(column, status);
} -
Programatically click the table header?
hello
how do you programatically click the table header? i have some panels in a table...there is a button in each one that says "remove" to remove that panel from the table. when i tablemodel.removeRow(thisRow), it sorta does: the row is gone, the overall count is reduced, but it displays wrong until i click on the table header..
for example..if it lists job 1, 2, 3, 4, and 5. if i delete job #2. 1, 2, 4, 5 are left. when i click on the header it shows: 1, 3, 4, 5 as it should. any query i make to what is there before the header shows the same thing: 1, 2, 4, 5. wierd eh? so i need a way to click on that header programatically. i know its a hack, but i cant figure out why its not deleting the right oen for that little time before the header-click.When you say table, I'm assuming you mean JTable since you're using
a TableModel.
You might try just encouraging the table to redraw itself as that's
probably what is happening when you click the header. I've noticed
that is often required when removing components. Anyways, I'd try
experimenting with calls to
repaint() and/or
validate() or invalidate()
on the JTable or its parent and see what happens.
: jay -
Hi,
Is there any way to capture the right click on the table header of JTable? Can anyone tell me the way to do this.
Thanks and Regards,
R.Vishnu Varadhan.Thanks for the help.
Its working.
Regards,
R.Vishnu Varadhan. -
I am working with Jtable and want when i click on header that should behave like push button, i mean on clicking that should be in push state and looks different from other header cell.
any idea????Take a look here:
http://www.codeguru.com/java/articles/218.shtml -
JTable - Clicking table header
How do I call a JOptionPane or even a JFrame when clicking the table header?
Thanks Sergio, it helped me but still I can't make event recognize which column was clicked. It seems to be a hard task since I can click a header column without having a column selected, otherwise I could get the column by getColumnName(getSelectedColumn()).
Do you hv any idea about solving this problem? -
HI,
Iam using AdvancedDatagrid inorder to group the flat data populated from the backend through BlazeDS. Result data will be in xml format and i have converted it to xmllistcollection and assigned to the grouping collection source. Flat data is grouped by one of the attribute called 'Name' and refreshed after data has been populated.
Data structre used as input is: WIth this structure, iam grouping by the field 'Name'.
<Report> <att_report>
<id>FDR1</id>
<Name>Feeder 1</Name>
<frequency>Monthly</frequency>
<Field>Finance 1</Field>
<Aug_10>100</Aug_10>
<Jul_10>200</Jul_10>
</att_report>
<att_report>
<id>FDR1</id>
<Name>Feeder 1</Name>
<frequency>Yearly</frequency>
<Field>Finance 2</Field>
<Jul_10>200</Jul_10>
</att_report>
<att_report>
<id>FDR2</id>
<Name>Feeder 2</Name>
<frequency>Quarterly</frequency>
<Field>Finance 3</Field>
<Jul_10>2000</Jul_10>
</att_report>
<att_report>
<id>FDR2</id>
<Name>Feeder 2</Name>
<frequency>MOnthly</frequency>
<Field>Finance 2</Field>
<Jul_10>2000</Jul_10>
</att_report>
<att_report>
<id>FDR4</id>
<Name>Feeder 4</Name>
<frequency>yearly</frequency>
<Field>Finance 5</Field>
<Jul_10>2000</Jul_10>
</att_report>
</Report>
Grouping is done as expected. We have additional functionalities like soring / seraching of the result set. Either one is working fine. Other functionality throws excpetion mentioned below.
When any of the advanced datagrid grid column header is clicked for sorting, it throws exception. I have pasted the exception below for reference.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.collections::HierarchicalCollectionView/internalRefresh()[C:\work\flex\dmv_automation\ projects\datavisualisation\src\mx\collections\HierarchicalCollectionView.as:709]
at mx.collections::HierarchicalCollectionView/refresh()[C:\work\flex\dmv_automation\projects \datavisualisation\src\mx\collections\HierarchicalCollectionView.as:686]
at mx.controls::AdvancedDataGridBaseEx/sortHandler()[C:\work\flex\dmv_automation\projects\da tavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:6869]
at mx.controls::AdvancedDataGrid/sortHandler()[C:\work\flex\dmv_automation\projects\datavisu alisation\src\mx\controls\AdvancedDataGrid.as:6899]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.controls::AdvancedDataGrid/headerReleaseHandler()[C:\work\flex\dmv_automation\projects \datavisualisation\src\mx\controls\AdvancedDataGrid.as:7120]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at mx.controls::AdvancedDataGridBaseEx/mouseUpHandler()[C:\work\flex\dmv_automation\projects \datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:5738]
at mx.controls::AdvancedDataGrid/mouseUpHandler()[C:\work\flex\dmv_automation\projects\datav isualisation\src\mx\controls\AdvancedDataGrid.as:8457]
I tried with couple of options but still not able to get rid of the excpetion. I browsed through couple of links also, still not able to find an solution. Can i know whether it is a bug or it can be fixed.
Any help / suggestions on this will be great.
Thanks in Advance,
SrinivasanRead the error messages and pay attention to the line number of the error:
1)1 import java.io.*;
2
3 public class Test
4 {
5 public static void openFile()
6 {
7 FileOutputStream f = new FileOutputStream("data.txt");
8 }
9
10 public static void main (String[] args)
11 {
12 openFile();
13 }
14 }
$ javac -cp "" Test.java
Test.java:7: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
FileOutputStream f = new FileOutputStream("data.txt");
^
1 error2)1 import java.io.*;
2
3 public class Test
4 {
5 public static void openFile() throws FileNotFoundException
6 {
7 FileOutputStream f = new FileOutputStream("data.txt");
8 }
9
10 public static void main (String[] args)
11 {
12 openFile();
13 }
14 }
$ javac -cp "" Test.java
Test.java:12: unreported exception java.io.FileNotFoundException; must be caught or declared to be thrown
openFile();
^
1 error3)
1 import java.io.*;
2
3 public class Test
4 {
5 public static void openFile() throws FileNotFoundException
6 {
7 FileOutputStream f = new FileOutputStream("data.txt");
8 }
9
10 public static void main (String[] args)
11 {
12 try
13 {
14 openFile();
15 }
16 catch(FileNotFoundException e)
17 {
18 System.out.println("Error file doesn't exist.");
19 }
20 }
21 }
$ javac -cp "" Test.java
$
1 import java.io.*;
2
3 public class Test
4 {
5 public static void openFile() throws FileNotFoundException
6 {
7 FileOutputStream f = new FileOutputStream("data.txt");
8 }
9
10 public static void main (String[] args) throws FileNotFoundException
11 {
12 openFile();
13 }
14 }
$ javac -cp "" Test.java
$ -
Getting acess to TableView table header
Hi,
How can I get access to the TableView table headers? I want to attach mouse listeners to them so that I can get a call back anytime a user mouse clicks a table header.
Thanks in advance, best regards,You could call:
tableView.lookupAll(".table-view .column-header .label")after the table has been displayed on a Stage, but the lookup solution seems even uglier than the setGraphic one. -
Howdy,
I am trying to clear the KeepWithNext flag for all the paragraphs in every table in the document but the ones in table headings.
What's the best way to do that.
At the moment I only have the following script that clears the KeepWithNext flag for every paragraph in every table.
Sub ClearKeepWNext()
Dim t As Table
For Each t In ActiveDocument.Tables
t.Range.ParagraphFormat.KeepWithNext = False
t.AutoFitBehavior (wdAutoFitContent)
Next
End Sub
This results in table headers split so that many tables have only the table header at the bottom of the page where all other table rows start on the text page.
What would be the best way to fix that?
Thank you in advance.
Well this is the world we live in And these are the hands we're given...Try:
Sub ClearKeepWNext()
Dim Tbl As Table, i As Long
For Each Tbl In ActiveDocument.Tables
With Tbl
.Range.ParagraphFormat.KeepWithNext = False
For i = 1 To .Rows.Count
With .Rows(i)
If .HeadingFormat = True Then
.Range.ParagraphFormat.KeepWithNext = True
Else
Exit For
End If
End With
Next
End With
Next
End Sub
If the tables only have a single heading row, you could instead use:
Sub ClearKeepWNext()
Dim Tbl As Table
For Each Tbl In ActiveDocument.Tables
With Tbl
.Range.ParagraphFormat.KeepWithNext = False
With .Rows(1)
If .HeadingFormat = True Then
.AllowBreakAcrossPages = False
End If
End With
End With
Next
End Sub
Cheers
Paul Edstein
[MS MVP - Word] -
How can I right-align a table header?
Does anyone know a way to right-align a table header?
For example, in the table below I want the word 'Price' to be right-aligned. I could set the table's 'header renderer' to be a right-aligned DefaultTableCellRenderer, but then the header would look like a cell, not a header. Why can't swing be simple, like table.getColumn(1).setAlignment(Column.RIGHT) ????
public class TestTableHeader {
public static void main(String[] args) throws Exception {
JFrame frame = new JFrame("Test");
Object[][] rowData = new Object[][] { { "General Electric", "$100.60" },
{ "IBM", "$5.20" }, { "Wal-mart", "$17.00" } };
JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
table.getColumnModel().getColumn(1).setCellRenderer(renderer);
frame.getContentPane().add(new JScrollPane(table));
frame.setSize(400, 300);
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.setVisible(true);
}I modified your code an came up with a solution to the problem.
import java.awt.Component;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTable;
import javax.swing.table.DefaultTableCellRenderer;
public class TestTableHeader {
public static void main(String[] args) throws Exception {
JFrame frame = new JFrame("Test");
Object[][] rowData = new Object[][] {
{ "General Electric", "$100.60" }, { "IBM", "$5.20" },
{ "Wal-mart", "$17.00" } };
JTable table = new JTable(rowData, new Object[] { "Name", "Price" });
RightAlignRender right = new TestTableHeader().new RightAlignRender();
table.getColumnModel().getColumn(0).setHeaderRenderer(right);
table.getColumnModel().getColumn(1).setHeaderRenderer(right);
frame.getContentPane().add(new JScrollPane(table));
frame.setSize(400, 300);
frame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
frame.setVisible(true);
public class RightAlignRender extends DefaultTableCellRenderer {
public Component getTableCellRendererComponent(JTable table,
Object arg1, boolean arg2, boolean arg3, int arg4, int column) {
Component toReturn = table.getTableHeader().getDefaultRenderer().getTableCellRendererComponent(table,
arg1, arg2, arg3, arg4, column);
switch (column) {
case 0:
((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.CENTER);
break;
case 1:
((JLabel) toReturn).setHorizontalAlignment(DefaultTableCellRenderer.RIGHT);
break;
return toReturn;
} -
Html link not visible as table header in jsp
Hi,
I am not sure if this question belongs to JSP forum, since it's happening in JSP page I am posting it here.
I am seeing this strange problem, in my JSP page all the link are looking fine except some links in Table header. Here is the code snippet:
<th align="left" width="30%"><html:link action="/myAction.do?sortBy=org&all=${param.all}">Organization Name</html:link></th>
ENV is struts, jstl, html.
Now the problem is the text Organization Name is not visible, although it's there and I can click it. If I click and drag mouse over it I can see it.
Also if I put this link anywhere else e.g. <TD> I can see it.
I am not sure why it's happening.
Please help me.
AbhishekSounds like a style issue - is it the same colour as the background for some reason?
What styles have you got applied to your <th> columns? The text in them?
Are you using css? -
How to add the Row count(number of rows in table) in the table header?
Hi,
I'm having a table. This table is viewed when i click on a search button.
<b>On the table header it should dynamically display the number of rows in the table, i.e., the row count.</b>
How to do this? could any one explain me with the detailed procedure to achieve this.
Thanks & Regards,
SureshIf you want to show a localized text in the table header, you should use the <b>Message Pool</b> to create a (parameterized) message "tableHeaderText" like "There are table entries".
Next, create a context attribute "tableHeaderText" of type "string" and bind the "text" property of the table header Caption UI element to this attribute.
Whenever the table data has changed (e.g. at the end of the supply function for the table's data source node), update the header text:
int numRows = wdContext.node<TableDataSourceNode>().size();
String text = wdComponentAPI.getTextAccessor().getText
IMessage<ComponentName>.TABLE_HEADER_TEXT,
new Object[] { String.valueOf(numRows) }
wdContext.currentContextElement().setTableHeaderText(text);
Maybe you want to provide a separate message for the case that there are no entries.
Alternatively, you can make the attribute calculated and return the header text in the attribute getter.
Armin -
Hi All,
I am reading notepads files and inserting data in sql tables from the notepad-
while performing sql bulk copy on this line it throws exception - "bulkcopy.WriteToServer(dt); -"data type related(mentioned in subject )".
Please go through my logic and tell me what to change to avoid this error -
public void Main()
Dts.TaskResult = (int)ScriptResults.Success;
string[] filePaths = Directory.GetFiles(@"C:\Users\jainruc\Desktop\Sudhanshu\master_db\Archive\test\content_insert\");
for (int k = 0; k < filePaths.Length; k++)
string[] lines = System.IO.File.ReadAllLines(filePaths[k]);
//table name needs to extract after = sign
string[] pathArr = filePaths[0].Split('\\');
string tablename = pathArr[9].Split('.')[0];
DataTable dt = new DataTable(tablename);
|
string[] arrColumns = lines[1].Split(new char[] { '|' });
foreach (string col in arrColumns)
dt.Columns.Add(col);
for (int i = 2; i < lines.Length; i++)
string[] columnsvals = lines[i].Split(new char[] { '|' });
DataRow dr = dt.NewRow();
for (int j = 0; j < columnsvals.Length; j++)
//Console.Write(columnsvals[j]);
if (string.IsNullOrEmpty(columnsvals[j]))
dr[j] = DBNull.Value;
else
dr[j] = columnsvals[j];
dt.Rows.Add(dr);
SqlConnection conn = new SqlConnection();
conn.ConnectionString = "Data Source=UI3DATS009X;" + "Initial Catalog=BHI_CSP_DB;" + "User Id=sa;" + "Password=3pp$erv1ce$4";
conn.Open();
SqlBulkCopy bulkcopy = new SqlBulkCopy(conn);
bulkcopy.DestinationTableName = dt.TableName;
bulkcopy.WriteToServer(dt);
conn.Close();
Issue 1:-
I am reading notepad: getting all column and values in my data table now while inserting for date and time or integer field i need to do explicit conversion how to write for specific column before bulkcopy.WriteToServer(dt);
Issue 2:- Notepad does not contains all columns nor in specific sequence in that case i can add few column ehich i am doing now but the issue is now data table will add my columns + notepad columns and while inserting how to assign in perticular colums?
sudhanshu sharma Do good and cast it into river :)Hi,
I think you'll have to do an explicit column mapping if they are not in exact sequence in both source and destination.
Have a look at this link:
https://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqlbulkcopycolumnmapping(v=vs.110).aspx
Good Luck!
Kaur.
Please mark as answer if this resolves your issue. -
Programmatically adding chart to a report throws exception
programmatically adding chart to a report throws exception "chart condition fields are not valid".
Configuration:
I am using CR4E to create web application, I've added RAS jars (rasapp.jar, rascore.jar, reporttemplate.jar, serialization.jar) to this web application. For designing reports i am using Crystal Reports 2008.
Code:
<%
// Get the previously opened report from the session.
ReportClientDocument reportClientDocument =
(ReportClientDocument)session.getAttribute("ReportClientDocument");
System.out.println(reportClientDocument.getReportDocument().getName());
// Try to get the report's DataDefinition object.
IDataDefinition dataDefinition;
try
dataDefinition = reportClientDocument.getDataDefController().getDataDefinition();
// If the DataDefinition object can not be retrieved, redirect the user to an error page.
catch (Exception e)
System.out.println("With error1");
return;
// Create a new ChartDefinition object and set its type to ChartType.group.
ChartDefinition chartDefinition = new ChartDefinition();
chartDefinition.setChartType(ChartType.group);
Get the conditional field of the report's first group. Set this conditional
field for the ChartDefinition object using the setConditonalFields method. Notice
that the conditional field is first placed in a Fields collection because the
setConditionalFields method takes a Fields object as an argument.
Fields conditionFields = new Fields();
if (!dataDefinition.getGroups().isEmpty())
IField field = dataDefinition.getGroups().getGroup(0).getConditionField();
System.out.println("Condition field name ->" + field.getLongName(Locale.ENGLISH));
conditionFields.addElement(field);
chartDefinition.setConditionFields(conditionFields);
//Get the summary field name from the form on the previous page.
String summaryFieldName = URLDecoder.decode(request.getParameter("summaryField"));
System.out.println("Summary field name ->" + summaryFieldName);
Loop through all of the report's summary fields until the one matching the name
above is found. Set this summary field for the ChartDefinition object using the
setDataFields method. Notice that the summary field is first placed in a Fields
collection because the setDataFields method takes a Fields object as an argument.
Fields dataFields = new Fields();
for (int i = 0; i < dataDefinition.getSummaryFields().size(); i++)
IField summaryField = dataDefinition.getSummaryFields().getField(i);
if (summaryField.getLongName(Locale.ENGLISH).equals(summaryFieldName))
System.out.println("Adding data field ->" + summaryFieldName);
dataFields.addElement(summaryField);
chartDefinition.setDataFields(dataFields);
Create a new ChartObject to represent the chart that will be added. Set the
ChartDefinition property of the ChartObject using the ChartDefinition object created
above.
ChartObject chartObject = new ChartObject();
chartObject.setChartDefinition(chartDefinition);
Get the chart type, chart placement, and chart title strings from the form on the
previous page. If no chart title was chosen, create a generic title.
String chartTypeString = request.getParameter("type");
String chartPlacementString = request.getParameter("placement");
String chartTitle = request.getParameter("title");
System.out.println("chartTypeString ->"+ chartTypeString + "<-chartPlacementString->" + chartPlacementString + "<-chartTitle->"+chartTitle);
if (chartTitle.equals(""))
chartTitle = "untitled";
Create a ChartStyleType object and a AreaSectionKind object based on the
the chartTypeString and chartPlacementString retrieved above. In this example
possible chart types are bar chart and pie chart. Possible chart placements
are header and footer.
ChartStyleType chartStyleType = ChartStyleType.from_string(chartTypeString);
AreaSectionKind chartPlacement = AreaSectionKind.from_string(chartPlacementString);
// Set the chart type, chart placement, and chart title for the chart.
chartObject.getChartStyle().setType(chartStyleType);
chartObject.setChartReportArea(chartPlacement);
chartObject.getChartStyle().getTextOptions().setTitle(chartTitle);
// Set the width, height, and top for the chart.
chartObject.setHeight(5000);
chartObject.setWidth(5000);
chartObject.setTop(1000);
Get a ReportDefController object that can be used to modify the report's definition.
ReportDefController reportDefController;
try
reportDefController = reportClientDocument.getReportDefController();
catch (Exception e)
System.out.println("With Error2");
return;
*Create a Section object that represents the section that will hold the chart.
If the chart placement was set header, get the header section, otherwise, if the
chart placement was set to footer, get the footer section.
Section chartSection = null;
if (chartPlacement.equals(AreaSectionKind.reportHeader))
IArea reportHeaderArea =
reportDefController.getReportDefinition().getReportHeaderArea();
chartSection = (Section)reportHeaderArea.getSections().getSection(0);
else if (chartPlacement.equals(AreaSectionKind.reportFooter))
IArea reportFooterArea =
reportDefController.getReportDefinition().getReportFooterArea();
chartSection = (Section)reportFooterArea.getSections().getSection(0);
Add the chart to the section using the ReportDefController object.
reportDefController.getReportObjectController().add(chartObject, chartSection, 1);
// Save the changes and close the report.
reportClientDocument.save();
reportClientDocument.close();
session.removeAttribute("ReportClientDocument");
%>
Trace:
com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The chart condition fields are not valid.---- Error code:-2147213287 Error code name:invalidChartObject
at com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException.throwReportDefControllerException(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportObjectController.add(Unknown Source)
at org.apache.jsp.AddChart_jsp._jspService(AddChart_jsp.java:230)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:162)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:283)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:244)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:276)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:218)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:56)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:189)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:185)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)Please try this code snippet
var cs:ColumnSeries = new ColumnSeries();
cs.dataProvider = dp;
cs.displayName = "Series 2";
cs.yField = "values";
chart.series.push(cs);
OR
var temp:Array = [];
var cs:ColumnSeries = new ColumnSeries();
cs.dataProvider = dp;
cs.displayName = "Series 2";
cs.yField = "values";
temp = chart.series;
temp.add(cs);
chart.series = temp; -
** Throw Exception in BPM - Webservice to JDBC
Hi friends,
I am doing Webservice to JDBC scenario using BPM. I am doing insert data in backend system oracle table by passing inputs from WebService. After insert data in table, JBDC returns the response to web service thru response variable 'insert_count = 1' like this. When I try to insert the same record, that is, employee no as primary key in my table, XI throws an error 'ORA-00001 - unique constraint' in Addtional . We have to pass this information to Web Service. How will we achive this ?
Presently in our BPM design,
1) Exception property of the block as 'Error'.
2) Inside Block, in Sync Send Step (BPM -> JDBC) specified 'Exception/System Error' as 'Error'.
3) Inserted one Exception Handler Brach. In this Brach, inserted one control step. In this step, itself we put a Control Step, the action property of this step is 'Throw Exception'. Here , what we need to set for the 'Exception Property' ..?
Kindly help me friends.Hi Mahesh,
I refered those scenarios. But, our requirment is we want to take 'Additional Text' option from SXMB_MONI and map to WS source structure one element.
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?><!-- Call Adapter --> <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1"><SAP:Category>XIServer</SAP:Category><SAP:Code area="INTERNAL">PL_TIMEOUT</SAP:Code><SAP:P1/><SAP:P2/><SAP:P3/><SAP:P4/><SAP:AdditionalText>TIME OUT REACHED</SAP:AdditionalText><SAP:ApplicationFaultMessage namespace=""/><SAP:Stack>Timeout condition of pipeline reached
</SAP:Stack><SAP:Retry>N</SAP:Retry></SAP:Error>
Could you kindly help me ?
Maybe you are looking for
-
Is there any work-around in Mavericks for DVD burning issue's
Ever since I installed the updated OX I get errors and problems burning disc's ( with my external Sony and OWC DVD burner's. Sometime's it freezes in the middle of burning and other times it hangs by the verification process. Even using Apple's own i
-
I downloaded the OS X Mavericks, and when I started to install I received the following message: There is any solution? Regards
-
For some reason I recently became unable to access certain web pages that I used to be ale to get into. One is my credit union's home page and the other is fox news' home page. In both Safari and Internet Explorer the page hangs up when loading at th
-
Storing chinese character in Oracle8i
Hi Sir, How to use Oracle8i database to store chinese character? Is there any setting on database side? I'm using Oracle8i 8.1.5 currently. Please advise. Thanks.
-
What are the disk space requirements for CC2014?
Yes, Adobe has the system requirements for each INDIVIDUAL app in CC2014 listed, but they're all listed separately. Since I'll be installing the entire suite on my new machine, I'd like to know the disk space requirements for the ENTIRE suite. Thanks