如何在Meteor中切换帐户包

时间:2015-11-15 21:22:02

标签: meteor packages accounts

现在我已经安装了Meteor帐户密码和joshowens:account-entry软件包。我的应用程序目前正在使用joshowens:accounts-entry,但与Meteor 1.2不兼容,所以我想将帐户系统切换回标准的Meteor帐户密码包。有谁知道如何做到这一点?我只是卸载joshowens:accounts-entry,它默认为Meteor accounts-password?

谢谢!

1 个答案:

答案 0 :(得分:0)

你好!

要删除包裹,我们使用:

joshowens:accounts-entry

所以,要删除$ meteor remove joshowens:accounts-entry

>java.lang.VerifyError: Inconsistent stackmap frames at branch target 42
Exception Details:
  Location:
    org/apache/hadoop/conf/Configured.<init>()V @42: aload_1
  Reason:
    Type uninitializedThis (current frame, locals[1]) is not assignable to 'org/apache/hadoop/conf/Configured' (stack map, locals[1])
  Current Frame:
    bci: @32
    flags: { flagThisUninit }
    locals: { uninitializedThis, uninitializedThis, null, top, 'java/lang/Object' }
    stack: { 'java/lang/Object', 'java/lang/Object' }
  Stackmap Frame:
    bci: @42
    flags: { flagThisUninit }
    locals: { uninitializedThis, 'org/apache/hadoop/conf/Configured', 'org/apache/hadoop/conf/Configuration' }
    at java.lang.Class.getDeclaredConstructors0(Native Method)
    at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
    at java.lang.Class.getDeclaredConstructors(Unknown Source)
    at org.mockito.internal.creation.jmock.ClassImposterizer.setConstructorsAccessible(ClassImposterizer.java:75)
    at org.mockito.internal.creation.jmock.ClassImposterizer.imposterise(ClassImposterizer.java:70)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.createMethodInvocationControl(MockCreator.java:111)
    at org.powermock.api.mockito.internal.mockcreation.MockCreator.mock(MockCreator.java:60)
    at org.powermock.api.mockito.PowerMockito.mockStatic(PowerMockito.java:70)
    at com.chubb.pipeline.transformation.TestHadoopTest.testtestme(TestHadoopTest.java:27)




      @RunWith(PowerMockRunner.class)
        @PrepareForTest({TestHadoop.class,FileSystem.class})
        @PowerMockIgnore({"org.apache.hadoop.conf.*","org.apache.hadoop.fs.*"})
     public class TestHadoopTest {

    @Test
    public void testtestme() throws Exception {

        CopyBookReader cbr = PowerMockito.mock(CopyBookReader.class);
        TestHadoop testhad = new TestHadoop();          
        PowerMockito.mockStatic(FileSystem.class);
        Configuration conf = mock(Configuration.class); 
        PowerMockito.when(FileSystem.get(conf)).thenReturn(null); 
        PowerMockito.whenNew(CopyBookReader.class).withArguments(isA(Path.class),isA(FileSystem.class)).thenReturn(cbr);
        testhad.testme();

    }



}



public class TestHadoop {

    public void testme() throws Exception{

    FileSystem fs = FileSystem.get(new Configuration());
    FileStatus[] status = fs.listStatus (new Path ("string"));
    CopyBookReader cBook = new CopyBookReader(status[0].getPath(),fs);
    cBook.toString();
}

}

有关更多信息,请参阅relevant docs

希望这会有所帮助。