I am using a business objects API that is a web service and has axis as dependency. it works fine with 1.1 version, but with 1.3 gives an error. The code is as follows:
public void initWSConnectio n()
{
try{
String biCatalogURL = "http://" + super.getServer HostName() + ":" + PORT_NUMBER + BI_CATALOG_DIRE CTORY ;
URL boConURL = new URL(biCatalogUR L);
boConnection = new Connection(boCo nURL);
boSession = new Session(boConne ction);
EnterpriseCrede ntial boCredential = new EnterpriseCrede ntial();
boCredential.se tLogin(this.get UnvDesktopUsern ame());
boCredential.se tPassword(this. getUnvDesktopPa ssword());
boCredential.se tDomain(this.ge tUnvDesktopPass word());
SessionInfo boSI = boSession.login (boCredential);
}catch(Exceptio n e){
logger.log(Leve l.WARNING,"unab le to establish session",e);
e.printStackTra ce();
}
}
and the error is :
WARNING: unable to establish session
AxisFault
faultCode: {http://schemas.xmlsoap .org/soap/envelope/}Server.general Exception
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName: com.businessobj ects.dsws.DSWSE xception
{http://xml.apache.org/axis/}stackTrace:
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init> ;(Unknown Source)
at com.businessobj ects.dsws.sessi on.Session.< init>(Unknow n Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
{http://xml.apache.org/axis/}hostname:xyz
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init>(Unkn own Source)
at com.businessobj ects.dsws.sessi on.Session.<ini t>(Unknown Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
AxisFault
faultCode: {http://schemas.xmlsoap .org/soap/envelope/}Server.general Exception
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName: com.businessobj ects.dsws.DSWSE xception
{http://xml.apache.org/axis/}stackTrace:
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init> ;(Unknown Source)
at com.businessobj ects.dsws.sessi on.Session.< init>(Unknow n Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
{http://xml.apache.org/axis/}hostname:xyz
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init>(Unkn own Source)
at com.businessobj ects.dsws.sessi on.Session.<ini t>(Unknown Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
I am not sure if this is an issue with axis and can be solved by configuring the relevant files w.r.t axis properly, or it is a business objects issue. Please advise.
Thanks,
public void initWSConnectio n()
{
try{
String biCatalogURL = "http://" + super.getServer HostName() + ":" + PORT_NUMBER + BI_CATALOG_DIRE CTORY ;
URL boConURL = new URL(biCatalogUR L);
boConnection = new Connection(boCo nURL);
boSession = new Session(boConne ction);
EnterpriseCrede ntial boCredential = new EnterpriseCrede ntial();
boCredential.se tLogin(this.get UnvDesktopUsern ame());
boCredential.se tPassword(this. getUnvDesktopPa ssword());
boCredential.se tDomain(this.ge tUnvDesktopPass word());
SessionInfo boSI = boSession.login (boCredential);
}catch(Exceptio n e){
logger.log(Leve l.WARNING,"unab le to establish session",e);
e.printStackTra ce();
}
}
and the error is :
WARNING: unable to establish session
AxisFault
faultCode: {http://schemas.xmlsoap .org/soap/envelope/}Server.general Exception
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName: com.businessobj ects.dsws.DSWSE xception
{http://xml.apache.org/axis/}stackTrace:
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init> ;(Unknown Source)
at com.businessobj ects.dsws.sessi on.Session.< init>(Unknow n Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
{http://xml.apache.org/axis/}hostname:xyz
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init>(Unkn own Source)
at com.businessobj ects.dsws.sessi on.Session.<ini t>(Unknown Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
AxisFault
faultCode: {http://schemas.xmlsoap .org/soap/envelope/}Server.general Exception
faultSubcode:
faultString:
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}exceptionName: com.businessobj ects.dsws.DSWSE xception
{http://xml.apache.org/axis/}stackTrace:
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init> ;(Unknown Source)
at com.businessobj ects.dsws.sessi on.Session.< init>(Unknow n Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
{http://xml.apache.org/axis/}hostname:xyz
at com.businessobj ects.dsws.Consu mer.createDSWSE xception(Unknow n Source)
at com.businessobj ects.dsws.Consu mer.propagateAs DSWSException(U nknown Source)
at com.businessobj ects.dsws.Consu mer.<init>(Unkn own Source)
at com.businessobj ects.dsws.sessi on.Session.<ini t>(Unknown Source)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initWSC onnection(BoxiR eportingConnect ionHelper.java: 181)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingConnectio nHelper.initAll ServerConnectio ns(BoxiReportin gConnectionHelp er.java:142)
at com.dag.mc.biz. activelinx.emf. snapshot.boxire porting.BoxiRep ortingEmfMapper .startup(BoxiRe portingEmfMappe r.java:103)
at com.dag.mc.biz. activelinx.emf. snapshot.Defaul tEmfMapper.crea teResource(Defa ultEmfMapper.ja va:170)
at com.dag.mc.biz. autorun.BoxiRep ortingSnapshotC ommand.execute( BoxiReportingSn apshotCommand.j ava:77)
at com.dag.mc.biz. autorun.AutoRun .handleCommand( AutoRun.java:28 7)
at com.dag.mc.biz. autorun.AutoRun .main(AutoRun.j ava:167)
I am not sure if this is an issue with axis and can be solved by configuring the relevant files w.r.t axis properly, or it is a business objects issue. Please advise.
Thanks,