The operation failed with no permissions for the service! [Agency number: 99, user id:50000009, service number: 0101030112]

Source: Internet
Author: User

The operation failed with no permissions for the service! [Agency number: 99, user id:50000009, service number: 0101030112]

At this point we can change the code SERVICE_NO to 10 0 that is 0000000000, you can do permission to view.

Then print out the response response to the big object and see where it's going.

 PackageCom.isoftstone.common;Importjava.util.ArrayList;ImportJava.util.HashMap;Importjava.util.List;ImportJava.util.Map;ImportOrg.apache.log4j.Logger;ImportCom.isoftstone.core.common.tools.XmlTool;ImportCom.isoftstone.core.dto.RequestBusinessObject;ImportCom.isoftstone.core.dto.ResponseBusinessObject;Importcom.isoftstone.fwk.dao.DaoException;Importcom.isoftstone.fwk.util.SpringUtils;Importcom.isoftstone.httpclient.ESBClient;Importcom.isoftstone.platform.constants.PltmConstants;ImportCom.isoftstone.platform.service.PltmPacketService;ImportCom.isoftstone.platform.vo.PltmPacketVO; Public classJavactool {//need to Xiao Fei latest Esb.jar support    /**Create a Logger object **/    Private StaticLogger Logger = Logger.getlogger (javactool.class); /*** After making special judgment, call Javac Save and Platform Communication message * Current special judgment is only for the insured query check is not the core synchronization save, but return false *@paramRecvoutmap *@paramPltmpacketvo *@paramSendoutmap *@return     */     Public Static BooleanCalljavacafterjudgement (map<string, list<map<string, object>>>Recvoutmap, Pltmpacketvo pltmpacketvo,map sendoutmap) {//Boolean flag = true;//if (sendoutmap! = null) {//the judgment here is that because the core does not need the first platform to return the question message, only need the second and Platform communication message. So if it's a query check, then return false, so that you don't send the text to the core//List List = (list) sendoutmap.get ("Checkcode");//if (list = null && list.size () > 0) {//determine if the insured query check list exists//Map Innermap = (map) list.get (0);//String renewalflag = (string) innermap.get ("Renewal_flag");//if (renewalflag! = null) {//if ("1". Equals (Renewalflag)) {//flag = false;//                    }//                }//            }//        }//if (flag = = True) {            returnCalljavac (recvoutmap,pltmpacketvo,sendoutmap);//}else{//return false;//        }    }        /** @param recvoutmap Receive Peripheral map * @param pltmpacketvo The large log object returned by this system, including receiving peripheral, on platform, platform return, send peripheral, successful failure and so on. * @param sendoutmap sent to the perimeter map*/     Public Static  BooleanCalljavac (map<string, list<map<string, object>>>Recvoutmap, Pltmpacketvo pltmpacketvo,map sendoutmap) {Pltmpacketservice Pltmpacketservice= (Pltmpacketservice) springutils.getspringbean ("Pltmpacketservice"); Responsebusinessobject Responsebo=NULL; Map<string, list<map<string, object>>> sendv5map =NewHashmap<string, List<map<string, object>>> ();//send V5 's communication map        Try{List<map<string, object>> recvoutbaselist = Recvoutmap.get ("BASE"); List<map<string, object>> recvoutvhllist = Recvoutmap.get ("VHL"); if(Recvoutvhllist = =NULL)|| (recvoutvhllist.size () = = 0) )                return false; String DPTCDE= (String) recvoutbaselist.get (0). Get ("DPT_CDE");//8-bit out-of-order mechanismList headlist = (list) sendoutmap.get ("HEAD");//Error_code Start            if(Headlist = =NULL)|| (headlist.size () = = 0) )                return false; Map Headmap= (MAP) headlist.get (0); List vhllist= (List) sendoutmap.get ("VHL");//query_sequence_no Start            if(Vhllist = =NULL)|| (vhllist.size () = = 0) )                return false; Map Vhlmap= (MAP) vhllist.get (0); Map<string, object> recvoutvhlmap = recvoutvhllist.get (0); //error code if 0000 indicates that the platform communication is completely normal, then continue to go down and V5 communication            if("0000". Equals (Headmap.get ("Error_code")) &&pltmconstants.four.equals (Pltmpacketvo.getcsucmrk ()) & &PltmConstants.V5FAIL_MRK.equals (PLTMPACKETVO.GETCSENDV5MRK ())) {                //if the Peace station interaction flag is 4//Prepare Javac Communication, populate the data to Sendv5maplist<map<string, object>> baselist =NewArraylist<map<string, object>> ();//1map<string,object> Basemap =NewHashmap<string,object>(); String CQUERYCDE= (String) vhlmap.get ("Query_cde"); String Ccarmark= (String) recvoutvhlmap.get ("Car_mark"); String Cengineno= (String) recvoutvhlmap.get ("Engine_no"); String Crackno= (String) recvoutvhlmap.get ("Rack_no"); Basemap.put ("Dpt_cde", DPTCDE);//DPT_CDE EndBasemap.put ("Car_mark", Ccarmark);//Car_mark EndBasemap.put ("Engine_no", Cengineno);//Engine_no EndBasemap.put ("Rack_no", Crackno);//Rack_no EndBasemap.put ("Query_sequence_no", CQUERYCDE);//Query_sequence_no EndBasemap.put ("RequestXML", Pltmpacketvo.getcsendpltm (). Replace ("</", "$ ($)"). Replace ("/>", "$) $"). Replace (" < "," # (# "). Replace (" > "," #) # ")); Basemap.put ("Responsexml", Pltmpacketvo.getcrecvpltm (). Replace ("</", "$ ($)"). Replace ("/>", "$) $"). Replace ("<", "#"). Replace (">", "#) #"));                Baselist.add (BASEMAP); Sendv5map.put ("BASE", baselist); //Fill Complete//start calling Javac communication, after V5 communication succeedsLogger.info ("Synchronous query code for" +cquerycde+ "[Request and return] message to the core, start"); Savequeryinfoservice (RECVOUTMAP,SENDV5MAP);//2Logger.info ("Synchronous query code for" +cquerycde+ "[Request and return] message to the core, end"); //v5 Communication Success FlagPLTMPACKETSERVICE.UPDATESENDV5MRK (Pltmpacketvo.getcpkid (), PLTMCONSTANTS.V5SUCC_MRK);//3Logger.info ("The query code for the" +cquerycde+ "and the core communication success Flag modified to 1"); }Else{                return false; }        }Catch(NullPointerException NpE) {//1Logger.warn ("[Generate V5 Interactive message failed]:" +NpE); return false; } Catch(Daoexception Daoe) {//3Logger.warn ("[Update log Failed]:" +Daoe); return false; }Catch(Exception e) {//2Logger.error (E.getmessage ()); Logger.error ("Synchronization with core data failed, possible cause: Timed out"); return false; }        return true; }        /** @author * @param recvoutmap is used to extract part of head information into the Sendv5map cloud * @param sendv5map missing head information map, after setting head, turn to req UESTBO, for communication with V5*/     Public StaticResponsebusinessobject Savequeryinfoservice (map<string, list<map<string, Object>>> RecvOutMap, Map Sendv5map)throwsexception{esbclient esbclient=Newesbclient (); List List=NewArrayList (); MAP Head=NewHashMap (); Head.put ("Request_type", "" "); Head.put ("SYSNAME", "Platproxy"); Head.put ("Syscode", "02"); Head.put ("Usercde", "100009999"); Head.put ("Dptcde", Recvoutmap.get ("HEAD"). Get (0). Get ("DPTCDE")); Head.put ("TYPE", "Q"); Head.put ("DATA", "A"); Head.put ("Service_no", "0000000000"); Head.put ("SERVICENAME", "Savequeryinfo"); Head.put ("USERID", "50000009");        List.add (head); Sendv5map.put ("HEAD", list); //ESB Set Connection TimeoutEsbclient client =NewEsbclient (30*1000,30*1000,30*1000); Requestbusinessobject Requestbo=NULL; Responsebusinessobject Responseobject=NULL; Try{Requestbo=Xmltool.getfromcoremap (sendv5map);//String s = xmltool.converttoxml (REQUESTBO);Responseobject =Client.invoke (REQUESTBO); String s=Xmltool.converttoxml (Responseobject); System.out.println ("Core return information ________________+:\n" +R); } Catch(Exception e) {Throwe; }        returnResponseobject; }    //}
View Code

The operation failed with no permissions for the service! [Agency number: 99, user id:50000009, service number: 0101030112]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.