Issue with ns prefix in xpath
I have a bpel process for sending ship notices, this is developed using ship notice schema version 3.0.
I need to change the process to use version 5.0 schema. When I loaded the new schema in my partnerlink all the xpath expressions became invalid. The old xpath has ns3 prefix but new xpath is looking for ns7.
Do I need to manually change all the code or is there any way to make the new schema to also use ns3 prefix ?.
Also can anybody point me to the document that explains the significance of ns prefix ?
Thanks
Avinash
Hi Avinash,
ns namespace prefixes are automatically created by jdev for you when you add new xml schema definitions to the BPEL process.
when you say you are 'loading' the new schema to the partner link, what exactly are you doing? If you can elaborate a bit more on how exactly you are upgrading the schema, that would be helpful.
Depending on how much the schema has changed and if you need to populate any of the additional elements in the new document confirming to the new schema, a code change might or might not be required.
hope this helps,
regards,
Shanmu.
Similar Messages
-
SQL Dev converts MS SQL to Oracle - issue with numeric prefix column name
Hi,
We're working on migrating MS SQL data into Oracle 10g. An issue we encountered is that some of MS SQL's tables have column names with numeric prefix like 1Q07, 2Q07, ..., 4Q08, and so on. The converted model as well as script can be created. But one thing I notice is that SQL Dev appends a prefix "A" for column names with numeric prefix. This makes sense because Oracle does not allow a column with number. But somehow this does not work with only 4Q
1Q04 => A1Q01
2Q07 => A2Q07
3Q08 => A3Q08
4Q08 => 4Q08 ???
Why? Any place in the tool where I can override this?
Obviously I can manually modify column name 4Q08 to A4Q08 in the script. But by doing this when moving data, it would fail because tool has no knowledge of updated column name.
Thanks in advance.Hi ittichai,
In <repository>.MIGRATION_TRANSFORMER body
FUNCTION first_char_check(p_work NVARCHAR2) RETURN NVARCHAR2
v_allowed := C_DISALLOWED_CHARS || '012356789_$';
should be
v_allowed := C_DISALLOWED_CHARS || '0123456789_$';
If you make this change and convert the 4Q08 will be
A4Q08 is expected, without any manual rename.
-Turloch
Message was edited by:
Turloch O'Tierney -
OSB 11g - Issue with namespace prefix
Hi,
I have a requirement that , whenever I call my target system through business service, always the prefix for a namespace should be 's'.
I added namespace as -
s : http://www.starstandards.org/STAR
When I create request message before calling the Business service, the prefix is -
star:http://www.starstandards.org/STAR
In OSB 11g, can we control prefix for a namespace?
Thanks in AdvanceDisable "Use Chunked Streaming Mode" property in business service configuration and test again. By default, this setting remains enabled.
Regards,
Anuj -
Issue with LPCOR on CME 10.5
Dear All,
I am facing issues with LPCOR configuration on CME 10.5. For International calls the Authentication Prompts triggers some times and some times doen not.
Also when a local call is dialed the Authentication Prompt is triggered some times.Below is the config and debug logs. Need your help to resolve this.
voice lpcor enable
voice lpcor custom
group 10 endusers
group 11 pstn
voice lpcor policy endusers
service fac
accept endusers fac
accept pstn fac
voice lpcor policy pstn
service fac
accept endusers fac
accept pstn fac
application
package auth
param passwd-prompt flash:enter_pin.au
param max-retries 0
param abort-digit *
param term-digit #
param user-prompt flash:enter_account.au
param passwd 12345
param max-digits 32
interface GigabitEthernet0/1.1
encapsulation dot1Q 1 native
ip address 10.25.76.1 255.255.255.0
interface GigabitEthernet0/1.201
encapsulation dot1Q 201
ip address 10.25.77.1 255.255.255.0
voice-port 0/0/0
lpcor outgoing pstn
trunk-group ALL_FXO 1
supervisory disconnect dualtone mid-call
supervisory custom-cptone 2n-gsm
no battery-reversal
input gain -6
output attenuation -3
cptone SA
timeouts call-disconnect 1
timeouts wait-release 1
timing sup-disconnect 50
connection plar 5040
caller-id enable
cable-detect
dial-peer cor custom
name local
name longdistance
name 911
name Internal
name fac-int
name user-fac
dial-peer cor list local
member local
dial-peer cor list call-local
member local
dial-peer cor list call-longdistance
member longdistance
dial-peer cor list user1
member local
member 911
dial-peer cor list user2
member local
member longdistance
member 911
member user-fac
dial-peer cor list user3
member 911
dial-peer cor list call-911
member 911
dial-peer cor list call-internal
member Internal
dial-peer cor list fac-int
member local
member 911
member fac-int
dial-peer cor list user-fac
member user-fac
dial-peer voice 96 pots
trunkgroup ALL_FXO
corlist outgoing call-911
destination-pattern 9[2-6]......
forward-digits 7
dial-peer voice 901 pots
trunkgroup ALL_FXO
corlist outgoing call-911
destination-pattern 901[2-4,6-8].......
forward-digits 10
dial-peer voice 800 pots
trunkgroup ALL_FXO
destination-pattern 9800T
prefix 800
dial-peer voice 900 pots
destination-pattern 9T
port 0/0/3
prefix 9
dial-peer voice 11 pots
destination-pattern 901........
port 0/0/3
forward-digits 10
dial-peer voice 9051 pots
trunkgroup ALL_FXO
corlist outgoing call-local
destination-pattern 905........
forward-digits 10
dial-peer voice 19 pots
trunkgroup ALL_FXO
corlist outgoing fac-int
destination-pattern 900T
translate-outgoing called 1
forward-digits all
dial-peer voice 20 voip
description International calling
service clid_authen_collect
destination-pattern 900T
lpcor outgoing pstn
session target ipv4:10.25.76.1
incoming called-number 9T
dtmf-relay h245-alphanumeric
codec g711ulaw
no vad
ephone-dn 1
number 4121
name John
corlist incoming fac-int
ephone 1
lpcor type local
lpcor incoming endusers
mac-address E0D1.730A.21DE
ephone-template 2
type 7942
button 1:1
voice register dn 33
number 4163
call-forward b2bua busy 5000
call-forward b2bua noan 5000 timeout 20
call-forward b2bua unregistered 5000
allow watch
name Joseph
mwi
voice register pool 33
busy-trigger-per-button 4
id mac BC67.1C31.C8AA
type 7821
number 1 dn 33
cor incoming fac-int 1 4163
dtmf-relay rtp-nte
codec g711ulaw
transfer max-length 4
Debug Logs
DAMAC-CME-ANOUD#DEBUg VOIce lpcor all
voip lpcor all debugging is on
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#term
DAMAC-CME-ANOUD#terminal i
DAMAC-CME-ANOUD#terminal i
Apr 12 16:22:39.825: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId F692C420E06611E4BB0CE7FDC5486EA5, SetupTime 16:22:35.615 UTC Sun Apr 12 2015, PeerAddress 4130, PeerSubAddress , DisconnectCause 10 , DisconnectText normal call clearing (16), ConnectTime 16:22:39.825 UTC Sun Apr 12 2015, DisconnectTime 16:22:39.825 UTC Sun Apr 12 2015, CallOrigin 2, ChargedUnits 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 0, ReceiveBytes 0
Apr 12 16:22:39.825: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:22:35.609,cgn:4130,cdn:,frs:0,fid:2599,fcid:F692C420E06611E4BB0CE7FDC5486EA5,legID:284C,bguid:F692C420E06611E4BB0CE7FDC5486EA5mon
DAMAC-CME-ANOUD#terminal imon
^
% Invalid input detected at '^' marker.
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
Apr 12 16:22:44.089: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
lpcor endusers
Apr 12 16:22:44.089: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
lpcor endusers index 10
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#show debug
VOIP LPCOR:
debug voip lpcor error call is ON (filter is OFF)
debug voip lpcor error call informational is ON (filter is OFF)
debug voip lpcor error software is ON
debug voip lpcor error software informational is ON
debug voip lpcor detail is ON (filter is OFF)
debug voip lpcor function is ON (filter is OFF)
debug voip lpcor inout is ON (filter is OFF)
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
Apr 12 16:23:22.889: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId FBA1532AE06611E4BB10E7FDC5486EA5, SetupTime 16:22:44.089 UTC Sun Apr 12 2015, PeerAddress 4130, PeerSubAddress , DisconnectCause 10 , DisconnectText normal call clearing (16), ConnectTime 16:23:02.009 UTC Sun Apr 12 2015, DisconnectTime 16:23:22.889 UTC Sun Apr 12 2015, CallOrigin 2, ChargedUnits 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 1038, ReceiveBytes 166080
Apr 12 16:23:22.889: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:22:44.093,cgn:4130,cdn:,frs:0,fid:2600,fcid:FBA1532AE06611E4BB10E7FDC5486EA5,legID:284D,bguid:FBA1532AE06611E4BB10E7FDC5486EA5
Apr 12 16:23:22.905: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId FBA1532AE06611E4BB10E7FDC5486EA5, SetupTime 16:22:57.795 UTC Sun Apr 12 2015, PeerAddress 0097150107659, PeerSubAddress , DisconnectCause 10 , DisconnectText normal call clearing (16), ConnectTime 16:23:02.015 UTC Sun Apr 12 2015, DisconnectTime 16:23:22.905 UTC Sun Apr 12 2015, CallOrigin 1, ChargedUnits 0, InfoType 2, TransmitPackets 1038, TransmitBytes 174384, ReceivePackets 1043, ReceiveBytes 166880
Apr 12 16:23:22.905: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:22:57.785,cgn:4130,cdn:0097150107659,frs:0,fid:2601,fcid:FBA1532AE06611E4BB10E7FDC5486EA5,legID:284E,bguid:FBA1532AE06611E4BB10E7FDC5486EA5
Apr 12 16:23:25.317: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
lpcor endusers
Apr 12 16:23:25.317: //-1/xxxxxxxxxxxx/LPCOR/lpcor_get_index_by_name:
lpcor endusers index 10
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#un all
All possible debugging has been turned off
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#
DAMAC-CME-ANOUD#!ok just send me these logs
DAMAC-CME-ANOUD#!i have to move from here
Apr 12 16:24:02.153: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId 14343755E06711E4BB16E7FDC5486EA5, SetupTime 16:23:25.323 UTC Sun Apr 12 2015, PeerAddress 4130, PeerSubAddress , DisconnectCause 10 , DisconnectText normal call clearing (16), ConnectTime 16:23:43.393 UTC Sun Apr 12 2015, DisconnectTime 16:24:02.153 UTC Sun Apr 12 2015, CallOrigin 2, ChargedUnits 0, InfoType 2, TransmitPackets 0, TransmitBytes 0, ReceivePackets 930, ReceiveBytes 148800
Apr 12 16:24:02.153: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:Tnow
DAMAC-CME-ANOUD#\WC,ft:04/12/2015 16:23:25.321,cgn:4130,cdn:,frs:0,fid:2602,fcid:14343755E06711E4BB16E7FDC5486EA5,legID:2850,bguid:14343755E06711E4BB16E7FDC5486EA5
Apr 12 16:24:02.169: %VOIPAAA-5-VOIP_CALL_HISTORY: CallLegType 1, ConnectionId 14343755E06711E4BB16E7FDC5486EA5, SetupTime 16:23:39.169 UTC Sun Apr 12 2015, PeerAddress 0097150107659, PeerSubAddress , DisconnectCause 10 , DisconnectText normal call clearing (16), ConnectTime 16:23:43.389 UTC Sun Apr 12 2015, DisconnectTime 16:24:02.169 UTC Sun Apr 12 2015, CallOrigin 1, ChargedUnits 0, InfoType 2, TransmitPackets 930, TransmitBytes 156240, ReceivePackets 937, ReceiveBytes 149920
Apr 12 16:24:02.169: %VOIPAAA-5-VOIP_FEAT_HISTORY: FEAT_VSA=fn:TWC,ft:04/12/2015 16:23:39.169,cgn:4130,cdn:0097150107659,frs:0,fid:2603,fcid:14343755E06711E4BB16E7FDC5486EA5,legID:2851,bguid:14343755E06711E4BB16E7FDC5486EA5We have come across this issue today in 10.9.5 (so affects 10.9.4 as well) but it was occurring in Sydney as well with a client and for me in Melbourne.
-
Performance Issues with large XML (1-1.5MB) files
Hi,
I'm using an XML Schema based Object relational storage for my XML documents which are typically 1-1.5 MB in size and having serious performance issues with XPath Query.
When I do XPath query against an element of SQLType varchar2, I get a good performance. But when I do a similar XPath query against an element of SQLType Collection (Varray of varchar2), I get a very ordinary performance.
I have also created indexes on extract() and analyzed my XMLType table and indexes, but I have no performance gain. Also, I have tried all sorts of storage options available for Collections ie. Varray's, Nested Tables, IOT's, LOB's, Inline, etc... and all these gave me same bad performance.
I even tried creating XMLType views based on XPath queries but the performance didn't improve much.
I guess I'm running out of options and patience as well.;)
I would appreciate any ideas/suggestions, please help.....
Thanks;
Ramakrishna ChintaAre you having similar symptoms as I am? http://discussions.apple.com/thread.jspa?threadID=2234792&tstart=0
-
Issue with setting float point in Textfield
hi
i have an issue with float input in a textfield.
what i want to do is.
when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
for ex
if i want to enter 123.45
user starts entering
1 then it should display as 0.01
2 then it should display as 0.12
3 then it should display as 1.23
4 then it should display as 12.34
5 then it should display as 123.45
to achive this i have written the code as below
public class Test{
public static void main(String[] a){
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception evt) {}
DecimalFormat format = new DecimalFormat();
format.setGroupingUsed(true);
format.setGroupingSize(3);
format.setParseIntegerOnly(false);
JFrame f = new JFrame("Numeric Text Field Example");
final DecimalFormateGen tf = new DecimalFormateGen(10, format);
// tf.setValue((double) 123456.789);
tf.setHorizontalAlignment(SwingConstants.RIGHT);
JLabel lbl = new JLabel("Type a number: ");
f.getContentPane().add(tf, "East");
f.getContentPane().add(lbl, "West");
tf.addKeyListener(new KeyAdapter(){
public void keyReleased(KeyEvent ke){
char ch = ke.getKeyChar();
char key;
int finalres =0;
String str,str1 = null,str2 =null,str3 = null,str4= null;
if(ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_0 ||
ke.getKeyChar() == KeyEvent.VK_0 || ke.getKeyChar() == KeyEvent.VK_1 || ke.getKeyChar() == KeyEvent.VK_2 ||
ke.getKeyChar() == KeyEvent.VK_3 || ke.getKeyChar() == KeyEvent.VK_4 || ke.getKeyChar() == KeyEvent.VK_5 ||
ke.getKeyChar() == KeyEvent.VK_6 || ke.getKeyChar() == KeyEvent.VK_7 || ke.getKeyChar() == KeyEvent.VK_8 ||
ke.getKeyChar() == KeyEvent.VK_9 ){
double value1 = Double.parseDouble(tf.getText());
int position = tf.getCaretPosition();
if(tf.getText().length() == 1){
if(tf.getText() != null || tf.getText() != ""){
value1 = value1 / 100;
tf.setText(String.valueOf(value1));
/*else if(tf.getText().length() == 3){
str = tf.getText();
for(int i=0;i<str.length();i++){
if(str.charAt(i) == '.'){
str1 = str.substring(0,i);
str2 = str.substring(i+1,str.length()-1);
break;
key = ke.getKeyChar();
finalres = calculate.calculate1(str2,key);
str3 = merge.merge1(str1,finalres);
tf.setText(str3);
System.out.println(key);
System.out.println(str1);
System.out.println(str2);
else{
value1 = Float.parseFloat(tf.getText());
value1 = value1*10;
tf.setText(String.valueOf(value1));
tf.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
try {
tf.normalize();
Long l = tf.getLongValue();
System.out.println("Value is (Long)" + l);
} catch (ParseException e1) {
try {
Double d = tf.getDoubleValue();
System.out.println("Value is (Double)" + d);
} catch (ParseException e2) {
System.out.println(e2);
f.pack();
f.setVisible(true);
import javax.swing.JTextField;
* Created on May 25, 2005
* TODO To change the template for this generated file go to
* Window - Preferences - Java - Code Style - Code Templates
* @author jagjeevanreddyg
* TODO To change the template for this generated type comment go to
* Window - Preferences - Java - Code Style - Code Templates
import java.awt.Toolkit;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.text.DecimalFormat;
import java.text.ParseException;
import java.text.ParsePosition;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.text.AbstractDocument;
import javax.swing.text.AttributeSet;
import javax.swing.text.BadLocationException;
import javax.swing.text.Document;
import javax.swing.text.PlainDocument;
import javax.swing.text.AbstractDocument.Content;
public class DecimalFormateGen extends JTextField implements
NumericPlainDocument.InsertErrorListener {
public DecimalFormateGen() {
this(null, 0, null);
public DecimalFormateGen(String text, int columns, DecimalFormat format) {
super(null, text, columns);
NumericPlainDocument numericDoc = (NumericPlainDocument) getDocument();
if (format != null) {
numericDoc.setFormat(format);
numericDoc.addInsertErrorListener(this);
public DecimalFormateGen(int columns, DecimalFormat format) {
this(null, columns, format);
public DecimalFormateGen(String text) {
this(text, 0, null);
public DecimalFormateGen(String text, int columns) {
this(text, columns, null);
public void setFormat(DecimalFormat format) {
((NumericPlainDocument) getDocument()).setFormat(format);
public DecimalFormat getFormat() {
return ((NumericPlainDocument) getDocument()).getFormat();
public void formatChanged() {
// Notify change of format attributes.
setFormat(getFormat());
// Methods to get the field value
public Long getLongValue() throws ParseException {
return ((NumericPlainDocument) getDocument()).getLongValue();
public Double getDoubleValue() throws ParseException {
return ((NumericPlainDocument) getDocument()).getDoubleValue();
public Number getNumberValue() throws ParseException {
return ((NumericPlainDocument) getDocument()).getNumberValue();
// Methods to install numeric values
public void setValue(Number number) {
setText(getFormat().format(number));
public void setValue(long l) {
setText(getFormat().format(l));
public void setValue(double d) {
setText(getFormat().format(d));
public void normalize() throws ParseException {
// format the value according to the format string
setText(getFormat().format(getNumberValue()));
// Override to handle insertion error
public void insertFailed(NumericPlainDocument doc, int offset, String str,
AttributeSet a) {
// By default, just beep
Toolkit.getDefaultToolkit().beep();
// Method to create default model
protected Document createDefaultModel() {
return new NumericPlainDocument();
// Test code
public static void main(String[] args) {
try {
UIManager.setLookAndFeel("com.sun.java.swing.plaf.windows.WindowsLookAndFeel");
} catch (Exception evt) {}
DecimalFormat format = new DecimalFormat("#,###.###");
format.setGroupingUsed(true);
format.setGroupingSize(3);
format.setParseIntegerOnly(false);
JFrame f = new JFrame("Numeric Text Field Example");
final DecimalFormateGen tf = new DecimalFormateGen(10, format);
tf.setValue((double) 123456.789);
JLabel lbl = new JLabel("Type a number: ");
f.getContentPane().add(tf, "East");
f.getContentPane().add(lbl, "West");
tf.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
try {
tf.normalize();
Long l = tf.getLongValue();
System.out.println("Value is (Long)" + l);
} catch (ParseException e1) {
try {
Double d = tf.getDoubleValue();
System.out.println("Value is (Double)" + d);
} catch (ParseException e2) {
System.out.println(e2);
f.pack();
f.setVisible(true);
class NumericPlainDocument extends PlainDocument {
public NumericPlainDocument() {
setFormat(null);
public NumericPlainDocument(DecimalFormat format) {
setFormat(format);
public NumericPlainDocument(AbstractDocument.Content content,
DecimalFormat format) {
super(content);
setFormat(format);
try {
format
.parseObject(content.getString(0, content.length()), parsePos);
} catch (Exception e) {
throw new IllegalArgumentException(
"Initial content not a valid number");
if (parsePos.getIndex() != content.length() - 1) {
throw new IllegalArgumentException(
"Initial content not a valid number");
public void setFormat(DecimalFormat fmt) {
this.format = fmt != null ? fmt : (DecimalFormat) defaultFormat.clone();
decimalSeparator = format.getDecimalFormatSymbols()
.getDecimalSeparator();
groupingSeparator = format.getDecimalFormatSymbols()
.getGroupingSeparator();
positivePrefix = format.getPositivePrefix();
positivePrefixLen = positivePrefix.length();
negativePrefix = format.getNegativePrefix();
negativePrefixLen = negativePrefix.length();
positiveSuffix = format.getPositiveSuffix();
positiveSuffixLen = positiveSuffix.length();
negativeSuffix = format.getNegativeSuffix();
negativeSuffixLen = negativeSuffix.length();
public DecimalFormat getFormat() {
return format;
public Number getNumberValue() throws ParseException {
try {
String content = getText(0, getLength());
parsePos.setIndex(0);
Number result = format.parse(content, parsePos);
if (parsePos.getIndex() != getLength()) {
throw new ParseException("Not a valid number: " + content, 0);
return result;
} catch (BadLocationException e) {
throw new ParseException("Not a valid number", 0);
public Long getLongValue() throws ParseException {
Number result = getNumberValue();
if ((result instanceof Long) == false) {
throw new ParseException("Not a valid long", 0);
return (Long) result;
public Double getDoubleValue() throws ParseException {
Number result = getNumberValue();
if ((result instanceof Long) == false
&& (result instanceof Double) == false) {
throw new ParseException("Not a valid double", 0);
if (result instanceof Long) {
result = new Double(result.doubleValue());
return (Double) result;
public void insertString(int offset, String str, AttributeSet a)
throws BadLocationException {
if (str == null || str.length() == 0) {
return;
Content content = getContent();
int length = content.length();
int originalLength = length;
parsePos.setIndex(0);
// Create the result of inserting the new data,
// but ignore the trailing newline
String targetString = content.getString(0, offset) + str
+ content.getString(offset, length - offset - 1);
// Parse the input string and check for errors
do {
boolean gotPositive = targetString.startsWith(positivePrefix);
boolean gotNegative = targetString.startsWith(negativePrefix);
length = targetString.length();
// If we have a valid prefix, the parse fails if the
// suffix is not present and the error is reported
// at index 0. So, we need to add the appropriate
// suffix if it is not present at this point.
if (gotPositive == true || gotNegative == true) {
String suffix;
int suffixLength;
int prefixLength;
if (gotPositive == true && gotNegative == true) {
// This happens if one is the leading part of
// the other - e.g. if one is "(" and the other "(("
if (positivePrefixLen > negativePrefixLen) {
gotNegative = false;
} else {
gotPositive = false;
if (gotPositive == true) {
suffix = positiveSuffix;
suffixLength = positiveSuffixLen;
prefixLength = positivePrefixLen;
} else {
// Must have the negative prefix
suffix = negativeSuffix;
suffixLength = negativeSuffixLen;
prefixLength = negativePrefixLen;
// If the string consists of the prefix alone,
// do nothing, or the result won't parse.
if (length == prefixLength) {
break;
// We can't just add the suffix, because part of it
// may already be there. For example, suppose the
// negative prefix is "(" and the negative suffix is
// "$)". If the user has typed "(345$", then it is not
// correct to add "$)". Instead, only the missing part
// should be added, in this case ")".
if (targetString.endsWith(suffix) == false) {
int i;
for (i = suffixLength - 1; i > 0; i--) {
if (targetString
.regionMatches(length - i, suffix, 0, i)) {
targetString += suffix.substring(i);
break;
if (i == 0) {
// None of the suffix was present
targetString += suffix;
length = targetString.length();
format.parse(targetString, parsePos);
int endIndex = parsePos.getIndex();
if (endIndex == length) {
break; // Number is acceptable
// Parse ended early
// Since incomplete numbers don't always parse, try
// to work out what went wrong.
// First check for an incomplete positive prefix
if (positivePrefixLen > 0 && endIndex < positivePrefixLen
&& length <= positivePrefixLen
&& targetString.regionMatches(0, positivePrefix, 0, length)) {
break; // Accept for now
// Next check for an incomplete negative prefix
if (negativePrefixLen > 0 && endIndex < negativePrefixLen
&& length <= negativePrefixLen
&& targetString.regionMatches(0, negativePrefix, 0, length)) {
break; // Accept for now
// Allow a number that ends with the group
// or decimal separator, if these are in use
char lastChar = targetString.charAt(originalLength - 1);
int decimalIndex = targetString.indexOf(decimalSeparator);
if (format.isGroupingUsed() && lastChar == groupingSeparator
&& decimalIndex == -1) {
// Allow a "," but only in integer part
break;
if (format.isParseIntegerOnly() == false
&& lastChar == decimalSeparator
&& decimalIndex == originalLength - 1) {
// Allow a ".", but only one
break;
// No more corrections to make: must be an error
if (errorListener != null) {
errorListener.insertFailed(this, offset, str, a);
return;
} while (true == false);
// Finally, add to the model
super.insertString(offset, str, a);
public void addInsertErrorListener(InsertErrorListener l) {
if (errorListener == null) {
errorListener = l;
return;
throw new IllegalArgumentException(
"InsertErrorListener already registered");
public void removeInsertErrorListener(InsertErrorListener l) {
if (errorListener == l) {
errorListener = null;
public interface InsertErrorListener {
public abstract void insertFailed(NumericPlainDocument doc, int offset,
String str, AttributeSet a);
protected InsertErrorListener errorListener;
protected DecimalFormat format;
protected char decimalSeparator;
protected char groupingSeparator;
protected String positivePrefix;
protected String negativePrefix;
protected int positivePrefixLen;
protected int negativePrefixLen;
protected String positiveSuffix;
protected String negativeSuffix;
protected int positiveSuffixLen;
protected int negativeSuffixLen;
protected ParsePosition parsePos = new ParsePosition(0);
protected static DecimalFormat defaultFormat = new DecimalFormat();
this is not working as desired pls help me.
can we use this code and get the desired result or is there any other way to do this.
it is very urgent for me pls help immediately
thanks in advanceHi camickr
i learned how to format the code now, and u also responded for my testarea problem , iam very much thankful to u, and now i repeat the same problem what i have with a text field.
actually i have window with a textfield on it and while end user starts entering data in it , it should be have as follows
when the user start typing numerics it should accept from right hand side and keep appending value from right hand side.
first the default value should be as 0.00 and as the user starts entering
then it is as follows
for ex
if i want to enter 123.45
user starts entering
1 then it should display as 0.01
2 then it should display as 0.12
3 then it should display as 1.23
4 then it should display as 12.34
5 then it should display as 123.45
i hope u will give me quick reply because this is very hard time for me. -
Issue with processing time of JDBC receiver adapter
Hi all,
We are using PI 7.1 EHP1.
We have an issue with JDBC receiver adapter taking too much time to process messages.
We are using XML SQL format message protocol with INSERT_UPDATE as the document format.
Each message can contain multiple records, i.e. 1 single message can result in many updates/inserts.
Currently, time taken to process in 6-12 secs which is quite high considering the messages are not very large in size.
We sent the statements to Oracle DBA to see if anything about the queries being used is causing issues. Awaiting inputs.
In the mean time, wanted to check if there is anything that can be done from PI side that will help us improving the processing time.
Thanks in Advance,
Sailaja.Hi,
i think the main cause is query taking long time to execute in DataBase.
-> increase the read time and response time in the JDBC receiver adapter.
In the advanced mode table section of sender channel and receiver channel configurations, we can set driver properties for each DB connection. Any such property would have to contain prefix 'driver:'(with out quotes).
For Oracle Database JDBC thin driver 10.2.0.3 version, the property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket. Also for setting login time out in Oracle, we use oracle.net.CONNECT_TIMEOUT. To set these two properties use as follows: driver:oracle.jdbc.ReadTimeout 1000 driver:oracle.net.CONNECT_TIMEOUT 1000 The TimeOut Driver properties like ReadTimeout and CONNECT_TIMEOUT are in milliseconds.
Refer note 1078420 for more details
please go through this blog i hope it will help you.
http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/c059d583-a551-2c10-e095-eb5d95e03747
regards,
ganesh
Edited by: ganesh.nijampudi on Oct 25, 2011 12:00 PM -
I am also having this same issue with Ubuntu for some reason.
I recently got an arch Linux install up and going on my new laptop, but I am having one huge issue
I have the oxygen-gtk3 packages installed for both my Arch and Ubuntu install. Theoretically it should work, but for some reason my GTK3 apps aren't being themed in KDE4, they're using that redmond-like fugly default theme.
How might I fix this, I've tried everything from symlinking to compiling it again, nothing seems to work.
I suspect it might be an auto-start application to apply them that isn't working.yngwin wrote:Is there any reason to use Gtk3 apps? Personally I find it easier to just stick with Gtk2 ones for now, since Gtk3 is still going through growing pains.
Well lets put it this way
I'm not gonna switch out Empathy for Pidgin (Pidgin stores passwords in plaintext in a easily accessible folder/file unless you needlessly use a kwallet plugin, which you shouldn't need to do.Empathy does not store said passwords in plaintext, and I believe it uses the Gnome Wallet).
Alot of programs got updated to gtk3, and require gtk3 themes. Guess how many gtk3 themes exist that aren't recolors/crappy edits of the default one...not a whole ton.
Ubuntu actually requires GTK3 now with Unity or even with Gnome. Alot of other distros will likely follow suit.
I could stick with GTK2 if Arch were still my secondary distro, but I now have a dedicated machine for Arch and I don't use it too often. I just tested the theme engine for oxygen-gtk3 on it to see if it worked, and like my Main Ubuntu/Debain Sid machine which I'm using the same problem with the Win98-esque theme on GTK3 apps in KDE occured.
I'm gonna try that fix you mentioned Teho, see if it works. It's obviously not a distro-specific problem.
Hawt damn Teho! Your solution worked like a charm! I could honestly hug you right now, you've fixed the last issue currently plauging both my Arch and Ubuntu installs. Thanks!
How do I change this topics prefix to solved?
Last edited by Nimbus (2011-10-03 17:44:50) -
Issue with SIEBEL - XI Integration with SOAP
Hi,
I have an issue with the integration of SIEBEL and XI via SOAP.
In the scenario Siebel calls a synch Web Service on XI. The provided WSDL was implemented on Siebel and when Siebel calls the Web Service the message is received correctly by the XI SOAP Sender Adapter and I can see the message in the Message Monitoring (SXMB_MONI).
The issue is during the mapping as the payload does not seem to comply with the structure XI expects in the message interface. When I load the payload of the SOAP Request send by Siebel into the Message Mapping Test Tool, all fields below the Message Type are in red. I found out that the problem lies in the way the namespace is addressed.
The payload I receive from Siebel that is not working in the mapping looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <MT_KUNDE_CRM xmlns="http://www.xyz.de/ariva/Kunden" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <KUNDE>
- <Account>
<CRM_Account_ID>1-S3YU</CRM_Account_ID>
<Customer_Segment>Other Account</Customer_Segment>
<Target_Market>Other Markets</Target_Market>
<Currency>DEM</Currency>
<Inactive_Account>N</Inactive_Account>
<Country />
<Account_Name>ATK Test Company 1</Account_Name>
</Account>
- <Account_Address>
<Country>England</Country>
</Account_Address>
</KUNDE>
</MT_KUNDE_CRM>
The structure that works looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
- <kun:MT_KUNDE_CRM xmlns:kun="http://www.xyz.de/ariva/Kunden" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
- <KUNDE>
- <Account>
<CRM_Account_ID>1-S3YU</CRM_Account_ID>
<Customer_Segment>Other Account</Customer_Segment>
<Target_Market>Other Markets</Target_Market>
<Currency>DEM</Currency>
<Inactive_Account>N</Inactive_Account>
<Country />
<Account_Name>ATK Test Company 1</Account_Name>
</Account>
- <Account_Address>
<Country>England</Country>
</Account_Address>
</KUNDE>
</kun:MT_KUNDE_CRM>
The ony difference between the two is that the second messages uses a prefix (kun) for the namespace while the first does not use it, although it is correct from an XML syntax perspective.
Can anybody help?
Thanks in advance.
AlexHi
Why don't you try and create a schema (XSD) which will prefix kun to the input, instead of using the message type created by XI.
Just a suggestion.
regards
Sameer -
Module Function Name Resolution - Issues with DefaultCommandPrefix
Just getting started on module development, running PS4, and I've run into an... inconsistency... that I'm trying to understand. I've got two test functions, Get-Something and Set-Something in a script module. In my manifest file I specify a DefaultCommandPrefix
of 'Test'.
My issue is the function name resolution doesn't result in an executable result if you leave PowerShell up to it's own process.
To begin with I closed all sessions and deleted all files in the CommandAnalysis directory. After starting a session I waited for the CommandAnalysis cache to populate. Then I ran a series of test commands to illustrate how, most of the time, the function
name PowerShell registers with tab completion can't be executed because it lacks the 'Test' prefix. Even worse, much of the time tab completion won't recognize the correct (i.e., with prefix) name of the function and honor tab completion for it.
Having just learned of the CommandAnalysis cache I assumed I would see it change as PowerShell 'learned' more about the module because the name resolves differently over time. I've included three files at the end of this post, the module code (ModuleTest.psm1),
the manifest (ModuleTest.psd1) and the capture of output to the PowerShell session (ModuleTest.txt). I've tried to include the times I used <tab> and <ret> for tab completion and execution as well as (comments in parenthesis for things I did like
starting a new session and checking the CommandAnalysis cache for changes).
An example is, when first starting a session typing 'get-som<tab>' will resolve to 'Get-Something' (prefix 'Test' missing) and typing 'get-test<tab>' won't resolve to 'Get-TestSomething'. Try to execute the 'Get-Something' from tab completion
and you'll get the 'name not recognized, blah, blah'.
Now if you type 'get-som<tab>' PowerShell will resolve to 'ModuleTest\Get-Something' - looks promising... but no. Try to execute the 'ModuleTest\Get-Something' from tab completion and you'll still get the 'name not recognized, blah, blah'.
Even though the same key strokes resolved differently there were no changes made to the CommandAnalysis cache so I'm lost on why it produces two different (though equally useless) results.
Manually importing the module and sometimes running Get-Command -Module ModuleTest will make tab completion of the function names behave correctly. Is this a known issue with using DefaultCommandPrefix in script modules or is there something I need to include
in the manifest to enforce strict name recognition (including the prefix)?
<ModuleTest.psm1>
function Get-Something
Write-Host "Get-Something Executed"
function Set-Something
Write-Host "Set-Something Executed"
<ModuleTest.psd1>
# Script module or binary module file associated with this manifest
ModuleToProcess = 'ModuleTest.psm1'
# Version number of this module.
ModuleVersion = '1.0.0.0'
# ID used to uniquely identify this module
GUID = '241877ff-64be-40c8-a603-8d5acf7a48d8'
# Author of this module
Author = 'wb3'
# Company or vendor of this module
CompanyName = ''
# Copyright statement for this module
Copyright = '(c) 2015. All rights reserved.'
# Description of the functionality provided by this module
Description = 'Module description'
# Minimum version of the Windows PowerShell engine required by this module
PowerShellVersion = '2.0'
# Name of the Windows PowerShell host required by this module
PowerShellHostName = ''
# Minimum version of the Windows PowerShell host required by this module
PowerShellHostVersion = ''
# Minimum version of the .NET Framework required by this module
DotNetFrameworkVersion = '2.0'
# Minimum version of the common language runtime (CLR) required by this module
CLRVersion = '2.0.50727'
# Processor architecture (None, X86, Amd64, IA64) required by this module
ProcessorArchitecture = 'None'
# Modules that must be imported into the global environment prior to importing
# this module
RequiredModules = @()
# Assemblies that must be loaded prior to importing this module
RequiredAssemblies = @()
# Script files (.ps1) that are run in the caller's environment prior to
# importing this module
ScriptsToProcess = @()
# Type files (.ps1xml) to be loaded when importing this module
TypesToProcess = @()
# Format files (.ps1xml) to be loaded when importing this module
FormatsToProcess = @()
# Modules to import as nested modules of the module specified in
# ModuleToProcess
NestedModules = @()
# Default command prefix
DefaultCommandPrefix = 'Test'
# Functions to export from this module
FunctionsToExport = '*'
# Cmdlets to export from this module
CmdletsToExport = '*'
# Variables to export from this module
VariablesToExport = '*'
# Aliases to export from this module
AliasesToExport = '*'
# List of all modules packaged with this module
ModuleList = @()
# List of all files packaged with this module
FileList = @()
# Private data to pass to the module specified in ModuleToProcess
PrivateData = ''
<ModuleTest.output>
PS C:\Scripts\PowerShell> Get-ChildItem -Path 'C:\Program Files\WindowsPowerShell\Modules' -Recurse<ret>
Directory: C:\Program Files\WindowsPowerShell\Modules
Mode LastWriteTime Length Name
d---- 3/5/2015 9:06 AM ModuleTest
Directory: C:\Program Files\WindowsPowerShell\Modules\ModuleTest
Mode LastWriteTime Length Name
-a--- 3/5/2015 8:50 AM 2907 ModuleTest.psd1
-a--- 3/5/2015 9:01 AM 140 ModuleTest.psm1
PS C:\Scripts\PowerShell> Get-Module -ListAvailable<ret>
Directory: C:\Program Files\WindowsPowerShell\Modules
ModuleType Version Name ExportedCommands
Script 1.0.0.0 ModuleTest {Get-Something, Set-Something}
PS C:\Scripts\PowerShell> get-som<tab>
PS C:\Scripts\PowerShell> Get-Something<ret>
Get-Something : The term 'Get-Something' is not recognized as the name of a cmdlet, function, script file, or operable
program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ Get-Something
+ ~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (Get-Something:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(No change in CommandAnalysis cache)
PS C:\Scripts\PowerShell> get-som<tab>
PS C:\Scripts\PowerShell> ModuleTest\Get-Something<ret>
ModuleTest\Get-Something : The term 'ModuleTest\Get-Something' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1
+ ModuleTest\Get-Something
+ ~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (ModuleTest\Get-Something:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
(No change in CommandAnalysis cache)
PS C:\Scripts\PowerShell> get-tes<tab>
PS C:\Scripts\PowerShell> Get-TestSomething<ret>
Get-Something Executed
(New Session)
(No change in CommandAnalysis cache)
PS C:\Scripts\PowerShell> get-tes<tab><ret>
get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ get-tes
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Scripts\PowerShell> Import-Module ModuleTest<ret>
(No change in CommandAnalysis cache)
PS C:\Scripts\PowerShell> get-tes<tab><ret>
PS C:\Scripts\PowerShell> Get-TestSomething
Get-Something Executed
(New Session)
(No change in CommandAnalysis cache)
PS C:\Scripts\PowerShell> get-tes<tab><ret>
get-tes : The term 'get-tes' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ get-tes
+ ~~~~~~~
+ CategoryInfo : ObjectNotFound: (get-tes:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
PS C:\Scripts\PowerShell> Get-Command -Module ModuleTest<ret>
CommandType Name
ModuleName
Function Get-TestSomething
ModuleTest
Function Set-TestSomething
ModuleTest
(No change in CommandAnalysis cache)
PS C:\Scripts\PowerShell> get-tes<tab>
PS C:\Scripts\PowerShell> Get-TestSomething<ret>
Get-Something Executed
PS C:\Scripts\PowerShell> moduletest\get<tab><ret>
PS C:\Scripts\PowerShell> Get-TestSomething<ret>
Get-Something Executed
William Busby, PMPHi William,
yes, that's something you'll either have to do the hard way or live with admin confusion.
If you're using Sapien's PowerShell Studio as an Editor (hint: Usually a great idea), you can very easily rename a function, even in a multi-file module project, by rightcklicking on the function-name and selecting "rename".
Alternatively you can do a bulk rename with Powershell:
Get all functions in your module (Load it and check exportedcommands)
loop over each function-name
calculate new name
search your entire project for all references and replace them.
Let me see ...
function Rename-ModulePrefix
[CmdletBinding()]
Param (
[Parameter(Position = 0, Mandatory = $true)]
[string]
$ModuleName,
[Parameter(Position = 1, Mandatory = $true)]
[string]
$OldPrefix,
[Parameter(Position = 2, Mandatory = $true)]
[string]
$NewPrefix,
[Parameter(Position = 3)]
[string]
$Path
# Catch all typos
Import-Module $ModuleName -ErrorAction 'Stop'
# Get root path if not manually passed
if (-not $PSBoundParameters["Path"])
$Path = (Get-Module $ModuleName).Path
# Get module files
$Files = Get-ChildItem -Path $path -Recurse -Include "*.ps1", "*.psm1", "*.psd1"
# Iterate over each file
foreach ($file in $Files)
# Null variable in case you get an empty file somewhere and run this from Win 7
$data = $null
# Get Content of file
$data = Get-Content $file
# Replace strings
foreach ($c in (Get-Module $ModuleName).ExportedCommands)
$newName = $c.Name -replace $OldPrefix, $NewPrefix
$data = $data | ForEach-Object { $_ -replace $c.Name, $newName }
# Write back to file
$data | Set-Content $file
While I didn't proof it, in theory this should do it (Make a backup before running it :) ).
Cheers,
Fred
There's no place like 127.0.0.1 -
Issue with getting task:acquiredBy in a BPEL Composite.
Hi,
We are facing an issue with an XPath query:
<assign name="RescanHumanTask_1_readTask">
<copy>
<from variable="taskAssignedMessage"
part="payload"
query="/taskservice:taskAssignedMessage/task:task"/>
<to variable="RescanHumanTask_1_globalVariable"
part="payload"
query="/task:task"/>
</copy>
<copy>
<from variable="RescanHumanTask_1_globalVariable"
part="payload"
query="/task:task/task:systemAttributes/task:acquiredBy"/>
<to variable="inputVariable"
part="payload"
query="/client:process/client:invoice/contentType:assignee"/>
</copy>
</assign>
It gives us an error:
Error in evaluate <from> expression at line "427". The result is empty for the XPath expression : "/task:task/task:systemAttributes/task:acquiredBy".
Can someone figure out a way of getting the System Attribute task:acquiredBy inside a bpel flow.
Regards.
--Irshad.acquiredBy will be empty unless it is acquired by any user. you should pick value from last updated by field.
-
Upgrading to weblogic 12c issue with JSF
Migrating to the Weblogic 12c faced so many issue with the shared class library. After fixing all the issue stuck with JSF and on google everywhere it was mentioned error happening due to multiple JSF version colliding.
My whole application works like a charm in 10.3.6 but same app not working after updating the spring 4 and hibernate 4.
This is the error I am receiving below errors ...
<javax.enterprise.resource.webcontainer.jsf.application> <BEA-000000> <JSF1029: The specified InjectionProvider implementation 'com.bea.faces.WeblogicInjectionProvider' does not implement the InjectionProvider interface. >
1. Cause: Unable to create a new instance of 'org.springframework.web.jsf.DelegatingVariableResolver': javax.faces.FacesException: org.springframework.web.jsf.DelegatingVariableResolver
2. Cause: Unable to create a new instance of 'org.springframework.web.jsf.DelegatingVariableResolver': javax.faces.FacesException: org.springframework.web.jsf.DelegatingVariableResolver
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(Unknown Source)
at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(Unknown Source)
at com.sun.faces.config.processor.ApplicationConfigProcessor.process(Unknown Source)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(Unknown Source)
at com.sun.faces.config.processor.LifecycleConfigProcessor.process(Unknown Source)
Truncated. see log file for complete stacktrace
Caused By: javax.faces.FacesException: org.springframework.web.jsf.DelegatingVariableResolver
at com.sun.faces.config.processor.AbstractConfigProcessor.loadClass(Unknown Source)
at com.sun.faces.config.processor.AbstractConfigProcessor.createInstance(Unknown Source)
at com.sun.faces.config.processor.ApplicationConfigProcessor.addVariableResolver(Unknown Source)
at com.sun.faces.config.processor.ApplicationConfigProcessor.process(Unknown Source)
at com.sun.faces.config.processor.AbstractConfigProcessor.invokeNext(Unknown Source)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ClassNotFoundException: org.springframework.web.jsf.DelegatingVariableResolver
at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
at weblogic.utils.classloaders.ChangeAwareClassLoader.findClass(ChangeAwareClassLoader.java:64)
at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
Truncated. see log file for complete stacktrace
3. ]] Root cause of ServletException.
java.lang.IllegalStateException: Could not find backup for factory javax.faces.context.FacesContextFactory.
at javax.faces.FactoryFinderInstance.getFactory(Unknown Source)
at javax.faces.FactoryFinder.getFactory(Unknown Source)
at javax.faces.webapp.FacesServlet.init(Unknown Source)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:299)
at weblogic.servlet.internal.StubSecurityHelper$ServletInitAction.run(StubSecurityHelper.java:250)
Truncated. see log file for complete stacktrace
4.Error> <javax.faces> <BEA-000000> <Application was not properly initialized at startup, could not find Factory: javax.faces.application.ApplicationFactory. Attempting to find backup.>
<Error> <javax.enterprise.resource.webcontainer.jsf.config> <BEA-000000> <Unexpected exception when attempting to tear down the Mojarra runtime
java.lang.IllegalStateException: Could not find backup for factory javax.faces.application.ApplicationFactory.
at javax.faces.FactoryFinder$FactoryManager.getFactory(FactoryFinder.java:1010)
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:342)
at com.sun.faces.config.InitFacesContext.getApplication(InitFacesContext.java:141)
at com.sun.faces.config.ConfigureListener.contextDestroyed(ConfigureListener.java:314)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:583)
Truncated. see log file for complete stacktrace
I had the classloader from weblogic but unable to find if there is anything related with Multiple JSF versions colliding. Here is the classloader log
**System Classloaders**
Type: sun.misc.Launcher$ExtClassLoader
HashCode: 1956433926
Classpath:
/C:/Java/jdk1.7.0_45/jre/lib/ext/access-bridge-64.jar
/C:/Java/jdk1.7.0_45/jre/lib/ext/dnsns.jar
/C:/Java/jdk1.7.0_45/jre/lib/ext/jaccess.jar
/C:/Java/jdk1.7.0_45/jre/lib/ext/localedata.jar
/C:/Java/jdk1.7.0_45/jre/lib/ext/sunec.jar
/C:/Java/jdk1.7.0_45/jre/lib/ext/sunjce_provider.jar
/C:/Java/jdk1.7.0_45/jre/lib/ext/sunmscapi.jar
/C:/Java/jdk1.7.0_45/jre/lib/ext/zipfs.jar
Type: sun.misc.Launcher$AppClassLoader
HashCode: 345487281
Classpath:
/C:/Oracle12c/Middleware/modules/features/weblogic.server.modules_12.1.1.0.jar
/C:/Oracle12c/Middleware/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar
/C:/Oracle12c/Middleware/modules/org.apache.ant_1.7.1/lib/ant-all.jar
/C:/Oracle12c/Middleware/patch_ocp371/profiles/default/sys_manifest_classpath/weblogic_patch.jar
/C:/Oracle12c/Middleware/patch_wls1211/profiles/default/sys_manifest_classpath/weblogic_patch.jar
/C:/Oracle12c/Middleware/wlserver_12.1/common/derby/lib/derbyclient.jar
/C:/Oracle12c/Middleware/wlserver_12.1/server/lib/weblogic.jar
/C:/Oracle12c/Middleware/wlserver_12.1/server/lib/weblogic_sp.jar
/C:/Oracle12c/Middleware/wlserver_12.1/server/lib/webservices.jar
/C:/Oracle12c/Middleware/wlserver_12.1/server/lib/xqrl.jar
/C:/Program%20Files/Java/jdk1.7.0_45/lib/tools.jar
Type: weblogic.utils.classloaders.GenericClassLoader
HashCode: 1277718374
Classpath:
**Application Classloaders**
Type: weblogic.utils.classloaders.FilteringClassLoader
HashCode: 929366372
Filter: [antlr.*, antlr.collections.*, antlr.collections.impl.*, antlr.debug.misc.*, com.sun.activation.*, com.sun.istack.*, com.sun.mail.*, com.sun.xml.*, org.apache.commons.*, org.joda.time.*, org.apache.xalan.*, org.apache.xml.*, org.apache.wml.*, org.apache.xerces.*, org.apache.xpath.*, com.ctc.wstx.*, org.slf4j.*, javax.faces.*, com.sun.faces.*, com.bea.faces.*, com.sun.el.*, javax.el.*, javassist.*]
Classpath: empty
Type: weblogic.utils.classloaders.GenericClassLoader
HashCode: 2137066604
Classpath:
**Type: weblogic.utils.classloaders.FilteringClassLoader**
HashCode: 1212049573
Filter: []
Classpath: empty
Type: weblogic.utils.classloaders.ChangeAwareClassLoader
HashCode: 1604673952
Classpath:
C:\s-ear-1.0-SNAPSHOT_4
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\classes
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\FastInfoset-1.2.12.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\_wl_cls_gen.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\acegi-security-1.0.7.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\activation-1.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\activation.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\antlr-2.7.7.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\aopalliance-1.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\aspectjrt-1.8.5.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\aspectjweaver-1.8.5.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\backport-util-concurrent-3.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\bcprov-jdk16-140.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\cacauth-2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\camel-core-2.5.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\camel-josql-2.5.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps-handshake-3.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps2-liquibase-1.0-SNAPSHOT.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps2domain-1.0-SNAPSHOT.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\caps2util-1.0-SNAPSHOT.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\cloning-1.7.4.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-beanutils-1.8.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-codec-1.9.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-collections-3.2.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-dbcp-1.4.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-digester-2.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-httpclient-3.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-io-1.4.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-lang-2.4.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-logging-1.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-logging-api-1.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-management-1.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\commons-pool-1.5.4.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\dom4j-1.6.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\gentlyweb-utils-1.5.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-commons-annotations-4.0.4.Final.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-core-4.2.18.Final.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-entitymanager-4.2.18.Final.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-jpa-2.0-api-1.0.1.Final.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\hibernate-validator-4.2.0.Final.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icefaces-3.2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icefaces-ace-3.2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icefaces-compat-3.2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\icepush-3.2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\itext-4.2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\itextpdf-5.0.6.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jackson-core-asl-1.9.9.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jackson-core-lgpl-1.9.9.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jackson-mapper-asl-1.9.9.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jasperreports-ca-4.8.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javassist-3.18.2-GA.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javax.el-api-2.2.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javax.faces-2.2.9.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\javax.inject-1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jax-qname.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb-api-2.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb-api.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb-impl-2.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxb1-impl.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxp-api.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jaxws-api-2.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-archive-browsing-5.0.0alpha-200607201-119.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-logging-3.1.3.GA.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-logging-annotations-1.2.0.Beta1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jboss-transaction-api_1.1_spec-1.0.1.Final.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jcl-over-slf4j-1.5.2.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jersey-bundle-1.18.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\joda-time-2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\joda-time-hibernate-1.3.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\josql-1.5.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\josql-2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\json-20140107.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jsr173_1.0_api.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jsr250-api-1.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jsr311-api-1.1.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jstl-1.2.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\jta-1.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\log4j-1.2.14.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\mail-1.4.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\mail.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\objenesis-1.2.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\opencsv-1.7.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\oro-2.0.8.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\portlet-api-2.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\primefaces-3.4.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\quartz-1.8.4.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\saaj-api-1.3.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\saaj-api.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\saaj-impl.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\serializer-2.7.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\serializer.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\service-1.0-SNAPSHOT.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\servlet.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\slf4j-api-1.5.2.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\slf4j-log4j12-1.5.2.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-aop-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-aspects-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-beans-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-context-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-context-support-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-core-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-expression-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-jdbc-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-jms-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-orm-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-oxm-3.0.5.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-security-core-4.0.0.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-tx-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-web-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-webmvc-4.0.9.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-ws-core-2.0.0.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-ws-security-2.0.0.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\spring-xml-2.0.0.RELEASE.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\stax-api-1.0-2.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\3capture-1.0.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\s-beans-1.0-SNAPSHOT.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\usertype.core-3.1.0.CR10.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\usertype.jodatime-1.9.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\usertype.spi-3.1.0.CR10.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\validation-api-1.0.0.GA.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\wss4j-1.5.8.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xalan-2.7.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xercesImpl-2.8.1.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xercesImpl.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xml-apis.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xmldsig.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xmlsec-1.4.3.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xmlsec.jar
C:\s-ear-1.0-SNAPSHOT_4\war\WEB-INF\lib\xws-security-3.0.jar
jsf myfaces weblogic1
Here are links for more details.
http://stackoverflow.com/questions/29857571/weblogic-12c-java-lang-illegalstateexception-could-not-find-backup-for-factory
http://www.coderanch.com/t/649308/JSF/java/Faces-Servlet-failed-preload-startup
Sorry incase question not formatted. Any suggestions appreciated.hi.
I had faced this behavior on weblogic 12c(12.1.1).
Maybe This problem was solved by 12.1.2.
But, when text item submitted together with a upload file, multibyte characters was garbage characters.
See Multibyte character was garbage characters, when multipart requested (Multipartリクエストで文字化けが発生する) on WebLogic12(12.1.2.0) -
Posting Data Issue with IDOC Type : COND_A03
Friends,
I'm posting the data from Middleware(Message Broker) to SAP using the IDOC Type : COND_A03 with Message Type : COND_A.
For this IDOC,I'm populating the below Segment's data.
Segement :E1KOMG:
Fields:
KVEWE,KOTABNR,KAPPL ,KSCHL,VAKEY ,KONDA,MATNR .
Segement :E1KONH:
Fields:
KNUMH,DATAB,DATBI
Segement :E1KONP:
Fields:
KSCHL,STFKZ,KSTBM,KSTBW,KRECH ,KBETR,KONWA,KPEIN,KUMZA,KUMNE,MXWRT,GKWRT,ZAEHK_IND ,KBRUE,VALTG,
VALDT,ANZAUF,MIKBAS,MXKBAS,KOMXWRT,KLF_STG,KLF_KAL
Problem: In SAP, IDOC's are processing successfully with status 53 and updating the tables : KONH,KONP successfully.
But Table A957 which is passing against KOTABNR field is not pupulating with the Materials passing.
Can anyone please guide me why the Materials are not populating in the table : A957.
Regards,
SreeramHi,
I guess there might be some issue with VAKEY population.
All the key fields in A957 should be concated properly while populating VAKEY. (Leading zeros must be prefixed to the material)
Regards,
Ganga -
Hi ,
I have some issues with runtime xi cache update.
i tested the RFC dest for connection RFC Dest - INTEGRATION_DIRECTORY_HMI.
that failed with HTTP 500 internal server error .
I even tried to update the cache from TCode - sxi_cache
the error i got there was
Prefix number: entry missing for system XI1 client 200
If anyone has any idea as to why is such an error occuring
Thanks
NikhilHi
<i>that failed with HTTP 500 internal server error .</i>
is not an error
Please can you check on this thread:
XI Runtime cache error: Cache contents are obsolete
Regards
Vijaya -
Terminal issues with environmental variables
I am having an issue with persisting environmental variables during a session. I am running an app that requires the sequential running of 3 scripts setenv.sh, build.sh, run.sh.
The first script sets variables that are being used by the other scripts. The script just contains lines like
"export ADVISOR_HOME=/Applications/Blaze/Advisor65;"
if i add echo the variables name in the script they are set, but immediately after or with env they are gone.
From my understanding (not much) these should persist as long as the window is open. Is there any setting that is being set in OS X that is sandboxing scripts? It would seem to be security-minded but is causing problems.
Also is there any way to temporarily disable the requirement to prefix a command call with ./ in os x. Many of the included scripts are calling methods in the same directory and I am having to alter a lot of scripts to include ./
Thanks in advance,
walterwalter deane wrote:
I am having an issue with persisting environmental variables during a session. I am running an app that requires the sequential running of 3 scripts setenv.sh, build.sh, run.sh.
The first script sets variables that are being used by the other scripts. The script just contains lines like
"export ADVISOR_HOME=/Applications/Blaze/Advisor65;"
if i add echo the variables name in the script they are set, but immediately after or with env they are gone.
Do you mean you echo them from within the script and then they are gone after the script ends? That would be normal. If you want them to persist through the other scripts, you could combine the scripts. The problem is that you're setting them in one process and expecting them to persist in another process. Unless the second is a child of the first, that won't work. I think it would work if you executed the second two scripts from within the first script because they would then be children of the first process. Does that make sense? I'm not sure of the correct terminology here and I can't draw a tree which is what I want to do! Another option might be to source setenv.sh rather than running it (i.e. wouldn't need to be executable) - the same way the shell does when starting up, I think.
From my understanding (not much) these should persist as long as the window is open.
I don't think it has anything to do with windows. It is just when the process exits. If you set such variables at the command line, they'll persist until the window closes because they'll persist until the process exits which is usually when the window closes. At least, in the simplest cases. But it isn't the window staying open or not that's important. It's that everything else done in the window happens to inherit the environment from the parent process. In truth, this often isn't the case anyway, but I expect that's the source of the misunderstanding.
Is there any setting that is being set in OS X that is sandboxing scripts? It would seem to be security-minded but is causing problems.
Nothing special that I know of. There is stuff for something like this in Leopard but you'd have to enable it and I'm not sure it applies here.
Also is there any way to temporarily disable the requirement to prefix a command call with ./ in os x. Many of the included scripts are calling methods in the same directory and I am having to alter a lot of scripts to include ./
You can do this but it is extremely insecure. Essentially, you can add the current directory to PATH. (PATH=$PATH:./; export PATH) It would be much, much better - much, much safer - to edit the scripts. Can you not use sed to edit them? If there is some sort of pattern, there's no need to do it by hand.
If this is an application you plan to share, you should certainly not consider changing PATH in this way unless you are aiming to produce an application with maximum destructive potential! If you don't plan to share, of course, it is your call!
- cfr
Maybe you are looking for
-
How to retrieve the 'Where Clause' text?
Hello all, I have created a package to retrieve all the DML's executed against the database for the day, for a particular user. DBMS_LOGMNR package was used to retrieve DMLs. But the DMLs retrieved have their 'WHERE' clause text converted to ROWID's.
-
Can't delete texts or iMessages without deleting the entire conversation
I Just downloaded iOS 8 and can Nolonger delete individual texts or iMessages from users without deleting the entire conversation...
-
Hi this might be the wrong place to put this question but i need help as i'm a newbie What I want to do if create a full search for my users so they can search my database on fishing locations in the UK, I have set up a database with 1 table and 7 co
-
Create a PDF of each state of my MSO
To facilitate the corrections on the client's side, I would like to create a PDF of each state of my MSO. But ... in some states, I have a scrollable frame. How can I make the text from the scrollable frame appear in the pdf? I started to write an Ap
-
ANT: optional tasks?
How can I make ANT to support optional tasks (a task which typically requires an external library)? Documentation says: "If you want to develop extensions to Ant via the Apache Ant API within JDeveloper, see the Extension Manager page in Tools | Pref