Spring Layout compound spring problem, on container
I don't understand why these labels are getting resized. This test case is concise and shows the problem clearly, just comment out the line indicated for what the correct behavior I desire is.
package gaillard;
import java.awt.Color;
import java.awt.EventQueue;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JLabel;
import javax.swing.Spring;
import javax.swing.SpringLayout;
import javax.swing.SpringLayout.Constraints;
import javax.swing.border.LineBorder;
* @author gaillard
public class Test
final SpringLayout layout = new SpringLayout();
final JFrame frame = new JFrame("Test");
final JPanel contentPane = new JPanel();
final JLabel label1 = new JLabel("HI");
final JLabel label2 = new JLabel("HI AGAIN");
public Test()
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setContentPane(contentPane);
contentPane.setLayout(layout);
contentPane.add(label1);
contentPane.add(label2);
label1.setBorder(new LineBorder(Color.red));
label2.setBorder(new LineBorder(Color.green));
final Constraints label1Con = layout.getConstraints(label1);
final Constraints label2Con = layout.getConstraints(label2);
final Constraints contentPaneCon = layout.getConstraints(contentPane);
Spring strut = Spring.constant(5);
Spring columnOneWidth = Spring.max(label1Con.getWidth(),
label2Con.getWidth());
label1Con.setX(Spring.sum(columnOneWidth,
Spring.minus(label1Con.getWidth())));
label2Con.setX(Spring.sum(columnOneWidth,
Spring.minus(label2Con.getWidth())));
label2Con.setY(Spring.sum(label1Con.getHeight(), strut));
//TRY COMMENTING THIS LINE OUT FOR THE DESIRED BEHAVIOR!!!!
//TRY COMMENTING THIS LINE OUT FOR THE DESIRED BEHAVIOR!!!!
contentPaneCon.setWidth(columnOneWidth);
frame.pack();
frame.setVisible(true);
public static void main(String[] args)
EventQueue.invokeLater(new Runnable()
@Override
public void run()
new Test();
}Edited by: gaillard on Jan 7, 2008 8:49 PM
is this a bug? Because there are some examples floating around on the web that do similiar such things expecting this code to work, yet when you run their code it doesn't match their screenshot, so perhaps a bug with java 6 or 5?
Similar Messages
-
Problem with CONTAINS function
Hi all!!
i got a problem with contains function. i'm running oracle 11g.
if i execute this query:
SELECT x.lid as id, x.sztitular as titular, e.szname as proName, x.szresumen as resumen, b.sztitle as catName,
f.szname as secName, d.szname as cliName, x.datecreation as datecreation
FROM CPR_PRACTICAL_CASE x,ctg_category b, CPR_CLIENT d, pro_product e, CAT_SECTOR f, CPR_PCASE_PRODUCT g, CPR_PCASE_SECTOR h,
PRO_PRODUCTCATEGORY i WHERE x.lid = g.lpcaseid and e.lid = g.lproductid and x.lid = h.lpcaseid
and f.lid = h.lsectorid and x.lclientid = d.lid and i.lproductid = e.lid and b.lid = i.lcategoryid
AND x.szlocale = 'es-ES' AND x.bavailable = '1'i get 1 row as result with the column sztitular = "rodillos de medidas"
if i only add one more sentece to that query:
AND CONTAINS( x.sztitular, 'rodillos',1) >0the query returns an empty set.. i really don't understand why because the term "rodillos" is present in the row's column called "sztitular"...
i've put an index on that column:
create index ITXT_TITULAR on CPR_PRACTICAL_CASE(sztitular) INDEXTYPE IS CTXSYS.CONTEXT;any help?
many thanks!!!!
Edited by: ElMazzaX on May 21, 2012 5:51 PM
Edited by: ElMazzaX on May 21, 2012 5:53 PMHow are you synchronising the index?
http://docs.oracle.com/cd/E11882_01/text.112/e24435/ind.htm#i1008452
Also see the Oracle Text forum:
Text -
I am using desktop computer with windows XP. Sometimes, I am facing with the problem "plugin-container.exe has encountered a problem and needs to close". After showing this event, the browser disappears automatically.
See if there are any Crash Reports ID's saved.
Type '''about:crashes''' in the Location Bar and hit Enter.
Then open each Crash Report and once the report is loaded completely, copy and paste the URL of each report into the the '''''Post as Reply''''' box in this thread.
IMO, seeing that you are using WinXP, you might be better off with the older Flash 10.3.183.90 version. Flash 11.0 and later have "improvements" that don't work on WinXP - only Vista and later. Adobe did continue to support and provide security updates for Flash 10.3 until a few months before WinXP went EOL back in April of this year. -
Problem creating container for filter entity
Hi,
I have a working API gateway instance (11.1.2.1.0). But from today when I tried to access to it using my policy studio, it gives me this embarrassing error. It worked well, and the gateway instance itself is serving well.
I can stop and start the gateway instance including the node manager.
Only from today suddenly my policy studio cannot access to the gateway any more. Any idea? The policy studio can access to other gateway instances in the same version.
I tried to access from another policy studio in a different machine. Same error.
It seems the error shows up at the last step to loading filters.
There must be a dirty stuff in my existing deployment, but it is working well and I have no idea how to clean it up.
INVALID 2014/01/21 16:36:10.068 [ModalContext] [main] java exception:
com.vordel.es.EntityStoreException: Problem creating container for filter entity
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.manager.filter.CircuitDelegateGUIFilter.filterAttached(CircuitDelegateGUIFilter.java:115)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:41)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.circuit.model.Tracker.incRefCount(Tracker.java:140)
at com.vordel.client.circuit.model.HTTPTracker.initListeners(HTTPTracker.java:60)
at com.vordel.client.circuit.model.FirewallTracker.initListeners(FirewallTracker.java:59)
at com.vordel.client.circuit.model.Tracker.init(Tracker.java:92)
at com.vordel.client.circuit.model.CircuitStore.initTrackers(CircuitStore.java:123)
at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:195)
at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.NullPointerException
at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
... 19 more
INVALID 2014/01/21 16:36:10.441 [ModalContext] [main] Problem loading the data from the entity store [federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xml]:
com.vordel.es.EntityStoreException: Problem creating container for filter entity
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.NullPointerException
at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
... 9 more
INVALID 2014/01/21 16:36:10.449 [main ] [main] java exception:
java.lang.reflect.InvocationTargetException
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:176)
at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: com.vordel.es.EntityStoreException: Problem creating container for filter entity
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
... 2 more
Caused by: java.lang.NullPointerException
at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
... 9 more
ERROR 2014/01/21 16:36:10.450 [main ] [main] Unable to connect to the URL provided:
federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xml
INVALID 2014/01/21 16:51:48.771 [ModalContext] [main] java exception:
com.vordel.es.EntityStoreException: Problem creating container for filter entity
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.manager.filter.CircuitDelegateGUIFilter.filterAttached(CircuitDelegateGUIFilter.java:115)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:41)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.circuit.model.Tracker.incRefCount(Tracker.java:140)
at com.vordel.client.circuit.model.HTTPTracker.initListeners(HTTPTracker.java:60)
at com.vordel.client.circuit.model.FirewallTracker.initListeners(FirewallTracker.java:59)
at com.vordel.client.circuit.model.Tracker.init(Tracker.java:92)
at com.vordel.client.circuit.model.CircuitStore.initTrackers(CircuitStore.java:123)
at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:195)
at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.NullPointerException
at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
... 19 more
INVALID 2014/01/21 16:51:49.286 [ModalContext] [main] Problem loading the data from the entity store [federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xml]:
com.vordel.es.EntityStoreException: Problem creating container for filter entity
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: java.lang.NullPointerException
at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
... 9 more
INVALID 2014/01/21 16:51:49.295 [main ] [main] java exception:
java.lang.reflect.InvocationTargetException
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:176)
at com.vordel.client.manager.LoadEntityStoreOperation.run(LoadEntityStoreOperation.java:29)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Caused by: com.vordel.es.EntityStoreException: Problem creating container for filter entity
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:523)
at com.vordel.client.circuit.model.CircuitStore.addFilterToCircuit(CircuitStore.java:431)
at com.vordel.client.circuit.model.CircuitStore.getCircuitForKey(CircuitStore.java:472)
at com.vordel.client.circuit.model.CircuitStore.getCircuit(CircuitStore.java:189)
at com.vordel.client.manager.FilterContainerStore.getContainer(FilterContainerStore.java:54)
at com.vordel.client.manager.ManagerEntityStore.loadCircuits(ManagerEntityStore.java:211)
at com.vordel.client.manager.ManagerEntityStore.loadData(ManagerEntityStore.java:143)
at com.vordel.client.manager.Manager.loadConfiguration(Manager.java:165)
... 2 more
Caused by: java.lang.NullPointerException
at de.odysseus.el.misc.NumberOperations.sub(NumberOperations.java:98)
at de.odysseus.el.tree.impl.ast.AstBinary$13.apply(AstBinary.java:91)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstBinary$SimpleOperator.eval(AstBinary.java:31)
at de.odysseus.el.tree.impl.ast.AstBinary.eval(AstBinary.java:110)
at de.odysseus.el.tree.impl.ast.AstEval.eval(AstEval.java:51)
at de.odysseus.el.tree.impl.ast.AstNode.getValue(AstNode.java:30)
at de.odysseus.el.TreeValueExpression.getValue(TreeValueExpression.java:122)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:340)
at com.vordel.el.SelectorString.getStructure(SelectorString.java:352)
at com.vordel.el.SelectorString.getWildcardRefs(SelectorString.java:361)
at com.vordel.circuit.VariablePropertiesFilter.getRequiredPropertiesFromEntity(VariablePropertiesFilter.java:123)
at com.vordel.circuit.VariablePropertiesFilter.configure(VariablePropertiesFilter.java:71)
at com.vordel.circuit.CircuitChainFilter.configure(CircuitChainFilter.java:104)
at com.vordel.circuit.switchcase.SwitchFilter.configure(SwitchFilter.java:130)
at com.vordel.circuit.FilterContainer.configureFilter(FilterContainer.java:40)
at com.vordel.client.circuit.model.CircuitStore.getContainerForEntity(CircuitStore.java:513)
... 9 more
ERROR 2014/01/21 16:51:49.295 [main ] [main] Unable to connect to the URL provided:
federated:file:/C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace/1390322148340/fe521854-c08b-4ddf-9919-8219b38c13dd/configs.xmlHi,
This does happen sometimes and usually its enough to just exit Policy Studio and connect again. If that does not work you can delete everything in your C:/OAG-11.1.2.1.0/oagpolicystudio/configuration/workspace folder (backup before doing anything) as this is just a temporary storage.
This could also could mean you somehow have managed to get an corrupt deployment (It might load ok in the actual API Server) that fails to load in Policy Studio. In the bin folder there is a esexplorer.bat file, this tool allow you edit configurations in raw format and if you find the error you could try fix it there.
Cheers,
Stefan -
Hibernate - Spring - problem with mapping (many-to-many)
Hello,
I want to map the following situation. I have a table called EDUCATION and a table called SCHOOLS. Between those tables I have an associative table called EDUCATION_SCHOOLS. The (usefull) fields:
EDUCATION:
id (long) - PK
name (varchar)
versionNr (long)
SCHOOLS:
id (long) - PK
name (varchar)
versionNr (long)
EDUCATION_SCHOOLS:
id (long) - PK
education_id (long) (FK to EDUCATION.id)
school_id (long) (FK to SCHOOLS.id)
name (varchar)
versionNr (long)
Their is a Unique Constraint between EDUCATION_SCHOOLS.education_id and EDUCATION_SCHOOLS.school_id.
What I want to be able to do:
EDUCATION: select, update, insert
SCHOOLS: select, update, insert
EDUCATION_SCHOOLS: select, update (only the non-FK fields), insert
I never want to delete anything in those tables. (and it's never ever going to be an option either)
Hibernate version:
Hibernate-Version: 3.0.5
Mapping documents:
Education:
<hibernate-mapping>
<class name="##.Education" table="EDUCATION">
<id name="id" column="ID" type="java.lang.Long">
<generator class="sequence">
<param name="sequence">EDUCATION_SEQ</param>
</generator>
</id>
<version name="versionNr" column="VERSIONNR" type="long"/>
<property name="name" column="NAME" type="string" />
<set name="SCHOOLS" table="EDUCATION_SCHOOLS">
<key column="EDUCATION_ID" />
<many-to-many class="##.Schools" column="SCHOOL_ID" lazy="false" />
</set>
</hibernate-mapping>
Schools:
<hibernate-mapping>
<class name="##.Schools" table="SCHOOLS">
<id name="id" column="ID" type="java.lang.Long">
<generator class="sequence">
<param name="sequence">SCHOOLS_SEQ</param>
</generator>
</id>
<version name="versionNr" column="VERSIONNR" type="long"/>
<property name="name" column="NAAM_NAME" type="string" />
<set name="educations" table="EDUCATION_SCHOOLS" inverse="true" cascade="none">
<key column="SCHOOL_ID" />
<many-to-many class="##.Schools" column="SCHOOL_ID" lazy="proxy"/>
</set>
</hibernate-mapping>
Education_schools:
<hibernate-mapping>
<class name="##.EducationSchools" table="EDUCATION_SCHOOLS">
<id name="id" column="ID" type="java.lang.Long" unsaved-value="0">
<generator class="sequence">
<param name="sequence">SEQ_EDUCATION_SCHOOLS</param>
</generator>
</id>
<version name="versionNr" column="VERSIONNR" type="long" />
<many-to-one name="education" class="##.Education" cascade="none" lazy="proxy"
column="EDUCATION_ID" not-null="true"/>
<many-to-one name="schools" class="##.Schools" cascade="none" lazy="proxy"
column="SCHOOL_ID" not-null="true"/>
</hibernate-mapping>
Name and version of the database you are using:
Oracle XE 10g
I am able to:
EDUCATION: select, insert, update
SCHOOLS: select, insert, update
EDUCATION_SCHOOLS: select
Problems:
EDUCATION_SCHOOLS: when I try to insert, I sometimes get unique constraint violations. (when I should get them, thus I'm trying to insert something that already exists .. but how do I stop Hibernate from Inserting?)
EDUCATION_SCHOOLS: when I try to update, sometimes it works, but often I get:
23:03:55,484 [http-8081-1] ERROR be.vlaanderen.lne.vea.epb.ui.struts.EpbExceptionHandler - org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [##.EducationSchools] with identifier [null]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [##.EducationSchools#<null>]
ex.getMessage() Object of class [##.EducationSchools] with identifier [null]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [##.EducationSchools#<null>]
org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [##.EducationSchools] with identifier [null]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [##.EducationSchools#<null>]
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect):As you can see from the stacktrace I use Spring for the transactionManager: org.springframework.orm.hibernate3.HibernateTransactionManager in which I use e sessionFactory: org.springframework.orm.hibernate3.LocalSessionFactoryBean
In my DAO, I try to save with the regular this.getHibernateTemplate().saveOrUpdate that has always worked for me.
Another problem I have:
when i update "name" in EDUCATION, the records with that ID are delete from EDUCATION_SCHOOLS ...
As I am experiencing 3 different problems, I'm pretty sure something is wrong in the mapping files .. however I fail to find out what .. Any input would be greatly appreciated.
(I translated some class/table-names, that's what the ## cause)
Edited by: Bart_Blommaerts on Jul 29, 2008 11:53 PMThank you for your input.
When I try what you suggest, I still get the same error:
16:39:30,406 [http-8081-1] ERROR ###.EpbExceptionHandler - org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [###.EducationSchools] with identifier [2]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [###.EducationSchools#2]
ex.getMessage() Object of class [###.EducationSchools] with identifier [2]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [###.EducationSchools#2]
org.springframework.orm.hibernate3.HibernateOptimisticLockingFailureException: Object of class [###.EducationSchools] with identifier [2]: optimistic locking failed; nested exception is org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [###.EducationSchools#2]
Caused by: org.hibernate.StaleObjectStateException: Row was updated or deleted by another transaction (or unsaved-value mapping was incorrect): [###.EducationSchools#2]If you had to map the database tables, I'm trying to map, how would you do it? -
Weblogic, Spring, EAR, EE container, how to start spring container?
Hi, I'm a bit stuck and although googled for quite a while, haven't found any hint on how to achieve the following. (If someone notice, yeah, I've posted same question on spring forums :) )
I have some jar which contains spring beans which so far operated as
standalone app by simply starting spring context. Spring context config is within jar, but it could be moved out if required.
Now, I'm trying to embed it into EAR and to deploy to EE container (it is WebLogic server, thus I am posting here)...and it is fine, I've embedded it as javaModule and deployed it,
but of course it doesn't do anything as spring context is not started.
That is my question, does someone has experience with this? All I need is to on EAR start, to start spring context and on EAR stop to stop it...
This does not have any gui or anything so I don't need it to be webapp. Also there are no EJBs as I don't need them, this app actually occasionally calls some system command to process some files.
I am aware that maybe I'd need to extend ApplicationLifecycleListener but if so, what would be good approach to start context and keep it alive until EAR is stopped?
I am aware that I could convert it to web-app and use ContextListener on web-app, but before that I'd like to check, is this achievable,
and what is the best approach to start spring context if I only need container to be started, nothing else?
Furthermore, if I implement singleton service (as I don't need this to be spread throughout cluster) what would be the best approach to start spring context from it?
Any help/tip/info/suggestion is very appreciated.
Thanks.Well, I've actually solved it meanwhile without webapp stuff.
Perhaps if you are experienced with weblogic could evaluate my solution.
I've implemented application lifecycle listener and in post start I start spring
with ClassPathApplicationContext.start (by giving it config location) and stop it in pre stop.
Not sure if this is the best solution but it works quite fine.
Thanks,
Edited by: rssole on Apr 7, 2012 4:17 PM -
I'm new to the Spring Framework, and was trying out a tutorial to get started. The details of that tutorial is here:
http://www.springframework.org/docs/MVC-step-by-step/Spring-MVC-step-by-step-Part-1.html
I've gotten through the first part up till the point where he says to use the 'list' task ("Let's just quickly start Tomcat and make sure that we can access the application. Use the 'list' task from our build file to see if Tomcat has picked up the new application.") At this point, i get the output is the following:
C:\Springapp>ant list
Buildfile: build.xml
list:
BUILD FAILED
C:\Springapp\build.xml:138: java.net.ConnectException: Connection refused: conne
ct
Total time: 2 seconds
C:\Springapp>
When i put the build on debug mode, I get this output:
C:\Springapp>ant list -d
Apache Ant version 1.6.5 compiled on June 2 2005
Buildfile: build.xml
Adding reference: ant.PropertyHelper
Detected Java version: 1.4 in: C:\j2sdk1.4.2_01\jre
Detected OS: Windows XP
Adding reference: ant.ComponentHelper
Setting ro project property: ant.version -> Apache Ant version 1.6.5 compiled on
June 2 2005
Setting ro project property: ant.file -> C:\Springapp\build.xml
Adding reference: ant.projectHelper
Adding reference: ant.parsing.context
Adding reference: ant.targets
parsing buildfile C:\Springapp\build.xml with URI = file:///C:/Springapp/build.x
ml
Setting ro project property: ant.project.name -> springapp
Adding reference: springapp
Setting ro project property: ant.file.springapp -> C:\Springapp\build.xml
Project base dir set to: C:\Springapp
+Target:
Adding reference: master-classpath
+Target: usage
+Target: build
+Target: deploy
+Target: deploywar
+Target: install
+Target: reload
+Target: start
+Target: stop
+Target: list
[property] Loading C:\Springapp\build.properties
Setting project property: tomcat.manager.url -> http://localhost:8080/manager
Setting project property: tomcat.manager.username -> admin
Setting project property: appserver.home -> C:/jakarta-tomcat-4.1.30
Setting project property: tomcat.manager.password -> tomcat
Setting project property: deploy.path -> C:/jakarta-tomcat-4.1.30/webapps
Setting project property: src.dir -> src
Setting project property: web.dir -> war
Setting project property: build.dir -> war/WEB-INF/classes
Setting project property: name -> springapp
Could not load a dependent class (com/sun/media/jai/codec/FileSeekableStream) fo
r type image
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type sshexec
Could not load a dependent class (com/jcraft/jsch/UserInfo) for type scp
Adding reference: master-classpath
Finding class org.apache.catalina.ant.InstallTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/InstallTask.class
Finding class org.apache.catalina.ant.AbstractCatalinaTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/AbstractCatalinaTask.class
Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
tFirst)
Class org.apache.catalina.ant.InstallTask loaded from ant loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
+Datatype install org.apache.catalina.ant.InstallTask
Finding class org.apache.catalina.ant.ReloadTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/ReloadTask.class
Finding class org.apache.catalina.ant.AbstractCatalinaTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/AbstractCatalinaTask.class
Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
tFirst)
Class org.apache.catalina.ant.ReloadTask loaded from ant loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
+Datatype reload org.apache.catalina.ant.ReloadTask
Finding class org.apache.catalina.ant.ListTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/ListTask.class
Finding class org.apache.catalina.ant.AbstractCatalinaTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/AbstractCatalinaTask.class
Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
tFirst)
Class org.apache.catalina.ant.ListTask loaded from ant loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
+Datatype list org.apache.catalina.ant.ListTask
Finding class org.apache.catalina.ant.StartTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/StartTask.class
Finding class org.apache.catalina.ant.AbstractCatalinaTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/AbstractCatalinaTask.class
Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
tFirst)
Class org.apache.catalina.ant.StartTask loaded from ant loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
+Datatype start org.apache.catalina.ant.StartTask
Finding class org.apache.catalina.ant.StopTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/StopTask.class
Finding class org.apache.catalina.ant.AbstractCatalinaTask
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/ant/AbstractCatalinaTask.class
Class org.apache.tools.ant.Task loaded from parent loader (parentFirst)
Class org.apache.catalina.ant.AbstractCatalinaTask loaded from ant loader (paren
tFirst)
Class org.apache.catalina.ant.StopTask loaded from ant loader (parentFirst)
Class java.lang.Object loaded from parent loader (parentFirst)
Class java.lang.Throwable loaded from parent loader (parentFirst)
Class org.apache.tools.ant.BuildException loaded from parent loader (parentFirst
+Datatype stop org.apache.catalina.ant.StopTask
Attempting to create object of type org.apache.tools.ant.helper.DefaultExecutor
Adding reference: ant.executor
Build sequence for target(s) `list' is [list]
Complete build sequence is [list, reload, start, install, build, deploy, usage,
stop, deploywar, ]
list:
Class java.lang.String loaded from parent loader (parentFirst)
Class java.io.InputStream loaded from parent loader (parentFirst)
Class java.net.URL loaded from parent loader (parentFirst)
Class java.lang.StringBuffer loaded from parent loader (parentFirst)
Class java.net.HttpURLConnection loaded from parent loader (parentFirst)
Finding class org.apache.catalina.util.Base64
Loaded from C:\jakarta-tomcat-4.1.30\server\lib\catalina-ant.jar org/apache/cata
lina/util/Base64.class
Class org.apache.catalina.util.Base64 loaded from ant loader (parentFirst)
BUILD FAILED
C:\Springapp\build.xml:138: java.net.ConnectException: Connection refused: conne
ct
at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
Task.java:278)
at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
Task.java:171)
at org.apache.catalina.ant.ListTask.execute(ListTask.java:95)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:510)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:487)
at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
Task.java:228)
... 14 more
--- Nested Exception ---
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
at sun.net.www.http.HttpClient.New(HttpClient.java:339)
at sun.net.www.http.HttpClient.New(HttpClient.java:320)
at sun.net.www.http.HttpClient.New(HttpClient.java:315)
at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConne
ction.java:510)
at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
.java:487)
at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
Task.java:228)
at org.apache.catalina.ant.AbstractCatalinaTask.execute(AbstractCatalina
Task.java:171)
at org.apache.catalina.ant.ListTask.execute(ListTask.java:95)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Total time: 2 seconds
C:\Springapp>
Anybody know what the problem is?Hi,
Start the server before the build is done,Since the server is not started it gives the error.
Thanks -
Layout Template - Alignment Problem
Hi,
I´m using EP6 Version 6.0.2.4.6 and made some Layout-Templates for my Pages. It works fine, but the alignment of the Ivies in it doesn´t match.
A short Example:
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibHtmlb" prefix="hbj" %>
<%@ taglib uri="prt:taglib:com.sap.portal.reserved.layout.TagLibLayout" prefix="lyt" %>
<lyt:template>
<hbj:content id="myContext" >
<hbj:page title="Portal Page">
<hbj:gridLayout id="GridLayout1" rowSize="2" columnSize="2" debugMode="TRUE">
<hbj:gridLayoutCell width="50%" rowIndex="1" columnIndex="1" horizontalAlignment="LEFT" verticalAlignment="top">
<lyt:container id="column1" />
</hbj:gridLayoutCell>
<hbj:gridLayoutCell width="50%" rowIndex="1" columnIndex="2" horizontalAlignment="LEFT" verticalAlignment="top">
<lyt:container id="column2" />
</hbj:gridLayoutCell>
<hbj:gridLayoutCell width="50%" rowIndex="2" columnIndex="1" horizontalAlignment="LEFT" verticalAlignment="top">
<lyt:container id="column3" />
</hbj:gridLayoutCell>
<hbj:gridLayoutCell width="50%" rowIndex="2" columnIndex="2" horizontalAlignment="LEFT" verticalAlignment="top">
<lyt:container id="column4" />
</hbj:gridLayoutCell>
</hbj:gridLayout>
</hbj:page>
</hbj:content>
</lyt:template>
When I look to a page with this Template, all my Iviews on it have an alignment on the right bottom corner of the cells. Is there no way to correct this? I tried a normal html-table but with the same result. Does anyone have a clue for this problem?
Regards,
MarcusHi Marcus,
the JSP looks fine for me.
Probably you know http://help.sap.com/saphelp_ep60sp2/helpdata/en/d5/1b083e7623445ae10000000a11405a/frameset.htm
The only thing where differences to the original layouts could exist seems to be the layout description within portalapp.xml, especially (and only?) the designClass value (prtlPageConR (right), prtlPageConL (left), prtlPageConM (mid) and prtlPageConF (full)). These css classes are defined within the themes, for example the most used will be under irj/root/portalapps/com.sap.portal.themes.lafservice/themes/portal/sap_standard/prtl_std/prtl_std_ie6.css, but they only define the margin and padding...
Maybe you should copy a standard layout (from irj/root/WEB-INF/portal/portalapps/com.sap.portal.layouts.default) and start with this under new names; if they behave normal, start to manipulate them...
Hope it helps
Detlev
PS: For better reading you can surround code / indentions with [ code ] and [/ code ] (without spaces). So checking the syntax would be much easier. -
[PROBLEM] Keyboard layout unexpected behaviour problem Xfce
Dear Everyone,
I am rather new to arch linux. I have recently (about a week ago) installed archlinux with xorg and xfce (booted by slim), and reading the wiki I managed to set up a fully working computer. But there is a slight problem that continues bugging me about keyboard layouts, and although I have found a way to make the keyboard layout switching with alt+shift work I think that I did it in a nonstandard way and some programs still exhibit unusual (and I think unintended) behaviour.
Here goes:
I use a notebook
My xorg uses hotplugging that seems to be working (hal and dbus installed and running at bootup, detects external usb mouse, I have no xorg.conf file). When I setup my keyboard I put the 10-keymap.fdi from the /usr/share/... dir into /etc/hal/fdi/policy/10-keymap.fdi and it contains (as instructed by the wiki):
<merge key="input.xkb.layout" type="string">us,ru</merge>
<merge key="input.xkb.variant" type="string" />
<merge key="input.xkb.options" type="string">grp:alt_shift</merge>
And here is the problem:
After editig this file I restarted hal using
#/etc/rc.d/hal stop
#/etc/rc.d/hal start
and keyboard switching with alt+shift started working.
Then I went to the xfce keyboard settings to the layout tab and my setup was:
keyboard model -> evdev-managed keyboard
keyboard layout -> us
so the russian layout did not appear (also adding the russian layout through this menu before editing the .fdi file was useless (it was the first thing I tried before reading the wiki and writing config files for hal))
I started the keyboard layout switcher applet for xfce and it also displayed only the us flag and had only us as the available layout, and even switching to russian layout using alt+shift had no effect on the displayed flag.
What I decided to do then was to restart my system.
Everything restarted without error (hal and stuff started etc..) but it was no longer possible to switch keyboard layouts using alt+shift.
The xfce keyboard settings now displayed us and ru as available layouts but switch between them using the mouse in the settings menu had no effect whatsoever. Also the layout switcher displayed that both layouts were available but for the russian keyboard the variant field displayed a lot of garbage (I will post screenshot soon). Switching to the russian layout through any key sequence defined in the applet was useless. Trying to switch it with the mouse by selecting the flag didn't do anything either.
The only way I discovered to make the alt+shift keys work is by manually restarting hal through
#/etc/rc.d/hal stop
#/etc/rc.d/hal start
which is very strange since I have not changed any settings file.
Then again every time I restarted my comuter the ability to switch layouts was lost until manually restarting hal.
The only solution I found was going to the xfce keyboard settings and clicking the "Use system defaults []"
After restarting the system alt+shift switching began to work fine but the keyboard applet didn't work anyway.
As a consequence I think that all this is a big mess since I suppose that what I described is not the expected behaviour. The other effect of this is that only user with root priviledges could possibly add a new layout to the system (editing the /etc/hal/policy/10-keymap.fdi file) while the idea was that the gui tools of the DM (xfce in my case) permitted the user to change layouts on his/her own. Then again the keyboard layour applet never worked so it is impossible to have an indicator of the current layout. Where do you think should I write about this. I think this qualifies as a bug although I do not know whose fault is it: is it xfce, Xorg, hal or others? And having to restart hal maunally without having changed any config files is rather strange. The garbage displayed by the applet is also suspicious.
Any advice to where to report this and how to fix everything would be great.
P.S. Throughout all these tries to make things work the setxkbmap command from the cli never had any effect.
Last edited by cavesnow (2009-03-14 10:41:51)hmm... i have a similar problem:
i want two layouts: GB(english) and ES(spanish). I have them defined in /etc/hal/fdi/policy/10-keymap.fdi :
<merge key="input.xkb.layout" type="string">gb,es</merge>
and i can actually switch between them. the issue is that i have an extra, unwanted layout. i have to press once in order to change from GB to ES, then if i want to switch back to GB, i have to switch twice. There is a third layout i did not configured.
Example of the layouts:
GB: abcdefghijklmnopqrstuvwxyz
ES: abcdefghijklmnopqrstuvwxyz and i can write accents and everything for spanish: ñÑáéíóú, etc.
unkown third layout: æ"¢ðeđŋħ→jĸłµnøþ@¶ßŧ↓"ł»←«
łħæŧ →ß ŧħ→ß???
sorry, i mean:
what is this???
any help would be appreciated. -
If i scale my window browser down to say mobile size, why does the footer sit in the middle of the 'maindiv' div? I have applied, height:auto; to the container using media queries but i still have the same problem?
I've fixed it, i needed to add, overflow:scroll; to the div
-
Layout column alignment problem
Hi All,
I have a form where I am printing the line item details. I am using the following code
&EKET-EINDT&,,&EKPO-NETPR1&,,&EKPO-NETWR1&
This gives the output
08/26/2007 688.5 1377.02
Between unit price and net price i have another coloumn to print Tax, which is only printed for documents relevant for tax (this is printed from another text element)
the amount 1377.02 is now printing under a wrong column. I need to increase spacing between unit price and net price.
I tried using the following code (by adding additional ,, )
&EKET-EINDT&,,&EKPO-NETPR1&,,,,&EKPO-NETWR1&
But this does not make any difference in the output.
Can anyone help me how to get these values aligned?
Any help will be appreciated. Thanks.
Mark.Mark, as stated, the ,, between two fields indicates a tab in the paragraph format being used.
To adjust you may need to create your own paragraph format as a copy of a standard one so your changes do not affect other lines in the form. Generally for columns where you are printing a field containing text you would use a tab with LEFT alignment, while for an amount you would use RIGHT or DECIMAL alignment. Just measure on the paper where you want them and set the number of CM / MM for the tabs on the paragraph format.
Printing &EKPO-NETPR1& or &EKPO-NETWR1& is dropping the first character of these fields - this may cause you problems if you ever use large amounts. By choosing RIGHT / DECIMAL tabs, you will not need to remove any leading spaces.
If you need to change the output of a field there are a number of options you can use: eg: &EKPO-NETPR(C)& compresses spaces in the field - &EKPO-NETPR(Z)& omits leading zeros. In SE71 when editing the text in a window - use the Insert>Symbols>New menu option to get a popup where you can put your field name and select output options like this.
Andrew -
Hi
I have working on a flex application that involves extensive adding/removal of display objects in containers like VBox, HBox.
Each children has showEffect, removedEffect, and moveEffect,
when application add and removes some children, layout gets messed up.
please take a look at the attached image
1- is normal view
2- is the HBox layout after adding and deleting some children
Is there any validateLayout or something to solve that problem?
ThanksYou may need to boil this down to simplified yet complete code exhibiting the issue.
I can't see how an HBox could be displaying items as in the second screen shot. -
Compounding consistency problem not ensured problem in multiprovider
I have a multiprovider MP1 which has CUBE1 & CUBE2 as its particiapting cubes.
Both of these cubes has infoobject 0FUND which is compounded with 0FM_AREA and I have included both( 0FUND & 0FM_AREA) of these infoobjects in MP1 and mapped it.
Infoobject 0FUND has attribute called MNGUNIT. I have enabled attribute MNGUNIT as navigational in multiprovider and mapped it to same attribute from CUBE1, but to different attribute called RESP_FC of different infoobject COSTOBJ from CUBE2 . Both MNGUNIT & RESP_FC are reffrenced to same infoobject definitiion which is also compunded with 0FM_AREA.
MP1 syntax check gives a message that, "compounding consistency for infoobject COSTOBJ__RESP_FC not ensured". I have already tried mapping COSTOBJ__0FMA_REA from both the cubes , but it still gives same error message.
Any solution to this problem.
Regards
MBHi Madhukar
Do you mean COSTOBJ is compounded with 0FM_AREA?
I think even in that case it will be a problem as your FM area is identified from 0FUND.
Regards
Anindya -
Layout option access problem in Elements 11
I have a problem with Elements 11. I'm busy doing a photobook but I find when i open the book it will open the page, layouts and graphics icons (bottom right) but i cannot get the layouts to open. When I open this option it opens a blank page. All my pages are there and all the graphics options and samples graphics appears as normal.
When I open a new photobook - the layouts icon opens as normal and I can pick the various options for the number of photos per page. Please help. JM2013Thank for response.
1. In Win, 2. Created book in Elements 11, 3. In advanced Mode.
All the pages and layout as created before and all the additional pages that I have not yet used (added photos to) are there. But as said before - the apges opens, the graphics opens but when I open the Layout options it only opens a blank window and the various layout options does not show.
regards. -
Transformation transport problems when containing routine
Hi Gurus,
I'm facing a transport problem.
When i want to transport a transformation that contains routines, the transport says syntax error in routine. The routine in DEV is tested and correct. I realised, that the transport does not bring the routines. After transport, i open the transformation, and the routines contain the default routine: RESULT = .
I found some answers in some posts, but no exact answer how can i get rid of this transport problem. I don't like copy - paste into prod system with manually editing....
If you have any idea, please let me know.
Thanks
LaszloThanks for your help, it worked now, but i think it should work without owerwrite originals. Sometimes it seems that the routines is not included in the transport request, when i modify a routine in a transformation.
But thanks anyway, problem solved now
Maybe you are looking for
-
At first the user created an accrual using FBS1 for reversal on 5/1/2015. This created a clearing document. Then it was mistakenly reversed by the user for 5/1/2015 by using F.81 This also created a clearing document. Based on advice in the following
-
I own a HP 2509m monitor. Purchased in Dec 2009. Bought from Costco because they extended the warranty by 1 year. Unfortunately, still 10 months out of warranty. The monitor has failed...not receiving power. Has been great up until now. Not used to m
-
How to Auto Hide the Tree control
Hi, Iam struck with the new requirment in my project. I need to make the tree autohide when it looses focus. I have some items in my tree on selecting the item, i should show the content of that page. I guess i need to write some logic in Mouse
-
Duplicate record found short dump, if routed through PSA
Hi Experts, I am getting these errors extracting the master data for 0ACTIVITY 1 duplicate record found. 1991 recordings used in table /BI0/XACTIVITY 1 duplicate record found. 1991 recordings used in table /BI0/PACTIVITY 2 duplicate record found. 210
-
Error when posting debmas idoc
i have test run the debmas idoc, when iexecute it i got an an error ' NO BATCH INPUT FOR SAPMF02D 0340 SCREEN' is displayed.. please help me..i have used debmas06 as basic type